Added native mode dll support (based on a patch by Marcus Meissner).
[wine/multimedia.git] / configure
blob9e5f57d3590906c9f10628000c0d97cf3b431d84
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20040121.
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='20040121'
273 PACKAGE_STRING='Wine 20040121'
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 CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX 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 LDDLL 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_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures Wine 20040121 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 X features:
837 --x-includes=DIR X include files are in DIR
838 --x-libraries=DIR X library files are in DIR
840 System types:
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 _ACEOF
846 if test -n "$ac_init_help"; then
847 case $ac_init_help in
848 short | recursive ) echo "Configuration of Wine 20040121:";;
849 esac
850 cat <<\_ACEOF
852 Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --disable-win16 do not include Win16 support
856 --disable-debug compile out all debugging messages
857 --disable-trace compile out TRACE messages
859 Optional Packages:
860 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
861 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
862 --without-opengl do not use OpenGL
863 --without-curses do not use curses
864 --with-wine-tools=<dir> use Wine tools from directory <dir>
865 --with-x use the X Window System
867 Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CPP C preprocessor
876 Use these variables to override the choices made by `configure' or to help
877 it to find libraries and programs with nonstandard names/locations.
879 Report bugs to <wine-devel@winehq.org>.
880 _ACEOF
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
885 ac_popdir=`pwd`
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
888 ac_builddir=.
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895 ac_dir_suffix= ac_top_builddir=
898 case $srcdir in
899 .) # No --srcdir option. We are building in place.
900 ac_srcdir=.
901 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=.
903 else
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 fi ;;
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
909 *) # Relative path.
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
916 case `pwd` in
917 .) ac_abs_builddir="$ac_dir";;
919 case "$ac_dir" in
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
937 case $ac_srcdir in
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 esac;;
951 esac
953 cd $ac_dir
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
956 echo
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
959 echo
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
963 echo
964 $ac_configure --help
965 else
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 cd "$ac_popdir"
969 done
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
974 cat <<\_ACEOF
975 Wine configure 20040121
976 generated by GNU Autoconf 2.59
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982 exit 0
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by Wine $as_me 20040121, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
992 $ $0 $@
994 _ACEOF
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018 _ASUNAME
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1023 IFS=$as_save_IFS
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1026 done
1028 } >&5
1030 cat >&5 <<_ACEOF
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1037 _ACEOF
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1052 for ac_arg
1054 case $ac_arg in
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 continue ;;
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 esac
1062 case $ac_pass in
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1068 else
1069 case $ac_arg in
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 esac
1078 -* ) ac_must_keep_next=true ;;
1079 esac
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1083 ac_sep=" "
1085 esac
1086 done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1099 echo
1101 cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106 echo
1107 # The following way of writing the cache mishandles newlines in values,
1109 (set) 2>&1 |
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 *ac_space=\ *)
1112 sed -n \
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 sed -n \
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 esac;
1122 echo
1124 cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_vars
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1137 if test -n "$ac_subst_files"; then
1138 cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_files
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1152 if test -s confdefs.h; then
1153 cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158 echo
1159 sed "/^$/d" confdefs.h | sort
1160 echo
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1165 } >&5
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 exit $exit_status
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1180 # Predefined preprocessor variables.
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 else
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1221 . "$ac_site_file"
1223 done
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231 case $cache_file in
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1234 esac
1236 else
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239 >$cache_file
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1252 set,)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,set)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,);;
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1270 fi;;
1271 esac
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1274 case $ac_new_val in
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1278 esac
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 esac
1284 done
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326 ac_config_headers="$ac_config_headers include/config.h"
1328 ac_aux_dir=
1329 for ac_dir in tools $srcdir/tools; do
1330 if test -f $ac_dir/install-sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1333 break
1334 elif test -f $ac_dir/install.sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1337 break
1338 elif test -f $ac_dir/shtool; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1341 break
1343 done
1344 if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1347 { (exit 1); exit 1; }; }
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1355 # Check whether --enable-win16 or --disable-win16 was given.
1356 if test "${enable_win16+set}" = set; then
1357 enableval="$enable_win16"
1360 # Check whether --enable-debug or --disable-debug was given.
1361 if test "${enable_debug+set}" = set; then
1362 enableval="$enable_debug"
1365 # Check whether --enable-trace or --disable-trace was given.
1366 if test "${enable_trace+set}" = set; then
1367 enableval="$enable_trace"
1372 # Check whether --with-opengl or --without-opengl was given.
1373 if test "${with_opengl+set}" = set; then
1374 withval="$with_opengl"
1378 # Check whether --with-curses or --without-curses was given.
1379 if test "${with_curses+set}" = set; then
1380 withval="$with_curses"
1384 # Check whether --with-wine-tools or --without-wine-tools was given.
1385 if test "${with_wine_tools+set}" = set; then
1386 withval="$with_wine_tools"
1390 WIN16_FILES="\$(WIN16_FILES)"
1392 WIN16_INSTALL="\$(WIN16_INSTALL)"
1394 if test "x$enable_win16" = "xno"
1395 then
1396 WIN16_FILES=""
1397 WIN16_INSTALL=""
1399 if test "x$enable_debug" = "xno"
1400 then
1402 cat >>confdefs.h <<\_ACEOF
1403 #define NO_DEBUG_MSGS 1
1404 _ACEOF
1407 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1408 then
1410 cat >>confdefs.h <<\_ACEOF
1411 #define NO_TRACE_MSGS 1
1412 _ACEOF
1417 # Make sure we can run config.sub.
1418 $ac_config_sub sun4 >/dev/null 2>&1 ||
1419 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1420 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1421 { (exit 1); exit 1; }; }
1423 echo "$as_me:$LINENO: checking build system type" >&5
1424 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1425 if test "${ac_cv_build+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 else
1428 ac_cv_build_alias=$build_alias
1429 test -z "$ac_cv_build_alias" &&
1430 ac_cv_build_alias=`$ac_config_guess`
1431 test -z "$ac_cv_build_alias" &&
1432 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1433 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1434 { (exit 1); exit 1; }; }
1435 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1436 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1437 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1438 { (exit 1); exit 1; }; }
1441 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1442 echo "${ECHO_T}$ac_cv_build" >&6
1443 build=$ac_cv_build
1444 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1449 echo "$as_me:$LINENO: checking host system type" >&5
1450 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1451 if test "${ac_cv_host+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454 ac_cv_host_alias=$host_alias
1455 test -z "$ac_cv_host_alias" &&
1456 ac_cv_host_alias=$ac_cv_build_alias
1457 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1458 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1459 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1460 { (exit 1); exit 1; }; }
1463 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1464 echo "${ECHO_T}$ac_cv_host" >&6
1465 host=$ac_cv_host
1466 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1467 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1468 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1471 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1472 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1473 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1474 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477 cat >conftest.make <<\_ACEOF
1478 all:
1479 @echo 'ac_maketemp="$(MAKE)"'
1480 _ACEOF
1481 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1482 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1483 if test -n "$ac_maketemp"; then
1484 eval ac_cv_prog_make_${ac_make}_set=yes
1485 else
1486 eval ac_cv_prog_make_${ac_make}_set=no
1488 rm -f conftest.make
1490 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1491 echo "$as_me:$LINENO: result: yes" >&5
1492 echo "${ECHO_T}yes" >&6
1493 SET_MAKE=
1494 else
1495 echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1497 SET_MAKE="MAKE=${MAKE-make}"
1500 ac_ext=c
1501 ac_cpp='$CPP $CPPFLAGS'
1502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1505 if test -n "$ac_tool_prefix"; then
1506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1507 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1508 echo "$as_me:$LINENO: checking for $ac_word" >&5
1509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510 if test "${ac_cv_prog_CC+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 else
1513 if test -n "$CC"; then
1514 ac_cv_prog_CC="$CC" # Let the user override the test.
1515 else
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517 for as_dir in $PATH
1519 IFS=$as_save_IFS
1520 test -z "$as_dir" && as_dir=.
1521 for ac_exec_ext in '' $ac_executable_extensions; do
1522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525 break 2
1527 done
1528 done
1532 CC=$ac_cv_prog_CC
1533 if test -n "$CC"; then
1534 echo "$as_me:$LINENO: result: $CC" >&5
1535 echo "${ECHO_T}$CC" >&6
1536 else
1537 echo "$as_me:$LINENO: result: no" >&5
1538 echo "${ECHO_T}no" >&6
1542 if test -z "$ac_cv_prog_CC"; then
1543 ac_ct_CC=$CC
1544 # Extract the first word of "gcc", so it can be a program name with args.
1545 set dummy gcc; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 if test -n "$ac_ct_CC"; then
1552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1553 else
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_ac_ct_CC="gcc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
1565 done
1566 done
1570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1571 if test -n "$ac_ct_CC"; then
1572 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1573 echo "${ECHO_T}$ac_ct_CC" >&6
1574 else
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1579 CC=$ac_ct_CC
1580 else
1581 CC="$ac_cv_prog_CC"
1584 if test -z "$CC"; then
1585 if test -n "$ac_tool_prefix"; then
1586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1587 set dummy ${ac_tool_prefix}cc; ac_word=$2
1588 echo "$as_me:$LINENO: checking for $ac_word" >&5
1589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590 if test "${ac_cv_prog_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 else
1593 if test -n "$CC"; then
1594 ac_cv_prog_CC="$CC" # Let the user override the test.
1595 else
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 for as_dir in $PATH
1599 IFS=$as_save_IFS
1600 test -z "$as_dir" && as_dir=.
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1603 ac_cv_prog_CC="${ac_tool_prefix}cc"
1604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 break 2
1607 done
1608 done
1612 CC=$ac_cv_prog_CC
1613 if test -n "$CC"; then
1614 echo "$as_me:$LINENO: result: $CC" >&5
1615 echo "${ECHO_T}$CC" >&6
1616 else
1617 echo "$as_me:$LINENO: result: no" >&5
1618 echo "${ECHO_T}no" >&6
1622 if test -z "$ac_cv_prog_CC"; then
1623 ac_ct_CC=$CC
1624 # Extract the first word of "cc", so it can be a program name with args.
1625 set dummy cc; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631 if test -n "$ac_ct_CC"; then
1632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1633 else
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1637 IFS=$as_save_IFS
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 ac_cv_prog_ac_ct_CC="cc"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 break 2
1645 done
1646 done
1650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1651 if test -n "$ac_ct_CC"; then
1652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1653 echo "${ECHO_T}$ac_ct_CC" >&6
1654 else
1655 echo "$as_me:$LINENO: result: no" >&5
1656 echo "${ECHO_T}no" >&6
1659 CC=$ac_ct_CC
1660 else
1661 CC="$ac_cv_prog_CC"
1665 if test -z "$CC"; then
1666 # Extract the first word of "cc", so it can be a program name with args.
1667 set dummy cc; ac_word=$2
1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670 if test "${ac_cv_prog_CC+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673 if test -n "$CC"; then
1674 ac_cv_prog_CC="$CC" # Let the user override the test.
1675 else
1676 ac_prog_rejected=no
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 for as_dir in $PATH
1680 IFS=$as_save_IFS
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1685 ac_prog_rejected=yes
1686 continue
1688 ac_cv_prog_CC="cc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 break 2
1692 done
1693 done
1695 if test $ac_prog_rejected = yes; then
1696 # We found a bogon in the path, so make sure we never use it.
1697 set dummy $ac_cv_prog_CC
1698 shift
1699 if test $# != 0; then
1700 # We chose a different compiler from the bogus one.
1701 # However, it has the same basename, so the bogon will be chosen
1702 # first if we set CC to just the basename; use the full file name.
1703 shift
1704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1709 CC=$ac_cv_prog_CC
1710 if test -n "$CC"; then
1711 echo "$as_me:$LINENO: result: $CC" >&5
1712 echo "${ECHO_T}$CC" >&6
1713 else
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1719 if test -z "$CC"; then
1720 if test -n "$ac_tool_prefix"; then
1721 for ac_prog in cl
1723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 if test -n "$CC"; then
1731 ac_cv_prog_CC="$CC" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1744 done
1745 done
1749 CC=$ac_cv_prog_CC
1750 if test -n "$CC"; then
1751 echo "$as_me:$LINENO: result: $CC" >&5
1752 echo "${ECHO_T}$CC" >&6
1753 else
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1758 test -n "$CC" && break
1759 done
1761 if test -z "$CC"; then
1762 ac_ct_CC=$CC
1763 for ac_prog in cl
1765 # Extract the first word of "$ac_prog", so it can be a program name with args.
1766 set dummy $ac_prog; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772 if test -n "$ac_ct_CC"; then
1773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1774 else
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1778 IFS=$as_save_IFS
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 ac_cv_prog_ac_ct_CC="$ac_prog"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 break 2
1786 done
1787 done
1791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1792 if test -n "$ac_ct_CC"; then
1793 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1794 echo "${ECHO_T}$ac_ct_CC" >&6
1795 else
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1800 test -n "$ac_ct_CC" && break
1801 done
1803 CC=$ac_ct_CC
1809 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1810 See \`config.log' for more details." >&5
1811 echo "$as_me: error: no acceptable C compiler found in \$PATH
1812 See \`config.log' for more details." >&2;}
1813 { (exit 1); exit 1; }; }
1815 # Provide some information about the compiler.
1816 echo "$as_me:$LINENO:" \
1817 "checking for C compiler version" >&5
1818 ac_compiler=`set X $ac_compile; echo $2`
1819 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1820 (eval $ac_compiler --version </dev/null >&5) 2>&5
1821 ac_status=$?
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }
1824 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1825 (eval $ac_compiler -v </dev/null >&5) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1830 (eval $ac_compiler -V </dev/null >&5) 2>&5
1831 ac_status=$?
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }
1835 cat >conftest.$ac_ext <<_ACEOF
1836 /* confdefs.h. */
1837 _ACEOF
1838 cat confdefs.h >>conftest.$ac_ext
1839 cat >>conftest.$ac_ext <<_ACEOF
1840 /* end confdefs.h. */
1843 main ()
1847 return 0;
1849 _ACEOF
1850 ac_clean_files_save=$ac_clean_files
1851 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1852 # Try to create an executable without -o first, disregard a.out.
1853 # It will help us diagnose broken compilers, and finding out an intuition
1854 # of exeext.
1855 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1856 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1857 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1858 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1859 (eval $ac_link_default) 2>&5
1860 ac_status=$?
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }; then
1863 # Find the output, starting from the most likely. This scheme is
1864 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1865 # resort.
1867 # Be careful to initialize this variable, since it used to be cached.
1868 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1869 ac_cv_exeext=
1870 # b.out is created by i960 compilers.
1871 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1873 test -f "$ac_file" || continue
1874 case $ac_file in
1875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1877 conftest.$ac_ext )
1878 # This is the source file.
1880 [ab].out )
1881 # We found the default executable, but exeext='' is most
1882 # certainly right.
1883 break;;
1884 *.* )
1885 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1886 # FIXME: I believe we export ac_cv_exeext for Libtool,
1887 # but it would be cool to find out if it's true. Does anybody
1888 # maintain Libtool? --akim.
1889 export ac_cv_exeext
1890 break;;
1892 break;;
1893 esac
1894 done
1895 else
1896 echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1900 See \`config.log' for more details." >&5
1901 echo "$as_me: error: C compiler cannot create executables
1902 See \`config.log' for more details." >&2;}
1903 { (exit 77); exit 77; }; }
1906 ac_exeext=$ac_cv_exeext
1907 echo "$as_me:$LINENO: result: $ac_file" >&5
1908 echo "${ECHO_T}$ac_file" >&6
1910 # Check the compiler produces executables we can run. If not, either
1911 # the compiler is broken, or we cross compile.
1912 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1913 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1914 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1915 # If not cross compiling, check that we can run a simple program.
1916 if test "$cross_compiling" != yes; then
1917 if { ac_try='./$ac_file'
1918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1919 (eval $ac_try) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }; }; then
1923 cross_compiling=no
1924 else
1925 if test "$cross_compiling" = maybe; then
1926 cross_compiling=yes
1927 else
1928 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1929 If you meant to cross compile, use \`--host'.
1930 See \`config.log' for more details." >&5
1931 echo "$as_me: error: cannot run C compiled programs.
1932 If you meant to cross compile, use \`--host'.
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
1938 echo "$as_me:$LINENO: result: yes" >&5
1939 echo "${ECHO_T}yes" >&6
1941 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1942 ac_clean_files=$ac_clean_files_save
1943 # Check the compiler produces executables we can run. If not, either
1944 # the compiler is broken, or we cross compile.
1945 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1946 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1947 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1948 echo "${ECHO_T}$cross_compiling" >&6
1950 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1951 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1953 (eval $ac_link) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; then
1957 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1958 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1959 # work properly (i.e., refer to `conftest.exe'), while it won't with
1960 # `rm'.
1961 for ac_file in conftest.exe conftest conftest.*; do
1962 test -f "$ac_file" || continue
1963 case $ac_file in
1964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1965 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1966 export ac_cv_exeext
1967 break;;
1968 * ) break;;
1969 esac
1970 done
1971 else
1972 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1973 See \`config.log' for more details." >&5
1974 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1975 See \`config.log' for more details." >&2;}
1976 { (exit 1); exit 1; }; }
1979 rm -f conftest$ac_cv_exeext
1980 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1981 echo "${ECHO_T}$ac_cv_exeext" >&6
1983 rm -f conftest.$ac_ext
1984 EXEEXT=$ac_cv_exeext
1985 ac_exeext=$EXEEXT
1986 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1987 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1988 if test "${ac_cv_objext+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 cat >conftest.$ac_ext <<_ACEOF
1992 /* confdefs.h. */
1993 _ACEOF
1994 cat confdefs.h >>conftest.$ac_ext
1995 cat >>conftest.$ac_ext <<_ACEOF
1996 /* end confdefs.h. */
1999 main ()
2003 return 0;
2005 _ACEOF
2006 rm -f conftest.o conftest.obj
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; then
2012 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2013 case $ac_file in
2014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2015 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2016 break;;
2017 esac
2018 done
2019 else
2020 echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2023 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2024 See \`config.log' for more details." >&5
2025 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2026 See \`config.log' for more details." >&2;}
2027 { (exit 1); exit 1; }; }
2030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2032 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2033 echo "${ECHO_T}$ac_cv_objext" >&6
2034 OBJEXT=$ac_cv_objext
2035 ac_objext=$OBJEXT
2036 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2037 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2038 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 cat >conftest.$ac_ext <<_ACEOF
2042 /* confdefs.h. */
2043 _ACEOF
2044 cat confdefs.h >>conftest.$ac_ext
2045 cat >>conftest.$ac_ext <<_ACEOF
2046 /* end confdefs.h. */
2049 main ()
2051 #ifndef __GNUC__
2052 choke me
2053 #endif
2056 return 0;
2058 _ACEOF
2059 rm -f conftest.$ac_objext
2060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2061 (eval $ac_compile) 2>conftest.er1
2062 ac_status=$?
2063 grep -v '^ *+' conftest.er1 >conftest.err
2064 rm -f conftest.er1
2065 cat conftest.err >&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); } &&
2068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 (eval $ac_try) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; } &&
2074 { ac_try='test -s conftest.$ac_objext'
2075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2076 (eval $ac_try) 2>&5
2077 ac_status=$?
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; }; then
2080 ac_compiler_gnu=yes
2081 else
2082 echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2085 ac_compiler_gnu=no
2087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2088 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2091 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2092 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2093 GCC=`test $ac_compiler_gnu = yes && echo yes`
2094 ac_test_CFLAGS=${CFLAGS+set}
2095 ac_save_CFLAGS=$CFLAGS
2096 CFLAGS="-g"
2097 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2098 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2099 if test "${ac_cv_prog_cc_g+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 cat >conftest.$ac_ext <<_ACEOF
2103 /* confdefs.h. */
2104 _ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2110 main ()
2114 return 0;
2116 _ACEOF
2117 rm -f conftest.$ac_objext
2118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2119 (eval $ac_compile) 2>conftest.er1
2120 ac_status=$?
2121 grep -v '^ *+' conftest.er1 >conftest.err
2122 rm -f conftest.er1
2123 cat conftest.err >&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); } &&
2126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2128 (eval $ac_try) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }; } &&
2132 { ac_try='test -s conftest.$ac_objext'
2133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134 (eval $ac_try) 2>&5
2135 ac_status=$?
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }; }; then
2138 ac_cv_prog_cc_g=yes
2139 else
2140 echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2143 ac_cv_prog_cc_g=no
2145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2147 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2148 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2149 if test "$ac_test_CFLAGS" = set; then
2150 CFLAGS=$ac_save_CFLAGS
2151 elif test $ac_cv_prog_cc_g = yes; then
2152 if test "$GCC" = yes; then
2153 CFLAGS="-g -O2"
2154 else
2155 CFLAGS="-g"
2157 else
2158 if test "$GCC" = yes; then
2159 CFLAGS="-O2"
2160 else
2161 CFLAGS=
2164 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2165 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2166 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 ac_cv_prog_cc_stdc=no
2170 ac_save_CC=$CC
2171 cat >conftest.$ac_ext <<_ACEOF
2172 /* confdefs.h. */
2173 _ACEOF
2174 cat confdefs.h >>conftest.$ac_ext
2175 cat >>conftest.$ac_ext <<_ACEOF
2176 /* end confdefs.h. */
2177 #include <stdarg.h>
2178 #include <stdio.h>
2179 #include <sys/types.h>
2180 #include <sys/stat.h>
2181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2182 struct buf { int x; };
2183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2184 static char *e (p, i)
2185 char **p;
2186 int i;
2188 return p[i];
2190 static char *f (char * (*g) (char **, int), char **p, ...)
2192 char *s;
2193 va_list v;
2194 va_start (v,p);
2195 s = g (p, va_arg (v,int));
2196 va_end (v);
2197 return s;
2200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2201 function prototypes and stuff, but not '\xHH' hex character constants.
2202 These don't provoke an error unfortunately, instead are silently treated
2203 as 'x'. The following induces an error, until -std1 is added to get
2204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2205 array size at least. It's necessary to write '\x00'==0 to get something
2206 that's true only with -std1. */
2207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2209 int test (int i, double x);
2210 struct s1 {int (*f) (int a);};
2211 struct s2 {int (*f) (double a);};
2212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2213 int argc;
2214 char **argv;
2216 main ()
2218 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2220 return 0;
2222 _ACEOF
2223 # Don't try gcc -ansi; that turns off useful extensions and
2224 # breaks some systems' header files.
2225 # AIX -qlanglvl=ansi
2226 # Ultrix and OSF/1 -std1
2227 # HP-UX 10.20 and later -Ae
2228 # HP-UX older versions -Aa -D_HPUX_SOURCE
2229 # SVR4 -Xc -D__EXTENSIONS__
2230 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2232 CC="$ac_save_CC $ac_arg"
2233 rm -f conftest.$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>conftest.er1
2236 ac_status=$?
2237 grep -v '^ *+' conftest.er1 >conftest.err
2238 rm -f conftest.er1
2239 cat conftest.err >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; } &&
2248 { ac_try='test -s conftest.$ac_objext'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 (eval $ac_try) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; }; then
2254 ac_cv_prog_cc_stdc=$ac_arg
2255 break
2256 else
2257 echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2261 rm -f conftest.err conftest.$ac_objext
2262 done
2263 rm -f conftest.$ac_ext conftest.$ac_objext
2264 CC=$ac_save_CC
2268 case "x$ac_cv_prog_cc_stdc" in
2269 x|xno)
2270 echo "$as_me:$LINENO: result: none needed" >&5
2271 echo "${ECHO_T}none needed" >&6 ;;
2273 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2274 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2275 CC="$CC $ac_cv_prog_cc_stdc" ;;
2276 esac
2278 # Some people use a C++ compiler to compile C. Since we use `exit',
2279 # in C++ we need to declare it. In case someone uses the same compiler
2280 # for both compiling C and C++ we need to have the C++ compiler decide
2281 # the declaration of exit, since it's the most demanding environment.
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #ifndef __cplusplus
2284 choke me
2285 #endif
2286 _ACEOF
2287 rm -f conftest.$ac_objext
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289 (eval $ac_compile) 2>conftest.er1
2290 ac_status=$?
2291 grep -v '^ *+' conftest.er1 >conftest.err
2292 rm -f conftest.er1
2293 cat conftest.err >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 for ac_declaration in \
2309 '' \
2310 'extern "C" void std::exit (int) throw (); using std::exit;' \
2311 'extern "C" void std::exit (int); using std::exit;' \
2312 'extern "C" void exit (int) throw ();' \
2313 'extern "C" void exit (int);' \
2314 'void exit (int);'
2316 cat >conftest.$ac_ext <<_ACEOF
2317 /* confdefs.h. */
2318 _ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2322 $ac_declaration
2323 #include <stdlib.h>
2325 main ()
2327 exit (42);
2329 return 0;
2331 _ACEOF
2332 rm -f conftest.$ac_objext
2333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2334 (eval $ac_compile) 2>conftest.er1
2335 ac_status=$?
2336 grep -v '^ *+' conftest.er1 >conftest.err
2337 rm -f conftest.er1
2338 cat conftest.err >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); } &&
2341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 (eval $ac_try) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2358 continue
2360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361 cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h. */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2367 $ac_declaration
2369 main ()
2371 exit (42);
2373 return 0;
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>conftest.er1
2379 ac_status=$?
2380 grep -v '^ *+' conftest.er1 >conftest.err
2381 rm -f conftest.er1
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 break
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2404 done
2405 rm -f conftest*
2406 if test -n "$ac_declaration"; then
2407 echo '#ifdef __cplusplus' >>confdefs.h
2408 echo $ac_declaration >>confdefs.h
2409 echo '#endif' >>confdefs.h
2412 else
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424 ac_ext=c
2425 ac_cpp='$CPP $CPPFLAGS'
2426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2430 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2431 # On Suns, sometimes $CPP names a directory.
2432 if test -n "$CPP" && test -d "$CPP"; then
2433 CPP=
2435 if test -z "$CPP"; then
2436 if test "${ac_cv_prog_CPP+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 # Double quotes because CPP needs to be expanded
2440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2442 ac_preproc_ok=false
2443 for ac_c_preproc_warn_flag in '' yes
2445 # Use a header file that comes with gcc, so configuring glibc
2446 # with a fresh cross-compiler works.
2447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2448 # <limits.h> exists even on freestanding compilers.
2449 # On the NeXT, cc -E runs the code through the compiler's parser,
2450 # not just through cpp. "Syntax error" is here to catch this case.
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2457 #ifdef __STDC__
2458 # include <limits.h>
2459 #else
2460 # include <assert.h>
2461 #endif
2462 Syntax error
2463 _ACEOF
2464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } >/dev/null; then
2472 if test -s conftest.err; then
2473 ac_cpp_err=$ac_c_preproc_warn_flag
2474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2475 else
2476 ac_cpp_err=
2478 else
2479 ac_cpp_err=yes
2481 if test -z "$ac_cpp_err"; then
2483 else
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2487 # Broken: fails on valid input.
2488 continue
2490 rm -f conftest.err conftest.$ac_ext
2492 # OK, works on sane cases. Now check whether non-existent headers
2493 # can be detected and how.
2494 cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h. */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2500 #include <ac_nonexistent.h>
2501 _ACEOF
2502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } >/dev/null; then
2510 if test -s conftest.err; then
2511 ac_cpp_err=$ac_c_preproc_warn_flag
2512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2513 else
2514 ac_cpp_err=
2516 else
2517 ac_cpp_err=yes
2519 if test -z "$ac_cpp_err"; then
2520 # Broken: success on invalid input.
2521 continue
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 # Passes both tests.
2527 ac_preproc_ok=:
2528 break
2530 rm -f conftest.err conftest.$ac_ext
2532 done
2533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2534 rm -f conftest.err conftest.$ac_ext
2535 if $ac_preproc_ok; then
2536 break
2539 done
2540 ac_cv_prog_CPP=$CPP
2543 CPP=$ac_cv_prog_CPP
2544 else
2545 ac_cv_prog_CPP=$CPP
2547 echo "$as_me:$LINENO: result: $CPP" >&5
2548 echo "${ECHO_T}$CPP" >&6
2549 ac_preproc_ok=false
2550 for ac_c_preproc_warn_flag in '' yes
2552 # Use a header file that comes with gcc, so configuring glibc
2553 # with a fresh cross-compiler works.
2554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2555 # <limits.h> exists even on freestanding compilers.
2556 # On the NeXT, cc -E runs the code through the compiler's parser,
2557 # not just through cpp. "Syntax error" is here to catch this case.
2558 cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h. */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2564 #ifdef __STDC__
2565 # include <limits.h>
2566 #else
2567 # include <assert.h>
2568 #endif
2569 Syntax error
2570 _ACEOF
2571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2572 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
2579 if test -s conftest.err; then
2580 ac_cpp_err=$ac_c_preproc_warn_flag
2581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2582 else
2583 ac_cpp_err=
2585 else
2586 ac_cpp_err=yes
2588 if test -z "$ac_cpp_err"; then
2590 else
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2594 # Broken: fails on valid input.
2595 continue
2597 rm -f conftest.err conftest.$ac_ext
2599 # OK, works on sane cases. Now check whether non-existent headers
2600 # can be detected and how.
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2607 #include <ac_nonexistent.h>
2608 _ACEOF
2609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2611 ac_status=$?
2612 grep -v '^ *+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } >/dev/null; then
2617 if test -s conftest.err; then
2618 ac_cpp_err=$ac_c_preproc_warn_flag
2619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2620 else
2621 ac_cpp_err=
2623 else
2624 ac_cpp_err=yes
2626 if test -z "$ac_cpp_err"; then
2627 # Broken: success on invalid input.
2628 continue
2629 else
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2633 # Passes both tests.
2634 ac_preproc_ok=:
2635 break
2637 rm -f conftest.err conftest.$ac_ext
2639 done
2640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2641 rm -f conftest.err conftest.$ac_ext
2642 if $ac_preproc_ok; then
2644 else
2645 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2646 See \`config.log' for more details." >&5
2647 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2648 See \`config.log' for more details." >&2;}
2649 { (exit 1); exit 1; }; }
2652 ac_ext=c
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2660 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2661 if test "${wine_cv_toolsdir+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664 if test -z "$with_wine_tools"; then
2665 if test "$cross_compiling" = "yes"; then
2666 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2667 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2668 { (exit 1); exit 1; }; }
2669 else
2670 wine_cv_toolsdir="\$(TOPOBJDIR)"
2672 elif test -d "$with_wine_tools/tools/winebuild"; then
2673 case $with_wine_tools in
2674 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2675 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2676 esac
2677 else
2678 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2679 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2680 { (exit 1); exit 1; }; }
2683 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2684 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2685 TOOLSDIR=$wine_cv_toolsdir
2690 echo "$as_me:$LINENO: checking for X" >&5
2691 echo $ECHO_N "checking for X... $ECHO_C" >&6
2694 # Check whether --with-x or --without-x was given.
2695 if test "${with_x+set}" = set; then
2696 withval="$with_x"
2699 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2700 if test "x$with_x" = xno; then
2701 # The user explicitly disabled X.
2702 have_x=disabled
2703 else
2704 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2705 # Both variables are already set.
2706 have_x=yes
2707 else
2708 if test "${ac_cv_have_x+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 # One or both of the vars are not set, and there is no cached value.
2712 ac_x_includes=no ac_x_libraries=no
2713 rm -fr conftest.dir
2714 if mkdir conftest.dir; then
2715 cd conftest.dir
2716 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2717 cat >Imakefile <<'_ACEOF'
2718 acfindx:
2719 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2720 _ACEOF
2721 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2722 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2723 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2724 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2725 for ac_extension in a so sl; do
2726 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2727 test -f $ac_im_libdir/libX11.$ac_extension; then
2728 ac_im_usrlibdir=$ac_im_libdir; break
2730 done
2731 # Screen out bogus values from the imake configuration. They are
2732 # bogus both because they are the default anyway, and because
2733 # using them would break gcc on systems where it needs fixed includes.
2734 case $ac_im_incroot in
2735 /usr/include) ;;
2736 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2737 esac
2738 case $ac_im_usrlibdir in
2739 /usr/lib | /lib) ;;
2740 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2741 esac
2743 cd ..
2744 rm -fr conftest.dir
2747 # Standard set of common directories for X headers.
2748 # Check X11 before X11Rn because it is often a symlink to the current release.
2749 ac_x_header_dirs='
2750 /usr/X11/include
2751 /usr/X11R6/include
2752 /usr/X11R5/include
2753 /usr/X11R4/include
2755 /usr/include/X11
2756 /usr/include/X11R6
2757 /usr/include/X11R5
2758 /usr/include/X11R4
2760 /usr/local/X11/include
2761 /usr/local/X11R6/include
2762 /usr/local/X11R5/include
2763 /usr/local/X11R4/include
2765 /usr/local/include/X11
2766 /usr/local/include/X11R6
2767 /usr/local/include/X11R5
2768 /usr/local/include/X11R4
2770 /usr/X386/include
2771 /usr/x386/include
2772 /usr/XFree86/include/X11
2774 /usr/include
2775 /usr/local/include
2776 /usr/unsupported/include
2777 /usr/athena/include
2778 /usr/local/x11r5/include
2779 /usr/lpp/Xamples/include
2781 /usr/openwin/include
2782 /usr/openwin/share/include'
2784 if test "$ac_x_includes" = no; then
2785 # Guess where to find include files, by looking for Intrinsic.h.
2786 # First, try using that file with no special directory specified.
2787 cat >conftest.$ac_ext <<_ACEOF
2788 /* confdefs.h. */
2789 _ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2793 #include <X11/Intrinsic.h>
2794 _ACEOF
2795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2797 ac_status=$?
2798 grep -v '^ *+' conftest.er1 >conftest.err
2799 rm -f conftest.er1
2800 cat conftest.err >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } >/dev/null; then
2803 if test -s conftest.err; then
2804 ac_cpp_err=$ac_c_preproc_warn_flag
2805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2806 else
2807 ac_cpp_err=
2809 else
2810 ac_cpp_err=yes
2812 if test -z "$ac_cpp_err"; then
2813 # We can compile using X headers with no special include directory.
2814 ac_x_includes=
2815 else
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 for ac_dir in $ac_x_header_dirs; do
2820 if test -r "$ac_dir/X11/Intrinsic.h"; then
2821 ac_x_includes=$ac_dir
2822 break
2824 done
2826 rm -f conftest.err conftest.$ac_ext
2827 fi # $ac_x_includes = no
2829 if test "$ac_x_libraries" = no; then
2830 # Check for the libraries.
2831 # See if we find them without any special options.
2832 # Don't add to $LIBS permanently.
2833 ac_save_LIBS=$LIBS
2834 LIBS="-lXt $LIBS"
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h. */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2841 #include <X11/Intrinsic.h>
2843 main ()
2845 XtMalloc (0)
2847 return 0;
2849 _ACEOF
2850 rm -f conftest.$ac_objext conftest$ac_exeext
2851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2852 (eval $ac_link) 2>conftest.er1
2853 ac_status=$?
2854 grep -v '^ *+' conftest.er1 >conftest.err
2855 rm -f conftest.er1
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 (eval $ac_try) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; } &&
2865 { ac_try='test -s conftest$ac_exeext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 LIBS=$ac_save_LIBS
2872 # We can link X programs with no special library path.
2873 ac_x_libraries=
2874 else
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2878 LIBS=$ac_save_LIBS
2879 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2881 # Don't even attempt the hair of trying to link an X program!
2882 for ac_extension in a so sl; do
2883 if test -r $ac_dir/libXt.$ac_extension; then
2884 ac_x_libraries=$ac_dir
2885 break 2
2887 done
2888 done
2890 rm -f conftest.err conftest.$ac_objext \
2891 conftest$ac_exeext conftest.$ac_ext
2892 fi # $ac_x_libraries = no
2894 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2895 # Didn't find X anywhere. Cache the known absence of X.
2896 ac_cv_have_x="have_x=no"
2897 else
2898 # Record where we found X for the cache.
2899 ac_cv_have_x="have_x=yes \
2900 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2905 eval "$ac_cv_have_x"
2906 fi # $with_x != no
2908 if test "$have_x" != yes; then
2909 echo "$as_me:$LINENO: result: $have_x" >&5
2910 echo "${ECHO_T}$have_x" >&6
2911 no_x=yes
2912 else
2913 # If each of the values was on the command line, it overrides each guess.
2914 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2915 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2916 # Update the cache value to reflect the command line values.
2917 ac_cv_have_x="have_x=yes \
2918 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2919 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2920 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2923 if test "$no_x" = yes; then
2924 # Not all programs may use this symbol, but it does not hurt to define it.
2926 cat >>confdefs.h <<\_ACEOF
2927 #define X_DISPLAY_MISSING 1
2928 _ACEOF
2930 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2931 else
2932 if test -n "$x_includes"; then
2933 X_CFLAGS="$X_CFLAGS -I$x_includes"
2936 # It would also be nice to do this for all -L options, not just this one.
2937 if test -n "$x_libraries"; then
2938 X_LIBS="$X_LIBS -L$x_libraries"
2939 # For Solaris; some versions of Sun CC require a space after -R and
2940 # others require no space. Words are not sufficient . . . .
2941 case `(uname -sr) 2>/dev/null` in
2942 "SunOS 5"*)
2943 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2944 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2945 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2946 cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h. */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2954 main ()
2958 return 0;
2960 _ACEOF
2961 rm -f conftest.$ac_objext conftest$ac_exeext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2963 (eval $ac_link) 2>conftest.er1
2964 ac_status=$?
2965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 (eval $ac_try) 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest$ac_exeext'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 (eval $ac_try) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 ac_R_nospace=yes
2983 else
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 ac_R_nospace=no
2989 rm -f conftest.err conftest.$ac_objext \
2990 conftest$ac_exeext conftest.$ac_ext
2991 if test $ac_R_nospace = yes; then
2992 echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6
2994 X_LIBS="$X_LIBS -R$x_libraries"
2995 else
2996 LIBS="$ac_xsave_LIBS -R $x_libraries"
2997 cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3005 main ()
3009 return 0;
3011 _ACEOF
3012 rm -f conftest.$ac_objext conftest$ac_exeext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3014 (eval $ac_link) 2>conftest.er1
3015 ac_status=$?
3016 grep -v '^ *+' conftest.er1 >conftest.err
3017 rm -f conftest.er1
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest$ac_exeext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_R_space=yes
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 ac_R_space=no
3040 rm -f conftest.err conftest.$ac_objext \
3041 conftest$ac_exeext conftest.$ac_ext
3042 if test $ac_R_space = yes; then
3043 echo "$as_me:$LINENO: result: yes" >&5
3044 echo "${ECHO_T}yes" >&6
3045 X_LIBS="$X_LIBS -R $x_libraries"
3046 else
3047 echo "$as_me:$LINENO: result: neither works" >&5
3048 echo "${ECHO_T}neither works" >&6
3051 LIBS=$ac_xsave_LIBS
3052 esac
3055 # Check for system-dependent libraries X programs must link with.
3056 # Do this before checking for the system-independent R6 libraries
3057 # (-lICE), since we may need -lsocket or whatever for X linking.
3059 if test "$ISC" = yes; then
3060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3061 else
3062 # Martyn Johnson says this is needed for Ultrix, if the X
3063 # libraries were built with DECnet support. And Karl Berry says
3064 # the Alpha needs dnet_stub (dnet does not exist).
3065 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3066 cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h. */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3073 /* Override any gcc2 internal prototype to avoid an error. */
3074 #ifdef __cplusplus
3075 extern "C"
3076 #endif
3077 /* We use char because int might match the return type of a gcc2
3078 builtin and then its argument prototype would still apply. */
3079 char XOpenDisplay ();
3081 main ()
3083 XOpenDisplay ();
3085 return 0;
3087 _ACEOF
3088 rm -f conftest.$ac_objext conftest$ac_exeext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3090 (eval $ac_link) 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest$ac_exeext'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 (eval $ac_try) 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3115 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3116 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 ac_check_lib_save_LIBS=$LIBS
3120 LIBS="-ldnet $LIBS"
3121 cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h. */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3128 /* Override any gcc2 internal prototype to avoid an error. */
3129 #ifdef __cplusplus
3130 extern "C"
3131 #endif
3132 /* We use char because int might match the return type of a gcc2
3133 builtin and then its argument prototype would still apply. */
3134 char dnet_ntoa ();
3136 main ()
3138 dnet_ntoa ();
3140 return 0;
3142 _ACEOF
3143 rm -f conftest.$ac_objext conftest$ac_exeext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3145 (eval $ac_link) 2>conftest.er1
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 (eval $ac_try) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; } &&
3158 { ac_try='test -s conftest$ac_exeext'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 (eval $ac_try) 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 ac_cv_lib_dnet_dnet_ntoa=yes
3165 else
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_cv_lib_dnet_dnet_ntoa=no
3171 rm -f conftest.err conftest.$ac_objext \
3172 conftest$ac_exeext conftest.$ac_ext
3173 LIBS=$ac_check_lib_save_LIBS
3175 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3176 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3177 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3178 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3181 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3182 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3183 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3184 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187 ac_check_lib_save_LIBS=$LIBS
3188 LIBS="-ldnet_stub $LIBS"
3189 cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h. */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3196 /* Override any gcc2 internal prototype to avoid an error. */
3197 #ifdef __cplusplus
3198 extern "C"
3199 #endif
3200 /* We use char because int might match the return type of a gcc2
3201 builtin and then its argument prototype would still apply. */
3202 char dnet_ntoa ();
3204 main ()
3206 dnet_ntoa ();
3208 return 0;
3210 _ACEOF
3211 rm -f conftest.$ac_objext conftest$ac_exeext
3212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3213 (eval $ac_link) 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222 (eval $ac_try) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; } &&
3226 { ac_try='test -s conftest$ac_exeext'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 (eval $ac_try) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3233 else
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 ac_cv_lib_dnet_stub_dnet_ntoa=no
3239 rm -f conftest.err conftest.$ac_objext \
3240 conftest$ac_exeext conftest.$ac_ext
3241 LIBS=$ac_check_lib_save_LIBS
3243 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3244 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3245 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3246 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3251 rm -f conftest.err conftest.$ac_objext \
3252 conftest$ac_exeext conftest.$ac_ext
3253 LIBS="$ac_xsave_LIBS"
3255 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3256 # to get the SysV transport functions.
3257 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3258 # needs -lnsl.
3259 # The nsl library prevents programs from opening the X display
3260 # on Irix 5.2, according to T.E. Dickey.
3261 # The functions gethostbyname, getservbyname, and inet_addr are
3262 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3263 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3264 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3265 if test "${ac_cv_func_gethostbyname+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h. */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3274 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3276 #define gethostbyname innocuous_gethostbyname
3278 /* System header to define __stub macros and hopefully few prototypes,
3279 which can conflict with char gethostbyname (); below.
3280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3281 <limits.h> exists even on freestanding compilers. */
3283 #ifdef __STDC__
3284 # include <limits.h>
3285 #else
3286 # include <assert.h>
3287 #endif
3289 #undef gethostbyname
3291 /* Override any gcc2 internal prototype to avoid an error. */
3292 #ifdef __cplusplus
3293 extern "C"
3295 #endif
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3298 char gethostbyname ();
3299 /* The GNU C library defines this for functions which it implements
3300 to always fail with ENOSYS. Some functions are actually named
3301 something starting with __ and the normal name is an alias. */
3302 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3303 choke me
3304 #else
3305 char (*f) () = gethostbyname;
3306 #endif
3307 #ifdef __cplusplus
3309 #endif
3312 main ()
3314 return f != gethostbyname;
3316 return 0;
3318 _ACEOF
3319 rm -f conftest.$ac_objext conftest$ac_exeext
3320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3321 (eval $ac_link) 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try='test -s conftest$ac_exeext'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 ac_cv_func_gethostbyname=yes
3341 else
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3345 ac_cv_func_gethostbyname=no
3347 rm -f conftest.err conftest.$ac_objext \
3348 conftest$ac_exeext conftest.$ac_ext
3350 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3351 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3353 if test $ac_cv_func_gethostbyname = no; then
3354 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3355 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3356 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 ac_check_lib_save_LIBS=$LIBS
3360 LIBS="-lnsl $LIBS"
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3368 /* Override any gcc2 internal prototype to avoid an error. */
3369 #ifdef __cplusplus
3370 extern "C"
3371 #endif
3372 /* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
3374 char gethostbyname ();
3376 main ()
3378 gethostbyname ();
3380 return 0;
3382 _ACEOF
3383 rm -f conftest.$ac_objext conftest$ac_exeext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385 (eval $ac_link) 2>conftest.er1
3386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; } &&
3398 { ac_try='test -s conftest$ac_exeext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 (eval $ac_try) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3404 ac_cv_lib_nsl_gethostbyname=yes
3405 else
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 ac_cv_lib_nsl_gethostbyname=no
3411 rm -f conftest.err conftest.$ac_objext \
3412 conftest$ac_exeext conftest.$ac_ext
3413 LIBS=$ac_check_lib_save_LIBS
3415 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3416 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3417 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3418 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3421 if test $ac_cv_lib_nsl_gethostbyname = no; then
3422 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3423 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3424 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427 ac_check_lib_save_LIBS=$LIBS
3428 LIBS="-lbsd $LIBS"
3429 cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h. */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3436 /* Override any gcc2 internal prototype to avoid an error. */
3437 #ifdef __cplusplus
3438 extern "C"
3439 #endif
3440 /* We use char because int might match the return type of a gcc2
3441 builtin and then its argument prototype would still apply. */
3442 char gethostbyname ();
3444 main ()
3446 gethostbyname ();
3448 return 0;
3450 _ACEOF
3451 rm -f conftest.$ac_objext conftest$ac_exeext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3453 (eval $ac_link) 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 (eval $ac_try) 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try='test -s conftest$ac_exeext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_cv_lib_bsd_gethostbyname=yes
3473 else
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3477 ac_cv_lib_bsd_gethostbyname=no
3479 rm -f conftest.err conftest.$ac_objext \
3480 conftest$ac_exeext conftest.$ac_ext
3481 LIBS=$ac_check_lib_save_LIBS
3483 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3484 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3485 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3486 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3492 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3493 # socket/setsockopt and other routines are undefined under SCO ODT
3494 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3495 # on later versions), says Simon Leinen: it contains gethostby*
3496 # variants that don't use the name server (or something). -lsocket
3497 # must be given before -lnsl if both are needed. We assume that
3498 # if connect needs -lnsl, so does gethostbyname.
3499 echo "$as_me:$LINENO: checking for connect" >&5
3500 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3501 if test "${ac_cv_func_connect+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504 cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h. */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3512 #define connect innocuous_connect
3514 /* System header to define __stub macros and hopefully few prototypes,
3515 which can conflict with char connect (); below.
3516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3517 <limits.h> exists even on freestanding compilers. */
3519 #ifdef __STDC__
3520 # include <limits.h>
3521 #else
3522 # include <assert.h>
3523 #endif
3525 #undef connect
3527 /* Override any gcc2 internal prototype to avoid an error. */
3528 #ifdef __cplusplus
3529 extern "C"
3531 #endif
3532 /* We use char because int might match the return type of a gcc2
3533 builtin and then its argument prototype would still apply. */
3534 char connect ();
3535 /* The GNU C library defines this for functions which it implements
3536 to always fail with ENOSYS. Some functions are actually named
3537 something starting with __ and the normal name is an alias. */
3538 #if defined (__stub_connect) || defined (__stub___connect)
3539 choke me
3540 #else
3541 char (*f) () = connect;
3542 #endif
3543 #ifdef __cplusplus
3545 #endif
3548 main ()
3550 return f != connect;
3552 return 0;
3554 _ACEOF
3555 rm -f conftest.$ac_objext conftest$ac_exeext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3557 (eval $ac_link) 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } &&
3564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try='test -s conftest$ac_exeext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 ac_cv_func_connect=yes
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 ac_cv_func_connect=no
3583 rm -f conftest.err conftest.$ac_objext \
3584 conftest$ac_exeext conftest.$ac_ext
3586 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3587 echo "${ECHO_T}$ac_cv_func_connect" >&6
3589 if test $ac_cv_func_connect = no; then
3590 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3591 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3592 if test "${ac_cv_lib_socket_connect+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595 ac_check_lib_save_LIBS=$LIBS
3596 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3604 /* Override any gcc2 internal prototype to avoid an error. */
3605 #ifdef __cplusplus
3606 extern "C"
3607 #endif
3608 /* We use char because int might match the return type of a gcc2
3609 builtin and then its argument prototype would still apply. */
3610 char connect ();
3612 main ()
3614 connect ();
3616 return 0;
3618 _ACEOF
3619 rm -f conftest.$ac_objext conftest$ac_exeext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3621 (eval $ac_link) 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; } &&
3634 { ac_try='test -s conftest$ac_exeext'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 (eval $ac_try) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; }; then
3640 ac_cv_lib_socket_connect=yes
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 ac_cv_lib_socket_connect=no
3647 rm -f conftest.err conftest.$ac_objext \
3648 conftest$ac_exeext conftest.$ac_ext
3649 LIBS=$ac_check_lib_save_LIBS
3651 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3652 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3653 if test $ac_cv_lib_socket_connect = yes; then
3654 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3659 # Guillermo Gomez says -lposix is necessary on A/UX.
3660 echo "$as_me:$LINENO: checking for remove" >&5
3661 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3662 if test "${ac_cv_func_remove+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665 cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h. */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
3672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3673 #define remove innocuous_remove
3675 /* System header to define __stub macros and hopefully few prototypes,
3676 which can conflict with char remove (); below.
3677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3678 <limits.h> exists even on freestanding compilers. */
3680 #ifdef __STDC__
3681 # include <limits.h>
3682 #else
3683 # include <assert.h>
3684 #endif
3686 #undef remove
3688 /* Override any gcc2 internal prototype to avoid an error. */
3689 #ifdef __cplusplus
3690 extern "C"
3692 #endif
3693 /* We use char because int might match the return type of a gcc2
3694 builtin and then its argument prototype would still apply. */
3695 char remove ();
3696 /* The GNU C library defines this for functions which it implements
3697 to always fail with ENOSYS. Some functions are actually named
3698 something starting with __ and the normal name is an alias. */
3699 #if defined (__stub_remove) || defined (__stub___remove)
3700 choke me
3701 #else
3702 char (*f) () = remove;
3703 #endif
3704 #ifdef __cplusplus
3706 #endif
3709 main ()
3711 return f != remove;
3713 return 0;
3715 _ACEOF
3716 rm -f conftest.$ac_objext conftest$ac_exeext
3717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3718 (eval $ac_link) 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } &&
3725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; } &&
3731 { ac_try='test -s conftest$ac_exeext'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 ac_cv_func_remove=yes
3738 else
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3742 ac_cv_func_remove=no
3744 rm -f conftest.err conftest.$ac_objext \
3745 conftest$ac_exeext conftest.$ac_ext
3747 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3748 echo "${ECHO_T}$ac_cv_func_remove" >&6
3750 if test $ac_cv_func_remove = no; then
3751 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3752 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3753 if test "${ac_cv_lib_posix_remove+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 ac_check_lib_save_LIBS=$LIBS
3757 LIBS="-lposix $LIBS"
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3765 /* Override any gcc2 internal prototype to avoid an error. */
3766 #ifdef __cplusplus
3767 extern "C"
3768 #endif
3769 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */
3771 char remove ();
3773 main ()
3775 remove ();
3777 return 0;
3779 _ACEOF
3780 rm -f conftest.$ac_objext conftest$ac_exeext
3781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3782 (eval $ac_link) 2>conftest.er1
3783 ac_status=$?
3784 grep -v '^ *+' conftest.er1 >conftest.err
3785 rm -f conftest.er1
3786 cat conftest.err >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); } &&
3789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 (eval $ac_try) 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; } &&
3795 { ac_try='test -s conftest$ac_exeext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 ac_cv_lib_posix_remove=yes
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 ac_cv_lib_posix_remove=no
3808 rm -f conftest.err conftest.$ac_objext \
3809 conftest$ac_exeext conftest.$ac_ext
3810 LIBS=$ac_check_lib_save_LIBS
3812 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3813 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3814 if test $ac_cv_lib_posix_remove = yes; then
3815 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3820 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3821 echo "$as_me:$LINENO: checking for shmat" >&5
3822 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3823 if test "${ac_cv_func_shmat+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
3833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3834 #define shmat innocuous_shmat
3836 /* System header to define __stub macros and hopefully few prototypes,
3837 which can conflict with char shmat (); below.
3838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3839 <limits.h> exists even on freestanding compilers. */
3841 #ifdef __STDC__
3842 # include <limits.h>
3843 #else
3844 # include <assert.h>
3845 #endif
3847 #undef shmat
3849 /* Override any gcc2 internal prototype to avoid an error. */
3850 #ifdef __cplusplus
3851 extern "C"
3853 #endif
3854 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3856 char shmat ();
3857 /* The GNU C library defines this for functions which it implements
3858 to always fail with ENOSYS. Some functions are actually named
3859 something starting with __ and the normal name is an alias. */
3860 #if defined (__stub_shmat) || defined (__stub___shmat)
3861 choke me
3862 #else
3863 char (*f) () = shmat;
3864 #endif
3865 #ifdef __cplusplus
3867 #endif
3870 main ()
3872 return f != shmat;
3874 return 0;
3876 _ACEOF
3877 rm -f conftest.$ac_objext conftest$ac_exeext
3878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3879 (eval $ac_link) 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } &&
3886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 (eval $ac_try) 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; } &&
3892 { ac_try='test -s conftest$ac_exeext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 (eval $ac_try) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 ac_cv_func_shmat=yes
3899 else
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3903 ac_cv_func_shmat=no
3905 rm -f conftest.err conftest.$ac_objext \
3906 conftest$ac_exeext conftest.$ac_ext
3908 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3909 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3911 if test $ac_cv_func_shmat = no; then
3912 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3913 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3914 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 ac_check_lib_save_LIBS=$LIBS
3918 LIBS="-lipc $LIBS"
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h. */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3926 /* Override any gcc2 internal prototype to avoid an error. */
3927 #ifdef __cplusplus
3928 extern "C"
3929 #endif
3930 /* We use char because int might match the return type of a gcc2
3931 builtin and then its argument prototype would still apply. */
3932 char shmat ();
3934 main ()
3936 shmat ();
3938 return 0;
3940 _ACEOF
3941 rm -f conftest.$ac_objext conftest$ac_exeext
3942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3943 (eval $ac_link) 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 (eval $ac_try) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; } &&
3956 { ac_try='test -s conftest$ac_exeext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_cv_lib_ipc_shmat=yes
3963 else
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ac_cv_lib_ipc_shmat=no
3969 rm -f conftest.err conftest.$ac_objext \
3970 conftest$ac_exeext conftest.$ac_ext
3971 LIBS=$ac_check_lib_save_LIBS
3973 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3974 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3975 if test $ac_cv_lib_ipc_shmat = yes; then
3976 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3982 # Check for libraries that X11R6 Xt/Xaw programs need.
3983 ac_save_LDFLAGS=$LDFLAGS
3984 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3985 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3986 # check for ICE first), but we must link in the order -lSM -lICE or
3987 # we get undefined symbols. So assume we have SM if we have ICE.
3988 # These have to be linked with before -lX11, unlike the other
3989 # libraries we check for below, so use a different variable.
3990 # John Interrante, Karl Berry
3991 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3992 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3993 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 ac_check_lib_save_LIBS=$LIBS
3997 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4005 /* Override any gcc2 internal prototype to avoid an error. */
4006 #ifdef __cplusplus
4007 extern "C"
4008 #endif
4009 /* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4011 char IceConnectionNumber ();
4013 main ()
4015 IceConnectionNumber ();
4017 return 0;
4019 _ACEOF
4020 rm -f conftest.$ac_objext conftest$ac_exeext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022 (eval $ac_link) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest$ac_exeext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 ac_cv_lib_ICE_IceConnectionNumber=yes
4042 else
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4046 ac_cv_lib_ICE_IceConnectionNumber=no
4048 rm -f conftest.err conftest.$ac_objext \
4049 conftest$ac_exeext conftest.$ac_ext
4050 LIBS=$ac_check_lib_save_LIBS
4052 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4053 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4054 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4055 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4058 LDFLAGS=$ac_save_LDFLAGS
4062 for ac_prog in 'bison -y' byacc
4064 # Extract the first word of "$ac_prog", so it can be a program name with args.
4065 set dummy $ac_prog; ac_word=$2
4066 echo "$as_me:$LINENO: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4068 if test "${ac_cv_prog_YACC+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 if test -n "$YACC"; then
4072 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4073 else
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081 ac_cv_prog_YACC="$ac_prog"
4082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 break 2
4085 done
4086 done
4090 YACC=$ac_cv_prog_YACC
4091 if test -n "$YACC"; then
4092 echo "$as_me:$LINENO: result: $YACC" >&5
4093 echo "${ECHO_T}$YACC" >&6
4094 else
4095 echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4099 test -n "$YACC" && break
4100 done
4101 test -n "$YACC" || YACC="yacc"
4103 for ac_prog in flex lex
4105 # Extract the first word of "$ac_prog", so it can be a program name with args.
4106 set dummy $ac_prog; ac_word=$2
4107 echo "$as_me:$LINENO: checking for $ac_word" >&5
4108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4109 if test "${ac_cv_prog_LEX+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 if test -n "$LEX"; then
4113 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_prog_LEX="$ac_prog"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4131 LEX=$ac_cv_prog_LEX
4132 if test -n "$LEX"; then
4133 echo "$as_me:$LINENO: result: $LEX" >&5
4134 echo "${ECHO_T}$LEX" >&6
4135 else
4136 echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4140 test -n "$LEX" && break
4141 done
4142 test -n "$LEX" || LEX=":"
4144 if test -z "$LEXLIB"
4145 then
4146 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4147 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4148 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151 ac_check_lib_save_LIBS=$LIBS
4152 LIBS="-lfl $LIBS"
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4160 /* Override any gcc2 internal prototype to avoid an error. */
4161 #ifdef __cplusplus
4162 extern "C"
4163 #endif
4164 /* We use char because int might match the return type of a gcc2
4165 builtin and then its argument prototype would still apply. */
4166 char yywrap ();
4168 main ()
4170 yywrap ();
4172 return 0;
4174 _ACEOF
4175 rm -f conftest.$ac_objext conftest$ac_exeext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4177 (eval $ac_link) 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_lib_fl_yywrap=yes
4197 else
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 ac_cv_lib_fl_yywrap=no
4203 rm -f conftest.err conftest.$ac_objext \
4204 conftest$ac_exeext conftest.$ac_ext
4205 LIBS=$ac_check_lib_save_LIBS
4207 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4208 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4209 if test $ac_cv_lib_fl_yywrap = yes; then
4210 LEXLIB="-lfl"
4211 else
4212 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4213 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4214 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 ac_check_lib_save_LIBS=$LIBS
4218 LIBS="-ll $LIBS"
4219 cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h. */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4226 /* Override any gcc2 internal prototype to avoid an error. */
4227 #ifdef __cplusplus
4228 extern "C"
4229 #endif
4230 /* We use char because int might match the return type of a gcc2
4231 builtin and then its argument prototype would still apply. */
4232 char yywrap ();
4234 main ()
4236 yywrap ();
4238 return 0;
4240 _ACEOF
4241 rm -f conftest.$ac_objext conftest$ac_exeext
4242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4243 (eval $ac_link) 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest$ac_exeext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_cv_lib_l_yywrap=yes
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 ac_cv_lib_l_yywrap=no
4269 rm -f conftest.err conftest.$ac_objext \
4270 conftest$ac_exeext conftest.$ac_ext
4271 LIBS=$ac_check_lib_save_LIBS
4273 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4274 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4275 if test $ac_cv_lib_l_yywrap = yes; then
4276 LEXLIB="-ll"
4283 if test "x$LEX" != "x:"; then
4284 echo "$as_me:$LINENO: checking lex output file root" >&5
4285 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4286 if test "${ac_cv_prog_lex_root+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 # The minimal lex program is just a single line: %%. But some broken lexes
4290 # (Solaris, I think it was) want two %% lines, so accommodate them.
4291 cat >conftest.l <<_ACEOF
4294 _ACEOF
4295 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4296 (eval $LEX conftest.l) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }
4300 if test -f lex.yy.c; then
4301 ac_cv_prog_lex_root=lex.yy
4302 elif test -f lexyy.c; then
4303 ac_cv_prog_lex_root=lexyy
4304 else
4305 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4306 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4307 { (exit 1); exit 1; }; }
4310 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4311 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4312 rm -f conftest.l
4313 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4315 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4316 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4317 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320 # POSIX says lex can declare yytext either as a pointer or an array; the
4321 # default is implementation-dependent. Figure out which it is, since
4322 # not all implementations provide the %pointer and %array declarations.
4323 ac_cv_prog_lex_yytext_pointer=no
4324 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4325 ac_save_LIBS=$LIBS
4326 LIBS="$LIBS $LEXLIB"
4327 cat >conftest.$ac_ext <<_ACEOF
4328 `cat $LEX_OUTPUT_ROOT.c`
4329 _ACEOF
4330 rm -f conftest.$ac_objext conftest$ac_exeext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332 (eval $ac_link) 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; } &&
4345 { ac_try='test -s conftest$ac_exeext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 (eval $ac_try) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 ac_cv_prog_lex_yytext_pointer=yes
4352 else
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4357 rm -f conftest.err conftest.$ac_objext \
4358 conftest$ac_exeext conftest.$ac_ext
4359 LIBS=$ac_save_LIBS
4360 rm -f "${LEX_OUTPUT_ROOT}.c"
4363 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4364 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4365 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4367 cat >>confdefs.h <<\_ACEOF
4368 #define YYTEXT_POINTER 1
4369 _ACEOF
4375 for ac_prog in $YACC bison yacc
4377 # Extract the first word of "$ac_prog", so it can be a program name with args.
4378 set dummy $ac_prog; ac_word=$2
4379 echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4381 if test "${ac_cv_prog_XYACC+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 if test -n "$XYACC"; then
4385 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_XYACC="$ac_prog"
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4398 done
4399 done
4403 XYACC=$ac_cv_prog_XYACC
4404 if test -n "$XYACC"; then
4405 echo "$as_me:$LINENO: result: $XYACC" >&5
4406 echo "${ECHO_T}$XYACC" >&6
4407 else
4408 echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6
4412 test -n "$XYACC" && break
4413 done
4414 test -n "$XYACC" || XYACC="none"
4416 if test "$XYACC" = "none"
4417 then
4418 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4419 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4420 { (exit 1); exit 1; }; }
4422 for ac_prog in $LEX flex lex
4424 # Extract the first word of "$ac_prog", so it can be a program name with args.
4425 set dummy $ac_prog; ac_word=$2
4426 echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4428 if test "${ac_cv_prog_XLEX+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 if test -n "$XLEX"; then
4432 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_prog_XLEX="$ac_prog"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 break 2
4445 done
4446 done
4450 XLEX=$ac_cv_prog_XLEX
4451 if test -n "$XLEX"; then
4452 echo "$as_me:$LINENO: result: $XLEX" >&5
4453 echo "${ECHO_T}$XLEX" >&6
4454 else
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4459 test -n "$XLEX" && break
4460 done
4461 test -n "$XLEX" || XLEX="none"
4463 if test "$XLEX" = "none"
4464 then
4465 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4466 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4467 { (exit 1); exit 1; }; }
4470 if test -n "$ac_tool_prefix"; then
4471 for ac_prog in gas as
4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4475 echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4477 if test "${ac_cv_prog_AS+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480 if test -n "$AS"; then
4481 ac_cv_prog_AS="$AS" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4494 done
4495 done
4499 AS=$ac_cv_prog_AS
4500 if test -n "$AS"; then
4501 echo "$as_me:$LINENO: result: $AS" >&5
4502 echo "${ECHO_T}$AS" >&6
4503 else
4504 echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6
4508 test -n "$AS" && break
4509 done
4511 if test -z "$AS"; then
4512 ac_ct_AS=$AS
4513 for ac_prog in gas as
4515 # Extract the first word of "$ac_prog", so it can be a program name with args.
4516 set dummy $ac_prog; ac_word=$2
4517 echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4519 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 if test -n "$ac_ct_AS"; then
4523 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_prog_ac_ct_AS="$ac_prog"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4536 done
4537 done
4541 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4542 if test -n "$ac_ct_AS"; then
4543 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4544 echo "${ECHO_T}$ac_ct_AS" >&6
4545 else
4546 echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6
4550 test -n "$ac_ct_AS" && break
4551 done
4552 test -n "$ac_ct_AS" || ac_ct_AS="as"
4554 AS=$ac_ct_AS
4557 if test -n "$ac_tool_prefix"; then
4558 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4559 set dummy ${ac_tool_prefix}ld; ac_word=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_prog_LD+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 if test -n "$LD"; then
4566 ac_cv_prog_LD="$LD" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_LD="${ac_tool_prefix}ld"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4579 done
4580 done
4584 LD=$ac_cv_prog_LD
4585 if test -n "$LD"; then
4586 echo "$as_me:$LINENO: result: $LD" >&5
4587 echo "${ECHO_T}$LD" >&6
4588 else
4589 echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4594 if test -z "$ac_cv_prog_LD"; then
4595 ac_ct_LD=$LD
4596 # Extract the first word of "ld", so it can be a program name with args.
4597 set dummy ld; ac_word=$2
4598 echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4600 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 if test -n "$ac_ct_LD"; then
4604 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_ac_ct_LD="ld"
4614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4620 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4623 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4624 if test -n "$ac_ct_LD"; then
4625 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4626 echo "${ECHO_T}$ac_ct_LD" >&6
4627 else
4628 echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6
4632 LD=$ac_ct_LD
4633 else
4634 LD="$ac_cv_prog_LD"
4637 if test -n "$ac_tool_prefix"; then
4638 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4639 set dummy ${ac_tool_prefix}ar; ac_word=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_prog_AR+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645 if test -n "$AR"; then
4646 ac_cv_prog_AR="$AR" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_AR="${ac_tool_prefix}ar"
4656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4664 AR=$ac_cv_prog_AR
4665 if test -n "$AR"; then
4666 echo "$as_me:$LINENO: result: $AR" >&5
4667 echo "${ECHO_T}$AR" >&6
4668 else
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4674 if test -z "$ac_cv_prog_AR"; then
4675 ac_ct_AR=$AR
4676 # Extract the first word of "ar", so it can be a program name with args.
4677 set dummy ar; ac_word=$2
4678 echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4680 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683 if test -n "$ac_ct_AR"; then
4684 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_ac_ct_AR="ar"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4700 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4703 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4704 if test -n "$ac_ct_AR"; then
4705 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4706 echo "${ECHO_T}$ac_ct_AR" >&6
4707 else
4708 echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4712 AR=$ac_ct_AR
4713 else
4714 AR="$ac_cv_prog_AR"
4717 if test -n "$ac_tool_prefix"; then
4718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4719 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4720 echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4722 if test "${ac_cv_prog_RANLIB+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 if test -n "$RANLIB"; then
4726 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4739 done
4740 done
4744 RANLIB=$ac_cv_prog_RANLIB
4745 if test -n "$RANLIB"; then
4746 echo "$as_me:$LINENO: result: $RANLIB" >&5
4747 echo "${ECHO_T}$RANLIB" >&6
4748 else
4749 echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6
4754 if test -z "$ac_cv_prog_RANLIB"; then
4755 ac_ct_RANLIB=$RANLIB
4756 # Extract the first word of "ranlib", so it can be a program name with args.
4757 set dummy ranlib; ac_word=$2
4758 echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4760 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763 if test -n "$ac_ct_RANLIB"; then
4764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4773 ac_cv_prog_ac_ct_RANLIB="ranlib"
4774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4777 done
4778 done
4780 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4783 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4784 if test -n "$ac_ct_RANLIB"; then
4785 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4786 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4787 else
4788 echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6
4792 RANLIB=$ac_ct_RANLIB
4793 else
4794 RANLIB="$ac_cv_prog_RANLIB"
4797 if test -n "$ac_tool_prefix"; then
4798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4799 set dummy ${ac_tool_prefix}strip; ac_word=$2
4800 echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4802 if test "${ac_cv_prog_STRIP+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 if test -n "$STRIP"; then
4806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4824 STRIP=$ac_cv_prog_STRIP
4825 if test -n "$STRIP"; then
4826 echo "$as_me:$LINENO: result: $STRIP" >&5
4827 echo "${ECHO_T}$STRIP" >&6
4828 else
4829 echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4834 if test -z "$ac_cv_prog_STRIP"; then
4835 ac_ct_STRIP=$STRIP
4836 # Extract the first word of "strip", so it can be a program name with args.
4837 set dummy strip; ac_word=$2
4838 echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4840 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843 if test -n "$ac_ct_STRIP"; then
4844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_ac_ct_STRIP="strip"
4854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4857 done
4858 done
4860 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4863 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4864 if test -n "$ac_ct_STRIP"; then
4865 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4866 echo "${ECHO_T}$ac_ct_STRIP" >&6
4867 else
4868 echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4872 STRIP=$ac_ct_STRIP
4873 else
4874 STRIP="$ac_cv_prog_STRIP"
4877 if test -n "$ac_tool_prefix"; then
4878 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4879 set dummy ${ac_tool_prefix}windres; ac_word=$2
4880 echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4882 if test "${ac_cv_prog_WINDRES+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885 if test -n "$WINDRES"; then
4886 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4899 done
4900 done
4904 WINDRES=$ac_cv_prog_WINDRES
4905 if test -n "$WINDRES"; then
4906 echo "$as_me:$LINENO: result: $WINDRES" >&5
4907 echo "${ECHO_T}$WINDRES" >&6
4908 else
4909 echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4914 if test -z "$ac_cv_prog_WINDRES"; then
4915 ac_ct_WINDRES=$WINDRES
4916 # Extract the first word of "windres", so it can be a program name with args.
4917 set dummy windres; 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_WINDRES+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 if test -n "$ac_ct_WINDRES"; then
4924 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # 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_WINDRES="windres"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4937 done
4938 done
4940 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4943 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4944 if test -n "$ac_ct_WINDRES"; then
4945 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4946 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4947 else
4948 echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6
4952 WINDRES=$ac_ct_WINDRES
4953 else
4954 WINDRES="$ac_cv_prog_WINDRES"
4957 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4958 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4959 LN_S=$as_ln_s
4960 if test "$LN_S" = "ln -s"; then
4961 echo "$as_me:$LINENO: result: yes" >&5
4962 echo "${ECHO_T}yes" >&6
4963 else
4964 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4965 echo "${ECHO_T}no, using $LN_S" >&6
4968 echo "$as_me:$LINENO: checking whether ln works" >&5
4969 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4970 rm -f conf$$ conf$$.file
4971 echo >conf$$.file
4972 if ln conf$$.file conf$$ 2>/dev/null; then
4973 LN=ln
4975 echo "$as_me:$LINENO: result: yes" >&5
4976 echo "${ECHO_T}yes" >&6
4977 else
4978 LN="cp -p"
4980 echo "$as_me:$LINENO: result: no, using $LN" >&5
4981 echo "${ECHO_T}no, using $LN" >&6
4983 rm -f conf$$ conf$$.file
4984 # Extract the first word of "ldconfig", so it can be a program name with args.
4985 set dummy ldconfig; ac_word=$2
4986 echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4988 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 case $LDCONFIG in
4992 [\\/]* | ?:[\\/]*)
4993 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in /sbin /usr/sbin $PATH
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 break 2
5007 done
5008 done
5010 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5012 esac
5014 LDCONFIG=$ac_cv_path_LDCONFIG
5016 if test -n "$LDCONFIG"; then
5017 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5018 echo "${ECHO_T}$LDCONFIG" >&6
5019 else
5020 echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6
5024 # Find a good install program. We prefer a C program (faster),
5025 # so one script is as good as another. But avoid the broken or
5026 # incompatible versions:
5027 # SysV /etc/install, /usr/sbin/install
5028 # SunOS /usr/etc/install
5029 # IRIX /sbin/install
5030 # AIX /bin/install
5031 # AmigaOS /C/install, which installs bootblocks on floppy discs
5032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5035 # OS/2's system install, which has a completely different semantic
5036 # ./install, which can be erroneously created by make from ./install.sh.
5037 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5038 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5039 if test -z "$INSTALL"; then
5040 if test "${ac_cv_path_install+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 # Account for people who put trailing slashes in PATH elements.
5049 case $as_dir/ in
5050 ./ | .// | /cC/* | \
5051 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5052 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5053 /usr/ucb/* ) ;;
5055 # OSF1 and SCO ODT 3.0 have their own names for install.
5056 # Don't use installbsd from OSF since it installs stuff as root
5057 # by default.
5058 for ac_prog in ginstall scoinst install; do
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5061 if test $ac_prog = install &&
5062 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5063 # AIX install. It has an incompatible calling convention.
5065 elif test $ac_prog = install &&
5066 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5067 # program-specific install script used by HP pwplus--don't use.
5069 else
5070 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5071 break 3
5074 done
5075 done
5077 esac
5078 done
5082 if test "${ac_cv_path_install+set}" = set; then
5083 INSTALL=$ac_cv_path_install
5084 else
5085 # As a last resort, use the slow shell script. We don't cache a
5086 # path for INSTALL within a source directory, because that will
5087 # break other packages using the cache if that directory is
5088 # removed, or if the path is relative.
5089 INSTALL=$ac_install_sh
5092 echo "$as_me:$LINENO: result: $INSTALL" >&5
5093 echo "${ECHO_T}$INSTALL" >&6
5095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5096 # It thinks the first close brace ends the variable substitution.
5097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5103 case "$INSTALL" in
5104 [\\/$]* | ?:[\\/]* ) ;;
5105 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5106 esac
5108 for ac_prog in lclint lint
5110 # Extract the first word of "$ac_prog", so it can be a program name with args.
5111 set dummy $ac_prog; ac_word=$2
5112 echo "$as_me:$LINENO: checking for $ac_word" >&5
5113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5114 if test "${ac_cv_prog_LINT+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117 if test -n "$LINT"; then
5118 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_LINT="$ac_prog"
5128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5131 done
5132 done
5136 LINT=$ac_cv_prog_LINT
5137 if test -n "$LINT"; then
5138 echo "$as_me:$LINENO: result: $LINT" >&5
5139 echo "${ECHO_T}$LINT" >&6
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142 echo "${ECHO_T}no" >&6
5145 test -n "$LINT" && break
5146 done
5148 if test "$LINT" = "lint"
5149 then
5150 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5155 for ac_prog in docbook2html db2html
5157 # Extract the first word of "$ac_prog", so it can be a program name with args.
5158 set dummy $ac_prog; 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_DB2HTML+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 if test -n "$DB2HTML"; then
5165 ac_cv_prog_DB2HTML="$DB2HTML" # 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_DB2HTML="$ac_prog"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5178 done
5179 done
5183 DB2HTML=$ac_cv_prog_DB2HTML
5184 if test -n "$DB2HTML"; then
5185 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5186 echo "${ECHO_T}$DB2HTML" >&6
5187 else
5188 echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6
5192 test -n "$DB2HTML" && break
5193 done
5194 test -n "$DB2HTML" || DB2HTML="false"
5198 for ac_prog in docbook2pdf db2pdf
5200 # Extract the first word of "$ac_prog", so it can be a program name with args.
5201 set dummy $ac_prog; ac_word=$2
5202 echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 if test -n "$DB2PDF"; then
5208 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_DB2PDF="$ac_prog"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5221 done
5222 done
5226 DB2PDF=$ac_cv_prog_DB2PDF
5227 if test -n "$DB2PDF"; then
5228 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5229 echo "${ECHO_T}$DB2PDF" >&6
5230 else
5231 echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6
5235 test -n "$DB2PDF" && break
5236 done
5237 test -n "$DB2PDF" || DB2PDF="false"
5241 for ac_prog in docbook2ps db2ps
5243 # Extract the first word of "$ac_prog", so it can be a program name with args.
5244 set dummy $ac_prog; ac_word=$2
5245 echo "$as_me:$LINENO: checking for $ac_word" >&5
5246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5247 if test "${ac_cv_prog_DB2PS+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 if test -n "$DB2PS"; then
5251 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_prog_DB2PS="$ac_prog"
5261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5264 done
5265 done
5269 DB2PS=$ac_cv_prog_DB2PS
5270 if test -n "$DB2PS"; then
5271 echo "$as_me:$LINENO: result: $DB2PS" >&5
5272 echo "${ECHO_T}$DB2PS" >&6
5273 else
5274 echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6
5278 test -n "$DB2PS" && break
5279 done
5280 test -n "$DB2PS" || DB2PS="false"
5284 for ac_prog in docbook2txt db2txt
5286 # Extract the first word of "$ac_prog", so it can be a program name with args.
5287 set dummy $ac_prog; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 if test -n "$DB2TXT"; then
5294 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5295 else
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303 ac_cv_prog_DB2TXT="$ac_prog"
5304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5307 done
5308 done
5312 DB2TXT=$ac_cv_prog_DB2TXT
5313 if test -n "$DB2TXT"; then
5314 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5315 echo "${ECHO_T}$DB2TXT" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5321 test -n "$DB2TXT" && break
5322 done
5323 test -n "$DB2TXT" || DB2TXT="false"
5329 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5330 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5331 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334 ac_check_lib_save_LIBS=$LIBS
5335 LIBS="-lm $LIBS"
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5343 /* Override any gcc2 internal prototype to avoid an error. */
5344 #ifdef __cplusplus
5345 extern "C"
5346 #endif
5347 /* We use char because int might match the return type of a gcc2
5348 builtin and then its argument prototype would still apply. */
5349 char sqrt ();
5351 main ()
5353 sqrt ();
5355 return 0;
5357 _ACEOF
5358 rm -f conftest.$ac_objext conftest$ac_exeext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360 (eval $ac_link) 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 (eval $ac_try) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_lib_m_sqrt=yes
5380 else
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 ac_cv_lib_m_sqrt=no
5386 rm -f conftest.err conftest.$ac_objext \
5387 conftest$ac_exeext conftest.$ac_ext
5388 LIBS=$ac_check_lib_save_LIBS
5390 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5391 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5392 if test $ac_cv_lib_m_sqrt = yes; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define HAVE_LIBM 1
5395 _ACEOF
5397 LIBS="-lm $LIBS"
5402 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5403 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5404 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407 ac_check_lib_save_LIBS=$LIBS
5408 LIBS="-li386 $LIBS"
5409 cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h. */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5416 /* Override any gcc2 internal prototype to avoid an error. */
5417 #ifdef __cplusplus
5418 extern "C"
5419 #endif
5420 /* We use char because int might match the return type of a gcc2
5421 builtin and then its argument prototype would still apply. */
5422 char i386_set_ldt ();
5424 main ()
5426 i386_set_ldt ();
5428 return 0;
5430 _ACEOF
5431 rm -f conftest.$ac_objext conftest$ac_exeext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5433 (eval $ac_link) 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 (eval $ac_try) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; } &&
5446 { ac_try='test -s conftest$ac_exeext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 ac_cv_lib_i386_i386_set_ldt=yes
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_cv_lib_i386_i386_set_ldt=no
5459 rm -f conftest.err conftest.$ac_objext \
5460 conftest$ac_exeext conftest.$ac_ext
5461 LIBS=$ac_check_lib_save_LIBS
5463 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5464 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5465 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5466 cat >>confdefs.h <<_ACEOF
5467 #define HAVE_LIBI386 1
5468 _ACEOF
5470 LIBS="-li386 $LIBS"
5475 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5476 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5477 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 ac_check_lib_save_LIBS=$LIBS
5481 LIBS="-lossaudio $LIBS"
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5489 /* Override any gcc2 internal prototype to avoid an error. */
5490 #ifdef __cplusplus
5491 extern "C"
5492 #endif
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5495 char _oss_ioctl ();
5497 main ()
5499 _oss_ioctl ();
5501 return 0;
5503 _ACEOF
5504 rm -f conftest.$ac_objext conftest$ac_exeext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506 (eval $ac_link) 2>conftest.er1
5507 ac_status=$?
5508 grep -v '^ *+' conftest.er1 >conftest.err
5509 rm -f conftest.er1
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } &&
5513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try='test -s conftest$ac_exeext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 ac_cv_lib_ossaudio__oss_ioctl=yes
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 ac_cv_lib_ossaudio__oss_ioctl=no
5532 rm -f conftest.err conftest.$ac_objext \
5533 conftest$ac_exeext conftest.$ac_ext
5534 LIBS=$ac_check_lib_save_LIBS
5536 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5537 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5538 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5539 cat >>confdefs.h <<_ACEOF
5540 #define HAVE_LIBOSSAUDIO 1
5541 _ACEOF
5543 LIBS="-lossaudio $LIBS"
5548 for ac_func in iswalnum
5550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5551 echo "$as_me:$LINENO: checking for $ac_func" >&5
5552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5553 if eval "test \"\${$as_ac_var+set}\" = set"; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5564 #define $ac_func innocuous_$ac_func
5566 /* System header to define __stub macros and hopefully few prototypes,
5567 which can conflict with char $ac_func (); below.
5568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569 <limits.h> exists even on freestanding compilers. */
5571 #ifdef __STDC__
5572 # include <limits.h>
5573 #else
5574 # include <assert.h>
5575 #endif
5577 #undef $ac_func
5579 /* Override any gcc2 internal prototype to avoid an error. */
5580 #ifdef __cplusplus
5581 extern "C"
5583 #endif
5584 /* We use char because int might match the return type of a gcc2
5585 builtin and then its argument prototype would still apply. */
5586 char $ac_func ();
5587 /* The GNU C library defines this for functions which it implements
5588 to always fail with ENOSYS. Some functions are actually named
5589 something starting with __ and the normal name is an alias. */
5590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5591 choke me
5592 #else
5593 char (*f) () = $ac_func;
5594 #endif
5595 #ifdef __cplusplus
5597 #endif
5600 main ()
5602 return f != $ac_func;
5604 return 0;
5606 _ACEOF
5607 rm -f conftest.$ac_objext conftest$ac_exeext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5609 (eval $ac_link) 2>conftest.er1
5610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; } &&
5622 { ac_try='test -s conftest$ac_exeext'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 eval "$as_ac_var=yes"
5629 else
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5633 eval "$as_ac_var=no"
5635 rm -f conftest.err conftest.$ac_objext \
5636 conftest$ac_exeext conftest.$ac_ext
5638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5640 if test `eval echo '${'$as_ac_var'}'` = yes; then
5641 cat >>confdefs.h <<_ACEOF
5642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5643 _ACEOF
5645 else
5647 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5648 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5649 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652 ac_check_lib_save_LIBS=$LIBS
5653 LIBS="-lw $LIBS"
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5661 /* Override any gcc2 internal prototype to avoid an error. */
5662 #ifdef __cplusplus
5663 extern "C"
5664 #endif
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5667 char iswalnum ();
5669 main ()
5671 iswalnum ();
5673 return 0;
5675 _ACEOF
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678 (eval $ac_link) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest$ac_exeext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 ac_cv_lib_w_iswalnum=yes
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5702 ac_cv_lib_w_iswalnum=no
5704 rm -f conftest.err conftest.$ac_objext \
5705 conftest$ac_exeext conftest.$ac_ext
5706 LIBS=$ac_check_lib_save_LIBS
5708 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5709 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5710 if test $ac_cv_lib_w_iswalnum = yes; then
5711 cat >>confdefs.h <<_ACEOF
5712 #define HAVE_LIBW 1
5713 _ACEOF
5715 LIBS="-lw $LIBS"
5720 done
5723 for ac_func in gethostbyname
5725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5726 echo "$as_me:$LINENO: checking for $ac_func" >&5
5727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5728 if eval "test \"\${$as_ac_var+set}\" = set"; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h. */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5739 #define $ac_func innocuous_$ac_func
5741 /* System header to define __stub macros and hopefully few prototypes,
5742 which can conflict with char $ac_func (); below.
5743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5744 <limits.h> exists even on freestanding compilers. */
5746 #ifdef __STDC__
5747 # include <limits.h>
5748 #else
5749 # include <assert.h>
5750 #endif
5752 #undef $ac_func
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 #ifdef __cplusplus
5756 extern "C"
5758 #endif
5759 /* We use char because int might match the return type of a gcc2
5760 builtin and then its argument prototype would still apply. */
5761 char $ac_func ();
5762 /* The GNU C library defines this for functions which it implements
5763 to always fail with ENOSYS. Some functions are actually named
5764 something starting with __ and the normal name is an alias. */
5765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5766 choke me
5767 #else
5768 char (*f) () = $ac_func;
5769 #endif
5770 #ifdef __cplusplus
5772 #endif
5775 main ()
5777 return f != $ac_func;
5779 return 0;
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; } &&
5797 { ac_try='test -s conftest$ac_exeext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 eval "$as_ac_var=yes"
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 eval "$as_ac_var=no"
5810 rm -f conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5815 if test `eval echo '${'$as_ac_var'}'` = yes; then
5816 cat >>confdefs.h <<_ACEOF
5817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5818 _ACEOF
5820 else
5822 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5823 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5824 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 ac_check_lib_save_LIBS=$LIBS
5828 LIBS="-lnsl $LIBS"
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5836 /* Override any gcc2 internal prototype to avoid an error. */
5837 #ifdef __cplusplus
5838 extern "C"
5839 #endif
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5842 char gethostbyname ();
5844 main ()
5846 gethostbyname ();
5848 return 0;
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; } &&
5866 { ac_try='test -s conftest$ac_exeext'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5872 ac_cv_lib_nsl_gethostbyname=yes
5873 else
5874 echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5877 ac_cv_lib_nsl_gethostbyname=no
5879 rm -f conftest.err conftest.$ac_objext \
5880 conftest$ac_exeext conftest.$ac_ext
5881 LIBS=$ac_check_lib_save_LIBS
5883 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5884 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5885 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5886 cat >>confdefs.h <<_ACEOF
5887 #define HAVE_LIBNSL 1
5888 _ACEOF
5890 LIBS="-lnsl $LIBS"
5895 done
5898 for ac_func in connect
5900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5901 echo "$as_me:$LINENO: checking for $ac_func" >&5
5902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5903 if eval "test \"\${$as_ac_var+set}\" = set"; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5914 #define $ac_func innocuous_$ac_func
5916 /* System header to define __stub macros and hopefully few prototypes,
5917 which can conflict with char $ac_func (); below.
5918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5919 <limits.h> exists even on freestanding compilers. */
5921 #ifdef __STDC__
5922 # include <limits.h>
5923 #else
5924 # include <assert.h>
5925 #endif
5927 #undef $ac_func
5929 /* Override any gcc2 internal prototype to avoid an error. */
5930 #ifdef __cplusplus
5931 extern "C"
5933 #endif
5934 /* We use char because int might match the return type of a gcc2
5935 builtin and then its argument prototype would still apply. */
5936 char $ac_func ();
5937 /* The GNU C library defines this for functions which it implements
5938 to always fail with ENOSYS. Some functions are actually named
5939 something starting with __ and the normal name is an alias. */
5940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5941 choke me
5942 #else
5943 char (*f) () = $ac_func;
5944 #endif
5945 #ifdef __cplusplus
5947 #endif
5950 main ()
5952 return f != $ac_func;
5954 return 0;
5956 _ACEOF
5957 rm -f conftest.$ac_objext conftest$ac_exeext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959 (eval $ac_link) 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest$ac_exeext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 eval "$as_ac_var=yes"
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983 eval "$as_ac_var=no"
5985 rm -f conftest.err conftest.$ac_objext \
5986 conftest$ac_exeext conftest.$ac_ext
5988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5990 if test `eval echo '${'$as_ac_var'}'` = yes; then
5991 cat >>confdefs.h <<_ACEOF
5992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5993 _ACEOF
5995 else
5997 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5998 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5999 if test "${ac_cv_lib_socket_connect+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 ac_check_lib_save_LIBS=$LIBS
6003 LIBS="-lsocket $LIBS"
6004 cat >conftest.$ac_ext <<_ACEOF
6005 /* confdefs.h. */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6011 /* Override any gcc2 internal prototype to avoid an error. */
6012 #ifdef __cplusplus
6013 extern "C"
6014 #endif
6015 /* We use char because int might match the return type of a gcc2
6016 builtin and then its argument prototype would still apply. */
6017 char connect ();
6019 main ()
6021 connect ();
6023 return 0;
6025 _ACEOF
6026 rm -f conftest.$ac_objext conftest$ac_exeext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6028 (eval $ac_link) 2>conftest.er1
6029 ac_status=$?
6030 grep -v '^ *+' conftest.er1 >conftest.err
6031 rm -f conftest.er1
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } &&
6035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; } &&
6041 { ac_try='test -s conftest$ac_exeext'
6042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 (eval $ac_try) 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 ac_cv_lib_socket_connect=yes
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 ac_cv_lib_socket_connect=no
6054 rm -f conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
6056 LIBS=$ac_check_lib_save_LIBS
6058 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6059 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6060 if test $ac_cv_lib_socket_connect = yes; then
6061 cat >>confdefs.h <<_ACEOF
6062 #define HAVE_LIBSOCKET 1
6063 _ACEOF
6065 LIBS="-lsocket $LIBS"
6070 done
6073 for ac_func in inet_aton
6075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6076 echo "$as_me:$LINENO: checking for $ac_func" >&5
6077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6078 if eval "test \"\${$as_ac_var+set}\" = set"; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081 cat >conftest.$ac_ext <<_ACEOF
6082 /* confdefs.h. */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6089 #define $ac_func innocuous_$ac_func
6091 /* System header to define __stub macros and hopefully few prototypes,
6092 which can conflict with char $ac_func (); below.
6093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6094 <limits.h> exists even on freestanding compilers. */
6096 #ifdef __STDC__
6097 # include <limits.h>
6098 #else
6099 # include <assert.h>
6100 #endif
6102 #undef $ac_func
6104 /* Override any gcc2 internal prototype to avoid an error. */
6105 #ifdef __cplusplus
6106 extern "C"
6108 #endif
6109 /* We use char because int might match the return type of a gcc2
6110 builtin and then its argument prototype would still apply. */
6111 char $ac_func ();
6112 /* The GNU C library defines this for functions which it implements
6113 to always fail with ENOSYS. Some functions are actually named
6114 something starting with __ and the normal name is an alias. */
6115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6116 choke me
6117 #else
6118 char (*f) () = $ac_func;
6119 #endif
6120 #ifdef __cplusplus
6122 #endif
6125 main ()
6127 return f != $ac_func;
6129 return 0;
6131 _ACEOF
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; } &&
6147 { ac_try='test -s conftest$ac_exeext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 eval "$as_ac_var=yes"
6154 else
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 eval "$as_ac_var=no"
6160 rm -f conftest.err conftest.$ac_objext \
6161 conftest$ac_exeext conftest.$ac_ext
6163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6165 if test `eval echo '${'$as_ac_var'}'` = yes; then
6166 cat >>confdefs.h <<_ACEOF
6167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6168 _ACEOF
6170 else
6172 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6173 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6174 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177 ac_check_lib_save_LIBS=$LIBS
6178 LIBS="-lresolv $LIBS"
6179 cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h. */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6186 /* Override any gcc2 internal prototype to avoid an error. */
6187 #ifdef __cplusplus
6188 extern "C"
6189 #endif
6190 /* We use char because int might match the return type of a gcc2
6191 builtin and then its argument prototype would still apply. */
6192 char inet_aton ();
6194 main ()
6196 inet_aton ();
6198 return 0;
6200 _ACEOF
6201 rm -f conftest.$ac_objext conftest$ac_exeext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6203 (eval $ac_link) 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; } &&
6216 { ac_try='test -s conftest$ac_exeext'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 ac_cv_lib_resolv_inet_aton=yes
6223 else
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_cv_lib_resolv_inet_aton=no
6229 rm -f conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
6231 LIBS=$ac_check_lib_save_LIBS
6233 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6234 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6235 if test $ac_cv_lib_resolv_inet_aton = yes; then
6236 cat >>confdefs.h <<_ACEOF
6237 #define HAVE_LIBRESOLV 1
6238 _ACEOF
6240 LIBS="-lresolv $LIBS"
6245 done
6248 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6249 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6250 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 ac_check_lib_save_LIBS=$LIBS
6254 LIBS="-lxpg4 $LIBS"
6255 cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h. */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6262 /* Override any gcc2 internal prototype to avoid an error. */
6263 #ifdef __cplusplus
6264 extern "C"
6265 #endif
6266 /* We use char because int might match the return type of a gcc2
6267 builtin and then its argument prototype would still apply. */
6268 char _xpg4_setrunelocale ();
6270 main ()
6272 _xpg4_setrunelocale ();
6274 return 0;
6276 _ACEOF
6277 rm -f conftest.$ac_objext conftest$ac_exeext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279 (eval $ac_link) 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest$ac_exeext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6299 else
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6305 rm -f conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext conftest.$ac_ext
6307 LIBS=$ac_check_lib_save_LIBS
6309 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6310 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6311 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6312 cat >>confdefs.h <<_ACEOF
6313 #define HAVE_LIBXPG4 1
6314 _ACEOF
6316 LIBS="-lxpg4 $LIBS"
6321 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6322 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6323 if test "${ac_cv_lib_poll_poll+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 ac_check_lib_save_LIBS=$LIBS
6327 LIBS="-lpoll $LIBS"
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h. */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6335 /* Override any gcc2 internal prototype to avoid an error. */
6336 #ifdef __cplusplus
6337 extern "C"
6338 #endif
6339 /* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */
6341 char poll ();
6343 main ()
6345 poll ();
6347 return 0;
6349 _ACEOF
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6352 (eval $ac_link) 2>conftest.er1
6353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; } &&
6365 { ac_try='test -s conftest$ac_exeext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 ac_cv_lib_poll_poll=yes
6372 else
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 ac_cv_lib_poll_poll=no
6378 rm -f conftest.err conftest.$ac_objext \
6379 conftest$ac_exeext conftest.$ac_ext
6380 LIBS=$ac_check_lib_save_LIBS
6382 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6383 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6384 if test $ac_cv_lib_poll_poll = yes; then
6385 cat >>confdefs.h <<_ACEOF
6386 #define HAVE_LIBPOLL 1
6387 _ACEOF
6389 LIBS="-lpoll $LIBS"
6393 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6394 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6395 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398 ac_check_lib_save_LIBS=$LIBS
6399 LIBS="-lpthread $LIBS"
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h. */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6407 /* Override any gcc2 internal prototype to avoid an error. */
6408 #ifdef __cplusplus
6409 extern "C"
6410 #endif
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6413 char pthread_create ();
6415 main ()
6417 pthread_create ();
6419 return 0;
6421 _ACEOF
6422 rm -f conftest.$ac_objext conftest$ac_exeext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6424 (eval $ac_link) 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest$ac_exeext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 ac_cv_lib_pthread_pthread_create=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_cv_lib_pthread_pthread_create=no
6450 rm -f conftest.err conftest.$ac_objext \
6451 conftest$ac_exeext conftest.$ac_ext
6452 LIBS=$ac_check_lib_save_LIBS
6454 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6455 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6456 if test $ac_cv_lib_pthread_pthread_create = yes; then
6457 LIBPTHREAD="-lpthread"
6462 JPEGLIB=""
6464 echo "$as_me:$LINENO: checking for egrep" >&5
6465 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6466 if test "${ac_cv_prog_egrep+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6470 then ac_cv_prog_egrep='grep -E'
6471 else ac_cv_prog_egrep='egrep'
6474 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6475 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6476 EGREP=$ac_cv_prog_egrep
6479 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6480 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6481 if test "${ac_cv_header_stdc+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h. */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 #include <stdlib.h>
6491 #include <stdarg.h>
6492 #include <string.h>
6493 #include <float.h>
6496 main ()
6500 return 0;
6502 _ACEOF
6503 rm -f conftest.$ac_objext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505 (eval $ac_compile) 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 (eval $ac_try) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; } &&
6518 { ac_try='test -s conftest.$ac_objext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_cv_header_stdc=yes
6525 else
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6529 ac_cv_header_stdc=no
6531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533 if test $ac_cv_header_stdc = yes; then
6534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 #include <string.h>
6543 _ACEOF
6544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6545 $EGREP "memchr" >/dev/null 2>&1; then
6547 else
6548 ac_cv_header_stdc=no
6550 rm -f conftest*
6554 if test $ac_cv_header_stdc = yes; then
6555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6556 cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h. */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 #include <stdlib.h>
6564 _ACEOF
6565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6566 $EGREP "free" >/dev/null 2>&1; then
6568 else
6569 ac_cv_header_stdc=no
6571 rm -f conftest*
6575 if test $ac_cv_header_stdc = yes; then
6576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6577 if test "$cross_compiling" = yes; then
6579 else
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. */
6586 #include <ctype.h>
6587 #if ((' ' & 0x0FF) == 0x020)
6588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6590 #else
6591 # define ISLOWER(c) \
6592 (('a' <= (c) && (c) <= 'i') \
6593 || ('j' <= (c) && (c) <= 'r') \
6594 || ('s' <= (c) && (c) <= 'z'))
6595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6596 #endif
6598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6600 main ()
6602 int i;
6603 for (i = 0; i < 256; i++)
6604 if (XOR (islower (i), ISLOWER (i))
6605 || toupper (i) != TOUPPER (i))
6606 exit(2);
6607 exit (0);
6609 _ACEOF
6610 rm -f conftest$ac_exeext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612 (eval $ac_link) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6622 else
6623 echo "$as_me: program exited with status $ac_status" >&5
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 ( exit $ac_status )
6628 ac_cv_header_stdc=no
6630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6634 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6635 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6636 if test $ac_cv_header_stdc = yes; then
6638 cat >>confdefs.h <<\_ACEOF
6639 #define STDC_HEADERS 1
6640 _ACEOF
6644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6655 inttypes.h stdint.h unistd.h
6657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6658 echo "$as_me:$LINENO: checking for $ac_header" >&5
6659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 $ac_includes_default
6671 #include <$ac_header>
6672 _ACEOF
6673 rm -f conftest.$ac_objext
6674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6675 (eval $ac_compile) 2>conftest.er1
6676 ac_status=$?
6677 grep -v '^ *+' conftest.er1 >conftest.err
6678 rm -f conftest.er1
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } &&
6682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 eval "$as_ac_Header=yes"
6695 else
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 eval "$as_ac_Header=no"
6701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6706 cat >>confdefs.h <<_ACEOF
6707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6708 _ACEOF
6712 done
6716 for ac_header in jpeglib.h
6718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6720 echo "$as_me:$LINENO: checking for $ac_header" >&5
6721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6727 else
6728 # Is the header compilable?
6729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 $ac_includes_default
6738 #include <$ac_header>
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6742 (eval $ac_compile) 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; } &&
6755 { ac_try='test -s conftest.$ac_objext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
6761 ac_header_compiler=yes
6762 else
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 ac_header_compiler=no
6768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6770 echo "${ECHO_T}$ac_header_compiler" >&6
6772 # Is the header present?
6773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6775 cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h. */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781 #include <$ac_header>
6782 _ACEOF
6783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } >/dev/null; then
6791 if test -s conftest.err; then
6792 ac_cpp_err=$ac_c_preproc_warn_flag
6793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6794 else
6795 ac_cpp_err=
6797 else
6798 ac_cpp_err=yes
6800 if test -z "$ac_cpp_err"; then
6801 ac_header_preproc=yes
6802 else
6803 echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6806 ac_header_preproc=no
6808 rm -f conftest.err conftest.$ac_ext
6809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6810 echo "${ECHO_T}$ac_header_preproc" >&6
6812 # So? What about this header?
6813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6814 yes:no: )
6815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6819 ac_header_preproc=yes
6821 no:yes:* )
6822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6835 cat <<\_ASBOX
6836 ## ------------------------------------ ##
6837 ## Report this to wine-devel@winehq.org ##
6838 ## ------------------------------------ ##
6839 _ASBOX
6841 sed "s/^/$as_me: WARNING: /" >&2
6843 esac
6844 echo "$as_me:$LINENO: checking for $ac_header" >&5
6845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849 eval "$as_ac_Header=\$ac_header_preproc"
6851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6856 cat >>confdefs.h <<_ACEOF
6857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6858 _ACEOF
6859 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6860 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6861 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 ac_check_lib_save_LIBS=$LIBS
6865 LIBS="-ljpeg $LIBS"
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h. */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6873 /* Override any gcc2 internal prototype to avoid an error. */
6874 #ifdef __cplusplus
6875 extern "C"
6876 #endif
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6879 char jpeg_start_decompress ();
6881 main ()
6883 jpeg_start_decompress ();
6885 return 0;
6887 _ACEOF
6888 rm -f conftest.$ac_objext conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest$ac_exeext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_cv_lib_jpeg_jpeg_start_decompress=yes
6910 else
6911 echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6914 ac_cv_lib_jpeg_jpeg_start_decompress=no
6916 rm -f conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6918 LIBS=$ac_check_lib_save_LIBS
6920 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6921 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6922 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6924 cat >>confdefs.h <<\_ACEOF
6925 #define HAVE_LIBJPEG 1
6926 _ACEOF
6928 JPEGLIB="-ljpeg"
6935 done
6938 GIFLIB=""
6941 for ac_header in gif_lib.h
6943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6945 echo "$as_me:$LINENO: checking for $ac_header" >&5
6946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6952 else
6953 # Is the header compilable?
6954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6956 cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 $ac_includes_default
6963 #include <$ac_header>
6964 _ACEOF
6965 rm -f conftest.$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; } &&
6980 { ac_try='test -s conftest.$ac_objext'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6986 ac_header_compiler=yes
6987 else
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6991 ac_header_compiler=no
6993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6995 echo "${ECHO_T}$ac_header_compiler" >&6
6997 # Is the header present?
6998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 #include <$ac_header>
7007 _ACEOF
7008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7010 ac_status=$?
7011 grep -v '^ *+' conftest.er1 >conftest.err
7012 rm -f conftest.er1
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } >/dev/null; then
7016 if test -s conftest.err; then
7017 ac_cpp_err=$ac_c_preproc_warn_flag
7018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7019 else
7020 ac_cpp_err=
7022 else
7023 ac_cpp_err=yes
7025 if test -z "$ac_cpp_err"; then
7026 ac_header_preproc=yes
7027 else
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 ac_header_preproc=no
7033 rm -f conftest.err conftest.$ac_ext
7034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7035 echo "${ECHO_T}$ac_header_preproc" >&6
7037 # So? What about this header?
7038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7039 yes:no: )
7040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7044 ac_header_preproc=yes
7046 no:yes:* )
7047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7060 cat <<\_ASBOX
7061 ## ------------------------------------ ##
7062 ## Report this to wine-devel@winehq.org ##
7063 ## ------------------------------------ ##
7064 _ASBOX
7066 sed "s/^/$as_me: WARNING: /" >&2
7068 esac
7069 echo "$as_me:$LINENO: checking for $ac_header" >&5
7070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074 eval "$as_ac_Header=\$ac_header_preproc"
7076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7081 cat >>confdefs.h <<_ACEOF
7082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7083 _ACEOF
7084 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
7085 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7086 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 ac_check_lib_save_LIBS=$LIBS
7090 LIBS="-lungif $LIBS"
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7098 /* Override any gcc2 internal prototype to avoid an error. */
7099 #ifdef __cplusplus
7100 extern "C"
7101 #endif
7102 /* We use char because int might match the return type of a gcc2
7103 builtin and then its argument prototype would still apply. */
7104 char DGifOpen ();
7106 main ()
7108 DGifOpen ();
7110 return 0;
7112 _ACEOF
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115 (eval $ac_link) 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; } &&
7128 { ac_try='test -s conftest$ac_exeext'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 (eval $ac_try) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 ac_cv_lib_ungif_DGifOpen=yes
7135 else
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7139 ac_cv_lib_ungif_DGifOpen=no
7141 rm -f conftest.err conftest.$ac_objext \
7142 conftest$ac_exeext conftest.$ac_ext
7143 LIBS=$ac_check_lib_save_LIBS
7145 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
7146 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7147 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7149 cat >>confdefs.h <<\_ACEOF
7150 #define HAVE_LIBGIF 1
7151 _ACEOF
7153 GIFLIB="-lungif"
7154 else
7155 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
7156 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
7157 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160 ac_check_lib_save_LIBS=$LIBS
7161 LIBS="-lgif $LIBS"
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7169 /* Override any gcc2 internal prototype to avoid an error. */
7170 #ifdef __cplusplus
7171 extern "C"
7172 #endif
7173 /* We use char because int might match the return type of a gcc2
7174 builtin and then its argument prototype would still apply. */
7175 char DGifOpen ();
7177 main ()
7179 DGifOpen ();
7181 return 0;
7183 _ACEOF
7184 rm -f conftest.$ac_objext conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>conftest.er1
7187 ac_status=$?
7188 grep -v '^ *+' conftest.er1 >conftest.err
7189 rm -f conftest.er1
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest$ac_exeext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_cv_lib_gif_DGifOpen=yes
7206 else
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_cv_lib_gif_DGifOpen=no
7212 rm -f conftest.err conftest.$ac_objext \
7213 conftest$ac_exeext conftest.$ac_ext
7214 LIBS=$ac_check_lib_save_LIBS
7216 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
7217 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
7218 if test $ac_cv_lib_gif_DGifOpen = yes; then
7219 cat >>confdefs.h <<\_ACEOF
7220 #define HAVE_LIBGIF 1
7221 _ACEOF
7223 GIFLIB="-lgif"
7230 done
7235 XFILES=""
7237 OPENGLFILES=""
7239 GLU32FILES=""
7241 OPENGL_LIBS=""
7242 if test "$have_x" = "yes"
7243 then
7244 XLIB="-lXext -lX11"
7245 ac_save_CPPFLAGS="$CPPFLAGS"
7246 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7249 for ac_header in X11/Xlib.h
7251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7253 echo "$as_me:$LINENO: checking for $ac_header" >&5
7254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7260 else
7261 # Is the header compilable?
7262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 $ac_includes_default
7271 #include <$ac_header>
7272 _ACEOF
7273 rm -f conftest.$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; } &&
7288 { ac_try='test -s conftest.$ac_objext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 ac_header_compiler=yes
7295 else
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 ac_header_compiler=no
7301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7302 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7303 echo "${ECHO_T}$ac_header_compiler" >&6
7305 # Is the header present?
7306 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <$ac_header>
7315 _ACEOF
7316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7318 ac_status=$?
7319 grep -v '^ *+' conftest.er1 >conftest.err
7320 rm -f conftest.er1
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } >/dev/null; then
7324 if test -s conftest.err; then
7325 ac_cpp_err=$ac_c_preproc_warn_flag
7326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7327 else
7328 ac_cpp_err=
7330 else
7331 ac_cpp_err=yes
7333 if test -z "$ac_cpp_err"; then
7334 ac_header_preproc=yes
7335 else
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7339 ac_header_preproc=no
7341 rm -f conftest.err conftest.$ac_ext
7342 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7343 echo "${ECHO_T}$ac_header_preproc" >&6
7345 # So? What about this header?
7346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7347 yes:no: )
7348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7352 ac_header_preproc=yes
7354 no:yes:* )
7355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7368 cat <<\_ASBOX
7369 ## ------------------------------------ ##
7370 ## Report this to wine-devel@winehq.org ##
7371 ## ------------------------------------ ##
7372 _ASBOX
7374 sed "s/^/$as_me: WARNING: /" >&2
7376 esac
7377 echo "$as_me:$LINENO: checking for $ac_header" >&5
7378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382 eval "$as_ac_Header=\$ac_header_preproc"
7384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7389 cat >>confdefs.h <<_ACEOF
7390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7391 _ACEOF
7403 for ac_header in X11/XKBlib.h \
7404 X11/Xutil.h \
7405 X11/extensions/shape.h \
7406 X11/extensions/XInput.h \
7407 X11/extensions/XShm.h \
7408 X11/extensions/Xrandr.h \
7409 X11/extensions/Xrender.h \
7410 X11/extensions/Xvlib.h \
7411 X11/extensions/xf86dga.h \
7412 X11/extensions/xf86vmode.h
7414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7415 echo "$as_me:$LINENO: checking for $ac_header" >&5
7416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h. */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 #include <X11/Xlib.h>
7427 #ifdef HAVE_X11_XUTIL_H
7428 # include <X11/Xutil.h>
7429 #endif
7431 #include <$ac_header>
7432 _ACEOF
7433 rm -f conftest.$ac_objext
7434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7435 (eval $ac_compile) 2>conftest.er1
7436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } &&
7442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; } &&
7448 { ac_try='test -s conftest.$ac_objext'
7449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 (eval $ac_try) 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }; }; then
7454 eval "$as_ac_Header=yes"
7455 else
7456 echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7459 eval "$as_ac_Header=no"
7461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466 cat >>confdefs.h <<_ACEOF
7467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468 _ACEOF
7472 done
7475 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7476 then
7477 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7478 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7479 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482 ac_check_lib_save_LIBS=$LIBS
7483 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7491 /* Override any gcc2 internal prototype to avoid an error. */
7492 #ifdef __cplusplus
7493 extern "C"
7494 #endif
7495 /* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7497 char XkbQueryExtension ();
7499 main ()
7501 XkbQueryExtension ();
7503 return 0;
7505 _ACEOF
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508 (eval $ac_link) 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } &&
7515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest$ac_exeext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 ac_cv_lib_X11_XkbQueryExtension=yes
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 ac_cv_lib_X11_XkbQueryExtension=no
7534 rm -f conftest.err conftest.$ac_objext \
7535 conftest$ac_exeext conftest.$ac_ext
7536 LIBS=$ac_check_lib_save_LIBS
7538 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7539 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7540 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7542 cat >>confdefs.h <<\_ACEOF
7543 #define HAVE_XKB 1
7544 _ACEOF
7550 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7551 then
7552 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7553 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7554 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557 ac_check_lib_save_LIBS=$LIBS
7558 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7559 cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h. */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7566 /* Override any gcc2 internal prototype to avoid an error. */
7567 #ifdef __cplusplus
7568 extern "C"
7569 #endif
7570 /* We use char because int might match the return type of a gcc2
7571 builtin and then its argument prototype would still apply. */
7572 char XShmQueryExtension ();
7574 main ()
7576 XShmQueryExtension ();
7578 return 0;
7580 _ACEOF
7581 rm -f conftest.$ac_objext conftest$ac_exeext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7583 (eval $ac_link) 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try='test -s conftest$ac_exeext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 ac_cv_lib_Xext_XShmQueryExtension=yes
7603 else
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7607 ac_cv_lib_Xext_XShmQueryExtension=no
7609 rm -f conftest.err conftest.$ac_objext \
7610 conftest$ac_exeext conftest.$ac_ext
7611 LIBS=$ac_check_lib_save_LIBS
7613 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7614 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7615 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7617 cat >>confdefs.h <<\_ACEOF
7618 #define HAVE_LIBXXSHM 1
7619 _ACEOF
7625 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7626 then
7627 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7628 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7629 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632 ac_check_lib_save_LIBS=$LIBS
7633 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7634 cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h. */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7641 /* Override any gcc2 internal prototype to avoid an error. */
7642 #ifdef __cplusplus
7643 extern "C"
7644 #endif
7645 /* We use char because int might match the return type of a gcc2
7646 builtin and then its argument prototype would still apply. */
7647 char XShapeQueryExtension ();
7649 main ()
7651 XShapeQueryExtension ();
7653 return 0;
7655 _ACEOF
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>conftest.er1
7659 ac_status=$?
7660 grep -v '^ *+' conftest.er1 >conftest.err
7661 rm -f conftest.er1
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; } &&
7671 { ac_try='test -s conftest$ac_exeext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 ac_cv_lib_Xext_XShapeQueryExtension=yes
7678 else
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 ac_cv_lib_Xext_XShapeQueryExtension=no
7684 rm -f conftest.err conftest.$ac_objext \
7685 conftest$ac_exeext conftest.$ac_ext
7686 LIBS=$ac_check_lib_save_LIBS
7688 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7689 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7690 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7692 cat >>confdefs.h <<\_ACEOF
7693 #define HAVE_LIBXSHAPE 1
7694 _ACEOF
7700 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7701 then
7702 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7703 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7704 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707 ac_check_lib_save_LIBS=$LIBS
7708 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
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. */
7716 /* Override any gcc2 internal prototype to avoid an error. */
7717 #ifdef __cplusplus
7718 extern "C"
7719 #endif
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722 char XDGAQueryExtension ();
7724 main ()
7726 XDGAQueryExtension ();
7728 return 0;
7730 _ACEOF
7731 rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7733 (eval $ac_link) 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try='test -s conftest$ac_exeext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7759 rm -f conftest.err conftest.$ac_objext \
7760 conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7763 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7764 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7765 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7767 cat >>confdefs.h <<\_ACEOF
7768 #define HAVE_LIBXXF86DGA2 1
7769 _ACEOF
7771 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7773 else
7774 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7775 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7776 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779 ac_check_lib_save_LIBS=$LIBS
7780 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7781 $LIBS"
7782 cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h. */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7789 /* Override any gcc2 internal prototype to avoid an error. */
7790 #ifdef __cplusplus
7791 extern "C"
7792 #endif
7793 /* We use char because int might match the return type of a gcc2
7794 builtin and then its argument prototype would still apply. */
7795 char XF86DGAQueryExtension ();
7797 main ()
7799 XF86DGAQueryExtension ();
7801 return 0;
7803 _ACEOF
7804 rm -f conftest.$ac_objext conftest$ac_exeext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806 (eval $ac_link) 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 (eval $ac_try) 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; } &&
7819 { ac_try='test -s conftest$ac_exeext'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 (eval $ac_try) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7826 else
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7830 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7832 rm -f conftest.err conftest.$ac_objext \
7833 conftest$ac_exeext conftest.$ac_ext
7834 LIBS=$ac_check_lib_save_LIBS
7836 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7837 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7838 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7840 cat >>confdefs.h <<\_ACEOF
7841 #define HAVE_LIBXXF86DGA 1
7842 _ACEOF
7844 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7853 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7854 then
7855 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7856 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7857 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860 ac_check_lib_save_LIBS=$LIBS
7861 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h. */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7869 /* Override any gcc2 internal prototype to avoid an error. */
7870 #ifdef __cplusplus
7871 extern "C"
7872 #endif
7873 /* We use char because int might match the return type of a gcc2
7874 builtin and then its argument prototype would still apply. */
7875 char XF86VidModeQueryExtension ();
7877 main ()
7879 XF86VidModeQueryExtension ();
7881 return 0;
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>conftest.er1
7887 ac_status=$?
7888 grep -v '^ *+' conftest.er1 >conftest.err
7889 rm -f conftest.er1
7890 cat conftest.err >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } &&
7893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7906 else
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7912 rm -f conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914 LIBS=$ac_check_lib_save_LIBS
7916 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7917 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7918 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7920 cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_LIBXXF86VM 1
7922 _ACEOF
7924 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7930 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7931 then
7932 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
7933 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
7934 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937 ac_check_lib_save_LIBS=$LIBS
7938 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h. */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7946 /* Override any gcc2 internal prototype to avoid an error. */
7947 #ifdef __cplusplus
7948 extern "C"
7949 #endif
7950 /* We use char because int might match the return type of a gcc2
7951 builtin and then its argument prototype would still apply. */
7952 char XRRSetScreenConfigAndRate ();
7954 main ()
7956 XRRSetScreenConfigAndRate ();
7958 return 0;
7960 _ACEOF
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7963 (eval $ac_link) 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
7983 else
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7987 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
7989 rm -f conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7991 LIBS=$ac_check_lib_save_LIBS
7993 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
7994 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
7995 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
7997 cat >>confdefs.h <<\_ACEOF
7998 #define HAVE_LIBXRANDR 1
7999 _ACEOF
8001 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
8007 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8008 then
8009 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8010 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8011 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014 ac_check_lib_save_LIBS=$LIBS
8015 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8023 /* Override any gcc2 internal prototype to avoid an error. */
8024 #ifdef __cplusplus
8025 extern "C"
8026 #endif
8027 /* We use char because int might match the return type of a gcc2
8028 builtin and then its argument prototype would still apply. */
8029 char XvShmCreateImage ();
8031 main ()
8033 XvShmCreateImage ();
8035 return 0;
8037 _ACEOF
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>conftest.er1
8041 ac_status=$?
8042 grep -v '^ *+' conftest.er1 >conftest.err
8043 rm -f conftest.er1
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; } &&
8053 { ac_try='test -s conftest$ac_exeext'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; }; then
8059 ac_cv_lib_Xv_XvShmCreateImage=yes
8060 else
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8064 ac_cv_lib_Xv_XvShmCreateImage=no
8066 rm -f conftest.err conftest.$ac_objext \
8067 conftest$ac_exeext conftest.$ac_ext
8068 LIBS=$ac_check_lib_save_LIBS
8070 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8071 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8072 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8074 cat >>confdefs.h <<\_ACEOF
8075 #define HAVE_XVIDEO 1
8076 _ACEOF
8078 X_PRE_LIBS="$X_PRE_LIBS -lXv"
8087 done
8089 if test "x$with_opengl" != "xno"
8090 then
8091 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8092 then
8093 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8094 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8095 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8096 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8097 { (exit 1); exit 1; }; }
8102 for ac_header in GL/gl.h GL/glx.h
8104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106 echo "$as_me:$LINENO: checking for $ac_header" >&5
8107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8113 else
8114 # Is the header compilable?
8115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 $ac_includes_default
8124 #include <$ac_header>
8125 _ACEOF
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128 (eval $ac_compile) 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } &&
8135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 (eval $ac_try) 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8147 ac_header_compiler=yes
8148 else
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 ac_header_compiler=no
8154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8156 echo "${ECHO_T}$ac_header_compiler" >&6
8158 # Is the header present?
8159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 #include <$ac_header>
8168 _ACEOF
8169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8171 ac_status=$?
8172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } >/dev/null; then
8177 if test -s conftest.err; then
8178 ac_cpp_err=$ac_c_preproc_warn_flag
8179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8180 else
8181 ac_cpp_err=
8183 else
8184 ac_cpp_err=yes
8186 if test -z "$ac_cpp_err"; then
8187 ac_header_preproc=yes
8188 else
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 ac_header_preproc=no
8194 rm -f conftest.err conftest.$ac_ext
8195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8196 echo "${ECHO_T}$ac_header_preproc" >&6
8198 # So? What about this header?
8199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8200 yes:no: )
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8205 ac_header_preproc=yes
8207 no:yes:* )
8208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8221 cat <<\_ASBOX
8222 ## ------------------------------------ ##
8223 ## Report this to wine-devel@winehq.org ##
8224 ## ------------------------------------ ##
8225 _ASBOX
8227 sed "s/^/$as_me: WARNING: /" >&2
8229 esac
8230 echo "$as_me:$LINENO: checking for $ac_header" >&5
8231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235 eval "$as_ac_Header=\$ac_header_preproc"
8237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8242 cat >>confdefs.h <<_ACEOF
8243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8244 _ACEOF
8248 done
8250 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8251 then
8253 for ac_header in GL/glext.h
8255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8256 echo "$as_me:$LINENO: checking for $ac_header" >&5
8257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261 cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h. */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 #include <GL/glx.h>
8269 #include <$ac_header>
8270 _ACEOF
8271 rm -f conftest.$ac_objext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8273 (eval $ac_compile) 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; } &&
8286 { ac_try='test -s conftest.$ac_objext'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 (eval $ac_try) 2>&5
8289 ac_status=$?
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; }; then
8292 eval "$as_ac_Header=yes"
8293 else
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8297 eval "$as_ac_Header=no"
8299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8304 cat >>confdefs.h <<_ACEOF
8305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8306 _ACEOF
8310 done
8312 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8313 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8314 if test "${wine_cv_opengl_version_OK+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317 cat >conftest.$ac_ext <<_ACEOF
8318 /* confdefs.h. */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 #include <GL/gl.h>
8325 main ()
8327 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8329 return 0;
8331 _ACEOF
8332 rm -f conftest.$ac_objext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8334 (eval $ac_compile) 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest.$ac_objext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 wine_cv_opengl_version_OK="yes"
8354 else
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8358 wine_cv_opengl_version_OK="no"
8361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8364 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8365 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8367 if test "$wine_cv_opengl_version_OK" = "yes"
8368 then
8369 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8370 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8371 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374 ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8383 /* Override any gcc2 internal prototype to avoid an error. */
8384 #ifdef __cplusplus
8385 extern "C"
8386 #endif
8387 /* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8389 char glXCreateContext ();
8391 main ()
8393 glXCreateContext ();
8395 return 0;
8397 _ACEOF
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400 (eval $ac_link) 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_lib_GL_glXCreateContext=yes
8420 else
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_cv_lib_GL_glXCreateContext=no
8426 rm -f conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
8428 LIBS=$ac_check_lib_save_LIBS
8430 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8431 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8432 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8433 OPENGL_LIBS="-lGL"
8438 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8439 then
8440 OPENGLFILES='$(OPENGLFILES)'
8442 cat >>confdefs.h <<\_ACEOF
8443 #define HAVE_OPENGL 1
8444 _ACEOF
8447 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8448 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8449 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452 ac_check_lib_save_LIBS=$LIBS
8453 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h. */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8461 /* Override any gcc2 internal prototype to avoid an error. */
8462 #ifdef __cplusplus
8463 extern "C"
8464 #endif
8465 /* We use char because int might match the return type of a gcc2
8466 builtin and then its argument prototype would still apply. */
8467 char glXGetProcAddressARB ();
8469 main ()
8471 glXGetProcAddressARB ();
8473 return 0;
8475 _ACEOF
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478 (eval $ac_link) 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 (eval $ac_try) 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 (eval $ac_try) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8497 ac_cv_lib_GL_glXGetProcAddressARB=yes
8498 else
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 ac_cv_lib_GL_glXGetProcAddressARB=no
8504 rm -f conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8506 LIBS=$ac_check_lib_save_LIBS
8508 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8509 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8510 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8512 cat >>confdefs.h <<\_ACEOF
8513 #define HAVE_GLX_GETPROCADDRESS 1
8514 _ACEOF
8519 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8520 then
8521 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8522 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8523 if test "${wine_cv_extension_prototypes+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h. */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 #include <GL/gl.h>
8533 #ifdef HAVE_GL_GLEXT_H
8534 # include <GL/glext.h>
8535 #endif
8538 main ()
8540 PFNGLCOLORTABLEEXTPROC test_proc;
8542 return 0;
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 wine_cv_extension_prototypes="yes"
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 wine_cv_extension_prototypes="no"
8574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8577 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8578 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8579 if test "$wine_cv_extension_prototypes" = "yes"
8580 then
8582 cat >>confdefs.h <<\_ACEOF
8583 #define HAVE_GLEXT_PROTOTYPES 1
8584 _ACEOF
8590 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8591 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8592 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595 ac_check_lib_save_LIBS=$LIBS
8596 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8597 $LIBS"
8598 cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h. */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8605 /* Override any gcc2 internal prototype to avoid an error. */
8606 #ifdef __cplusplus
8607 extern "C"
8608 #endif
8609 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */
8611 char gluLookAt ();
8613 main ()
8615 gluLookAt ();
8617 return 0;
8619 _ACEOF
8620 rm -f conftest.$ac_objext conftest$ac_exeext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8622 (eval $ac_link) 2>conftest.er1
8623 ac_status=$?
8624 grep -v '^ *+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 (eval $ac_try) 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_lib_GLU_gluLookAt=yes
8642 else
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_lib_GLU_gluLookAt=no
8648 rm -f conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8650 LIBS=$ac_check_lib_save_LIBS
8652 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8653 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8654 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8655 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8656 GLU32FILES='$(GLU32FILES)'
8662 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8663 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8664 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 else
8667 ac_check_lib_save_LIBS=$LIBS
8668 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h. */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8676 /* Override any gcc2 internal prototype to avoid an error. */
8677 #ifdef __cplusplus
8678 extern "C"
8679 #endif
8680 /* We use char because int might match the return type of a gcc2
8681 builtin and then its argument prototype would still apply. */
8682 char glutMainLoop ();
8684 main ()
8686 glutMainLoop ();
8688 return 0;
8690 _ACEOF
8691 rm -f conftest.$ac_objext conftest$ac_exeext
8692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8693 (eval $ac_link) 2>conftest.er1
8694 ac_status=$?
8695 grep -v '^ *+' conftest.er1 >conftest.err
8696 rm -f conftest.er1
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 (eval $ac_try) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; } &&
8706 { ac_try='test -s conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_lib_glut_glutMainLoop=yes
8713 else
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_lib_glut_glutMainLoop=no
8719 rm -f conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext conftest.$ac_ext
8721 LIBS=$ac_check_lib_save_LIBS
8723 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8724 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8725 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8726 GLUT_LIBS="-lglut -lXmu -lXi"
8728 GLUT32FILES='$(GLUT32FILES)'
8735 NASLIBS=""
8738 for ac_header in audio/audiolib.h
8740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742 echo "$as_me:$LINENO: checking for $ac_header" >&5
8743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8749 else
8750 # Is the header compilable?
8751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h. */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 $ac_includes_default
8760 #include <$ac_header>
8761 _ACEOF
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>conftest.er1
8765 ac_status=$?
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 (eval $ac_try) 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; } &&
8777 { ac_try='test -s conftest.$ac_objext'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 (eval $ac_try) 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8783 ac_header_compiler=yes
8784 else
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8788 ac_header_compiler=no
8790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8792 echo "${ECHO_T}$ac_header_compiler" >&6
8794 # Is the header present?
8795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h. */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 #include <$ac_header>
8804 _ACEOF
8805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } >/dev/null; then
8813 if test -s conftest.err; then
8814 ac_cpp_err=$ac_c_preproc_warn_flag
8815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8816 else
8817 ac_cpp_err=
8819 else
8820 ac_cpp_err=yes
8822 if test -z "$ac_cpp_err"; then
8823 ac_header_preproc=yes
8824 else
8825 echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8828 ac_header_preproc=no
8830 rm -f conftest.err conftest.$ac_ext
8831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8832 echo "${ECHO_T}$ac_header_preproc" >&6
8834 # So? What about this header?
8835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8836 yes:no: )
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8841 ac_header_preproc=yes
8843 no:yes:* )
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8857 cat <<\_ASBOX
8858 ## ------------------------------------ ##
8859 ## Report this to wine-devel@winehq.org ##
8860 ## ------------------------------------ ##
8861 _ASBOX
8863 sed "s/^/$as_me: WARNING: /" >&2
8865 esac
8866 echo "$as_me:$LINENO: checking for $ac_header" >&5
8867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871 eval "$as_ac_Header=\$ac_header_preproc"
8873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8878 cat >>confdefs.h <<_ACEOF
8879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8880 _ACEOF
8882 for ac_header in audio/soundlib.h
8884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8885 echo "$as_me:$LINENO: checking for $ac_header" >&5
8886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890 cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h. */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 #include <audio/audiolib.h>
8898 #include <$ac_header>
8899 _ACEOF
8900 rm -f conftest.$ac_objext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8902 (eval $ac_compile) 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; } &&
8915 { ac_try='test -s conftest.$ac_objext'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 (eval $ac_try) 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 eval "$as_ac_Header=yes"
8922 else
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 eval "$as_ac_Header=no"
8928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8933 cat >>confdefs.h <<_ACEOF
8934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8935 _ACEOF
8939 done
8941 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8942 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8943 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946 ac_check_lib_save_LIBS=$LIBS
8947 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h. */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8955 /* Override any gcc2 internal prototype to avoid an error. */
8956 #ifdef __cplusplus
8957 extern "C"
8958 #endif
8959 /* We use char because int might match the return type of a gcc2
8960 builtin and then its argument prototype would still apply. */
8961 char AuCreateFlow ();
8963 main ()
8965 AuCreateFlow ();
8967 return 0;
8969 _ACEOF
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8972 (eval $ac_link) 2>conftest.er1
8973 ac_status=$?
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try='test -s conftest$ac_exeext'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 (eval $ac_try) 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 ac_cv_lib_audio_AuCreateFlow=yes
8992 else
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 ac_cv_lib_audio_AuCreateFlow=no
8998 rm -f conftest.err conftest.$ac_objext \
8999 conftest$ac_exeext conftest.$ac_ext
9000 LIBS=$ac_check_lib_save_LIBS
9002 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9003 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9004 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_NAS 1
9008 _ACEOF
9010 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9015 done
9018 CPPFLAGS="$ac_save_CPPFLAGS"
9019 XFILES='$(XFILES)'
9020 else
9021 XLIB=""
9022 X_CFLAGS=""
9023 X_LIBS=""
9026 CURSESLIBS=""
9027 if test "x$with_curses" != "xno"
9028 then
9030 for ac_header in ncurses.h
9032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9034 echo "$as_me:$LINENO: checking for $ac_header" >&5
9035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9041 else
9042 # Is the header compilable?
9043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9045 cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h. */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9051 $ac_includes_default
9052 #include <$ac_header>
9053 _ACEOF
9054 rm -f conftest.$ac_objext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9056 (eval $ac_compile) 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_header_compiler=yes
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 ac_header_compiler=no
9082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9084 echo "${ECHO_T}$ac_header_compiler" >&6
9086 # Is the header present?
9087 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 #include <$ac_header>
9096 _ACEOF
9097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9099 ac_status=$?
9100 grep -v '^ *+' conftest.er1 >conftest.err
9101 rm -f conftest.er1
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } >/dev/null; then
9105 if test -s conftest.err; then
9106 ac_cpp_err=$ac_c_preproc_warn_flag
9107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9108 else
9109 ac_cpp_err=
9111 else
9112 ac_cpp_err=yes
9114 if test -z "$ac_cpp_err"; then
9115 ac_header_preproc=yes
9116 else
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9120 ac_header_preproc=no
9122 rm -f conftest.err conftest.$ac_ext
9123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9124 echo "${ECHO_T}$ac_header_preproc" >&6
9126 # So? What about this header?
9127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9128 yes:no: )
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9133 ac_header_preproc=yes
9135 no:yes:* )
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9149 cat <<\_ASBOX
9150 ## ------------------------------------ ##
9151 ## Report this to wine-devel@winehq.org ##
9152 ## ------------------------------------ ##
9153 _ASBOX
9155 sed "s/^/$as_me: WARNING: /" >&2
9157 esac
9158 echo "$as_me:$LINENO: checking for $ac_header" >&5
9159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163 eval "$as_ac_Header=\$ac_header_preproc"
9165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9170 cat >>confdefs.h <<_ACEOF
9171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9172 _ACEOF
9173 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9174 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9175 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178 ac_check_lib_save_LIBS=$LIBS
9179 LIBS="-lncurses $LIBS"
9180 cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h. */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9187 /* Override any gcc2 internal prototype to avoid an error. */
9188 #ifdef __cplusplus
9189 extern "C"
9190 #endif
9191 /* We use char because int might match the return type of a gcc2
9192 builtin and then its argument prototype would still apply. */
9193 char waddch ();
9195 main ()
9197 waddch ();
9199 return 0;
9201 _ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204 (eval $ac_link) 2>conftest.er1
9205 ac_status=$?
9206 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1
9208 cat conftest.err >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } &&
9211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; } &&
9217 { ac_try='test -s conftest$ac_exeext'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9223 ac_cv_lib_ncurses_waddch=yes
9224 else
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9228 ac_cv_lib_ncurses_waddch=no
9230 rm -f conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9232 LIBS=$ac_check_lib_save_LIBS
9234 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9235 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9236 if test $ac_cv_lib_ncurses_waddch = yes; then
9238 cat >>confdefs.h <<\_ACEOF
9239 #define HAVE_LIBNCURSES 1
9240 _ACEOF
9242 CURSESLIBS="-lncurses"
9243 else
9245 for ac_header in curses.h
9247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9249 echo "$as_me:$LINENO: checking for $ac_header" >&5
9250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9256 else
9257 # Is the header compilable?
9258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9260 cat >conftest.$ac_ext <<_ACEOF
9261 /* confdefs.h. */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 $ac_includes_default
9267 #include <$ac_header>
9268 _ACEOF
9269 rm -f conftest.$ac_objext
9270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9271 (eval $ac_compile) 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } &&
9278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 (eval $ac_try) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest.$ac_objext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 (eval $ac_try) 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_header_compiler=yes
9291 else
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_header_compiler=no
9297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9299 echo "${ECHO_T}$ac_header_compiler" >&6
9301 # Is the header present?
9302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h. */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 #include <$ac_header>
9311 _ACEOF
9312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9314 ac_status=$?
9315 grep -v '^ *+' conftest.er1 >conftest.err
9316 rm -f conftest.er1
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } >/dev/null; then
9320 if test -s conftest.err; then
9321 ac_cpp_err=$ac_c_preproc_warn_flag
9322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9323 else
9324 ac_cpp_err=
9326 else
9327 ac_cpp_err=yes
9329 if test -z "$ac_cpp_err"; then
9330 ac_header_preproc=yes
9331 else
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_header_preproc=no
9337 rm -f conftest.err conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9339 echo "${ECHO_T}$ac_header_preproc" >&6
9341 # So? What about this header?
9342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9343 yes:no: )
9344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9348 ac_header_preproc=yes
9350 no:yes:* )
9351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9364 cat <<\_ASBOX
9365 ## ------------------------------------ ##
9366 ## Report this to wine-devel@winehq.org ##
9367 ## ------------------------------------ ##
9368 _ASBOX
9370 sed "s/^/$as_me: WARNING: /" >&2
9372 esac
9373 echo "$as_me:$LINENO: checking for $ac_header" >&5
9374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378 eval "$as_ac_Header=\$ac_header_preproc"
9380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9385 cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9387 _ACEOF
9388 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9389 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9390 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393 ac_check_lib_save_LIBS=$LIBS
9394 LIBS="-lcurses $LIBS"
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h. */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9402 /* Override any gcc2 internal prototype to avoid an error. */
9403 #ifdef __cplusplus
9404 extern "C"
9405 #endif
9406 /* We use char because int might match the return type of a gcc2
9407 builtin and then its argument prototype would still apply. */
9408 char waddch ();
9410 main ()
9412 waddch ();
9414 return 0;
9416 _ACEOF
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419 (eval $ac_link) 2>conftest.er1
9420 ac_status=$?
9421 grep -v '^ *+' conftest.er1 >conftest.err
9422 rm -f conftest.er1
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } &&
9426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 (eval $ac_try) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 (eval $ac_try) 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 ac_cv_lib_curses_waddch=yes
9439 else
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_cv_lib_curses_waddch=no
9445 rm -f conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_lib_save_LIBS
9449 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9450 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9451 if test $ac_cv_lib_curses_waddch = yes; then
9453 cat >>confdefs.h <<\_ACEOF
9454 #define HAVE_LIBCURSES 1
9455 _ACEOF
9457 CURSESLIBS="-lcurses"
9462 done
9468 done
9470 saved_libs="$LIBS"
9471 LIBS="$CURSESLIBS $LIBS"
9474 for ac_func in getbkgd resizeterm
9476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9477 echo "$as_me:$LINENO: checking for $ac_func" >&5
9478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9479 if eval "test \"\${$as_ac_var+set}\" = set"; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9490 #define $ac_func innocuous_$ac_func
9492 /* System header to define __stub macros and hopefully few prototypes,
9493 which can conflict with char $ac_func (); below.
9494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9495 <limits.h> exists even on freestanding compilers. */
9497 #ifdef __STDC__
9498 # include <limits.h>
9499 #else
9500 # include <assert.h>
9501 #endif
9503 #undef $ac_func
9505 /* Override any gcc2 internal prototype to avoid an error. */
9506 #ifdef __cplusplus
9507 extern "C"
9509 #endif
9510 /* We use char because int might match the return type of a gcc2
9511 builtin and then its argument prototype would still apply. */
9512 char $ac_func ();
9513 /* The GNU C library defines this for functions which it implements
9514 to always fail with ENOSYS. Some functions are actually named
9515 something starting with __ and the normal name is an alias. */
9516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9517 choke me
9518 #else
9519 char (*f) () = $ac_func;
9520 #endif
9521 #ifdef __cplusplus
9523 #endif
9526 main ()
9528 return f != $ac_func;
9530 return 0;
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535 (eval $ac_link) 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest$ac_exeext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 eval "$as_ac_var=yes"
9555 else
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 eval "$as_ac_var=no"
9561 rm -f conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9566 if test `eval echo '${'$as_ac_var'}'` = yes; then
9567 cat >>confdefs.h <<_ACEOF
9568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9569 _ACEOF
9572 done
9574 LIBS="$saved_libs"
9578 # Extract the first word of "sane-config", so it can be a program name with args.
9579 set dummy sane-config; ac_word=$2
9580 echo "$as_me:$LINENO: checking for $ac_word" >&5
9581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9582 if test "${ac_cv_prog_sane_devel+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585 if test -n "$sane_devel"; then
9586 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9587 else
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $PATH
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9595 ac_cv_prog_sane_devel="sane-config"
9596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9599 done
9600 done
9602 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9605 sane_devel=$ac_cv_prog_sane_devel
9606 if test -n "$sane_devel"; then
9607 echo "$as_me:$LINENO: result: $sane_devel" >&5
9608 echo "${ECHO_T}$sane_devel" >&6
9609 else
9610 echo "$as_me:$LINENO: result: no" >&5
9611 echo "${ECHO_T}no" >&6
9614 if test "$sane_devel" = "no"
9615 then
9616 SANELIBS=""
9617 SANEINCL=""
9618 else
9619 SANELIBS="`$sane_devel --libs`"
9620 SANEINCL="`$sane_devel --cflags`"
9621 ac_save_CPPFLAGS="$CPPFLAGS"
9622 ac_save_LIBS="$LIBS"
9623 CPPFLAGS="$CPPFLAGS $SANEINCL"
9624 LIBS="$LIBS $SANELIBS"
9625 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9626 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9627 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9628 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9632 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9633 else
9634 # Is the header compilable?
9635 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9636 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9637 cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 $ac_includes_default
9644 #include <sane/sane.h>
9645 _ACEOF
9646 rm -f conftest.$ac_objext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9648 (eval $ac_compile) 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest.$ac_objext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 (eval $ac_try) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 ac_header_compiler=yes
9668 else
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_header_compiler=no
9674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9676 echo "${ECHO_T}$ac_header_compiler" >&6
9678 # Is the header present?
9679 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9680 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9681 cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h. */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 #include <sane/sane.h>
9688 _ACEOF
9689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } >/dev/null; then
9697 if test -s conftest.err; then
9698 ac_cpp_err=$ac_c_preproc_warn_flag
9699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9700 else
9701 ac_cpp_err=
9703 else
9704 ac_cpp_err=yes
9706 if test -z "$ac_cpp_err"; then
9707 ac_header_preproc=yes
9708 else
9709 echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9712 ac_header_preproc=no
9714 rm -f conftest.err conftest.$ac_ext
9715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9716 echo "${ECHO_T}$ac_header_preproc" >&6
9718 # So? What about this header?
9719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9720 yes:no: )
9721 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9722 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9723 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9724 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9725 ac_header_preproc=yes
9727 no:yes:* )
9728 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9729 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9730 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9731 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9732 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9733 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9734 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
9735 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
9736 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9737 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9738 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9739 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9741 cat <<\_ASBOX
9742 ## ------------------------------------ ##
9743 ## Report this to wine-devel@winehq.org ##
9744 ## ------------------------------------ ##
9745 _ASBOX
9747 sed "s/^/$as_me: WARNING: /" >&2
9749 esac
9750 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9751 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9752 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755 ac_cv_header_sane_sane_h=$ac_header_preproc
9757 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9758 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9761 if test $ac_cv_header_sane_sane_h = yes; then
9762 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9763 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9764 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767 ac_check_lib_save_LIBS=$LIBS
9768 LIBS="-lsane $LIBS"
9769 cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h. */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9776 /* Override any gcc2 internal prototype to avoid an error. */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 /* We use char because int might match the return type of a gcc2
9781 builtin and then its argument prototype would still apply. */
9782 char sane_open ();
9784 main ()
9786 sane_open ();
9788 return 0;
9790 _ACEOF
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9793 (eval $ac_link) 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 ac_cv_lib_sane_sane_open=yes
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_cv_lib_sane_sane_open=no
9819 rm -f conftest.err conftest.$ac_objext \
9820 conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9823 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9824 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9825 if test $ac_cv_lib_sane_sane_open = yes; then
9827 cat >>confdefs.h <<\_ACEOF
9828 #define HAVE_SANE 1
9829 _ACEOF
9831 else
9832 SANELIBS=""
9833 SANEINCL=""
9836 else
9837 SANELIBS=""
9838 SANEINCL=""
9842 LIBS="$ac_save_LIBS"
9843 CPPFLAGS="$ac_save_CPPFLAGS"
9849 for ac_header in unicode/ubidi.h
9851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9853 echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9860 else
9861 # Is the header compilable?
9862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9864 cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h. */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 $ac_includes_default
9871 #include <$ac_header>
9872 _ACEOF
9873 rm -f conftest.$ac_objext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9875 (eval $ac_compile) 2>conftest.er1
9876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 (eval $ac_try) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest.$ac_objext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 (eval $ac_try) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_header_compiler=yes
9895 else
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9899 ac_header_compiler=no
9901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9903 echo "${ECHO_T}$ac_header_compiler" >&6
9905 # Is the header present?
9906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9908 cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h. */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914 #include <$ac_header>
9915 _ACEOF
9916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } >/dev/null; then
9924 if test -s conftest.err; then
9925 ac_cpp_err=$ac_c_preproc_warn_flag
9926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9927 else
9928 ac_cpp_err=
9930 else
9931 ac_cpp_err=yes
9933 if test -z "$ac_cpp_err"; then
9934 ac_header_preproc=yes
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 ac_header_preproc=no
9941 rm -f conftest.err conftest.$ac_ext
9942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9943 echo "${ECHO_T}$ac_header_preproc" >&6
9945 # So? What about this header?
9946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9947 yes:no: )
9948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9952 ac_header_preproc=yes
9954 no:yes:* )
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9968 cat <<\_ASBOX
9969 ## ------------------------------------ ##
9970 ## Report this to wine-devel@winehq.org ##
9971 ## ------------------------------------ ##
9972 _ASBOX
9974 sed "s/^/$as_me: WARNING: /" >&2
9976 esac
9977 echo "$as_me:$LINENO: checking for $ac_header" >&5
9978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982 eval "$as_ac_Header=\$ac_header_preproc"
9984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9989 cat >>confdefs.h <<_ACEOF
9990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9991 _ACEOF
9995 done
9997 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9998 then
9999 saved_libs="$LIBS"
10000 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10001 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
10002 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
10003 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 #include <unicode/ubidi.h>
10012 main ()
10014 ubidi_open()
10016 return 0;
10018 _ACEOF
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>conftest.er1
10022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; } &&
10034 { ac_try='test -s conftest$ac_exeext'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; }; then
10041 cat >>confdefs.h <<\_ACEOF
10042 #define HAVE_ICU 1
10043 _ACEOF
10045 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10047 else
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10052 rm -f conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054 LIBS="$saved_libs"
10057 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10058 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10059 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062 ac_check_lib_save_LIBS=$LIBS
10063 LIBS="-lfreetype $X_LIBS $LIBS"
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h. */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10071 /* Override any gcc2 internal prototype to avoid an error. */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 /* We use char because int might match the return type of a gcc2
10076 builtin and then its argument prototype would still apply. */
10077 char FT_Init_FreeType ();
10079 main ()
10081 FT_Init_FreeType ();
10083 return 0;
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; } &&
10101 { ac_try='test -s conftest$ac_exeext'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10107 ac_cv_lib_freetype_FT_Init_FreeType=yes
10108 else
10109 echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10112 ac_cv_lib_freetype_FT_Init_FreeType=no
10114 rm -f conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
10116 LIBS=$ac_check_lib_save_LIBS
10118 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10119 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10120 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10121 ft_lib=yes
10122 else
10123 ft_lib=no
10126 if test "$ft_lib" = "no"
10127 then
10128 FREETYPEINCL=""
10129 wine_cv_msg_freetype=no
10130 else
10131 # Extract the first word of "freetype-config", so it can be a program name with args.
10132 set dummy freetype-config; ac_word=$2
10133 echo "$as_me:$LINENO: checking for $ac_word" >&5
10134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10135 if test "${ac_cv_prog_ft_devel+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138 if test -n "$ft_devel"; then
10139 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10140 else
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10148 ac_cv_prog_ft_devel="freetype-config"
10149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 break 2
10152 done
10153 done
10155 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10158 ft_devel=$ac_cv_prog_ft_devel
10159 if test -n "$ft_devel"; then
10160 echo "$as_me:$LINENO: result: $ft_devel" >&5
10161 echo "${ECHO_T}$ft_devel" >&6
10162 else
10163 echo "$as_me:$LINENO: result: no" >&5
10164 echo "${ECHO_T}no" >&6
10167 if test "$ft_devel" = "no"
10168 then
10169 # Extract the first word of "freetype2-config", so it can be a program name with args.
10170 set dummy freetype2-config; ac_word=$2
10171 echo "$as_me:$LINENO: checking for $ac_word" >&5
10172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10173 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176 if test -n "$ft_devel2"; then
10177 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10178 else
10179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180 for as_dir in $PATH
10182 IFS=$as_save_IFS
10183 test -z "$as_dir" && as_dir=.
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10186 ac_cv_prog_ft_devel2="freetype2-config"
10187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10188 break 2
10190 done
10191 done
10193 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10196 ft_devel2=$ac_cv_prog_ft_devel2
10197 if test -n "$ft_devel2"; then
10198 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10199 echo "${ECHO_T}$ft_devel2" >&6
10200 else
10201 echo "$as_me:$LINENO: result: no" >&5
10202 echo "${ECHO_T}no" >&6
10205 if test "$ft_devel2" = "freetype2-config"
10206 then
10207 ft_devel=$ft_devel2
10210 if test "$ft_devel" = "no"
10211 then
10212 FREETYPEINCL=""
10213 wine_cv_msg_freetype=yes
10214 else
10215 FREETYPEINCL=`$ft_devel --cflags`
10216 ac_save_CPPFLAGS="$CPPFLAGS"
10217 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10227 for ac_header in ft2build.h \
10228 freetype/freetype.h \
10229 freetype/ftglyph.h \
10230 freetype/tttables.h \
10231 freetype/ftnames.h \
10232 freetype/ftsnames.h \
10233 freetype/ttnameid.h \
10234 freetype/ftoutln.h \
10235 freetype/internal/sfnt.h
10237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10238 echo "$as_me:$LINENO: checking for $ac_header" >&5
10239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h. */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 #if HAVE_FT2BUILD_H
10250 #include <ft2build.h>
10251 #endif
10253 #include <$ac_header>
10254 _ACEOF
10255 rm -f conftest.$ac_objext
10256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10257 (eval $ac_compile) 2>conftest.er1
10258 ac_status=$?
10259 grep -v '^ *+' conftest.er1 >conftest.err
10260 rm -f conftest.er1
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; } &&
10270 { ac_try='test -s conftest.$ac_objext'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 eval "$as_ac_Header=yes"
10277 else
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 eval "$as_ac_Header=no"
10283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10288 cat >>confdefs.h <<_ACEOF
10289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10290 _ACEOF
10294 done
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 #include <ft2build.h>
10303 #include <freetype/fttrigon.h>
10304 _ACEOF
10305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } >/dev/null; then
10313 if test -s conftest.err; then
10314 ac_cpp_err=$ac_c_preproc_warn_flag
10315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10316 else
10317 ac_cpp_err=
10319 else
10320 ac_cpp_err=yes
10322 if test -z "$ac_cpp_err"; then
10324 cat >>confdefs.h <<\_ACEOF
10325 #define HAVE_FREETYPE_FTTRIGON_H 1
10326 _ACEOF
10328 wine_cv_fttrigon=yes
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 wine_cv_fttrigon=no
10335 rm -f conftest.err conftest.$ac_ext
10336 CPPFLAGS="$ac_save_CPPFLAGS"
10337 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10338 then
10340 cat >>confdefs.h <<\_ACEOF
10341 #define HAVE_FREETYPE 1
10342 _ACEOF
10344 wine_cv_msg_freetype=no
10345 else
10346 FREETYPEINCL=""
10347 wine_cv_msg_freetype=yes
10353 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10354 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10355 if test "${ac_cv_c_ppdev+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358 cat >conftest.$ac_ext <<_ACEOF
10359 /* confdefs.h. */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10364 #include <linux/ppdev.h>
10366 main ()
10368 ioctl (1,PPCLAIM,0)
10370 return 0;
10372 _ACEOF
10373 rm -f conftest.$ac_objext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10375 (eval $ac_compile) 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_c_ppdev="yes"
10395 else
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10399 ac_cv_c_ppdev="no"
10401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10404 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10405 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10406 if test "$ac_cv_c_ppdev" = "yes"
10407 then
10409 cat >>confdefs.h <<\_ACEOF
10410 #define HAVE_PPDEV 1
10411 _ACEOF
10415 echo "$as_me:$LINENO: checking for va_copy" >&5
10416 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10417 if test "${ac_cv_c_va_copy+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h. */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 #include <stdarg.h>
10428 main ()
10430 va_list ap1, ap2;
10431 va_copy(ap1,ap2);
10434 return 0;
10436 _ACEOF
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10439 (eval $ac_link) 2>conftest.er1
10440 ac_status=$?
10441 grep -v '^ *+' conftest.er1 >conftest.err
10442 rm -f conftest.er1
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; } &&
10452 { ac_try='test -s conftest$ac_exeext'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }; then
10458 ac_cv_c_va_copy="yes"
10459 else
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10463 ac_cv_c_va_copy="no"
10465 rm -f conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10469 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10470 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10471 if test "$ac_cv_c_va_copy" = "yes"
10472 then
10474 cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_VA_COPY 1
10476 _ACEOF
10479 echo "$as_me:$LINENO: checking for __va_copy" >&5
10480 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10481 if test "${ac_cv_c___va_copy+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484 cat >conftest.$ac_ext <<_ACEOF
10485 /* confdefs.h. */
10486 _ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10490 #include <stdarg.h>
10492 main ()
10494 va_list ap1, ap2;
10495 __va_copy(ap1,ap2);
10498 return 0;
10500 _ACEOF
10501 rm -f conftest.$ac_objext conftest$ac_exeext
10502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10503 (eval $ac_link) 2>conftest.er1
10504 ac_status=$?
10505 grep -v '^ *+' conftest.er1 >conftest.err
10506 rm -f conftest.er1
10507 cat conftest.err >&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
10510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try='test -s conftest$ac_exeext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_cv_c___va_copy="yes"
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_cv_c___va_copy="no"
10529 rm -f conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10533 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10534 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10535 if test "$ac_cv_c___va_copy" = "yes"
10536 then
10538 cat >>confdefs.h <<\_ACEOF
10539 #define HAVE___VA_COPY 1
10540 _ACEOF
10544 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10545 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10546 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 else
10549 cat >conftest.$ac_ext <<_ACEOF
10550 /* confdefs.h. */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 #include <setjmp.h>
10557 main ()
10559 sigjmp_buf buf;
10560 sigsetjmp( buf, 1 );
10561 siglongjmp( buf, 1 );
10563 return 0;
10565 _ACEOF
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568 (eval $ac_link) 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest$ac_exeext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_cv_c_sigsetjmp="yes"
10588 else
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 ac_cv_c_sigsetjmp="no"
10594 rm -f conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10598 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10599 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10600 if test "$ac_cv_c_sigsetjmp" = "yes"
10601 then
10603 cat >>confdefs.h <<\_ACEOF
10604 #define HAVE_SIGSETJMP 1
10605 _ACEOF
10609 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10610 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10611 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614 cat >conftest.$ac_ext <<_ACEOF
10615 /* confdefs.h. */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 #define _GNU_SOURCE
10621 #include <pthread.h>
10624 main ()
10626 if ((pthread_rwlock_t *) 0)
10627 return 0;
10628 if (sizeof (pthread_rwlock_t))
10629 return 0;
10631 return 0;
10633 _ACEOF
10634 rm -f conftest.$ac_objext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try='test -s conftest.$ac_objext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_type_pthread_rwlock_t=yes
10656 else
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 ac_cv_type_pthread_rwlock_t=no
10662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10664 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10665 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10666 if test $ac_cv_type_pthread_rwlock_t = yes; then
10668 cat >>confdefs.h <<_ACEOF
10669 #define HAVE_PTHREAD_RWLOCK_T 1
10670 _ACEOF
10674 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10675 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10676 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h. */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 #define _GNU_SOURCE
10686 #include <pthread.h>
10689 main ()
10691 if ((pthread_rwlockattr_t *) 0)
10692 return 0;
10693 if (sizeof (pthread_rwlockattr_t))
10694 return 0;
10696 return 0;
10698 _ACEOF
10699 rm -f conftest.$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701 (eval $ac_compile) 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_type_pthread_rwlockattr_t=yes
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_cv_type_pthread_rwlockattr_t=no
10727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10729 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10730 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10731 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10733 cat >>confdefs.h <<_ACEOF
10734 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10735 _ACEOF
10741 ac_save_LIBS="$LIBS"
10742 LIBS="$LIBS $LIBPTHREAD"
10744 for ac_func in pthread_getattr_np
10746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10747 echo "$as_me:$LINENO: checking for $ac_func" >&5
10748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10749 if eval "test \"\${$as_ac_var+set}\" = set"; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752 cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h. */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10760 #define $ac_func innocuous_$ac_func
10762 /* System header to define __stub macros and hopefully few prototypes,
10763 which can conflict with char $ac_func (); below.
10764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10765 <limits.h> exists even on freestanding compilers. */
10767 #ifdef __STDC__
10768 # include <limits.h>
10769 #else
10770 # include <assert.h>
10771 #endif
10773 #undef $ac_func
10775 /* Override any gcc2 internal prototype to avoid an error. */
10776 #ifdef __cplusplus
10777 extern "C"
10779 #endif
10780 /* We use char because int might match the return type of a gcc2
10781 builtin and then its argument prototype would still apply. */
10782 char $ac_func ();
10783 /* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10787 choke me
10788 #else
10789 char (*f) () = $ac_func;
10790 #endif
10791 #ifdef __cplusplus
10793 #endif
10796 main ()
10798 return f != $ac_func;
10800 return 0;
10802 _ACEOF
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805 (eval $ac_link) 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; } &&
10818 { ac_try='test -s conftest$ac_exeext'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
10824 eval "$as_ac_var=yes"
10825 else
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 eval "$as_ac_var=no"
10831 rm -f conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
10834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10836 if test `eval echo '${'$as_ac_var'}'` = yes; then
10837 cat >>confdefs.h <<_ACEOF
10838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10839 _ACEOF
10842 done
10844 LIBS="$ac_save_LIBS"
10849 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10853 echo "$as_me:$LINENO: checking for $ac_header" >&5
10854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10860 else
10861 # Is the header compilable?
10862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h. */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 $ac_includes_default
10871 #include <$ac_header>
10872 _ACEOF
10873 rm -f conftest.$ac_objext
10874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10875 (eval $ac_compile) 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest.$ac_objext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_header_compiler=yes
10895 else
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 ac_header_compiler=no
10901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10903 echo "${ECHO_T}$ac_header_compiler" >&6
10905 # Is the header present?
10906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 #include <$ac_header>
10915 _ACEOF
10916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } >/dev/null; then
10924 if test -s conftest.err; then
10925 ac_cpp_err=$ac_c_preproc_warn_flag
10926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10927 else
10928 ac_cpp_err=
10930 else
10931 ac_cpp_err=yes
10933 if test -z "$ac_cpp_err"; then
10934 ac_header_preproc=yes
10935 else
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 ac_header_preproc=no
10941 rm -f conftest.err conftest.$ac_ext
10942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10943 echo "${ECHO_T}$ac_header_preproc" >&6
10945 # So? What about this header?
10946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10947 yes:no: )
10948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10952 ac_header_preproc=yes
10954 no:yes:* )
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10968 cat <<\_ASBOX
10969 ## ------------------------------------ ##
10970 ## Report this to wine-devel@winehq.org ##
10971 ## ------------------------------------ ##
10972 _ASBOX
10974 sed "s/^/$as_me: WARNING: /" >&2
10976 esac
10977 echo "$as_me:$LINENO: checking for $ac_header" >&5
10978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 else
10982 eval "$as_ac_Header=\$ac_header_preproc"
10984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10989 cat >>confdefs.h <<_ACEOF
10990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10991 _ACEOF
10992 break
10995 done
10998 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10999 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11000 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 else
11003 cat >conftest.$ac_ext <<_ACEOF
11004 /* confdefs.h. */
11005 _ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11010 #if defined(HAVE_SYS_SOUNDCARD_H)
11011 #include <sys/soundcard.h>
11012 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11013 #include <machine/soundcard.h>
11014 #elif defined(HAVE_SOUNDCARD_H)
11015 #include <soundcard.h>
11016 #endif
11019 main ()
11023 /* check for one of the Open Sound System specific SNDCTL_ defines */
11024 #if !defined(SNDCTL_DSP_STEREO)
11025 #error No open sound system
11026 #endif
11029 return 0;
11031 _ACEOF
11032 rm -f conftest.$ac_objext
11033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11034 (eval $ac_compile) 2>conftest.er1
11035 ac_status=$?
11036 grep -v '^ *+' conftest.er1 >conftest.err
11037 rm -f conftest.er1
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } &&
11041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest.$ac_objext'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 ac_cv_c_opensoundsystem="yes"
11054 else
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 ac_cv_c_opensoundsystem="no"
11060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11062 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11063 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11065 if test "$ac_cv_c_opensoundsystem" = "yes"
11066 then
11068 cat >>confdefs.h <<\_ACEOF
11069 #define HAVE_OSS 1
11070 _ACEOF
11074 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11075 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11076 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h. */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11086 #if defined(HAVE_SYS_SOUNDCARD_H)
11087 #include <sys/soundcard.h>
11088 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11089 #include <machine/soundcard.h>
11090 #elif defined(HAVE_SOUNDCARD_H)
11091 #include <soundcard.h>
11092 #endif
11095 main ()
11099 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11100 #if !defined(SNDCTL_SEQ_SYNC)
11101 #error No open sound system MIDI interface
11102 #endif
11105 return 0;
11107 _ACEOF
11108 rm -f conftest.$ac_objext
11109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11110 (eval $ac_compile) 2>conftest.er1
11111 ac_status=$?
11112 grep -v '^ *+' conftest.er1 >conftest.err
11113 rm -f conftest.er1
11114 cat conftest.err >&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } &&
11117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; } &&
11123 { ac_try='test -s conftest.$ac_objext'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 ac_cv_c_opensoundsystem_midi="yes"
11130 else
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11134 ac_cv_c_opensoundsystem_midi="no"
11136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11138 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11139 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11141 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11142 then
11144 cat >>confdefs.h <<\_ACEOF
11145 #define HAVE_OSS_MIDI 1
11146 _ACEOF
11150 # Extract the first word of "artsc-config", so it can be a program name with args.
11151 set dummy artsc-config; ac_word=$2
11152 echo "$as_me:$LINENO: checking for $ac_word" >&5
11153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11154 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157 case $ARTSCCONFIG in
11158 [\\/]* | ?:[\\/]*)
11159 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11165 IFS=$as_save_IFS
11166 test -z "$as_dir" && as_dir=.
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11169 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11171 break 2
11173 done
11174 done
11177 esac
11179 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11181 if test -n "$ARTSCCONFIG"; then
11182 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11183 echo "${ECHO_T}$ARTSCCONFIG" >&6
11184 else
11185 echo "$as_me:$LINENO: result: no" >&5
11186 echo "${ECHO_T}no" >&6
11189 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11190 then
11191 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags | sed 's/\-pthread//'`
11192 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11193 save_CFLAGS="$CFLAGS"
11194 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11195 cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h. */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 #include <artsc.h>
11203 main ()
11205 arts_stream_t stream;
11207 return 0;
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212 (eval $ac_compile) 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11225 { ac_try='test -s conftest.$ac_objext'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 ARTSLIBS=$ARTSC_LIBS
11233 ARTSINCL=$ARTSC_CFLAGS
11236 cat >>confdefs.h <<\_ACEOF
11237 #define HAVE_ARTS 1
11238 _ACEOF
11240 else
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11246 CFLAGS="$save_CFLAGS"
11249 ALSALIBS=""
11253 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11257 echo "$as_me:$LINENO: checking for $ac_header" >&5
11258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11264 else
11265 # Is the header compilable?
11266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11268 cat >conftest.$ac_ext <<_ACEOF
11269 /* confdefs.h. */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274 $ac_includes_default
11275 #include <$ac_header>
11276 _ACEOF
11277 rm -f conftest.$ac_objext
11278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11279 (eval $ac_compile) 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } &&
11286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest.$ac_objext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 ac_header_compiler=yes
11299 else
11300 echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11303 ac_header_compiler=no
11305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11307 echo "${ECHO_T}$ac_header_compiler" >&6
11309 # Is the header present?
11310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11312 cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h. */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 #include <$ac_header>
11319 _ACEOF
11320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } >/dev/null; then
11328 if test -s conftest.err; then
11329 ac_cpp_err=$ac_c_preproc_warn_flag
11330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11331 else
11332 ac_cpp_err=
11334 else
11335 ac_cpp_err=yes
11337 if test -z "$ac_cpp_err"; then
11338 ac_header_preproc=yes
11339 else
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ac_header_preproc=no
11345 rm -f conftest.err conftest.$ac_ext
11346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11347 echo "${ECHO_T}$ac_header_preproc" >&6
11349 # So? What about this header?
11350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11351 yes:no: )
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11356 ac_header_preproc=yes
11358 no:yes:* )
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11372 cat <<\_ASBOX
11373 ## ------------------------------------ ##
11374 ## Report this to wine-devel@winehq.org ##
11375 ## ------------------------------------ ##
11376 _ASBOX
11378 sed "s/^/$as_me: WARNING: /" >&2
11380 esac
11381 echo "$as_me:$LINENO: checking for $ac_header" >&5
11382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386 eval "$as_ac_Header=\$ac_header_preproc"
11388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11393 cat >>confdefs.h <<_ACEOF
11394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11395 _ACEOF
11396 break
11399 done
11401 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11402 then
11403 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11404 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11405 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408 ac_check_lib_save_LIBS=$LIBS
11409 LIBS="-lasound $LIBS"
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h. */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11417 /* Override any gcc2 internal prototype to avoid an error. */
11418 #ifdef __cplusplus
11419 extern "C"
11420 #endif
11421 /* We use char because int might match the return type of a gcc2
11422 builtin and then its argument prototype would still apply. */
11423 char snd_pcm_open ();
11425 main ()
11427 snd_pcm_open ();
11429 return 0;
11431 _ACEOF
11432 rm -f conftest.$ac_objext conftest$ac_exeext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434 (eval $ac_link) 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } &&
11441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; } &&
11447 { ac_try='test -s conftest$ac_exeext'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
11453 ac_cv_lib_asound_snd_pcm_open=yes
11454 else
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 ac_cv_lib_asound_snd_pcm_open=no
11460 rm -f conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11464 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11465 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11466 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11468 cat >>confdefs.h <<\_ACEOF
11469 #define HAVE_ALSA 1
11470 _ACEOF
11472 ALSALIBS="-lasound"
11478 AUDIOIOLIBS=""
11481 for ac_header in libaudioio.h
11483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11485 echo "$as_me:$LINENO: checking for $ac_header" >&5
11486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11492 else
11493 # Is the header compilable?
11494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 $ac_includes_default
11503 #include <$ac_header>
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507 (eval $ac_compile) 2>conftest.er1
11508 ac_status=$?
11509 grep -v '^ *+' conftest.er1 >conftest.err
11510 rm -f conftest.er1
11511 cat conftest.err >&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try='test -s conftest.$ac_objext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 ac_header_compiler=yes
11527 else
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 ac_header_compiler=no
11533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11535 echo "${ECHO_T}$ac_header_compiler" >&6
11537 # Is the header present?
11538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 #include <$ac_header>
11547 _ACEOF
11548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } >/dev/null; then
11556 if test -s conftest.err; then
11557 ac_cpp_err=$ac_c_preproc_warn_flag
11558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11559 else
11560 ac_cpp_err=
11562 else
11563 ac_cpp_err=yes
11565 if test -z "$ac_cpp_err"; then
11566 ac_header_preproc=yes
11567 else
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 ac_header_preproc=no
11573 rm -f conftest.err conftest.$ac_ext
11574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11575 echo "${ECHO_T}$ac_header_preproc" >&6
11577 # So? What about this header?
11578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11579 yes:no: )
11580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11584 ac_header_preproc=yes
11586 no:yes:* )
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11600 cat <<\_ASBOX
11601 ## ------------------------------------ ##
11602 ## Report this to wine-devel@winehq.org ##
11603 ## ------------------------------------ ##
11604 _ASBOX
11606 sed "s/^/$as_me: WARNING: /" >&2
11608 esac
11609 echo "$as_me:$LINENO: checking for $ac_header" >&5
11610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614 eval "$as_ac_Header=\$ac_header_preproc"
11616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11621 cat >>confdefs.h <<_ACEOF
11622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11623 _ACEOF
11624 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11625 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11626 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629 ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-laudioio $LIBS"
11631 cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h. */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11638 /* Override any gcc2 internal prototype to avoid an error. */
11639 #ifdef __cplusplus
11640 extern "C"
11641 #endif
11642 /* We use char because int might match the return type of a gcc2
11643 builtin and then its argument prototype would still apply. */
11644 char AudioIOGetVersion ();
11646 main ()
11648 AudioIOGetVersion ();
11650 return 0;
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655 (eval $ac_link) 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; } &&
11668 { ac_try='test -s conftest$ac_exeext'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; }; then
11674 ac_cv_lib_audioio_AudioIOGetVersion=yes
11675 else
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11679 ac_cv_lib_audioio_AudioIOGetVersion=no
11681 rm -f conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683 LIBS=$ac_check_lib_save_LIBS
11685 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11686 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11687 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11688 AUDIOIOLIBS="-laudioio"
11690 cat >>confdefs.h <<\_ACEOF
11691 #define HAVE_LIBAUDIOIO 1
11692 _ACEOF
11698 done
11703 for ac_header in capi20.h
11705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11707 echo "$as_me:$LINENO: checking for $ac_header" >&5
11708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11714 else
11715 # Is the header compilable?
11716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h. */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 $ac_includes_default
11725 #include <$ac_header>
11726 _ACEOF
11727 rm -f conftest.$ac_objext
11728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729 (eval $ac_compile) 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest.$ac_objext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 ac_header_compiler=yes
11749 else
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 ac_header_compiler=no
11755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11757 echo "${ECHO_T}$ac_header_compiler" >&6
11759 # Is the header present?
11760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 #include <$ac_header>
11769 _ACEOF
11770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11772 ac_status=$?
11773 grep -v '^ *+' conftest.er1 >conftest.err
11774 rm -f conftest.er1
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } >/dev/null; then
11778 if test -s conftest.err; then
11779 ac_cpp_err=$ac_c_preproc_warn_flag
11780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11781 else
11782 ac_cpp_err=
11784 else
11785 ac_cpp_err=yes
11787 if test -z "$ac_cpp_err"; then
11788 ac_header_preproc=yes
11789 else
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 ac_header_preproc=no
11795 rm -f conftest.err conftest.$ac_ext
11796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11797 echo "${ECHO_T}$ac_header_preproc" >&6
11799 # So? What about this header?
11800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11801 yes:no: )
11802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11806 ac_header_preproc=yes
11808 no:yes:* )
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11822 cat <<\_ASBOX
11823 ## ------------------------------------ ##
11824 ## Report this to wine-devel@winehq.org ##
11825 ## ------------------------------------ ##
11826 _ASBOX
11828 sed "s/^/$as_me: WARNING: /" >&2
11830 esac
11831 echo "$as_me:$LINENO: checking for $ac_header" >&5
11832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836 eval "$as_ac_Header=\$ac_header_preproc"
11838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11843 cat >>confdefs.h <<_ACEOF
11844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11845 _ACEOF
11848 for ac_header in linux/capi.h
11850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11852 echo "$as_me:$LINENO: checking for $ac_header" >&5
11853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11859 else
11860 # Is the header compilable?
11861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h. */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 $ac_includes_default
11870 #include <$ac_header>
11871 _ACEOF
11872 rm -f conftest.$ac_objext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11874 (eval $ac_compile) 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; } &&
11887 { ac_try='test -s conftest.$ac_objext'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; }; then
11893 ac_header_compiler=yes
11894 else
11895 echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11898 ac_header_compiler=no
11900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11902 echo "${ECHO_T}$ac_header_compiler" >&6
11904 # Is the header present?
11905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h. */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 #include <$ac_header>
11914 _ACEOF
11915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11917 ac_status=$?
11918 grep -v '^ *+' conftest.er1 >conftest.err
11919 rm -f conftest.er1
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } >/dev/null; then
11923 if test -s conftest.err; then
11924 ac_cpp_err=$ac_c_preproc_warn_flag
11925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11926 else
11927 ac_cpp_err=
11929 else
11930 ac_cpp_err=yes
11932 if test -z "$ac_cpp_err"; then
11933 ac_header_preproc=yes
11934 else
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_header_preproc=no
11940 rm -f conftest.err conftest.$ac_ext
11941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11942 echo "${ECHO_T}$ac_header_preproc" >&6
11944 # So? What about this header?
11945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11946 yes:no: )
11947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11951 ac_header_preproc=yes
11953 no:yes:* )
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11967 cat <<\_ASBOX
11968 ## ------------------------------------ ##
11969 ## Report this to wine-devel@winehq.org ##
11970 ## ------------------------------------ ##
11971 _ASBOX
11973 sed "s/^/$as_me: WARNING: /" >&2
11975 esac
11976 echo "$as_me:$LINENO: checking for $ac_header" >&5
11977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 else
11981 eval "$as_ac_Header=\$ac_header_preproc"
11983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11988 cat >>confdefs.h <<_ACEOF
11989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11990 _ACEOF
11992 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11993 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
11994 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997 ac_check_lib_save_LIBS=$LIBS
11998 LIBS="-lcapi20 $LIBS"
11999 cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h. */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12006 /* Override any gcc2 internal prototype to avoid an error. */
12007 #ifdef __cplusplus
12008 extern "C"
12009 #endif
12010 /* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012 char capi20_register ();
12014 main ()
12016 capi20_register ();
12018 return 0;
12020 _ACEOF
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_cv_lib_capi20_capi20_register=yes
12043 else
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ac_cv_lib_capi20_capi20_register=no
12049 rm -f conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051 LIBS=$ac_check_lib_save_LIBS
12053 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12054 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12055 if test $ac_cv_lib_capi20_capi20_register = yes; then
12058 cat >>confdefs.h <<\_ACEOF
12059 #define HAVE_CAPI4LINUX 1
12060 _ACEOF
12062 CAPI4LINUXLIBS="-lcapi20"
12070 done
12075 done
12079 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12080 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12081 if test "${ac_cv_mmap64_works+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084 if test "$cross_compiling" = yes; then
12085 ac_cv_mmap64_works="no"
12086 else
12087 cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h. */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12094 #define _FILE_OFFSET_BITS 64
12095 #include <stdio.h>
12096 #include <unistd.h>
12097 #include <fcntl.h>
12098 #include <sys/mman.h>
12099 #include <errno.h>
12101 int main(int argc,char **argv) {
12102 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12103 if (fd == -1) exit(1);
12105 unlink("conftest.map");
12107 write(fd,"test",4);
12109 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12110 (errno == EINVAL)
12112 exit(1);
12114 close(fd);
12115 fprintf(stderr,"success!\n");
12116 exit(0);
12120 _ACEOF
12121 rm -f conftest$ac_exeext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123 (eval $ac_link) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 ac_cv_mmap64_works="yes"
12133 else
12134 echo "$as_me: program exited with status $ac_status" >&5
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12138 ( exit $ac_status )
12139 ac_cv_mmap64_works="no"
12141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12144 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12145 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12147 if test "$ac_cv_mmap64_works" = "yes"
12148 then
12150 cat >>confdefs.h <<\_ACEOF
12151 #define _FILE_OFFSET_BITS 64
12152 _ACEOF
12157 EXTRACFLAGS=""
12159 if test "x${GCC}" = "xyes"
12160 then
12161 EXTRACFLAGS="-Wall -pipe"
12163 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12164 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12165 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168 if test "$cross_compiling" = yes; then
12169 ac_cv_c_gcc_strength_bug="yes"
12170 else
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h. */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12178 int L[4] = {0,1,2,3};
12179 int main(void) {
12180 static int Array[3];
12181 unsigned int B = 3;
12182 int i;
12183 for(i=0; i<B; i++) Array[i] = i - 3;
12184 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12185 L[i] = 4;
12187 exit( Array[1] != -2 || L[2] != 3);
12189 _ACEOF
12190 rm -f conftest$ac_exeext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192 (eval $ac_link) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 ac_cv_c_gcc_strength_bug="no"
12202 else
12203 echo "$as_me: program exited with status $ac_status" >&5
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12207 ( exit $ac_status )
12208 ac_cv_c_gcc_strength_bug="yes"
12210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12213 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12214 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12215 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12216 then
12217 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12220 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12221 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12222 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225 ac_wine_try_cflags_saved=$CFLAGS
12226 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h. */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12235 main ()
12239 return 0;
12241 _ACEOF
12242 rm -f conftest.$ac_objext conftest$ac_exeext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12244 (eval $ac_link) 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_c_gcc_stack_boundary="yes"
12264 else
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ac_cv_c_gcc_stack_boundary="no"
12270 rm -f conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12272 CFLAGS=$ac_wine_try_cflags_saved
12274 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12275 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12276 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12277 then
12278 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12281 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12282 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12283 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286 ac_wine_try_cflags_saved=$CFLAGS
12287 CFLAGS="$CFLAGS -fno-strict-aliasing"
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h. */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12296 main ()
12300 return 0;
12302 _ACEOF
12303 rm -f conftest.$ac_objext conftest$ac_exeext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305 (eval $ac_link) 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; } &&
12318 { ac_try='test -s conftest$ac_exeext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 ac_cv_c_gcc_no_strict_aliasing="yes"
12325 else
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12329 ac_cv_c_gcc_no_strict_aliasing="no"
12331 rm -f conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333 CFLAGS=$ac_wine_try_cflags_saved
12335 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12336 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12337 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12338 then
12339 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12342 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12343 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12344 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 else
12347 ac_wine_try_cflags_saved=$CFLAGS
12348 CFLAGS="$CFLAGS -gstabs+"
12349 cat >conftest.$ac_ext <<_ACEOF
12350 /* confdefs.h. */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12357 main ()
12361 return 0;
12363 _ACEOF
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12366 (eval $ac_link) 2>conftest.er1
12367 ac_status=$?
12368 grep -v '^ *+' conftest.er1 >conftest.err
12369 rm -f conftest.er1
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } &&
12373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest$ac_exeext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_c_gcc_gstabs="yes"
12386 else
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12390 ac_cv_c_gcc_gstabs="no"
12392 rm -f conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
12394 CFLAGS=$ac_wine_try_cflags_saved
12396 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12397 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12398 if test "$ac_cv_c_gcc_gstabs" = "yes"
12399 then
12400 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12403 saved_CFLAGS="$CFLAGS"
12404 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12405 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12406 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12407 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410 cat >conftest.$ac_ext <<_ACEOF
12411 /* confdefs.h. */
12412 _ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12416 #include <string.h>
12418 main ()
12422 return 0;
12424 _ACEOF
12425 rm -f conftest.$ac_objext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427 (eval $ac_compile) 2>conftest.er1
12428 ac_status=$?
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_cv_c_string_h_warnings=no
12447 else
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_cv_c_string_h_warnings=yes
12453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12455 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12456 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12457 CFLAGS="$saved_CFLAGS"
12458 if test "$ac_cv_c_string_h_warnings" = "no"
12459 then
12460 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12465 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12466 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12467 if test "${ac_cv_asm_func_def+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 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"); }
12479 main ()
12483 return 0;
12485 _ACEOF
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488 (eval $ac_link) 2>conftest.er1
12489 ac_status=$?
12490 grep -v '^ *+' conftest.er1 >conftest.err
12491 rm -f conftest.er1
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } &&
12495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try='test -s conftest$ac_exeext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_asm_func_def=".def"
12508 else
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12521 main ()
12525 return 0;
12527 _ACEOF
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530 (eval $ac_link) 2>conftest.er1
12531 ac_status=$?
12532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest$ac_exeext'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 ac_cv_asm_func_def=".type @function"
12550 else
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h. */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12560 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12563 main ()
12567 return 0;
12569 _ACEOF
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12572 (eval $ac_link) 2>conftest.er1
12573 ac_status=$?
12574 grep -v '^ *+' conftest.er1 >conftest.err
12575 rm -f conftest.er1
12576 cat conftest.err >&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } &&
12579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest$ac_exeext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 ac_cv_asm_func_def=".type 2"
12592 else
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12596 ac_cv_asm_func_def="unknown"
12598 rm -f conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12601 rm -f conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12604 rm -f conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12607 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12608 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12612 case "$ac_cv_asm_func_def" in
12613 ".def")
12614 cat >>confdefs.h <<\_ACEOF
12615 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12616 _ACEOF
12618 ".type @function")
12619 cat >>confdefs.h <<\_ACEOF
12620 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12621 _ACEOF
12623 ".type 2")
12624 cat >>confdefs.h <<\_ACEOF
12625 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12626 _ACEOF
12629 cat >>confdefs.h <<\_ACEOF
12630 #define __ASM_FUNC(name) ""
12631 _ACEOF
12633 esac
12636 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12637 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12638 if test "${ac_cv_c_extern_prefix+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641 cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h. */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12648 extern int ac_test;
12650 main ()
12652 if (ac_test) return 1
12654 return 0;
12656 _ACEOF
12657 rm -f conftest.$ac_objext conftest$ac_exeext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12659 (eval $ac_link) 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest$ac_exeext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_cv_c_extern_prefix="yes"
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 ac_cv_c_extern_prefix="no"
12685 rm -f conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12688 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12689 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12693 if test "$ac_cv_c_extern_prefix" = "yes"
12694 then
12695 cat >>confdefs.h <<\_ACEOF
12696 #define __ASM_NAME(name) "_" name
12697 _ACEOF
12699 else
12700 cat >>confdefs.h <<\_ACEOF
12701 #define __ASM_NAME(name) name
12702 _ACEOF
12707 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12708 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
12709 if test "${ac_cv_c_asm_string+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h. */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
12721 main ()
12725 return 0;
12727 _ACEOF
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12730 (eval $ac_link) 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
12737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest$ac_exeext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_c_asm_string=".string"
12750 else
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h. */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12760 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12763 main ()
12767 return 0;
12769 _ACEOF
12770 rm -f conftest.$ac_objext conftest$ac_exeext
12771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12772 (eval $ac_link) 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 ac_cv_c_asm_string=".asciz"
12792 else
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 cat >conftest.$ac_ext <<_ACEOF
12797 /* confdefs.h. */
12798 _ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12802 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12805 main ()
12809 return 0;
12811 _ACEOF
12812 rm -f conftest.$ac_objext conftest$ac_exeext
12813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12814 (eval $ac_link) 2>conftest.er1
12815 ac_status=$?
12816 grep -v '^ *+' conftest.er1 >conftest.err
12817 rm -f conftest.er1
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } &&
12821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; } &&
12827 { ac_try='test -s conftest$ac_exeext'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; }; then
12833 ac_cv_c_asm_string=".ascii"
12834 else
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
12839 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
12840 { (exit 1); exit 1; }; }
12842 rm -f conftest.err conftest.$ac_objext \
12843 conftest$ac_exeext conftest.$ac_ext
12845 rm -f conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12848 rm -f conftest.err conftest.$ac_objext \
12849 conftest$ac_exeext conftest.$ac_ext
12851 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
12852 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
12855 cat >>confdefs.h <<_ACEOF
12856 #define __ASM_STRING "$ac_cv_c_asm_string"
12857 _ACEOF
12861 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
12862 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
12863 if test "${ac_cv_c_asm_short+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866 cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h. */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12872 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
12875 main ()
12879 return 0;
12881 _ACEOF
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884 (eval $ac_link) 2>conftest.er1
12885 ac_status=$?
12886 grep -v '^ *+' conftest.er1 >conftest.err
12887 rm -f conftest.er1
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; } &&
12897 { ac_try='test -s conftest$ac_exeext'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12903 ac_cv_c_asm_short=".short"
12904 else
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12908 cat >conftest.$ac_ext <<_ACEOF
12909 /* confdefs.h. */
12910 _ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12914 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
12917 main ()
12921 return 0;
12923 _ACEOF
12924 rm -f conftest.$ac_objext conftest$ac_exeext
12925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12926 (eval $ac_link) 2>conftest.er1
12927 ac_status=$?
12928 grep -v '^ *+' conftest.er1 >conftest.err
12929 rm -f conftest.er1
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest$ac_exeext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_c_asm_short=".half"
12946 else
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
12951 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
12952 { (exit 1); exit 1; }; }
12954 rm -f conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12957 rm -f conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12960 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
12961 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
12964 cat >>confdefs.h <<_ACEOF
12965 #define __ASM_SHORT "$ac_cv_c_asm_short"
12966 _ACEOF
12970 DLLEXT=""
12972 DLLFLAGS="-D_REENTRANT"
12974 DLLIBS=""
12976 LDSHARED=""
12978 LDDLL=""
12980 LIBEXT="so"
12982 IMPLIBEXT="def"
12985 case $host_os in
12986 cygwin*|mingw32*)
12987 if test -n "$ac_tool_prefix"; then
12988 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12989 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12990 echo "$as_me:$LINENO: checking for $ac_word" >&5
12991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12992 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 else
12995 if test -n "$DLLTOOL"; then
12996 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12997 else
12998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999 for as_dir in $PATH
13001 IFS=$as_save_IFS
13002 test -z "$as_dir" && as_dir=.
13003 for ac_exec_ext in '' $ac_executable_extensions; do
13004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13005 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 break 2
13009 done
13010 done
13014 DLLTOOL=$ac_cv_prog_DLLTOOL
13015 if test -n "$DLLTOOL"; then
13016 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13017 echo "${ECHO_T}$DLLTOOL" >&6
13018 else
13019 echo "$as_me:$LINENO: result: no" >&5
13020 echo "${ECHO_T}no" >&6
13024 if test -z "$ac_cv_prog_DLLTOOL"; then
13025 ac_ct_DLLTOOL=$DLLTOOL
13026 # Extract the first word of "dlltool", so it can be a program name with args.
13027 set dummy dlltool; ac_word=$2
13028 echo "$as_me:$LINENO: checking for $ac_word" >&5
13029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13030 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033 if test -n "$ac_ct_DLLTOOL"; then
13034 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13035 else
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13039 IFS=$as_save_IFS
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13043 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 break 2
13047 done
13048 done
13050 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13053 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13054 if test -n "$ac_ct_DLLTOOL"; then
13055 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13056 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13057 else
13058 echo "$as_me:$LINENO: result: no" >&5
13059 echo "${ECHO_T}no" >&6
13062 DLLTOOL=$ac_ct_DLLTOOL
13063 else
13064 DLLTOOL="$ac_cv_prog_DLLTOOL"
13067 if test -n "$ac_tool_prefix"; then
13068 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13069 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13070 echo "$as_me:$LINENO: checking for $ac_word" >&5
13071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13072 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
13075 if test -n "$DLLWRAP"; then
13076 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13077 else
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13081 IFS=$as_save_IFS
13082 test -z "$as_dir" && as_dir=.
13083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13085 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13087 break 2
13089 done
13090 done
13094 DLLWRAP=$ac_cv_prog_DLLWRAP
13095 if test -n "$DLLWRAP"; then
13096 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13097 echo "${ECHO_T}$DLLWRAP" >&6
13098 else
13099 echo "$as_me:$LINENO: result: no" >&5
13100 echo "${ECHO_T}no" >&6
13104 if test -z "$ac_cv_prog_DLLWRAP"; then
13105 ac_ct_DLLWRAP=$DLLWRAP
13106 # Extract the first word of "dllwrap", so it can be a program name with args.
13107 set dummy dllwrap; ac_word=$2
13108 echo "$as_me:$LINENO: checking for $ac_word" >&5
13109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13110 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113 if test -n "$ac_ct_DLLWRAP"; then
13114 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13115 else
13116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117 for as_dir in $PATH
13119 IFS=$as_save_IFS
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
13122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13123 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13125 break 2
13127 done
13128 done
13130 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13133 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13134 if test -n "$ac_ct_DLLWRAP"; then
13135 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13136 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13137 else
13138 echo "$as_me:$LINENO: result: no" >&5
13139 echo "${ECHO_T}no" >&6
13142 DLLWRAP=$ac_ct_DLLWRAP
13143 else
13144 DLLWRAP="$ac_cv_prog_DLLWRAP"
13147 if test "$DLLWRAP" = "false"; then
13148 LIBEXT="a"
13149 else
13150 LIBEXT="dll"
13152 IMPLIBEXT="a"
13156 for ac_header in dlfcn.h
13158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13160 echo "$as_me:$LINENO: checking for $ac_header" >&5
13161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13167 else
13168 # Is the header compilable?
13169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13171 cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h. */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 $ac_includes_default
13178 #include <$ac_header>
13179 _ACEOF
13180 rm -f conftest.$ac_objext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13182 (eval $ac_compile) 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try='test -s conftest.$ac_objext'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 ac_header_compiler=yes
13202 else
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13206 ac_header_compiler=no
13208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13210 echo "${ECHO_T}$ac_header_compiler" >&6
13212 # Is the header present?
13213 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h. */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13221 #include <$ac_header>
13222 _ACEOF
13223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } >/dev/null; then
13231 if test -s conftest.err; then
13232 ac_cpp_err=$ac_c_preproc_warn_flag
13233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13234 else
13235 ac_cpp_err=
13237 else
13238 ac_cpp_err=yes
13240 if test -z "$ac_cpp_err"; then
13241 ac_header_preproc=yes
13242 else
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13246 ac_header_preproc=no
13248 rm -f conftest.err conftest.$ac_ext
13249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13250 echo "${ECHO_T}$ac_header_preproc" >&6
13252 # So? What about this header?
13253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13254 yes:no: )
13255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13259 ac_header_preproc=yes
13261 no:yes:* )
13262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13269 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13275 cat <<\_ASBOX
13276 ## ------------------------------------ ##
13277 ## Report this to wine-devel@winehq.org ##
13278 ## ------------------------------------ ##
13279 _ASBOX
13281 sed "s/^/$as_me: WARNING: /" >&2
13283 esac
13284 echo "$as_me:$LINENO: checking for $ac_header" >&5
13285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289 eval "$as_ac_Header=\$ac_header_preproc"
13291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13296 cat >>confdefs.h <<_ACEOF
13297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13298 _ACEOF
13300 for ac_func in dlopen
13302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13303 echo "$as_me:$LINENO: checking for $ac_func" >&5
13304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13305 if eval "test \"\${$as_ac_var+set}\" = set"; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
13308 cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h. */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13316 #define $ac_func innocuous_$ac_func
13318 /* System header to define __stub macros and hopefully few prototypes,
13319 which can conflict with char $ac_func (); below.
13320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13321 <limits.h> exists even on freestanding compilers. */
13323 #ifdef __STDC__
13324 # include <limits.h>
13325 #else
13326 # include <assert.h>
13327 #endif
13329 #undef $ac_func
13331 /* Override any gcc2 internal prototype to avoid an error. */
13332 #ifdef __cplusplus
13333 extern "C"
13335 #endif
13336 /* We use char because int might match the return type of a gcc2
13337 builtin and then its argument prototype would still apply. */
13338 char $ac_func ();
13339 /* The GNU C library defines this for functions which it implements
13340 to always fail with ENOSYS. Some functions are actually named
13341 something starting with __ and the normal name is an alias. */
13342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13343 choke me
13344 #else
13345 char (*f) () = $ac_func;
13346 #endif
13347 #ifdef __cplusplus
13349 #endif
13352 main ()
13354 return f != $ac_func;
13356 return 0;
13358 _ACEOF
13359 rm -f conftest.$ac_objext conftest$ac_exeext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13361 (eval $ac_link) 2>conftest.er1
13362 ac_status=$?
13363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; } &&
13374 { ac_try='test -s conftest$ac_exeext'
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380 eval "$as_ac_var=yes"
13381 else
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 eval "$as_ac_var=no"
13387 rm -f conftest.err conftest.$ac_objext \
13388 conftest$ac_exeext conftest.$ac_ext
13390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13392 if test `eval echo '${'$as_ac_var'}'` = yes; then
13393 cat >>confdefs.h <<_ACEOF
13394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13395 _ACEOF
13397 else
13398 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13399 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13400 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 else
13403 ac_check_lib_save_LIBS=$LIBS
13404 LIBS="-ldl $LIBS"
13405 cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h. */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13412 /* Override any gcc2 internal prototype to avoid an error. */
13413 #ifdef __cplusplus
13414 extern "C"
13415 #endif
13416 /* We use char because int might match the return type of a gcc2
13417 builtin and then its argument prototype would still apply. */
13418 char dlopen ();
13420 main ()
13422 dlopen ();
13424 return 0;
13426 _ACEOF
13427 rm -f conftest.$ac_objext conftest$ac_exeext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13429 (eval $ac_link) 2>conftest.er1
13430 ac_status=$?
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; } &&
13442 { ac_try='test -s conftest$ac_exeext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13445 ac_status=$?
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_lib_dl_dlopen=yes
13449 else
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 ac_cv_lib_dl_dlopen=no
13455 rm -f conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 LIBS=$ac_check_lib_save_LIBS
13459 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13460 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13461 if test $ac_cv_lib_dl_dlopen = yes; then
13463 cat >>confdefs.h <<\_ACEOF
13464 #define HAVE_DLOPEN 1
13465 _ACEOF
13467 DLLIBS="-ldl"
13468 else
13469 LIBEXT="a"
13473 done
13475 else
13476 LIBEXT="a"
13479 done
13482 if test "$LIBEXT" = "so"
13483 then
13484 DLLFLAGS="$DLLFLAGS -fPIC"
13485 DLLEXT=".so"
13486 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13487 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13488 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491 ac_wine_try_cflags_saved=$CFLAGS
13492 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13493 cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h. */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13501 main ()
13505 return 0;
13507 _ACEOF
13508 rm -f conftest.$ac_objext conftest$ac_exeext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13510 (eval $ac_link) 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; } &&
13523 { ac_try='test -s conftest$ac_exeext'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529 ac_cv_c_dll_gnuelf="yes"
13530 else
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13534 ac_cv_c_dll_gnuelf="no"
13536 rm -f conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
13538 CFLAGS=$ac_wine_try_cflags_saved
13540 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13541 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13542 if test "$ac_cv_c_dll_gnuelf" = "yes"
13543 then
13544 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13545 LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
13546 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13547 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13548 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 else
13551 ac_wine_try_cflags_saved=$CFLAGS
13552 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h. */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13561 main ()
13565 return 0;
13567 _ACEOF
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13570 (eval $ac_link) 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest$ac_exeext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_c_dll_zdefs="yes"
13590 else
13591 echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13594 ac_cv_c_dll_zdefs="no"
13596 rm -f conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
13598 CFLAGS=$ac_wine_try_cflags_saved
13600 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13601 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13602 if test "$ac_cv_c_dll_zdefs" = "yes"
13603 then
13604 LDDLL="$LDDLL,-z,defs"
13607 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13608 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13609 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 else
13612 ac_wine_try_cflags_saved=$CFLAGS
13613 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13614 cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h. */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13622 main ()
13626 return 0;
13628 _ACEOF
13629 rm -f conftest.$ac_objext conftest$ac_exeext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13631 (eval $ac_link) 2>conftest.er1
13632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } &&
13638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ac_cv_c_dll_init_fini="yes"
13651 else
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13655 ac_cv_c_dll_init_fini="no"
13657 rm -f conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
13659 CFLAGS=$ac_wine_try_cflags_saved
13661 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13662 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13663 if test "$ac_cv_c_dll_init_fini" = "yes"
13664 then
13666 cat >>confdefs.h <<\_ACEOF
13667 #define HAVE_LINKER_INIT_FINI 1
13668 _ACEOF
13670 LDDLL="$LDDLL,-init,__wine_spec_init,-fini,__wine_spec_fini"
13673 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13674 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13675 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678 echo '{ global: *; };' >conftest.map
13679 ac_wine_try_cflags_saved=$CFLAGS
13680 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13681 cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h. */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13689 main ()
13693 return 0;
13695 _ACEOF
13696 rm -f conftest.$ac_objext conftest$ac_exeext
13697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13698 (eval $ac_link) 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest$ac_exeext'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 ac_cv_c_ld_version_scripts="yes"
13718 else
13719 echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13722 ac_cv_c_ld_version_scripts="no"
13724 rm -f conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726 CFLAGS=$ac_wine_try_cflags_saved
13727 rm -f conftest.map
13729 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13730 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13731 if test "$ac_cv_c_ld_version_scripts" = "yes"
13732 then
13733 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13736 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13737 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13738 if test "${ac_cv_c_export_dynamic+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741 ac_wine_try_cflags_saved=$CFLAGS
13742 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13743 cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h. */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13751 main ()
13755 return 0;
13757 _ACEOF
13758 rm -f conftest.$ac_objext conftest$ac_exeext
13759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13760 (eval $ac_link) 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; } &&
13773 { ac_try='test -s conftest$ac_exeext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_cv_c_export_dynamic="yes"
13780 else
13781 echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13784 ac_cv_c_export_dynamic="no"
13786 rm -f conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13788 CFLAGS=$ac_wine_try_cflags_saved
13790 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13791 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13792 if test "$ac_cv_c_export_dynamic" = "yes"
13793 then
13794 LDEXECFLAGS="-Wl,--export-dynamic"
13798 case $host_cpu in
13799 *i[3456789]86*)
13800 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
13801 echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
13802 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805 saved_CFLAGS="$CFLAGS"
13806 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
13807 if test "$cross_compiling" = yes; then
13808 ac_cv_ld_reloc_exec="no"
13809 else
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h. */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13816 #include <unistd.h>
13817 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
13818 _ACEOF
13819 rm -f conftest$ac_exeext
13820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13821 (eval $ac_link) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; }; then
13830 ac_cv_ld_reloc_exec="yes"
13831 else
13832 echo "$as_me: program exited with status $ac_status" >&5
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13836 ( exit $ac_status )
13837 ac_cv_ld_reloc_exec="no"
13839 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13841 CFLAGS="$saved_CFLAGS"
13843 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13844 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13845 if test "$ac_cv_ld_reloc_exec" = "yes"
13846 then
13847 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
13850 esac
13852 else
13853 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13854 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13855 if test "${ac_cv_c_dll_unixware+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858 ac_wine_try_cflags_saved=$CFLAGS
13859 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h. */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13868 main ()
13872 return 0;
13874 _ACEOF
13875 rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13877 (eval $ac_link) 2>conftest.er1
13878 ac_status=$?
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; } &&
13890 { ac_try='test -s conftest$ac_exeext'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
13896 ac_cv_c_dll_unixware="yes"
13897 else
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13901 ac_cv_c_dll_unixware="no"
13903 rm -f conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
13905 CFLAGS=$ac_wine_try_cflags_saved
13907 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13908 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
13909 if test "$ac_cv_c_dll_unixware" = "yes"
13910 then
13911 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13912 LDDLL="\$(CC) -Wl,-G,-B,symbolic"
13914 else
13915 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13916 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13917 if test "${ac_cv_c_dll_macho+set}" = set; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 else
13920 ac_wine_try_cflags_saved=$CFLAGS
13921 CFLAGS="$CFLAGS -bundle"
13922 cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h. */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13930 main ()
13934 return 0;
13936 _ACEOF
13937 rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13939 (eval $ac_link) 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; } &&
13952 { ac_try='test -s conftest$ac_exeext'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 ac_cv_c_dll_macho="yes"
13959 else
13960 echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13963 ac_cv_c_dll_macho="no"
13965 rm -f conftest.err conftest.$ac_objext \
13966 conftest$ac_exeext conftest.$ac_ext
13967 CFLAGS=$ac_wine_try_cflags_saved
13969 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
13970 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
13971 if test "$ac_cv_c_dll_macho" = "yes"
13972 then
13973 LIBEXT="dylib"
13974 LDDLL="\$(CC) -bundle -flat_namespace -undefined suppress"
13975 LDSHARED="\$(CC) -dynamiclib"
13976 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
13982 CROSSTEST=""
13984 if test "$cross_compiling" = "no"
13985 then
13986 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
13988 # Extract the first word of "$ac_prog", so it can be a program name with args.
13989 set dummy $ac_prog; ac_word=$2
13990 echo "$as_me:$LINENO: checking for $ac_word" >&5
13991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13992 if test "${ac_cv_prog_CROSSCC+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995 if test -n "$CROSSCC"; then
13996 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
13997 else
13998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999 for as_dir in $PATH
14001 IFS=$as_save_IFS
14002 test -z "$as_dir" && as_dir=.
14003 for ac_exec_ext in '' $ac_executable_extensions; do
14004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14005 ac_cv_prog_CROSSCC="$ac_prog"
14006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14007 break 2
14009 done
14010 done
14014 CROSSCC=$ac_cv_prog_CROSSCC
14015 if test -n "$CROSSCC"; then
14016 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14017 echo "${ECHO_T}$CROSSCC" >&6
14018 else
14019 echo "$as_me:$LINENO: result: no" >&5
14020 echo "${ECHO_T}no" >&6
14023 test -n "$CROSSCC" && break
14024 done
14025 test -n "$CROSSCC" || CROSSCC="false"
14027 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14029 # Extract the first word of "$ac_prog", so it can be a program name with args.
14030 set dummy $ac_prog; ac_word=$2
14031 echo "$as_me:$LINENO: checking for $ac_word" >&5
14032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14033 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036 if test -n "$DLLTOOL"; then
14037 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14038 else
14039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040 for as_dir in $PATH
14042 IFS=$as_save_IFS
14043 test -z "$as_dir" && as_dir=.
14044 for ac_exec_ext in '' $ac_executable_extensions; do
14045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14046 ac_cv_prog_DLLTOOL="$ac_prog"
14047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14048 break 2
14050 done
14051 done
14055 DLLTOOL=$ac_cv_prog_DLLTOOL
14056 if test -n "$DLLTOOL"; then
14057 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14058 echo "${ECHO_T}$DLLTOOL" >&6
14059 else
14060 echo "$as_me:$LINENO: result: no" >&5
14061 echo "${ECHO_T}no" >&6
14064 test -n "$DLLTOOL" && break
14065 done
14066 test -n "$DLLTOOL" || DLLTOOL="false"
14068 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres mingw-windres
14070 # Extract the first word of "$ac_prog", so it can be a program name with args.
14071 set dummy $ac_prog; ac_word=$2
14072 echo "$as_me:$LINENO: checking for $ac_word" >&5
14073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14074 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077 if test -n "$CROSSWINDRES"; then
14078 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14079 else
14080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14081 for as_dir in $PATH
14083 IFS=$as_save_IFS
14084 test -z "$as_dir" && as_dir=.
14085 for ac_exec_ext in '' $ac_executable_extensions; do
14086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14087 ac_cv_prog_CROSSWINDRES="$ac_prog"
14088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14089 break 2
14091 done
14092 done
14096 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14097 if test -n "$CROSSWINDRES"; then
14098 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14099 echo "${ECHO_T}$CROSSWINDRES" >&6
14100 else
14101 echo "$as_me:$LINENO: result: no" >&5
14102 echo "${ECHO_T}no" >&6
14105 test -n "$CROSSWINDRES" && break
14106 done
14107 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14109 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14112 esac
14114 if test "$LIBEXT" = "a"; then
14115 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14116 It is currently not possible to build Wine without shared library
14117 (.so) support to allow transparent switch between .so and .dll files.
14118 If you are using Linux, you will need a newer binutils.
14119 " >&5
14120 echo "$as_me: error: could not find a way to build shared libraries.
14121 It is currently not possible to build Wine without shared library
14122 (.so) support to allow transparent switch between .so and .dll files.
14123 If you are using Linux, you will need a newer binutils.
14124 " >&2;}
14125 { (exit 1); exit 1; }; }
14128 case $build_os in
14129 cygwin*|mingw32*)
14130 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14132 darwin*|macosx*)
14133 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14136 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14138 esac
14140 case $host_os in
14141 mingw32*)
14142 CRTLIBS="-lmsvcrt"
14144 esac
14146 case $host_os in
14147 linux*)
14148 WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14150 MAIN_BINARY="wine-glibc"
14154 WINE_BINARIES="wine-kthread"
14156 MAIN_BINARY="wine-kthread"
14159 esac
14162 if test "$LIBEXT" = "so"
14163 then
14164 # Extract the first word of "ldd", so it can be a program name with args.
14165 set dummy ldd; ac_word=$2
14166 echo "$as_me:$LINENO: checking for $ac_word" >&5
14167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14168 if test "${ac_cv_path_LDD+set}" = set; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171 case $LDD in
14172 [\\/]* | ?:[\\/]*)
14173 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177 as_dummy="/sbin:/usr/sbin:$PATH"
14178 for as_dir in $as_dummy
14180 IFS=$as_save_IFS
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14184 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14186 break 2
14188 done
14189 done
14191 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14193 esac
14195 LDD=$ac_cv_path_LDD
14197 if test -n "$LDD"; then
14198 echo "$as_me:$LINENO: result: $LDD" >&5
14199 echo "${ECHO_T}$LDD" >&6
14200 else
14201 echo "$as_me:$LINENO: result: no" >&5
14202 echo "${ECHO_T}no" >&6
14206 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14207 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14208 if test "${ac_cv_lib_soname_X11+set}" = set; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 else
14211 ac_get_soname_save_LIBS=$LIBS
14212 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14213 cat >conftest.$ac_ext <<_ACEOF
14214 /* confdefs.h. */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14220 /* Override any gcc2 internal prototype to avoid an error. */
14221 #ifdef __cplusplus
14222 extern "C"
14223 #endif
14224 /* We use char because int might match the return type of a gcc2
14225 builtin and then its argument prototype would still apply. */
14226 char XCreateWindow ();
14228 main ()
14230 XCreateWindow ();
14232 return 0;
14234 _ACEOF
14235 rm -f conftest.$ac_objext conftest$ac_exeext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14237 (eval $ac_link) 2>conftest.er1
14238 ac_status=$?
14239 grep -v '^ *+' conftest.er1 >conftest.err
14240 rm -f conftest.er1
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
14244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; } &&
14250 { ac_try='test -s conftest$ac_exeext'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
14257 if test "x$ac_cv_lib_soname_X11" = "x"
14258 then
14259 ac_cv_lib_soname_X11="libX11.so"
14261 else
14262 echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14265 ac_cv_lib_soname_X11="libX11.so"
14267 rm -f conftest.err conftest.$ac_objext \
14268 conftest$ac_exeext conftest.$ac_ext
14269 LIBS=$ac_get_soname_save_LIBS
14271 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14272 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14273 if test "x$ac_cv_lib_soname_X11" != xNONE
14274 then
14275 cat >>confdefs.h <<_ACEOF
14276 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14277 _ACEOF
14280 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14281 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14282 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285 ac_get_soname_save_LIBS=$LIBS
14286 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14287 cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h. */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14294 /* Override any gcc2 internal prototype to avoid an error. */
14295 #ifdef __cplusplus
14296 extern "C"
14297 #endif
14298 /* We use char because int might match the return type of a gcc2
14299 builtin and then its argument prototype would still apply. */
14300 char XextCreateExtension ();
14302 main ()
14304 XextCreateExtension ();
14306 return 0;
14308 _ACEOF
14309 rm -f conftest.$ac_objext conftest$ac_exeext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14321 ac_status=$?
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; } &&
14324 { ac_try='test -s conftest$ac_exeext'
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
14331 if test "x$ac_cv_lib_soname_Xext" = "x"
14332 then
14333 ac_cv_lib_soname_Xext="libXext.so"
14335 else
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 ac_cv_lib_soname_Xext="libXext.so"
14341 rm -f conftest.err conftest.$ac_objext \
14342 conftest$ac_exeext conftest.$ac_ext
14343 LIBS=$ac_get_soname_save_LIBS
14345 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14346 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14347 if test "x$ac_cv_lib_soname_Xext" != xNONE
14348 then
14349 cat >>confdefs.h <<_ACEOF
14350 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14351 _ACEOF
14354 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14355 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14356 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359 ac_get_soname_save_LIBS=$LIBS
14360 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14361 cat >conftest.$ac_ext <<_ACEOF
14362 /* confdefs.h. */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14368 /* Override any gcc2 internal prototype to avoid an error. */
14369 #ifdef __cplusplus
14370 extern "C"
14371 #endif
14372 /* We use char because int might match the return type of a gcc2
14373 builtin and then its argument prototype would still apply. */
14374 char XOpenDevice ();
14376 main ()
14378 XOpenDevice ();
14380 return 0;
14382 _ACEOF
14383 rm -f conftest.$ac_objext conftest$ac_exeext
14384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14385 (eval $ac_link) 2>conftest.er1
14386 ac_status=$?
14387 grep -v '^ *+' conftest.er1 >conftest.err
14388 rm -f conftest.er1
14389 cat conftest.err >&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } &&
14392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; } &&
14398 { ac_try='test -s conftest$ac_exeext'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed 's/^.*\(libXi\.so[^ ]*\).*$/\1/'`
14405 if test "x$ac_cv_lib_soname_Xi" = "x"
14406 then
14407 ac_cv_lib_soname_Xi="libXi.so"
14409 else
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14413 ac_cv_lib_soname_Xi="libXi.so"
14415 rm -f conftest.err conftest.$ac_objext \
14416 conftest$ac_exeext conftest.$ac_ext
14417 LIBS=$ac_get_soname_save_LIBS
14419 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14420 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14421 if test "x$ac_cv_lib_soname_Xi" != xNONE
14422 then
14423 cat >>confdefs.h <<_ACEOF
14424 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14425 _ACEOF
14428 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14429 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14430 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 else
14433 ac_get_soname_save_LIBS=$LIBS
14434 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h. */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14442 /* Override any gcc2 internal prototype to avoid an error. */
14443 #ifdef __cplusplus
14444 extern "C"
14445 #endif
14446 /* We use char because int might match the return type of a gcc2
14447 builtin and then its argument prototype would still apply. */
14448 char XRenderQueryExtension ();
14450 main ()
14452 XRenderQueryExtension ();
14454 return 0;
14456 _ACEOF
14457 rm -f conftest.$ac_objext conftest$ac_exeext
14458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14459 (eval $ac_link) 2>conftest.er1
14460 ac_status=$?
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
14466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest$ac_exeext'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
14479 if test "x$ac_cv_lib_soname_Xrender" = "x"
14480 then
14481 ac_cv_lib_soname_Xrender="libXrender.so"
14483 else
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 ac_cv_lib_soname_Xrender="libXrender.so"
14489 rm -f conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
14491 LIBS=$ac_get_soname_save_LIBS
14493 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14494 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14495 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14496 then
14497 cat >>confdefs.h <<_ACEOF
14498 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14499 _ACEOF
14502 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14503 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14504 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 else
14507 ac_get_soname_save_LIBS=$LIBS
14508 LIBS="-lfreetype $X_LIBS $LIBS"
14509 cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h. */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14516 /* Override any gcc2 internal prototype to avoid an error. */
14517 #ifdef __cplusplus
14518 extern "C"
14519 #endif
14520 /* We use char because int might match the return type of a gcc2
14521 builtin and then its argument prototype would still apply. */
14522 char FT_Init_FreeType ();
14524 main ()
14526 FT_Init_FreeType ();
14528 return 0;
14530 _ACEOF
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533 (eval $ac_link) 2>conftest.er1
14534 ac_status=$?
14535 grep -v '^ *+' conftest.er1 >conftest.err
14536 rm -f conftest.er1
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; } &&
14546 { ac_try='test -s conftest$ac_exeext'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
14553 if test "x$ac_cv_lib_soname_freetype" = "x"
14554 then
14555 ac_cv_lib_soname_freetype="libfreetype.so"
14557 else
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 ac_cv_lib_soname_freetype="libfreetype.so"
14563 rm -f conftest.err conftest.$ac_objext \
14564 conftest$ac_exeext conftest.$ac_ext
14565 LIBS=$ac_get_soname_save_LIBS
14567 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14568 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14569 if test "x$ac_cv_lib_soname_freetype" != xNONE
14570 then
14571 cat >>confdefs.h <<_ACEOF
14572 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14573 _ACEOF
14576 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14577 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14578 if test "${ac_cv_lib_soname_GL+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581 ac_get_soname_save_LIBS=$LIBS
14582 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14583 cat >conftest.$ac_ext <<_ACEOF
14584 /* confdefs.h. */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14590 /* Override any gcc2 internal prototype to avoid an error. */
14591 #ifdef __cplusplus
14592 extern "C"
14593 #endif
14594 /* We use char because int might match the return type of a gcc2
14595 builtin and then its argument prototype would still apply. */
14596 char glXQueryExtension ();
14598 main ()
14600 glXQueryExtension ();
14602 return 0;
14604 _ACEOF
14605 rm -f conftest.$ac_objext conftest$ac_exeext
14606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14607 (eval $ac_link) 2>conftest.er1
14608 ac_status=$?
14609 grep -v '^ *+' conftest.er1 >conftest.err
14610 rm -f conftest.er1
14611 cat conftest.err >&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
14614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; } &&
14620 { ac_try='test -s conftest$ac_exeext'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14623 ac_status=$?
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
14626 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
14627 if test "x$ac_cv_lib_soname_GL" = "x"
14628 then
14629 ac_cv_lib_soname_GL="libGL.so"
14631 else
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14635 ac_cv_lib_soname_GL="libGL.so"
14637 rm -f conftest.err conftest.$ac_objext \
14638 conftest$ac_exeext conftest.$ac_ext
14639 LIBS=$ac_get_soname_save_LIBS
14641 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14642 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14643 if test "x$ac_cv_lib_soname_GL" != xNONE
14644 then
14645 cat >>confdefs.h <<_ACEOF
14646 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14647 _ACEOF
14650 echo "$as_me:$LINENO: checking for -lcups soname" >&5
14651 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14652 if test "${ac_cv_lib_soname_cups+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 else
14655 ac_get_soname_save_LIBS=$LIBS
14656 LIBS="-lcups $LIBS"
14657 cat >conftest.$ac_ext <<_ACEOF
14658 /* confdefs.h. */
14659 _ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14664 /* Override any gcc2 internal prototype to avoid an error. */
14665 #ifdef __cplusplus
14666 extern "C"
14667 #endif
14668 /* We use char because int might match the return type of a gcc2
14669 builtin and then its argument prototype would still apply. */
14670 char cupsGetDefault ();
14672 main ()
14674 cupsGetDefault ();
14676 return 0;
14678 _ACEOF
14679 rm -f conftest.$ac_objext conftest$ac_exeext
14680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14681 (eval $ac_link) 2>conftest.er1
14682 ac_status=$?
14683 grep -v '^ *+' conftest.er1 >conftest.err
14684 rm -f conftest.er1
14685 cat conftest.err >&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } &&
14688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; } &&
14694 { ac_try='test -s conftest$ac_exeext'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
14700 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
14701 if test "x$ac_cv_lib_soname_cups" = "x"
14702 then
14703 ac_cv_lib_soname_cups="libcups.so"
14705 else
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_cv_lib_soname_cups="libcups.so"
14711 rm -f conftest.err conftest.$ac_objext \
14712 conftest$ac_exeext conftest.$ac_ext
14713 LIBS=$ac_get_soname_save_LIBS
14715 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14716 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14717 if test "x$ac_cv_lib_soname_cups" != xNONE
14718 then
14719 cat >>confdefs.h <<_ACEOF
14720 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14721 _ACEOF
14724 echo "$as_me:$LINENO: checking for -ljack soname" >&5
14725 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14726 if test "${ac_cv_lib_soname_jack+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729 ac_get_soname_save_LIBS=$LIBS
14730 LIBS="-ljack $LIBS"
14731 cat >conftest.$ac_ext <<_ACEOF
14732 /* confdefs.h. */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14738 /* Override any gcc2 internal prototype to avoid an error. */
14739 #ifdef __cplusplus
14740 extern "C"
14741 #endif
14742 /* We use char because int might match the return type of a gcc2
14743 builtin and then its argument prototype would still apply. */
14744 char jack_client_new ();
14746 main ()
14748 jack_client_new ();
14750 return 0;
14752 _ACEOF
14753 rm -f conftest.$ac_objext conftest$ac_exeext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755 (eval $ac_link) 2>conftest.er1
14756 ac_status=$?
14757 grep -v '^ *+' conftest.er1 >conftest.err
14758 rm -f conftest.er1
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
14762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14765 ac_status=$?
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; } &&
14768 { ac_try='test -s conftest$ac_exeext'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14774 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
14775 if test "x$ac_cv_lib_soname_jack" = "x"
14776 then
14777 ac_cv_lib_soname_jack="libjack.so"
14779 else
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 ac_cv_lib_soname_jack="libjack.so"
14785 rm -f conftest.err conftest.$ac_objext \
14786 conftest$ac_exeext conftest.$ac_ext
14787 LIBS=$ac_get_soname_save_LIBS
14789 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
14790 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
14791 if test "x$ac_cv_lib_soname_jack" != xNONE
14792 then
14793 cat >>confdefs.h <<_ACEOF
14794 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
14795 _ACEOF
14798 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
14799 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
14800 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 else
14803 ac_get_soname_save_LIBS=$LIBS
14804 LIBS="-lfontconfig $LIBS"
14805 cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h. */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14812 /* Override any gcc2 internal prototype to avoid an error. */
14813 #ifdef __cplusplus
14814 extern "C"
14815 #endif
14816 /* We use char because int might match the return type of a gcc2
14817 builtin and then its argument prototype would still apply. */
14818 char FcInit ();
14820 main ()
14822 FcInit ();
14824 return 0;
14826 _ACEOF
14827 rm -f conftest.$ac_objext conftest$ac_exeext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14829 (eval $ac_link) 2>conftest.er1
14830 ac_status=$?
14831 grep -v '^ *+' conftest.er1 >conftest.err
14832 rm -f conftest.er1
14833 cat conftest.err >&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; } &&
14842 { ac_try='test -s conftest$ac_exeext'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }; then
14848 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
14849 if test "x$ac_cv_lib_soname_fontconfig" = "x"
14850 then
14851 ac_cv_lib_soname_fontconfig="libfontconfig.so"
14853 else
14854 echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14857 ac_cv_lib_soname_fontconfig="libfontconfig.so"
14859 rm -f conftest.err conftest.$ac_objext \
14860 conftest$ac_exeext conftest.$ac_ext
14861 LIBS=$ac_get_soname_save_LIBS
14863 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
14864 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
14865 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
14866 then
14867 cat >>confdefs.h <<_ACEOF
14868 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
14869 _ACEOF
14872 echo "$as_me:$LINENO: checking for -lssl soname" >&5
14873 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
14874 if test "${ac_cv_lib_soname_ssl+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877 ac_get_soname_save_LIBS=$LIBS
14878 LIBS="-lssl $LIBS"
14879 cat >conftest.$ac_ext <<_ACEOF
14880 /* confdefs.h. */
14881 _ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14886 /* Override any gcc2 internal prototype to avoid an error. */
14887 #ifdef __cplusplus
14888 extern "C"
14889 #endif
14890 /* We use char because int might match the return type of a gcc2
14891 builtin and then its argument prototype would still apply. */
14892 char SSL_library_init ();
14894 main ()
14896 SSL_library_init ();
14898 return 0;
14900 _ACEOF
14901 rm -f conftest.$ac_objext conftest$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903 (eval $ac_link) 2>conftest.er1
14904 ac_status=$?
14905 grep -v '^ *+' conftest.er1 >conftest.err
14906 rm -f conftest.er1
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } &&
14916 { ac_try='test -s conftest$ac_exeext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
14923 if test "x$ac_cv_lib_soname_ssl" = "x"
14924 then
14925 ac_cv_lib_soname_ssl="libssl.so"
14927 else
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14931 ac_cv_lib_soname_ssl="libssl.so"
14933 rm -f conftest.err conftest.$ac_objext \
14934 conftest$ac_exeext conftest.$ac_ext
14935 LIBS=$ac_get_soname_save_LIBS
14937 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
14938 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
14939 if test "x$ac_cv_lib_soname_ssl" != xNONE
14940 then
14941 cat >>confdefs.h <<_ACEOF
14942 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
14943 _ACEOF
14946 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
14947 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
14948 if test "${ac_cv_lib_soname_crypto+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14950 else
14951 ac_get_soname_save_LIBS=$LIBS
14952 LIBS="-lcrypto $LIBS"
14953 cat >conftest.$ac_ext <<_ACEOF
14954 /* confdefs.h. */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14960 /* Override any gcc2 internal prototype to avoid an error. */
14961 #ifdef __cplusplus
14962 extern "C"
14963 #endif
14964 /* We use char because int might match the return type of a gcc2
14965 builtin and then its argument prototype would still apply. */
14966 char BIO_new_socket ();
14968 main ()
14970 BIO_new_socket ();
14972 return 0;
14974 _ACEOF
14975 rm -f conftest.$ac_objext conftest$ac_exeext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14977 (eval $ac_link) 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; } &&
14990 { ac_try='test -s conftest$ac_exeext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
14997 if test "x$ac_cv_lib_soname_crypto" = "x"
14998 then
14999 ac_cv_lib_soname_crypto="libcrypto.so"
15001 else
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15005 ac_cv_lib_soname_crypto="libcrypto.so"
15007 rm -f conftest.err conftest.$ac_objext \
15008 conftest$ac_exeext conftest.$ac_ext
15009 LIBS=$ac_get_soname_save_LIBS
15011 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15012 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15013 if test "x$ac_cv_lib_soname_crypto" != xNONE
15014 then
15015 cat >>confdefs.h <<_ACEOF
15016 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15017 _ACEOF
15020 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15021 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15022 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 else
15025 ac_get_soname_save_LIBS=$LIBS
15026 LIBS="-lncurses $LIBS"
15027 cat >conftest.$ac_ext <<_ACEOF
15028 /* confdefs.h. */
15029 _ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h. */
15034 /* Override any gcc2 internal prototype to avoid an error. */
15035 #ifdef __cplusplus
15036 extern "C"
15037 #endif
15038 /* We use char because int might match the return type of a gcc2
15039 builtin and then its argument prototype would still apply. */
15040 char waddch ();
15042 main ()
15044 waddch ();
15046 return 0;
15048 _ACEOF
15049 rm -f conftest.$ac_objext conftest$ac_exeext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15051 (eval $ac_link) 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
15058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest$ac_exeext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
15071 if test "x$ac_cv_lib_soname_ncurses" = "x"
15072 then
15073 ac_cv_lib_soname_ncurses="libncurses.so"
15075 else
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15079 ac_cv_lib_soname_ncurses="libncurses.so"
15081 rm -f conftest.err conftest.$ac_objext \
15082 conftest$ac_exeext conftest.$ac_ext
15083 LIBS=$ac_get_soname_save_LIBS
15085 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15086 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15087 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15088 then
15089 cat >>confdefs.h <<_ACEOF
15090 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15091 _ACEOF
15094 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15095 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15096 if test "${ac_cv_lib_soname_curses+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 else
15099 ac_get_soname_save_LIBS=$LIBS
15100 LIBS="-lcurses $LIBS"
15101 cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h. */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15108 /* Override any gcc2 internal prototype to avoid an error. */
15109 #ifdef __cplusplus
15110 extern "C"
15111 #endif
15112 /* We use char because int might match the return type of a gcc2
15113 builtin and then its argument prototype would still apply. */
15114 char waddch ();
15116 main ()
15118 waddch ();
15120 return 0;
15122 _ACEOF
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>conftest.er1
15126 ac_status=$?
15127 grep -v '^ *+' conftest.er1 >conftest.err
15128 rm -f conftest.er1
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; } &&
15138 { ac_try='test -s conftest$ac_exeext'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15144 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
15145 if test "x$ac_cv_lib_soname_curses" = "x"
15146 then
15147 ac_cv_lib_soname_curses="libcurses.so"
15149 else
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 ac_cv_lib_soname_curses="libcurses.so"
15155 rm -f conftest.err conftest.$ac_objext \
15156 conftest$ac_exeext conftest.$ac_ext
15157 LIBS=$ac_get_soname_save_LIBS
15159 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15160 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15161 if test "x$ac_cv_lib_soname_curses" != xNONE
15162 then
15163 cat >>confdefs.h <<_ACEOF
15164 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15165 _ACEOF
15171 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15172 # for constant arguments. Useless!
15173 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15174 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15175 if test "${ac_cv_working_alloca_h+set}" = set; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 else
15178 cat >conftest.$ac_ext <<_ACEOF
15179 /* confdefs.h. */
15180 _ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15184 #include <alloca.h>
15186 main ()
15188 char *p = (char *) alloca (2 * sizeof (int));
15190 return 0;
15192 _ACEOF
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195 (eval $ac_link) 2>conftest.er1
15196 ac_status=$?
15197 grep -v '^ *+' conftest.er1 >conftest.err
15198 rm -f conftest.er1
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; } &&
15208 { ac_try='test -s conftest$ac_exeext'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15211 ac_status=$?
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15214 ac_cv_working_alloca_h=yes
15215 else
15216 echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15219 ac_cv_working_alloca_h=no
15221 rm -f conftest.err conftest.$ac_objext \
15222 conftest$ac_exeext conftest.$ac_ext
15224 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15225 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15226 if test $ac_cv_working_alloca_h = yes; then
15228 cat >>confdefs.h <<\_ACEOF
15229 #define HAVE_ALLOCA_H 1
15230 _ACEOF
15234 echo "$as_me:$LINENO: checking for alloca" >&5
15235 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15236 if test "${ac_cv_func_alloca_works+set}" = set; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15238 else
15239 cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h. */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15245 #ifdef __GNUC__
15246 # define alloca __builtin_alloca
15247 #else
15248 # ifdef _MSC_VER
15249 # include <malloc.h>
15250 # define alloca _alloca
15251 # else
15252 # if HAVE_ALLOCA_H
15253 # include <alloca.h>
15254 # else
15255 # ifdef _AIX
15256 #pragma alloca
15257 # else
15258 # ifndef alloca /* predefined by HP cc +Olibcalls */
15259 char *alloca ();
15260 # endif
15261 # endif
15262 # endif
15263 # endif
15264 #endif
15267 main ()
15269 char *p = (char *) alloca (1);
15271 return 0;
15273 _ACEOF
15274 rm -f conftest.$ac_objext conftest$ac_exeext
15275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15276 (eval $ac_link) 2>conftest.er1
15277 ac_status=$?
15278 grep -v '^ *+' conftest.er1 >conftest.err
15279 rm -f conftest.er1
15280 cat conftest.err >&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } &&
15283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285 (eval $ac_try) 2>&5
15286 ac_status=$?
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; } &&
15289 { ac_try='test -s conftest$ac_exeext'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; }; then
15295 ac_cv_func_alloca_works=yes
15296 else
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 ac_cv_func_alloca_works=no
15302 rm -f conftest.err conftest.$ac_objext \
15303 conftest$ac_exeext conftest.$ac_ext
15305 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15306 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15308 if test $ac_cv_func_alloca_works = yes; then
15310 cat >>confdefs.h <<\_ACEOF
15311 #define HAVE_ALLOCA 1
15312 _ACEOF
15314 else
15315 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15316 # that cause trouble. Some versions do not even contain alloca or
15317 # contain a buggy version. If you still want to use their alloca,
15318 # use ar to extract alloca.o from them instead of compiling alloca.c.
15320 ALLOCA=alloca.$ac_objext
15322 cat >>confdefs.h <<\_ACEOF
15323 #define C_ALLOCA 1
15324 _ACEOF
15327 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15328 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15329 if test "${ac_cv_os_cray+set}" = set; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 else
15332 cat >conftest.$ac_ext <<_ACEOF
15333 /* confdefs.h. */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 #if defined(CRAY) && ! defined(CRAY2)
15339 webecray
15340 #else
15341 wenotbecray
15342 #endif
15344 _ACEOF
15345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15346 $EGREP "webecray" >/dev/null 2>&1; then
15347 ac_cv_os_cray=yes
15348 else
15349 ac_cv_os_cray=no
15351 rm -f conftest*
15354 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15355 echo "${ECHO_T}$ac_cv_os_cray" >&6
15356 if test $ac_cv_os_cray = yes; then
15357 for ac_func in _getb67 GETB67 getb67; do
15358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15359 echo "$as_me:$LINENO: checking for $ac_func" >&5
15360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15361 if eval "test \"\${$as_ac_var+set}\" = set"; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 else
15364 cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h. */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15372 #define $ac_func innocuous_$ac_func
15374 /* System header to define __stub macros and hopefully few prototypes,
15375 which can conflict with char $ac_func (); below.
15376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15377 <limits.h> exists even on freestanding compilers. */
15379 #ifdef __STDC__
15380 # include <limits.h>
15381 #else
15382 # include <assert.h>
15383 #endif
15385 #undef $ac_func
15387 /* Override any gcc2 internal prototype to avoid an error. */
15388 #ifdef __cplusplus
15389 extern "C"
15391 #endif
15392 /* We use char because int might match the return type of a gcc2
15393 builtin and then its argument prototype would still apply. */
15394 char $ac_func ();
15395 /* The GNU C library defines this for functions which it implements
15396 to always fail with ENOSYS. Some functions are actually named
15397 something starting with __ and the normal name is an alias. */
15398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15399 choke me
15400 #else
15401 char (*f) () = $ac_func;
15402 #endif
15403 #ifdef __cplusplus
15405 #endif
15408 main ()
15410 return f != $ac_func;
15412 return 0;
15414 _ACEOF
15415 rm -f conftest.$ac_objext conftest$ac_exeext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15417 (eval $ac_link) 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest$ac_exeext'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15436 eval "$as_ac_var=yes"
15437 else
15438 echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 eval "$as_ac_var=no"
15443 rm -f conftest.err conftest.$ac_objext \
15444 conftest$ac_exeext conftest.$ac_ext
15446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15448 if test `eval echo '${'$as_ac_var'}'` = yes; then
15450 cat >>confdefs.h <<_ACEOF
15451 #define CRAY_STACKSEG_END $ac_func
15452 _ACEOF
15454 break
15457 done
15460 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15461 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15462 if test "${ac_cv_c_stack_direction+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 else
15465 if test "$cross_compiling" = yes; then
15466 ac_cv_c_stack_direction=0
15467 else
15468 cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h. */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15475 find_stack_direction ()
15477 static char *addr = 0;
15478 auto char dummy;
15479 if (addr == 0)
15481 addr = &dummy;
15482 return find_stack_direction ();
15484 else
15485 return (&dummy > addr) ? 1 : -1;
15489 main ()
15491 exit (find_stack_direction () < 0);
15493 _ACEOF
15494 rm -f conftest$ac_exeext
15495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15496 (eval $ac_link) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_cv_c_stack_direction=1
15506 else
15507 echo "$as_me: program exited with status $ac_status" >&5
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ( exit $ac_status )
15512 ac_cv_c_stack_direction=-1
15514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15517 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15518 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15520 cat >>confdefs.h <<_ACEOF
15521 #define STACK_DIRECTION $ac_cv_c_stack_direction
15522 _ACEOF
15580 for ac_func in \
15581 _lwp_create \
15582 _lwp_self \
15583 _pclose \
15584 _popen \
15585 _snprintf \
15586 _spawnvp \
15587 _stricmp \
15588 _strnicmp \
15589 _vsnprintf \
15590 chsize \
15591 clone \
15592 finite \
15593 fpclass \
15594 ftruncate \
15595 ftruncate64 \
15596 getnetbyaddr \
15597 getnetbyname \
15598 getopt_long \
15599 getpagesize \
15600 getprotobyname \
15601 getprotobynumber \
15602 getpwuid \
15603 getservbyport \
15604 gettid \
15605 gettimeofday \
15606 inet_network \
15607 lseek64 \
15608 lstat \
15609 memmove \
15610 mmap \
15611 pclose \
15612 popen \
15613 pread \
15614 pwrite \
15615 readlink \
15616 rfork \
15617 select \
15618 sendmsg \
15619 settimeofday \
15620 sigaltstack \
15621 snprintf \
15622 spawnvp \
15623 statfs \
15624 strcasecmp \
15625 strerror \
15626 strncasecmp \
15627 tcgetattr \
15628 timegm \
15629 usleep \
15630 vfscanf \
15631 vsnprintf \
15632 wait4 \
15633 waitpid \
15636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15637 echo "$as_me:$LINENO: checking for $ac_func" >&5
15638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15639 if eval "test \"\${$as_ac_var+set}\" = set"; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642 cat >conftest.$ac_ext <<_ACEOF
15643 /* confdefs.h. */
15644 _ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15650 #define $ac_func innocuous_$ac_func
15652 /* System header to define __stub macros and hopefully few prototypes,
15653 which can conflict with char $ac_func (); below.
15654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15655 <limits.h> exists even on freestanding compilers. */
15657 #ifdef __STDC__
15658 # include <limits.h>
15659 #else
15660 # include <assert.h>
15661 #endif
15663 #undef $ac_func
15665 /* Override any gcc2 internal prototype to avoid an error. */
15666 #ifdef __cplusplus
15667 extern "C"
15669 #endif
15670 /* We use char because int might match the return type of a gcc2
15671 builtin and then its argument prototype would still apply. */
15672 char $ac_func ();
15673 /* The GNU C library defines this for functions which it implements
15674 to always fail with ENOSYS. Some functions are actually named
15675 something starting with __ and the normal name is an alias. */
15676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15677 choke me
15678 #else
15679 char (*f) () = $ac_func;
15680 #endif
15681 #ifdef __cplusplus
15683 #endif
15686 main ()
15688 return f != $ac_func;
15690 return 0;
15692 _ACEOF
15693 rm -f conftest.$ac_objext conftest$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695 (eval $ac_link) 2>conftest.er1
15696 ac_status=$?
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest$ac_exeext'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 eval "$as_ac_var=yes"
15715 else
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 eval "$as_ac_var=no"
15721 rm -f conftest.err conftest.$ac_objext \
15722 conftest$ac_exeext conftest.$ac_ext
15724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15726 if test `eval echo '${'$as_ac_var'}'` = yes; then
15727 cat >>confdefs.h <<_ACEOF
15728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15729 _ACEOF
15732 done
15818 for ac_header in \
15819 arpa/inet.h \
15820 arpa/nameser.h \
15821 cups/cups.h \
15822 direct.h \
15823 elf.h \
15824 float.h \
15825 fontconfig/fontconfig.h \
15826 getopt.h \
15827 ieeefp.h \
15828 io.h \
15829 jack/jack.h \
15830 libio.h \
15831 libutil.h \
15832 link.h \
15833 linux/cdrom.h \
15834 linux/hdreg.h \
15835 linux/input.h \
15836 linux/joystick.h \
15837 linux/major.h \
15838 linux/param.h \
15839 linux/serial.h \
15840 linux/ucdrom.h \
15841 machine/cpu.h \
15842 netdb.h \
15843 netinet/in.h \
15844 netinet/in_systm.h \
15845 netinet/tcp.h \
15846 netinet/tcp_fsm.h \
15847 openssl/ssl.h \
15848 process.h \
15849 pthread.h \
15850 pty.h \
15851 pwd.h \
15852 regex.h \
15853 sched.h \
15854 scsi/sg.h \
15855 scsi/scsi.h \
15856 scsi/scsi_ioctl.h \
15857 socket.h \
15858 stdint.h \
15859 strings.h \
15860 sys/cdio.h \
15861 sys/elf32.h \
15862 sys/errno.h \
15863 sys/exec_elf.h \
15864 sys/file.h \
15865 sys/filio.h \
15866 sys/inttypes.h \
15867 sys/ioctl.h \
15868 sys/ipc.h \
15869 sys/link.h \
15870 sys/lwp.h \
15871 sys/mman.h \
15872 sys/modem.h \
15873 sys/msg.h \
15874 sys/param.h \
15875 sys/poll.h \
15876 sys/ptrace.h \
15877 sys/reg.h \
15878 sys/scsiio.h \
15879 sys/shm.h \
15880 sys/signal.h \
15881 sys/socket.h \
15882 sys/sockio.h \
15883 sys/statfs.h \
15884 sys/strtio.h \
15885 sys/syscall.h \
15886 sys/sysctl.h \
15887 sys/time.h \
15888 sys/times.h \
15889 sys/uio.h \
15890 sys/un.h \
15891 sys/v86.h \
15892 sys/v86intr.h \
15893 sys/vfs.h \
15894 sys/vm86.h \
15895 sys/wait.h \
15896 syscall.h \
15897 termios.h \
15898 unistd.h \
15899 utime.h \
15900 valgrind/memcheck.h
15903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15905 echo "$as_me:$LINENO: checking for $ac_header" >&5
15906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15912 else
15913 # Is the header compilable?
15914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h. */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 $ac_includes_default
15923 #include <$ac_header>
15924 _ACEOF
15925 rm -f conftest.$ac_objext
15926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15927 (eval $ac_compile) 2>conftest.er1
15928 ac_status=$?
15929 grep -v '^ *+' conftest.er1 >conftest.err
15930 rm -f conftest.er1
15931 cat conftest.err >&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15937 ac_status=$?
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } &&
15940 { ac_try='test -s conftest.$ac_objext'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15946 ac_header_compiler=yes
15947 else
15948 echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15951 ac_header_compiler=no
15953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15955 echo "${ECHO_T}$ac_header_compiler" >&6
15957 # Is the header present?
15958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15960 cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h. */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 #include <$ac_header>
15967 _ACEOF
15968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } >/dev/null; then
15976 if test -s conftest.err; then
15977 ac_cpp_err=$ac_c_preproc_warn_flag
15978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15979 else
15980 ac_cpp_err=
15982 else
15983 ac_cpp_err=yes
15985 if test -z "$ac_cpp_err"; then
15986 ac_header_preproc=yes
15987 else
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15991 ac_header_preproc=no
15993 rm -f conftest.err conftest.$ac_ext
15994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15995 echo "${ECHO_T}$ac_header_preproc" >&6
15997 # So? What about this header?
15998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15999 yes:no: )
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16004 ac_header_preproc=yes
16006 no:yes:* )
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16020 cat <<\_ASBOX
16021 ## ------------------------------------ ##
16022 ## Report this to wine-devel@winehq.org ##
16023 ## ------------------------------------ ##
16024 _ASBOX
16026 sed "s/^/$as_me: WARNING: /" >&2
16028 esac
16029 echo "$as_me:$LINENO: checking for $ac_header" >&5
16030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 else
16034 eval "$as_ac_Header=\$ac_header_preproc"
16036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16041 cat >>confdefs.h <<_ACEOF
16042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16043 _ACEOF
16047 done
16049 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16050 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16051 if test "${ac_cv_header_stat_broken+set}" = set; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 else
16054 cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h. */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 #include <sys/types.h>
16061 #include <sys/stat.h>
16063 #if defined(S_ISBLK) && defined(S_IFDIR)
16064 # if S_ISBLK (S_IFDIR)
16065 You lose.
16066 # endif
16067 #endif
16069 #if defined(S_ISBLK) && defined(S_IFCHR)
16070 # if S_ISBLK (S_IFCHR)
16071 You lose.
16072 # endif
16073 #endif
16075 #if defined(S_ISLNK) && defined(S_IFREG)
16076 # if S_ISLNK (S_IFREG)
16077 You lose.
16078 # endif
16079 #endif
16081 #if defined(S_ISSOCK) && defined(S_IFREG)
16082 # if S_ISSOCK (S_IFREG)
16083 You lose.
16084 # endif
16085 #endif
16087 _ACEOF
16088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16089 $EGREP "You lose" >/dev/null 2>&1; then
16090 ac_cv_header_stat_broken=yes
16091 else
16092 ac_cv_header_stat_broken=no
16094 rm -f conftest*
16097 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16098 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16099 if test $ac_cv_header_stat_broken = yes; then
16101 cat >>confdefs.h <<\_ACEOF
16102 #define STAT_MACROS_BROKEN 1
16103 _ACEOF
16111 for ac_header in sys/mount.h sys/user.h
16113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16114 echo "$as_me:$LINENO: checking for $ac_header" >&5
16115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 else
16119 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h. */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 #include <sys/types.h>
16126 #if HAVE_SYS_PARAM_H
16127 # include <sys/param.h>
16128 #endif
16130 #include <$ac_header>
16131 _ACEOF
16132 rm -f conftest.$ac_objext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>conftest.er1
16135 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest.$ac_objext'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 eval "$as_ac_Header=yes"
16154 else
16155 echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16158 eval "$as_ac_Header=no"
16160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16165 cat >>confdefs.h <<_ACEOF
16166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16167 _ACEOF
16171 done
16179 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16182 echo "$as_me:$LINENO: checking for $ac_header" >&5
16183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16186 else
16187 cat >conftest.$ac_ext <<_ACEOF
16188 /* confdefs.h. */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h. */
16193 #include <sys/types.h>
16194 #if HAVE_SYS_SOCKET_H
16195 # include <sys/socket.h>
16196 #endif
16198 #include <$ac_header>
16199 _ACEOF
16200 rm -f conftest.$ac_objext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16202 (eval $ac_compile) 2>conftest.er1
16203 ac_status=$?
16204 grep -v '^ *+' conftest.er1 >conftest.err
16205 rm -f conftest.er1
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; } &&
16215 { ac_try='test -s conftest.$ac_objext'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; }; then
16221 eval "$as_ac_Header=yes"
16222 else
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16226 eval "$as_ac_Header=no"
16228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16233 cat >>confdefs.h <<_ACEOF
16234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16235 _ACEOF
16239 done
16243 for ac_header in resolv.h
16245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16246 echo "$as_me:$LINENO: checking for $ac_header" >&5
16247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 else
16251 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h. */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16257 #include <sys/types.h>
16258 #if HAVE_SYS_SOCKET_H
16259 # include <sys/socket.h>
16260 #endif
16261 #if HAVE_NETINET_IN_H
16262 # include <netinet/in.h>
16263 #endif
16264 #if HAVE_ARPA_NAMESER_H
16265 # include <arpa/nameser.h>
16266 #endif
16268 #include <$ac_header>
16269 _ACEOF
16270 rm -f conftest.$ac_objext
16271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16272 (eval $ac_compile) 2>conftest.er1
16273 ac_status=$?
16274 grep -v '^ *+' conftest.er1 >conftest.err
16275 rm -f conftest.er1
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } &&
16279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } &&
16285 { ac_try='test -s conftest.$ac_objext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 eval "$as_ac_Header=yes"
16292 else
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 eval "$as_ac_Header=no"
16298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16303 cat >>confdefs.h <<_ACEOF
16304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16305 _ACEOF
16309 done
16313 for ac_header in netinet/ip.h
16315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16316 echo "$as_me:$LINENO: checking for $ac_header" >&5
16317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 else
16321 cat >conftest.$ac_ext <<_ACEOF
16322 /* confdefs.h. */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 #include <sys/types.h>
16328 #if HAVE_SYS_SOCKET_H
16329 # include <sys/socket.h>
16330 #endif
16331 #if HAVE_NETINET_IN_SYSTM_H
16332 # include <netinet/in_systm.h>
16333 #endif
16335 #include <$ac_header>
16336 _ACEOF
16337 rm -f conftest.$ac_objext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16339 (eval $ac_compile) 2>conftest.er1
16340 ac_status=$?
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest.$ac_objext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 eval "$as_ac_Header=yes"
16359 else
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 eval "$as_ac_Header=no"
16365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16370 cat >>confdefs.h <<_ACEOF
16371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16372 _ACEOF
16376 done
16380 for ac_header in ucontext.h
16382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16383 echo "$as_me:$LINENO: checking for $ac_header" >&5
16384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388 cat >conftest.$ac_ext <<_ACEOF
16389 /* confdefs.h. */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 #include <signal.h>
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 eval "$as_ac_Header=yes"
16420 else
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16424 eval "$as_ac_Header=no"
16426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16431 cat >>confdefs.h <<_ACEOF
16432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16433 _ACEOF
16437 done
16441 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16442 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16443 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 else
16446 cat >conftest.$ac_ext <<_ACEOF
16447 /* confdefs.h. */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 #include <sys/types.h>
16453 #ifdef HAVE_SYS_SOCKET_H
16454 # include <sys/socket.h>
16455 #endif
16456 #include <netipx/ipx.h>
16458 main ()
16460 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16462 return 0;
16464 _ACEOF
16465 rm -f conftest.$ac_objext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16467 (eval $ac_compile) 2>conftest.er1
16468 ac_status=$?
16469 grep -v '^ *+' conftest.er1 >conftest.err
16470 rm -f conftest.er1
16471 cat conftest.err >&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16486 ac_cv_c_ipx_gnu="yes"
16487 else
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16491 ac_cv_c_ipx_gnu="no"
16493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16496 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16497 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16498 if test "$ac_cv_c_ipx_gnu" = "yes"
16499 then
16501 cat >>confdefs.h <<\_ACEOF
16502 #define HAVE_IPX_GNU 1
16503 _ACEOF
16507 if test "$ac_cv_c_ipx_gnu" = "no"
16508 then
16509 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16510 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16511 if test "${ac_cv_c_ipx_linux+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16513 else
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h. */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <sys/types.h>
16521 #ifdef HAVE_SYS_SOCKET_H
16522 # include <sys/socket.h>
16523 #endif
16524 #include <asm/types.h>
16525 #include <linux/ipx.h>
16527 main ()
16529 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16531 return 0;
16533 _ACEOF
16534 rm -f conftest.$ac_objext
16535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16536 (eval $ac_compile) 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
16543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; } &&
16549 { ac_try='test -s conftest.$ac_objext'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_cv_c_ipx_linux="yes"
16556 else
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16560 ac_cv_c_ipx_linux="no"
16562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16565 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16566 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16567 if test "$ac_cv_c_ipx_linux" = "yes"
16568 then
16570 cat >>confdefs.h <<\_ACEOF
16571 #define HAVE_IPX_LINUX 1
16572 _ACEOF
16578 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16579 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16580 if test "${ac_cv_c_const+set}" = set; then
16581 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 else
16583 cat >conftest.$ac_ext <<_ACEOF
16584 /* confdefs.h. */
16585 _ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h. */
16591 main ()
16593 /* FIXME: Include the comments suggested by Paul. */
16594 #ifndef __cplusplus
16595 /* Ultrix mips cc rejects this. */
16596 typedef int charset[2];
16597 const charset x;
16598 /* SunOS 4.1.1 cc rejects this. */
16599 char const *const *ccp;
16600 char **p;
16601 /* NEC SVR4.0.2 mips cc rejects this. */
16602 struct point {int x, y;};
16603 static struct point const zero = {0,0};
16604 /* AIX XL C 1.02.0.0 rejects this.
16605 It does not let you subtract one const X* pointer from another in
16606 an arm of an if-expression whose if-part is not a constant
16607 expression */
16608 const char *g = "string";
16609 ccp = &g + (g ? g-g : 0);
16610 /* HPUX 7.0 cc rejects these. */
16611 ++ccp;
16612 p = (char**) ccp;
16613 ccp = (char const *const *) p;
16614 { /* SCO 3.2v4 cc rejects this. */
16615 char *t;
16616 char const *s = 0 ? (char *) 0 : (char const *) 0;
16618 *t++ = 0;
16620 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16621 int x[] = {25, 17};
16622 const int *foo = &x[0];
16623 ++foo;
16625 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16626 typedef const int *iptr;
16627 iptr p = 0;
16628 ++p;
16630 { /* AIX XL C 1.02.0.0 rejects this saying
16631 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16632 struct s { int j; const int *ap[3]; };
16633 struct s *b; b->j = 5;
16635 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16636 const int foo = 10;
16638 #endif
16641 return 0;
16643 _ACEOF
16644 rm -f conftest.$ac_objext
16645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16646 (eval $ac_compile) 2>conftest.er1
16647 ac_status=$?
16648 grep -v '^ *+' conftest.er1 >conftest.err
16649 rm -f conftest.er1
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } &&
16653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; } &&
16659 { ac_try='test -s conftest.$ac_objext'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_cv_c_const=yes
16666 else
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_cv_c_const=no
16672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16674 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16675 echo "${ECHO_T}$ac_cv_c_const" >&6
16676 if test $ac_cv_c_const = no; then
16678 cat >>confdefs.h <<\_ACEOF
16679 #define const
16680 _ACEOF
16684 echo "$as_me:$LINENO: checking for inline" >&5
16685 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16686 if test "${ac_cv_c_inline+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 else
16689 ac_cv_c_inline=no
16690 for ac_kw in inline __inline__ __inline; do
16691 cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h. */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 #ifndef __cplusplus
16698 typedef int foo_t;
16699 static $ac_kw foo_t static_foo () {return 0; }
16700 $ac_kw foo_t foo () {return 0; }
16701 #endif
16703 _ACEOF
16704 rm -f conftest.$ac_objext
16705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16706 (eval $ac_compile) 2>conftest.er1
16707 ac_status=$?
16708 grep -v '^ *+' conftest.er1 >conftest.err
16709 rm -f conftest.er1
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
16725 ac_cv_c_inline=$ac_kw; break
16726 else
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16732 done
16735 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16736 echo "${ECHO_T}$ac_cv_c_inline" >&6
16739 case $ac_cv_c_inline in
16740 inline | yes) ;;
16742 case $ac_cv_c_inline in
16743 no) ac_val=;;
16744 *) ac_val=$ac_cv_c_inline;;
16745 esac
16746 cat >>confdefs.h <<_ACEOF
16747 #ifndef __cplusplus
16748 #define inline $ac_val
16749 #endif
16750 _ACEOF
16752 esac
16754 echo "$as_me:$LINENO: checking for mode_t" >&5
16755 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
16756 if test "${ac_cv_type_mode_t+set}" = set; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 else
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h. */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 $ac_includes_default
16767 main ()
16769 if ((mode_t *) 0)
16770 return 0;
16771 if (sizeof (mode_t))
16772 return 0;
16774 return 0;
16776 _ACEOF
16777 rm -f conftest.$ac_objext
16778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16779 (eval $ac_compile) 2>conftest.er1
16780 ac_status=$?
16781 grep -v '^ *+' conftest.er1 >conftest.err
16782 rm -f conftest.er1
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } &&
16786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest.$ac_objext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_type_mode_t=yes
16799 else
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 ac_cv_type_mode_t=no
16805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16807 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16808 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
16809 if test $ac_cv_type_mode_t = yes; then
16811 cat >>confdefs.h <<_ACEOF
16812 #define HAVE_MODE_T 1
16813 _ACEOF
16817 echo "$as_me:$LINENO: checking for off_t" >&5
16818 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
16819 if test "${ac_cv_type_off_t+set}" = set; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 else
16822 cat >conftest.$ac_ext <<_ACEOF
16823 /* confdefs.h. */
16824 _ACEOF
16825 cat confdefs.h >>conftest.$ac_ext
16826 cat >>conftest.$ac_ext <<_ACEOF
16827 /* end confdefs.h. */
16828 $ac_includes_default
16830 main ()
16832 if ((off_t *) 0)
16833 return 0;
16834 if (sizeof (off_t))
16835 return 0;
16837 return 0;
16839 _ACEOF
16840 rm -f conftest.$ac_objext
16841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16842 (eval $ac_compile) 2>conftest.er1
16843 ac_status=$?
16844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } &&
16849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; } &&
16855 { ac_try='test -s conftest.$ac_objext'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_cv_type_off_t=yes
16862 else
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_cv_type_off_t=no
16868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16871 echo "${ECHO_T}$ac_cv_type_off_t" >&6
16872 if test $ac_cv_type_off_t = yes; then
16874 cat >>confdefs.h <<_ACEOF
16875 #define HAVE_OFF_T 1
16876 _ACEOF
16880 echo "$as_me:$LINENO: checking for pid_t" >&5
16881 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16882 if test "${ac_cv_type_pid_t+set}" = set; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 else
16885 cat >conftest.$ac_ext <<_ACEOF
16886 /* confdefs.h. */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16891 $ac_includes_default
16893 main ()
16895 if ((pid_t *) 0)
16896 return 0;
16897 if (sizeof (pid_t))
16898 return 0;
16900 return 0;
16902 _ACEOF
16903 rm -f conftest.$ac_objext
16904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16905 (eval $ac_compile) 2>conftest.er1
16906 ac_status=$?
16907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
16912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest.$ac_objext'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_cv_type_pid_t=yes
16925 else
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 ac_cv_type_pid_t=no
16931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16933 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16934 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16935 if test $ac_cv_type_pid_t = yes; then
16937 cat >>confdefs.h <<_ACEOF
16938 #define HAVE_PID_T 1
16939 _ACEOF
16943 echo "$as_me:$LINENO: checking for size_t" >&5
16944 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16945 if test "${ac_cv_type_size_t+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948 cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h. */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 $ac_includes_default
16956 main ()
16958 if ((size_t *) 0)
16959 return 0;
16960 if (sizeof (size_t))
16961 return 0;
16963 return 0;
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16968 (eval $ac_compile) 2>conftest.er1
16969 ac_status=$?
16970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
16975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_type_size_t=yes
16988 else
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16992 ac_cv_type_size_t=no
16994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16996 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16997 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16998 if test $ac_cv_type_size_t = yes; then
17000 cat >>confdefs.h <<_ACEOF
17001 #define HAVE_SIZE_T 1
17002 _ACEOF
17006 echo "$as_me:$LINENO: checking for ssize_t" >&5
17007 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17008 if test "${ac_cv_type_ssize_t+set}" = set; then
17009 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 else
17011 cat >conftest.$ac_ext <<_ACEOF
17012 /* confdefs.h. */
17013 _ACEOF
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h. */
17017 $ac_includes_default
17019 main ()
17021 if ((ssize_t *) 0)
17022 return 0;
17023 if (sizeof (ssize_t))
17024 return 0;
17026 return 0;
17028 _ACEOF
17029 rm -f conftest.$ac_objext
17030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17031 (eval $ac_compile) 2>conftest.er1
17032 ac_status=$?
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
17038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest.$ac_objext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_cv_type_ssize_t=yes
17051 else
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17055 ac_cv_type_ssize_t=no
17057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17059 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17060 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17061 if test $ac_cv_type_ssize_t = yes; then
17063 cat >>confdefs.h <<_ACEOF
17064 #define HAVE_SSIZE_T 1
17065 _ACEOF
17070 echo "$as_me:$LINENO: checking for long long" >&5
17071 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17072 if test "${ac_cv_type_long_long+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17074 else
17075 cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h. */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17081 $ac_includes_default
17083 main ()
17085 if ((long long *) 0)
17086 return 0;
17087 if (sizeof (long long))
17088 return 0;
17090 return 0;
17092 _ACEOF
17093 rm -f conftest.$ac_objext
17094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17095 (eval $ac_compile) 2>conftest.er1
17096 ac_status=$?
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
17102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; } &&
17108 { ac_try='test -s conftest.$ac_objext'
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_cv_type_long_long=yes
17115 else
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 ac_cv_type_long_long=no
17121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17123 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17124 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17126 echo "$as_me:$LINENO: checking size of long long" >&5
17127 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17128 if test "${ac_cv_sizeof_long_long+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 else
17131 if test "$ac_cv_type_long_long" = yes; then
17132 # The cast to unsigned long works around a bug in the HP C Compiler
17133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17135 # This bug is HP SR number 8606223364.
17136 if test "$cross_compiling" = yes; then
17137 # Depending upon the size, compute the lo and hi bounds.
17138 cat >conftest.$ac_ext <<_ACEOF
17139 /* confdefs.h. */
17140 _ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17144 $ac_includes_default
17146 main ()
17148 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17149 test_array [0] = 0
17152 return 0;
17154 _ACEOF
17155 rm -f conftest.$ac_objext
17156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17157 (eval $ac_compile) 2>conftest.er1
17158 ac_status=$?
17159 grep -v '^ *+' conftest.er1 >conftest.err
17160 rm -f conftest.er1
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; } &&
17170 { ac_try='test -s conftest.$ac_objext'
17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
17176 ac_lo=0 ac_mid=0
17177 while :; do
17178 cat >conftest.$ac_ext <<_ACEOF
17179 /* confdefs.h. */
17180 _ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17184 $ac_includes_default
17186 main ()
17188 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17189 test_array [0] = 0
17192 return 0;
17194 _ACEOF
17195 rm -f conftest.$ac_objext
17196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17197 (eval $ac_compile) 2>conftest.er1
17198 ac_status=$?
17199 grep -v '^ *+' conftest.er1 >conftest.err
17200 rm -f conftest.er1
17201 cat conftest.err >&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } &&
17204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; } &&
17210 { ac_try='test -s conftest.$ac_objext'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
17216 ac_hi=$ac_mid; break
17217 else
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 ac_lo=`expr $ac_mid + 1`
17222 if test $ac_lo -le $ac_mid; then
17223 ac_lo= ac_hi=
17224 break
17226 ac_mid=`expr 2 '*' $ac_mid + 1`
17228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17229 done
17230 else
17231 echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17234 cat >conftest.$ac_ext <<_ACEOF
17235 /* confdefs.h. */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 $ac_includes_default
17242 main ()
17244 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17245 test_array [0] = 0
17248 return 0;
17250 _ACEOF
17251 rm -f conftest.$ac_objext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17253 (eval $ac_compile) 2>conftest.er1
17254 ac_status=$?
17255 grep -v '^ *+' conftest.er1 >conftest.err
17256 rm -f conftest.er1
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
17260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; } &&
17266 { ac_try='test -s conftest.$ac_objext'
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 ac_hi=-1 ac_mid=-1
17273 while :; do
17274 cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h. */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17280 $ac_includes_default
17282 main ()
17284 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17285 test_array [0] = 0
17288 return 0;
17290 _ACEOF
17291 rm -f conftest.$ac_objext
17292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17293 (eval $ac_compile) 2>conftest.er1
17294 ac_status=$?
17295 grep -v '^ *+' conftest.er1 >conftest.err
17296 rm -f conftest.er1
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } &&
17300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17303 ac_status=$?
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; } &&
17306 { ac_try='test -s conftest.$ac_objext'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; }; then
17312 ac_lo=$ac_mid; break
17313 else
17314 echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17317 ac_hi=`expr '(' $ac_mid ')' - 1`
17318 if test $ac_mid -le $ac_hi; then
17319 ac_lo= ac_hi=
17320 break
17322 ac_mid=`expr 2 '*' $ac_mid`
17324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17325 done
17326 else
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 ac_lo= ac_hi=
17332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17335 # Binary search between lo and hi bounds.
17336 while test "x$ac_lo" != "x$ac_hi"; do
17337 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17338 cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h. */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 $ac_includes_default
17346 main ()
17348 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17349 test_array [0] = 0
17352 return 0;
17354 _ACEOF
17355 rm -f conftest.$ac_objext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17357 (eval $ac_compile) 2>conftest.er1
17358 ac_status=$?
17359 grep -v '^ *+' conftest.er1 >conftest.err
17360 rm -f conftest.er1
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
17364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest.$ac_objext'
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_hi=$ac_mid
17377 else
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 ac_lo=`expr '(' $ac_mid ')' + 1`
17383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17384 done
17385 case $ac_lo in
17386 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17387 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17388 See \`config.log' for more details." >&5
17389 echo "$as_me: error: cannot compute sizeof (long long), 77
17390 See \`config.log' for more details." >&2;}
17391 { (exit 1); exit 1; }; } ;;
17392 esac
17393 else
17394 if test "$cross_compiling" = yes; then
17395 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17396 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17397 { (exit 1); exit 1; }; }
17398 else
17399 cat >conftest.$ac_ext <<_ACEOF
17400 /* confdefs.h. */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17405 $ac_includes_default
17406 long longval () { return (long) (sizeof (long long)); }
17407 unsigned long ulongval () { return (long) (sizeof (long long)); }
17408 #include <stdio.h>
17409 #include <stdlib.h>
17411 main ()
17414 FILE *f = fopen ("conftest.val", "w");
17415 if (! f)
17416 exit (1);
17417 if (((long) (sizeof (long long))) < 0)
17419 long i = longval ();
17420 if (i != ((long) (sizeof (long long))))
17421 exit (1);
17422 fprintf (f, "%ld\n", i);
17424 else
17426 unsigned long i = ulongval ();
17427 if (i != ((long) (sizeof (long long))))
17428 exit (1);
17429 fprintf (f, "%lu\n", i);
17431 exit (ferror (f) || fclose (f) != 0);
17434 return 0;
17436 _ACEOF
17437 rm -f conftest$ac_exeext
17438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17439 (eval $ac_link) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; }; then
17448 ac_cv_sizeof_long_long=`cat conftest.val`
17449 else
17450 echo "$as_me: program exited with status $ac_status" >&5
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17454 ( exit $ac_status )
17455 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17456 See \`config.log' for more details." >&5
17457 echo "$as_me: error: cannot compute sizeof (long long), 77
17458 See \`config.log' for more details." >&2;}
17459 { (exit 1); exit 1; }; }
17461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17464 rm -f conftest.val
17465 else
17466 ac_cv_sizeof_long_long=0
17469 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17470 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17471 cat >>confdefs.h <<_ACEOF
17472 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17473 _ACEOF
17477 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17478 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17479 if test "${wine_cv_linux_input_h+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 else
17482 cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h. */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17489 #include <linux/input.h>
17492 main ()
17495 int foo = EVIOCGBIT(EV_ABS,42);
17496 int bar = BTN_PINKIE;
17497 int fortytwo = 42;
17500 return 0;
17502 _ACEOF
17503 rm -f conftest.$ac_objext
17504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17505 (eval $ac_compile) 2>conftest.er1
17506 ac_status=$?
17507 grep -v '^ *+' conftest.er1 >conftest.err
17508 rm -f conftest.er1
17509 cat conftest.err >&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
17512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; } &&
17518 { ac_try='test -s conftest.$ac_objext'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 wine_cv_linux_input_h=yes
17525 else
17526 echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17529 wine_cv_linux_input_h=no
17531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17534 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17535 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17536 if test "$wine_cv_linux_input_h" = "yes"
17537 then
17539 cat >>confdefs.h <<\_ACEOF
17540 #define HAVE_CORRECT_LINUXINPUT_H 1
17541 _ACEOF
17546 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17547 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17548 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17550 else
17551 cat >conftest.$ac_ext <<_ACEOF
17552 /* confdefs.h. */
17553 _ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17558 #include <netdb.h>
17561 main ()
17564 char *name=NULL;
17565 struct hostent he;
17566 struct hostent *result;
17567 char *buf=NULL;
17568 int bufsize=0;
17569 int res,errnr;
17570 char *addr=NULL;
17571 int addrlen=0;
17572 int addrtype=0;
17573 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17574 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17577 return 0;
17579 _ACEOF
17580 rm -f conftest.$ac_objext conftest$ac_exeext
17581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17582 (eval $ac_link) 2>conftest.er1
17583 ac_status=$?
17584 grep -v '^ *+' conftest.er1 >conftest.err
17585 rm -f conftest.er1
17586 cat conftest.err >&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; } &&
17595 { ac_try='test -s conftest$ac_exeext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 wine_cv_linux_gethostbyname_r_6=yes
17602 else
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 wine_cv_linux_gethostbyname_r_6=no
17609 rm -f conftest.err conftest.$ac_objext \
17610 conftest$ac_exeext conftest.$ac_ext
17613 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17614 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17615 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17616 then
17618 cat >>confdefs.h <<\_ACEOF
17619 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17620 _ACEOF
17624 if test "$ac_cv_header_linux_joystick_h" = "yes"
17625 then
17626 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17627 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17628 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631 cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h. */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17638 #include <sys/ioctl.h>
17639 #include <linux/joystick.h>
17641 struct js_event blub;
17642 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17643 #error "no 2.2 header"
17644 #endif
17647 main ()
17649 /*empty*/
17651 return 0;
17653 _ACEOF
17654 rm -f conftest.$ac_objext
17655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17656 (eval $ac_compile) 2>conftest.er1
17657 ac_status=$?
17658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
17663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 wine_cv_linux_joystick_22_api=yes
17676 else
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 wine_cv_linux_joystick_22_api=no
17682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17685 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17686 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17687 if test "$wine_cv_linux_joystick_22_api" = "yes"
17688 then
17690 cat >>confdefs.h <<\_ACEOF
17691 #define HAVE_LINUX_22_JOYSTICK_API 1
17692 _ACEOF
17698 if test "$ac_cv_header_sys_vfs_h" = "yes"
17699 then
17700 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17701 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17702 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 else
17705 cat >conftest.$ac_ext <<_ACEOF
17706 /* confdefs.h. */
17707 _ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17712 #include <sys/types.h>
17713 #ifdef HAVE_SYS_PARAM_H
17714 # include <sys/param.h>
17715 #endif
17716 #include <sys/vfs.h>
17719 main ()
17722 struct statfs stfs;
17724 memset(&stfs,0,sizeof(stfs));
17727 return 0;
17729 _ACEOF
17730 rm -f conftest.$ac_objext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17732 (eval $ac_compile) 2>conftest.er1
17733 ac_status=$?
17734 grep -v '^ *+' conftest.er1 >conftest.err
17735 rm -f conftest.er1
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741 (eval $ac_try) 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; } &&
17745 { ac_try='test -s conftest.$ac_objext'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; }; then
17751 wine_cv_sys_vfs_has_statfs=yes
17752 else
17753 echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17756 wine_cv_sys_vfs_has_statfs=no
17759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17762 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
17763 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
17764 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17765 then
17767 cat >>confdefs.h <<\_ACEOF
17768 #define STATFS_DEFINED_BY_SYS_VFS 1
17769 _ACEOF
17774 if test "$ac_cv_header_sys_statfs_h" = "yes"
17775 then
17776 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
17777 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17778 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 else
17781 cat >conftest.$ac_ext <<_ACEOF
17782 /* confdefs.h. */
17783 _ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17788 #include <sys/types.h>
17789 #ifdef HAVE_SYS_PARAM_H
17790 # include <sys/param.h>
17791 #endif
17792 #include <sys/statfs.h>
17795 main ()
17798 struct statfs stfs;
17801 return 0;
17803 _ACEOF
17804 rm -f conftest.$ac_objext
17805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17806 (eval $ac_compile) 2>conftest.er1
17807 ac_status=$?
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; } &&
17819 { ac_try='test -s conftest.$ac_objext'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17825 wine_cv_sys_statfs_has_statfs=yes
17826 else
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17830 wine_cv_sys_statfs_has_statfs=no
17833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17836 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
17837 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
17838 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
17839 then
17841 cat >>confdefs.h <<\_ACEOF
17842 #define STATFS_DEFINED_BY_SYS_STATFS 1
17843 _ACEOF
17848 if test "$ac_cv_header_sys_mount_h" = "yes"
17849 then
17850 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
17851 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
17852 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17854 else
17855 cat >conftest.$ac_ext <<_ACEOF
17856 /* confdefs.h. */
17857 _ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h. */
17862 #include <sys/types.h>
17863 #ifdef HAVE_SYS_PARAM_H
17864 # include <sys/param.h>
17865 #endif
17866 #include <sys/mount.h>
17869 main ()
17872 struct statfs stfs;
17875 return 0;
17877 _ACEOF
17878 rm -f conftest.$ac_objext
17879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17880 (eval $ac_compile) 2>conftest.er1
17881 ac_status=$?
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; } &&
17893 { ac_try='test -s conftest.$ac_objext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 wine_cv_sys_mount_has_statfs=yes
17900 else
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 wine_cv_sys_mount_has_statfs=no
17907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17910 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
17911 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
17912 if test "$wine_cv_sys_mount_has_statfs" = "yes"
17913 then
17915 cat >>confdefs.h <<\_ACEOF
17916 #define STATFS_DEFINED_BY_SYS_MOUNT 1
17917 _ACEOF
17923 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17924 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
17925 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 else
17928 cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h. */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 #include <sys/types.h>
17935 #ifdef HAVE_SYS_PARAM_H
17936 # include <sys/param.h>
17937 #endif
17938 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
17939 # include <sys/mount.h>
17940 #else
17941 # ifdef STATFS_DEFINED_BY_SYS_VFS
17942 # include <sys/vfs.h>
17943 # else
17944 # ifdef STATFS_DEFINED_BY_SYS_STATFS
17945 # include <sys/statfs.h>
17946 # endif
17947 # endif
17948 #endif
17951 main ()
17953 static struct statfs ac_aggr;
17954 if (ac_aggr.f_bfree)
17955 return 0;
17957 return 0;
17959 _ACEOF
17960 rm -f conftest.$ac_objext
17961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17962 (eval $ac_compile) 2>conftest.er1
17963 ac_status=$?
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
17969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest.$ac_objext'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 ac_cv_member_struct_statfs_f_bfree=yes
17982 else
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17986 cat >conftest.$ac_ext <<_ACEOF
17987 /* confdefs.h. */
17988 _ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h. */
17992 #include <sys/types.h>
17993 #ifdef HAVE_SYS_PARAM_H
17994 # include <sys/param.h>
17995 #endif
17996 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
17997 # include <sys/mount.h>
17998 #else
17999 # ifdef STATFS_DEFINED_BY_SYS_VFS
18000 # include <sys/vfs.h>
18001 # else
18002 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18003 # include <sys/statfs.h>
18004 # endif
18005 # endif
18006 #endif
18009 main ()
18011 static struct statfs ac_aggr;
18012 if (sizeof ac_aggr.f_bfree)
18013 return 0;
18015 return 0;
18017 _ACEOF
18018 rm -f conftest.$ac_objext
18019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18020 (eval $ac_compile) 2>conftest.er1
18021 ac_status=$?
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
18027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest.$ac_objext'
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 ac_cv_member_struct_statfs_f_bfree=yes
18040 else
18041 echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18044 ac_cv_member_struct_statfs_f_bfree=no
18046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18050 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18051 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18052 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18054 cat >>confdefs.h <<_ACEOF
18055 #define HAVE_STRUCT_STATFS_F_BFREE 1
18056 _ACEOF
18060 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18061 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18062 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 else
18065 cat >conftest.$ac_ext <<_ACEOF
18066 /* confdefs.h. */
18067 _ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071 #include <sys/types.h>
18072 #ifdef HAVE_SYS_PARAM_H
18073 # include <sys/param.h>
18074 #endif
18075 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18076 # include <sys/mount.h>
18077 #else
18078 # ifdef STATFS_DEFINED_BY_SYS_VFS
18079 # include <sys/vfs.h>
18080 # else
18081 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18082 # include <sys/statfs.h>
18083 # endif
18084 # endif
18085 #endif
18088 main ()
18090 static struct statfs ac_aggr;
18091 if (ac_aggr.f_bavail)
18092 return 0;
18094 return 0;
18096 _ACEOF
18097 rm -f conftest.$ac_objext
18098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18099 (eval $ac_compile) 2>conftest.er1
18100 ac_status=$?
18101 grep -v '^ *+' conftest.er1 >conftest.err
18102 rm -f conftest.er1
18103 cat conftest.err >&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
18106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try='test -s conftest.$ac_objext'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 ac_cv_member_struct_statfs_f_bavail=yes
18119 else
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18123 cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h. */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18129 #include <sys/types.h>
18130 #ifdef HAVE_SYS_PARAM_H
18131 # include <sys/param.h>
18132 #endif
18133 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18134 # include <sys/mount.h>
18135 #else
18136 # ifdef STATFS_DEFINED_BY_SYS_VFS
18137 # include <sys/vfs.h>
18138 # else
18139 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18140 # include <sys/statfs.h>
18141 # endif
18142 # endif
18143 #endif
18146 main ()
18148 static struct statfs ac_aggr;
18149 if (sizeof ac_aggr.f_bavail)
18150 return 0;
18152 return 0;
18154 _ACEOF
18155 rm -f conftest.$ac_objext
18156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18157 (eval $ac_compile) 2>conftest.er1
18158 ac_status=$?
18159 grep -v '^ *+' conftest.er1 >conftest.err
18160 rm -f conftest.er1
18161 cat conftest.err >&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest.$ac_objext'
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; }; then
18176 ac_cv_member_struct_statfs_f_bavail=yes
18177 else
18178 echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18181 ac_cv_member_struct_statfs_f_bavail=no
18183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18187 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18188 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18189 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18191 cat >>confdefs.h <<_ACEOF
18192 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18193 _ACEOF
18199 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18200 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
18201 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
18202 echo $ECHO_N "(cached) $ECHO_C" >&6
18203 else
18204 cat >conftest.$ac_ext <<_ACEOF
18205 /* confdefs.h. */
18206 _ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h. */
18210 #include <sys/types.h>
18211 #ifdef HAVE_SYS_SOCKET_H
18212 # include <sys/socket.h>
18213 #endif
18214 #ifdef HAVE_SYS_UN_H
18215 # include <sys/un.h>
18216 #endif
18219 main ()
18221 static struct msghdr ac_aggr;
18222 if (ac_aggr.msg_accrights)
18223 return 0;
18225 return 0;
18227 _ACEOF
18228 rm -f conftest.$ac_objext
18229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18230 (eval $ac_compile) 2>conftest.er1
18231 ac_status=$?
18232 grep -v '^ *+' conftest.er1 >conftest.err
18233 rm -f conftest.er1
18234 cat conftest.err >&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); } &&
18237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18246 ac_status=$?
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_cv_member_struct_msghdr_msg_accrights=yes
18250 else
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 cat >conftest.$ac_ext <<_ACEOF
18255 /* confdefs.h. */
18256 _ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h. */
18260 #include <sys/types.h>
18261 #ifdef HAVE_SYS_SOCKET_H
18262 # include <sys/socket.h>
18263 #endif
18264 #ifdef HAVE_SYS_UN_H
18265 # include <sys/un.h>
18266 #endif
18269 main ()
18271 static struct msghdr ac_aggr;
18272 if (sizeof ac_aggr.msg_accrights)
18273 return 0;
18275 return 0;
18277 _ACEOF
18278 rm -f conftest.$ac_objext
18279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18280 (eval $ac_compile) 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; } &&
18293 { ac_try='test -s conftest.$ac_objext'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_cv_member_struct_msghdr_msg_accrights=yes
18300 else
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18304 ac_cv_member_struct_msghdr_msg_accrights=no
18306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18310 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18311 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
18312 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
18314 cat >>confdefs.h <<_ACEOF
18315 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18316 _ACEOF
18320 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18321 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
18322 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18323 echo $ECHO_N "(cached) $ECHO_C" >&6
18324 else
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 #include <sys/types.h>
18332 #ifdef HAVE_SYS_SOCKET_H
18333 # include <sys/socket.h>
18334 #endif
18335 #ifdef HAVE_SYS_UN_H
18336 # include <sys/un.h>
18337 #endif
18340 main ()
18342 static struct sockaddr ac_aggr;
18343 if (ac_aggr.sa_len)
18344 return 0;
18346 return 0;
18348 _ACEOF
18349 rm -f conftest.$ac_objext
18350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18351 (eval $ac_compile) 2>conftest.er1
18352 ac_status=$?
18353 grep -v '^ *+' conftest.er1 >conftest.err
18354 rm -f conftest.er1
18355 cat conftest.err >&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } &&
18358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; } &&
18364 { ac_try='test -s conftest.$ac_objext'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370 ac_cv_member_struct_sockaddr_sa_len=yes
18371 else
18372 echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18375 cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h. */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18381 #include <sys/types.h>
18382 #ifdef HAVE_SYS_SOCKET_H
18383 # include <sys/socket.h>
18384 #endif
18385 #ifdef HAVE_SYS_UN_H
18386 # include <sys/un.h>
18387 #endif
18390 main ()
18392 static struct sockaddr ac_aggr;
18393 if (sizeof ac_aggr.sa_len)
18394 return 0;
18396 return 0;
18398 _ACEOF
18399 rm -f conftest.$ac_objext
18400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18401 (eval $ac_compile) 2>conftest.er1
18402 ac_status=$?
18403 grep -v '^ *+' conftest.er1 >conftest.err
18404 rm -f conftest.er1
18405 cat conftest.err >&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); } &&
18408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest.$ac_objext'
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; }; then
18420 ac_cv_member_struct_sockaddr_sa_len=yes
18421 else
18422 echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18425 ac_cv_member_struct_sockaddr_sa_len=no
18427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18431 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18432 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
18433 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18437 _ACEOF
18441 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18442 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
18443 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 else
18446 cat >conftest.$ac_ext <<_ACEOF
18447 /* confdefs.h. */
18448 _ACEOF
18449 cat confdefs.h >>conftest.$ac_ext
18450 cat >>conftest.$ac_ext <<_ACEOF
18451 /* end confdefs.h. */
18452 #include <sys/types.h>
18453 #ifdef HAVE_SYS_SOCKET_H
18454 # include <sys/socket.h>
18455 #endif
18456 #ifdef HAVE_SYS_UN_H
18457 # include <sys/un.h>
18458 #endif
18461 main ()
18463 static struct sockaddr_un ac_aggr;
18464 if (ac_aggr.sun_len)
18465 return 0;
18467 return 0;
18469 _ACEOF
18470 rm -f conftest.$ac_objext
18471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18472 (eval $ac_compile) 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } &&
18479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; } &&
18485 { ac_try='test -s conftest.$ac_objext'
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
18491 ac_cv_member_struct_sockaddr_un_sun_len=yes
18492 else
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18496 cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h. */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h. */
18502 #include <sys/types.h>
18503 #ifdef HAVE_SYS_SOCKET_H
18504 # include <sys/socket.h>
18505 #endif
18506 #ifdef HAVE_SYS_UN_H
18507 # include <sys/un.h>
18508 #endif
18511 main ()
18513 static struct sockaddr_un ac_aggr;
18514 if (sizeof ac_aggr.sun_len)
18515 return 0;
18517 return 0;
18519 _ACEOF
18520 rm -f conftest.$ac_objext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18522 (eval $ac_compile) 2>conftest.er1
18523 ac_status=$?
18524 grep -v '^ *+' conftest.er1 >conftest.err
18525 rm -f conftest.er1
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
18529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest.$ac_objext'
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 ac_cv_member_struct_sockaddr_un_sun_len=yes
18542 else
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 ac_cv_member_struct_sockaddr_un_sun_len=no
18548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18552 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18553 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
18554 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
18556 cat >>confdefs.h <<_ACEOF
18557 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18558 _ACEOF
18564 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
18565 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
18566 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569 cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h. */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 #include <signal.h>
18578 main ()
18580 static siginfo_t ac_aggr;
18581 if (ac_aggr.si_fd)
18582 return 0;
18584 return 0;
18586 _ACEOF
18587 rm -f conftest.$ac_objext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18589 (eval $ac_compile) 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; } &&
18602 { ac_try='test -s conftest.$ac_objext'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
18608 ac_cv_member_siginfo_t_si_fd=yes
18609 else
18610 echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18613 cat >conftest.$ac_ext <<_ACEOF
18614 /* confdefs.h. */
18615 _ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h. */
18619 #include <signal.h>
18622 main ()
18624 static siginfo_t ac_aggr;
18625 if (sizeof ac_aggr.si_fd)
18626 return 0;
18628 return 0;
18630 _ACEOF
18631 rm -f conftest.$ac_objext
18632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18633 (eval $ac_compile) 2>conftest.er1
18634 ac_status=$?
18635 grep -v '^ *+' conftest.er1 >conftest.err
18636 rm -f conftest.er1
18637 cat conftest.err >&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); } &&
18640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } &&
18646 { ac_try='test -s conftest.$ac_objext'
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18649 ac_status=$?
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; }; then
18652 ac_cv_member_siginfo_t_si_fd=yes
18653 else
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18657 ac_cv_member_siginfo_t_si_fd=no
18659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18663 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
18664 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
18665 if test $ac_cv_member_siginfo_t_si_fd = yes; then
18667 cat >>confdefs.h <<_ACEOF
18668 #define HAVE_SIGINFO_T_SI_FD 1
18669 _ACEOF
18675 echo "$as_me:$LINENO: checking for struct option.name" >&5
18676 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
18677 if test "${ac_cv_member_struct_option_name+set}" = set; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 else
18680 cat >conftest.$ac_ext <<_ACEOF
18681 /* confdefs.h. */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18686 #ifdef HAVE_GETOPT_H
18687 #include <getopt.h>
18688 #endif
18691 main ()
18693 static struct option ac_aggr;
18694 if (ac_aggr.name)
18695 return 0;
18697 return 0;
18699 _ACEOF
18700 rm -f conftest.$ac_objext
18701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18702 (eval $ac_compile) 2>conftest.er1
18703 ac_status=$?
18704 grep -v '^ *+' conftest.er1 >conftest.err
18705 rm -f conftest.er1
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
18709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18712 ac_status=$?
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; } &&
18715 { ac_try='test -s conftest.$ac_objext'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18718 ac_status=$?
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 ac_cv_member_struct_option_name=yes
18722 else
18723 echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18726 cat >conftest.$ac_ext <<_ACEOF
18727 /* confdefs.h. */
18728 _ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 #ifdef HAVE_GETOPT_H
18733 #include <getopt.h>
18734 #endif
18737 main ()
18739 static struct option ac_aggr;
18740 if (sizeof ac_aggr.name)
18741 return 0;
18743 return 0;
18745 _ACEOF
18746 rm -f conftest.$ac_objext
18747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18748 (eval $ac_compile) 2>conftest.er1
18749 ac_status=$?
18750 grep -v '^ *+' conftest.er1 >conftest.err
18751 rm -f conftest.er1
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest.$ac_objext'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
18767 ac_cv_member_struct_option_name=yes
18768 else
18769 echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18772 ac_cv_member_struct_option_name=no
18774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18778 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
18779 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
18780 if test $ac_cv_member_struct_option_name = yes; then
18782 cat >>confdefs.h <<_ACEOF
18783 #define HAVE_STRUCT_OPTION_NAME 1
18784 _ACEOF
18790 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18791 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
18792 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 else
18795 cat >conftest.$ac_ext <<_ACEOF
18796 /* confdefs.h. */
18797 _ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h. */
18801 $ac_includes_default
18803 main ()
18805 static struct stat ac_aggr;
18806 if (ac_aggr.st_blocks)
18807 return 0;
18809 return 0;
18811 _ACEOF
18812 rm -f conftest.$ac_objext
18813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18814 (eval $ac_compile) 2>conftest.er1
18815 ac_status=$?
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } &&
18821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest.$ac_objext'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 ac_cv_member_struct_stat_st_blocks=yes
18834 else
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18838 cat >conftest.$ac_ext <<_ACEOF
18839 /* confdefs.h. */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18844 $ac_includes_default
18846 main ()
18848 static struct stat ac_aggr;
18849 if (sizeof ac_aggr.st_blocks)
18850 return 0;
18852 return 0;
18854 _ACEOF
18855 rm -f conftest.$ac_objext
18856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18857 (eval $ac_compile) 2>conftest.er1
18858 ac_status=$?
18859 grep -v '^ *+' conftest.er1 >conftest.err
18860 rm -f conftest.er1
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
18864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18866 (eval $ac_try) 2>&5
18867 ac_status=$?
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; } &&
18870 { ac_try='test -s conftest.$ac_objext'
18871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872 (eval $ac_try) 2>&5
18873 ac_status=$?
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; }; then
18876 ac_cv_member_struct_stat_st_blocks=yes
18877 else
18878 echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18881 ac_cv_member_struct_stat_st_blocks=no
18883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18887 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18888 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
18889 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18891 cat >>confdefs.h <<_ACEOF
18892 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18893 _ACEOF
18900 case $host_cpu in
18901 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
18902 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
18903 if test "${ac_cv_cpp_def___i386__+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906 cat >conftest.$ac_ext <<_ACEOF
18907 /* confdefs.h. */
18908 _ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h. */
18912 #ifndef __i386__
18914 #endif
18915 _ACEOF
18916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18917 $EGREP "yes" >/dev/null 2>&1; then
18918 ac_cv_cpp_def___i386__=yes
18919 else
18920 ac_cv_cpp_def___i386__=no
18922 rm -f conftest*
18925 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
18926 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
18927 if test $ac_cv_cpp_def___i386__ = yes; then
18928 CFLAGS="$CFLAGS -D__i386__"
18929 LINTFLAGS="$LINTFLAGS -D__i386__"
18932 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
18933 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
18934 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937 cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h. */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18943 #ifndef __ALPHA__
18945 #endif
18946 _ACEOF
18947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18948 $EGREP "yes" >/dev/null 2>&1; then
18949 ac_cv_cpp_def___ALPHA__=yes
18950 else
18951 ac_cv_cpp_def___ALPHA__=no
18953 rm -f conftest*
18956 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
18957 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
18958 if test $ac_cv_cpp_def___ALPHA__ = yes; then
18959 CFLAGS="$CFLAGS -D__ALPHA__"
18960 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
18963 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
18964 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
18965 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 else
18968 cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h. */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18974 #ifndef __sparc__
18976 #endif
18977 _ACEOF
18978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18979 $EGREP "yes" >/dev/null 2>&1; then
18980 ac_cv_cpp_def___sparc__=yes
18981 else
18982 ac_cv_cpp_def___sparc__=no
18984 rm -f conftest*
18987 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
18988 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
18989 if test $ac_cv_cpp_def___sparc__ = yes; then
18990 CFLAGS="$CFLAGS -D__sparc__"
18991 LINTFLAGS="$LINTFLAGS -D__sparc__"
18994 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
18995 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
18996 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 else
18999 cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h. */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 #ifndef __powerpc__
19007 #endif
19008 _ACEOF
19009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19010 $EGREP "yes" >/dev/null 2>&1; then
19011 ac_cv_cpp_def___powerpc__=yes
19012 else
19013 ac_cv_cpp_def___powerpc__=no
19015 rm -f conftest*
19018 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19019 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19020 if test $ac_cv_cpp_def___powerpc__ = yes; then
19021 CFLAGS="$CFLAGS -D__powerpc__"
19022 LINTFLAGS="$LINTFLAGS -D__powerpc__"
19025 esac
19027 case $host_vendor in
19028 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19029 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19030 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033 cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h. */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 #ifndef __sun__
19041 #endif
19042 _ACEOF
19043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19044 $EGREP "yes" >/dev/null 2>&1; then
19045 ac_cv_cpp_def___sun__=yes
19046 else
19047 ac_cv_cpp_def___sun__=no
19049 rm -f conftest*
19052 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19053 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19054 if test $ac_cv_cpp_def___sun__ = yes; then
19055 CFLAGS="$CFLAGS -D__sun__"
19056 LINTFLAGS="$LINTFLAGS -D__sun__"
19059 esac
19065 ac_config_commands="$ac_config_commands controls"
19067 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
19069 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
19071 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
19073 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
19075 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
19077 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
19079 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19081 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19083 ac_config_commands="$ac_config_commands dlls/kernel/messages"
19085 ac_config_commands="$ac_config_commands dlls/user/dde"
19087 ac_config_commands="$ac_config_commands dlls/user/resources"
19089 ac_config_commands="$ac_config_commands dlls/wineps/data"
19091 ac_config_commands="$ac_config_commands files"
19093 ac_config_commands="$ac_config_commands include/wine"
19095 ac_config_commands="$ac_config_commands misc"
19097 ac_config_commands="$ac_config_commands objects"
19099 ac_config_commands="$ac_config_commands programs/regedit/tests"
19101 ac_config_commands="$ac_config_commands windows"
19104 MAKE_RULES=Make.rules
19107 MAKE_DLL_RULES=dlls/Makedll.rules
19110 MAKE_TEST_RULES=dlls/Maketest.rules
19113 MAKE_LIB_RULES=libs/Makelib.rules
19116 MAKE_PROG_RULES=programs/Makeprog.rules
19119 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/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/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/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/iccvid/Makefile dlls/icmp/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/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/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/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/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/version/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/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"
19122 cat >confcache <<\_ACEOF
19123 # This file is a shell script that caches the results of configure
19124 # tests run on this system so they can be shared between configure
19125 # scripts and configure runs, see configure's option --config-cache.
19126 # It is not useful on other systems. If it contains results you don't
19127 # want to keep, you may remove or edit it.
19129 # config.status only pays attention to the cache file if you give it
19130 # the --recheck option to rerun configure.
19132 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19133 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19134 # following values.
19136 _ACEOF
19138 # The following way of writing the cache mishandles newlines in values,
19139 # but we know of no workaround that is simple, portable, and efficient.
19140 # So, don't put newlines in cache variables' values.
19141 # Ultrix sh set writes to stderr and can't be redirected directly,
19142 # and sets the high bit in the cache file unless we assign to the vars.
19144 (set) 2>&1 |
19145 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19146 *ac_space=\ *)
19147 # `set' does not quote correctly, so add quotes (double-quote
19148 # substitution turns \\\\ into \\, and sed turns \\ into \).
19149 sed -n \
19150 "s/'/'\\\\''/g;
19151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19154 # `set' quotes correctly as required by POSIX, so do not add quotes.
19155 sed -n \
19156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19158 esac;
19160 sed '
19161 t clear
19162 : clear
19163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19164 t end
19165 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19166 : end' >>confcache
19167 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19168 if test -w $cache_file; then
19169 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19170 cat confcache >$cache_file
19171 else
19172 echo "not updating unwritable cache $cache_file"
19175 rm -f confcache
19177 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19178 # Let make expand exec_prefix.
19179 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19181 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19182 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19183 # trailing colons and then remove the whole line if VPATH becomes empty
19184 # (actually we leave an empty line to preserve line numbers).
19185 if test "x$srcdir" = x.; then
19186 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19187 s/:*\$(srcdir):*/:/;
19188 s/:*\${srcdir}:*/:/;
19189 s/:*@srcdir@:*/:/;
19190 s/^\([^=]*=[ ]*\):*/\1/;
19191 s/:*$//;
19192 s/^[^=]*=[ ]*$//;
19196 DEFS=-DHAVE_CONFIG_H
19198 ac_libobjs=
19199 ac_ltlibobjs=
19200 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19201 # 1. Remove the extension, and $U if already installed.
19202 ac_i=`echo "$ac_i" |
19203 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19204 # 2. Add them.
19205 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19206 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19207 done
19208 LIBOBJS=$ac_libobjs
19210 LTLIBOBJS=$ac_ltlibobjs
19214 : ${CONFIG_STATUS=./config.status}
19215 ac_clean_files_save=$ac_clean_files
19216 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19217 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19218 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19219 cat >$CONFIG_STATUS <<_ACEOF
19220 #! $SHELL
19221 # Generated by $as_me.
19222 # Run this file to recreate the current configuration.
19223 # Compiler output produced by configure, useful for debugging
19224 # configure, is in config.log if it exists.
19226 debug=false
19227 ac_cs_recheck=false
19228 ac_cs_silent=false
19229 SHELL=\${CONFIG_SHELL-$SHELL}
19230 _ACEOF
19232 cat >>$CONFIG_STATUS <<\_ACEOF
19233 ## --------------------- ##
19234 ## M4sh Initialization. ##
19235 ## --------------------- ##
19237 # Be Bourne compatible
19238 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19239 emulate sh
19240 NULLCMD=:
19241 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19242 # is contrary to our usage. Disable this feature.
19243 alias -g '${1+"$@"}'='"$@"'
19244 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19245 set -o posix
19247 DUALCASE=1; export DUALCASE # for MKS sh
19249 # Support unset when possible.
19250 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19251 as_unset=unset
19252 else
19253 as_unset=false
19257 # Work around bugs in pre-3.0 UWIN ksh.
19258 $as_unset ENV MAIL MAILPATH
19259 PS1='$ '
19260 PS2='> '
19261 PS4='+ '
19263 # NLS nuisances.
19264 for as_var in \
19265 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19266 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19267 LC_TELEPHONE LC_TIME
19269 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19270 eval $as_var=C; export $as_var
19271 else
19272 $as_unset $as_var
19274 done
19276 # Required to use basename.
19277 if expr a : '\(a\)' >/dev/null 2>&1; then
19278 as_expr=expr
19279 else
19280 as_expr=false
19283 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19284 as_basename=basename
19285 else
19286 as_basename=false
19290 # Name of the executable.
19291 as_me=`$as_basename "$0" ||
19292 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19293 X"$0" : 'X\(//\)$' \| \
19294 X"$0" : 'X\(/\)$' \| \
19295 . : '\(.\)' 2>/dev/null ||
19296 echo X/"$0" |
19297 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19298 /^X\/\(\/\/\)$/{ s//\1/; q; }
19299 /^X\/\(\/\).*/{ s//\1/; q; }
19300 s/.*/./; q'`
19303 # PATH needs CR, and LINENO needs CR and PATH.
19304 # Avoid depending upon Character Ranges.
19305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19308 as_cr_digits='0123456789'
19309 as_cr_alnum=$as_cr_Letters$as_cr_digits
19311 # The user is always right.
19312 if test "${PATH_SEPARATOR+set}" != set; then
19313 echo "#! /bin/sh" >conf$$.sh
19314 echo "exit 0" >>conf$$.sh
19315 chmod +x conf$$.sh
19316 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19317 PATH_SEPARATOR=';'
19318 else
19319 PATH_SEPARATOR=:
19321 rm -f conf$$.sh
19325 as_lineno_1=$LINENO
19326 as_lineno_2=$LINENO
19327 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19328 test "x$as_lineno_1" != "x$as_lineno_2" &&
19329 test "x$as_lineno_3" = "x$as_lineno_2" || {
19330 # Find who we are. Look in the path if we contain no path at all
19331 # relative or not.
19332 case $0 in
19333 *[\\/]* ) as_myself=$0 ;;
19334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19335 for as_dir in $PATH
19337 IFS=$as_save_IFS
19338 test -z "$as_dir" && as_dir=.
19339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19340 done
19343 esac
19344 # We did not find ourselves, most probably we were run as `sh COMMAND'
19345 # in which case we are not to be found in the path.
19346 if test "x$as_myself" = x; then
19347 as_myself=$0
19349 if test ! -f "$as_myself"; then
19350 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19351 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19352 { (exit 1); exit 1; }; }
19354 case $CONFIG_SHELL in
19356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19357 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19359 IFS=$as_save_IFS
19360 test -z "$as_dir" && as_dir=.
19361 for as_base in sh bash ksh sh5; do
19362 case $as_dir in
19364 if ("$as_dir/$as_base" -c '
19365 as_lineno_1=$LINENO
19366 as_lineno_2=$LINENO
19367 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19368 test "x$as_lineno_1" != "x$as_lineno_2" &&
19369 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19370 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19371 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19372 CONFIG_SHELL=$as_dir/$as_base
19373 export CONFIG_SHELL
19374 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19375 fi;;
19376 esac
19377 done
19378 done
19380 esac
19382 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19383 # uniformly replaced by the line number. The first 'sed' inserts a
19384 # line-number line before each line; the second 'sed' does the real
19385 # work. The second script uses 'N' to pair each line-number line
19386 # with the numbered line, and appends trailing '-' during
19387 # substitution so that $LINENO is not a special case at line end.
19388 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19389 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19390 sed '=' <$as_myself |
19391 sed '
19393 s,$,-,
19394 : loop
19395 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19396 t loop
19397 s,-$,,
19398 s,^['$as_cr_digits']*\n,,
19399 ' >$as_me.lineno &&
19400 chmod +x $as_me.lineno ||
19401 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19402 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19403 { (exit 1); exit 1; }; }
19405 # Don't try to exec as it changes $[0], causing all sort of problems
19406 # (the dirname of $[0] is not the place where we might find the
19407 # original and so on. Autoconf is especially sensible to this).
19408 . ./$as_me.lineno
19409 # Exit status is that of the last command.
19410 exit
19414 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19415 *c*,-n*) ECHO_N= ECHO_C='
19416 ' ECHO_T=' ' ;;
19417 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19418 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19419 esac
19421 if expr a : '\(a\)' >/dev/null 2>&1; then
19422 as_expr=expr
19423 else
19424 as_expr=false
19427 rm -f conf$$ conf$$.exe conf$$.file
19428 echo >conf$$.file
19429 if ln -s conf$$.file conf$$ 2>/dev/null; then
19430 # We could just check for DJGPP; but this test a) works b) is more generic
19431 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19432 if test -f conf$$.exe; then
19433 # Don't use ln at all; we don't have any links
19434 as_ln_s='cp -p'
19435 else
19436 as_ln_s='ln -s'
19438 elif ln conf$$.file conf$$ 2>/dev/null; then
19439 as_ln_s=ln
19440 else
19441 as_ln_s='cp -p'
19443 rm -f conf$$ conf$$.exe conf$$.file
19445 if mkdir -p . 2>/dev/null; then
19446 as_mkdir_p=:
19447 else
19448 test -d ./-p && rmdir ./-p
19449 as_mkdir_p=false
19452 as_executable_p="test -f"
19454 # Sed expression to map a string onto a valid CPP name.
19455 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19457 # Sed expression to map a string onto a valid variable name.
19458 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19461 # IFS
19462 # We need space, tab and new line, in precisely that order.
19463 as_nl='
19465 IFS=" $as_nl"
19467 # CDPATH.
19468 $as_unset CDPATH
19470 exec 6>&1
19472 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19473 # report actual input values of CONFIG_FILES etc. instead of their
19474 # values after options handling. Logging --version etc. is OK.
19475 exec 5>>config.log
19477 echo
19478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19479 ## Running $as_me. ##
19480 _ASBOX
19481 } >&5
19482 cat >&5 <<_CSEOF
19484 This file was extended by Wine $as_me 20040121, which was
19485 generated by GNU Autoconf 2.59. Invocation command line was
19487 CONFIG_FILES = $CONFIG_FILES
19488 CONFIG_HEADERS = $CONFIG_HEADERS
19489 CONFIG_LINKS = $CONFIG_LINKS
19490 CONFIG_COMMANDS = $CONFIG_COMMANDS
19491 $ $0 $@
19493 _CSEOF
19494 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19495 echo >&5
19496 _ACEOF
19498 # Files that config.status was made for.
19499 if test -n "$ac_config_files"; then
19500 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19503 if test -n "$ac_config_headers"; then
19504 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19507 if test -n "$ac_config_links"; then
19508 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19511 if test -n "$ac_config_commands"; then
19512 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19515 cat >>$CONFIG_STATUS <<\_ACEOF
19517 ac_cs_usage="\
19518 \`$as_me' instantiates files from templates according to the
19519 current configuration.
19521 Usage: $0 [OPTIONS] [FILE]...
19523 -h, --help print this help, then exit
19524 -V, --version print version number, then exit
19525 -q, --quiet do not print progress messages
19526 -d, --debug don't remove temporary files
19527 --recheck update $as_me by reconfiguring in the same conditions
19528 --file=FILE[:TEMPLATE]
19529 instantiate the configuration file FILE
19530 --header=FILE[:TEMPLATE]
19531 instantiate the configuration header FILE
19533 Configuration files:
19534 $config_files
19536 Configuration headers:
19537 $config_headers
19539 Configuration commands:
19540 $config_commands
19542 Report bugs to <bug-autoconf@gnu.org>."
19543 _ACEOF
19545 cat >>$CONFIG_STATUS <<_ACEOF
19546 ac_cs_version="\\
19547 Wine config.status 20040121
19548 configured by $0, generated by GNU Autoconf 2.59,
19549 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19551 Copyright (C) 2003 Free Software Foundation, Inc.
19552 This config.status script is free software; the Free Software Foundation
19553 gives unlimited permission to copy, distribute and modify it."
19554 srcdir=$srcdir
19555 INSTALL="$INSTALL"
19556 _ACEOF
19558 cat >>$CONFIG_STATUS <<\_ACEOF
19559 # If no file are specified by the user, then we need to provide default
19560 # value. By we need to know if files were specified by the user.
19561 ac_need_defaults=:
19562 while test $# != 0
19564 case $1 in
19565 --*=*)
19566 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19567 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19568 ac_shift=:
19571 ac_option=$1
19572 ac_optarg=$2
19573 ac_shift=shift
19575 *) # This is not an option, so the user has probably given explicit
19576 # arguments.
19577 ac_option=$1
19578 ac_need_defaults=false;;
19579 esac
19581 case $ac_option in
19582 # Handling of the options.
19583 _ACEOF
19584 cat >>$CONFIG_STATUS <<\_ACEOF
19585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19586 ac_cs_recheck=: ;;
19587 --version | --vers* | -V )
19588 echo "$ac_cs_version"; exit 0 ;;
19589 --he | --h)
19590 # Conflict between --help and --header
19591 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19592 Try \`$0 --help' for more information." >&5
19593 echo "$as_me: error: ambiguous option: $1
19594 Try \`$0 --help' for more information." >&2;}
19595 { (exit 1); exit 1; }; };;
19596 --help | --hel | -h )
19597 echo "$ac_cs_usage"; exit 0 ;;
19598 --debug | --d* | -d )
19599 debug=: ;;
19600 --file | --fil | --fi | --f )
19601 $ac_shift
19602 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19603 ac_need_defaults=false;;
19604 --header | --heade | --head | --hea )
19605 $ac_shift
19606 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19607 ac_need_defaults=false;;
19608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19609 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19610 ac_cs_silent=: ;;
19612 # This is an error.
19613 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19614 Try \`$0 --help' for more information." >&5
19615 echo "$as_me: error: unrecognized option: $1
19616 Try \`$0 --help' for more information." >&2;}
19617 { (exit 1); exit 1; }; } ;;
19619 *) ac_config_targets="$ac_config_targets $1" ;;
19621 esac
19622 shift
19623 done
19625 ac_configure_extra_args=
19627 if $ac_cs_silent; then
19628 exec 6>/dev/null
19629 ac_configure_extra_args="$ac_configure_extra_args --silent"
19632 _ACEOF
19633 cat >>$CONFIG_STATUS <<_ACEOF
19634 if \$ac_cs_recheck; then
19635 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19636 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19639 _ACEOF
19645 cat >>$CONFIG_STATUS <<\_ACEOF
19646 for ac_config_target in $ac_config_targets
19648 case "$ac_config_target" in
19649 # Handling of arguments.
19650 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
19651 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
19652 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
19653 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
19654 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
19655 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19656 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
19657 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
19658 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
19659 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
19660 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
19661 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
19662 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
19663 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
19664 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
19665 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
19666 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
19667 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
19668 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
19669 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
19670 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
19671 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
19672 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
19673 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
19674 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
19675 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
19676 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
19677 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
19678 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
19679 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
19680 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
19681 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
19682 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
19683 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
19684 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
19685 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
19686 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
19687 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
19688 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
19689 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
19690 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
19691 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
19692 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
19693 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
19694 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
19695 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
19696 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
19697 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
19698 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
19699 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
19700 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
19701 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
19702 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
19703 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
19704 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
19705 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
19706 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
19707 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
19708 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
19709 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
19710 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
19711 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
19712 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
19713 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
19714 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
19715 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
19716 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
19717 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
19718 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
19719 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
19720 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
19721 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
19722 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
19723 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
19724 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
19725 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
19726 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
19727 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
19728 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
19729 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
19730 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
19731 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
19732 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
19733 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
19734 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
19735 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
19736 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
19737 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
19738 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
19739 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
19740 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
19741 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
19742 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
19743 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
19744 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
19745 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
19746 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
19747 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
19748 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
19749 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
19750 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
19751 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
19752 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
19753 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
19754 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
19755 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
19756 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
19757 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
19758 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
19759 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
19760 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
19761 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
19762 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
19763 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
19764 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
19765 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
19766 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
19767 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
19768 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
19769 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
19770 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
19771 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
19772 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
19773 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
19774 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
19775 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
19776 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
19777 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
19778 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
19779 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
19780 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
19781 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
19782 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
19783 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
19784 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
19785 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
19786 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
19787 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
19788 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
19789 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
19790 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
19791 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
19792 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
19793 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
19794 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
19795 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
19796 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
19797 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
19798 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
19799 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
19800 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
19801 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
19802 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
19803 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
19804 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
19805 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
19806 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
19807 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
19808 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
19809 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
19810 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
19811 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19812 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
19813 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
19814 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
19815 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
19816 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
19817 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
19818 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
19819 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
19820 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
19821 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
19822 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
19823 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
19824 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
19825 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
19826 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
19827 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
19828 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
19829 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
19830 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
19831 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
19832 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
19833 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
19834 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
19835 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
19836 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
19837 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
19838 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
19839 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
19840 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
19841 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
19842 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
19843 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
19844 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
19845 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
19846 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
19847 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
19848 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19849 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
19850 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
19851 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
19852 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
19853 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
19854 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
19855 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
19856 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
19857 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
19858 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
19859 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
19860 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
19861 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
19862 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
19863 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
19864 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
19865 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
19866 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
19867 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
19868 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
19869 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
19870 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
19871 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
19872 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
19873 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
19874 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
19875 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
19876 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19877 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19878 { (exit 1); exit 1; }; };;
19879 esac
19880 done
19882 # If the user did not use the arguments to specify the items to instantiate,
19883 # then the envvar interface is used. Set only those that are not.
19884 # We use the long form for the default assignment because of an extremely
19885 # bizarre bug on SunOS 4.1.3.
19886 if $ac_need_defaults; then
19887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19888 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19889 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19892 # Have a temporary directory for convenience. Make it in the build tree
19893 # simply because there is no reason to put it here, and in addition,
19894 # creating and moving files from /tmp can sometimes cause problems.
19895 # Create a temporary directory, and hook for its removal unless debugging.
19896 $debug ||
19898 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19899 trap '{ (exit 1); exit 1; }' 1 2 13 15
19902 # Create a (secure) tmp directory for tmp files.
19905 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19906 test -n "$tmp" && test -d "$tmp"
19907 } ||
19909 tmp=./confstat$$-$RANDOM
19910 (umask 077 && mkdir $tmp)
19911 } ||
19913 echo "$me: cannot create a temporary directory in ." >&2
19914 { (exit 1); exit 1; }
19917 _ACEOF
19919 cat >>$CONFIG_STATUS <<_ACEOF
19922 # CONFIG_FILES section.
19925 # No need to generate the scripts if there are no CONFIG_FILES.
19926 # This happens for instance when ./config.status config.h
19927 if test -n "\$CONFIG_FILES"; then
19928 # Protect against being on the right side of a sed subst in config.status.
19929 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19930 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19931 s,@SHELL@,$SHELL,;t t
19932 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19933 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19934 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19935 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19936 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19937 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19938 s,@exec_prefix@,$exec_prefix,;t t
19939 s,@prefix@,$prefix,;t t
19940 s,@program_transform_name@,$program_transform_name,;t t
19941 s,@bindir@,$bindir,;t t
19942 s,@sbindir@,$sbindir,;t t
19943 s,@libexecdir@,$libexecdir,;t t
19944 s,@datadir@,$datadir,;t t
19945 s,@sysconfdir@,$sysconfdir,;t t
19946 s,@sharedstatedir@,$sharedstatedir,;t t
19947 s,@localstatedir@,$localstatedir,;t t
19948 s,@libdir@,$libdir,;t t
19949 s,@includedir@,$includedir,;t t
19950 s,@oldincludedir@,$oldincludedir,;t t
19951 s,@infodir@,$infodir,;t t
19952 s,@mandir@,$mandir,;t t
19953 s,@build_alias@,$build_alias,;t t
19954 s,@host_alias@,$host_alias,;t t
19955 s,@target_alias@,$target_alias,;t t
19956 s,@DEFS@,$DEFS,;t t
19957 s,@ECHO_C@,$ECHO_C,;t t
19958 s,@ECHO_N@,$ECHO_N,;t t
19959 s,@ECHO_T@,$ECHO_T,;t t
19960 s,@LIBS@,$LIBS,;t t
19961 s,@WIN16_FILES@,$WIN16_FILES,;t t
19962 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
19963 s,@build@,$build,;t t
19964 s,@build_cpu@,$build_cpu,;t t
19965 s,@build_vendor@,$build_vendor,;t t
19966 s,@build_os@,$build_os,;t t
19967 s,@host@,$host,;t t
19968 s,@host_cpu@,$host_cpu,;t t
19969 s,@host_vendor@,$host_vendor,;t t
19970 s,@host_os@,$host_os,;t t
19971 s,@SET_MAKE@,$SET_MAKE,;t t
19972 s,@CC@,$CC,;t t
19973 s,@CFLAGS@,$CFLAGS,;t t
19974 s,@LDFLAGS@,$LDFLAGS,;t t
19975 s,@CPPFLAGS@,$CPPFLAGS,;t t
19976 s,@ac_ct_CC@,$ac_ct_CC,;t t
19977 s,@EXEEXT@,$EXEEXT,;t t
19978 s,@OBJEXT@,$OBJEXT,;t t
19979 s,@CPP@,$CPP,;t t
19980 s,@TOOLSDIR@,$TOOLSDIR,;t t
19981 s,@X_CFLAGS@,$X_CFLAGS,;t t
19982 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19983 s,@X_LIBS@,$X_LIBS,;t t
19984 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19985 s,@YACC@,$YACC,;t t
19986 s,@LEX@,$LEX,;t t
19987 s,@LEXLIB@,$LEXLIB,;t t
19988 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
19989 s,@XYACC@,$XYACC,;t t
19990 s,@XLEX@,$XLEX,;t t
19991 s,@AS@,$AS,;t t
19992 s,@ac_ct_AS@,$ac_ct_AS,;t t
19993 s,@LD@,$LD,;t t
19994 s,@ac_ct_LD@,$ac_ct_LD,;t t
19995 s,@AR@,$AR,;t t
19996 s,@ac_ct_AR@,$ac_ct_AR,;t t
19997 s,@RANLIB@,$RANLIB,;t t
19998 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19999 s,@STRIP@,$STRIP,;t t
20000 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20001 s,@WINDRES@,$WINDRES,;t t
20002 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20003 s,@LN_S@,$LN_S,;t t
20004 s,@LN@,$LN,;t t
20005 s,@LDCONFIG@,$LDCONFIG,;t t
20006 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20007 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20008 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20009 s,@LINT@,$LINT,;t t
20010 s,@LINTFLAGS@,$LINTFLAGS,;t t
20011 s,@DB2HTML@,$DB2HTML,;t t
20012 s,@DB2PDF@,$DB2PDF,;t t
20013 s,@DB2PS@,$DB2PS,;t t
20014 s,@DB2TXT@,$DB2TXT,;t t
20015 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20016 s,@JPEGLIB@,$JPEGLIB,;t t
20017 s,@EGREP@,$EGREP,;t t
20018 s,@GIFLIB@,$GIFLIB,;t t
20019 s,@XLIB@,$XLIB,;t t
20020 s,@XFILES@,$XFILES,;t t
20021 s,@OPENGLFILES@,$OPENGLFILES,;t t
20022 s,@GLU32FILES@,$GLU32FILES,;t t
20023 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20024 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20025 s,@GLUT32FILES@,$GLUT32FILES,;t t
20026 s,@NASLIBS@,$NASLIBS,;t t
20027 s,@CURSESLIBS@,$CURSESLIBS,;t t
20028 s,@sane_devel@,$sane_devel,;t t
20029 s,@SANELIBS@,$SANELIBS,;t t
20030 s,@SANEINCL@,$SANEINCL,;t t
20031 s,@ICULIBS@,$ICULIBS,;t t
20032 s,@ft_devel@,$ft_devel,;t t
20033 s,@ft_devel2@,$ft_devel2,;t t
20034 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20035 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20036 s,@ARTSLIBS@,$ARTSLIBS,;t t
20037 s,@ARTSINCL@,$ARTSINCL,;t t
20038 s,@ALSALIBS@,$ALSALIBS,;t t
20039 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20040 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
20041 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20042 s,@DLLEXT@,$DLLEXT,;t t
20043 s,@DLLFLAGS@,$DLLFLAGS,;t t
20044 s,@DLLIBS@,$DLLIBS,;t t
20045 s,@LDSHARED@,$LDSHARED,;t t
20046 s,@LDDLL@,$LDDLL,;t t
20047 s,@LIBEXT@,$LIBEXT,;t t
20048 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20049 s,@DLLTOOL@,$DLLTOOL,;t t
20050 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20051 s,@DLLWRAP@,$DLLWRAP,;t t
20052 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20053 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20054 s,@CROSSTEST@,$CROSSTEST,;t t
20055 s,@CROSSCC@,$CROSSCC,;t t
20056 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20057 s,@LDPATH@,$LDPATH,;t t
20058 s,@CRTLIBS@,$CRTLIBS,;t t
20059 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20060 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20061 s,@LDD@,$LDD,;t t
20062 s,@ALLOCA@,$ALLOCA,;t t
20063 s,@LIBOBJS@,$LIBOBJS,;t t
20064 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20065 /@MAKE_RULES@/r $MAKE_RULES
20066 s,@MAKE_RULES@,,;t t
20067 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20068 s,@MAKE_DLL_RULES@,,;t t
20069 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20070 s,@MAKE_TEST_RULES@,,;t t
20071 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20072 s,@MAKE_LIB_RULES@,,;t t
20073 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20074 s,@MAKE_PROG_RULES@,,;t t
20075 CEOF
20077 _ACEOF
20079 cat >>$CONFIG_STATUS <<\_ACEOF
20080 # Split the substitutions into bite-sized pieces for seds with
20081 # small command number limits, like on Digital OSF/1 and HP-UX.
20082 ac_max_sed_lines=48
20083 ac_sed_frag=1 # Number of current file.
20084 ac_beg=1 # First line for current file.
20085 ac_end=$ac_max_sed_lines # Line after last line for current file.
20086 ac_more_lines=:
20087 ac_sed_cmds=
20088 while $ac_more_lines; do
20089 if test $ac_beg -gt 1; then
20090 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20091 else
20092 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20094 if test ! -s $tmp/subs.frag; then
20095 ac_more_lines=false
20096 else
20097 # The purpose of the label and of the branching condition is to
20098 # speed up the sed processing (if there are no `@' at all, there
20099 # is no need to browse any of the substitutions).
20100 # These are the two extra sed commands mentioned above.
20101 (echo ':t
20102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20103 if test -z "$ac_sed_cmds"; then
20104 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20105 else
20106 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20108 ac_sed_frag=`expr $ac_sed_frag + 1`
20109 ac_beg=$ac_end
20110 ac_end=`expr $ac_end + $ac_max_sed_lines`
20112 done
20113 if test -z "$ac_sed_cmds"; then
20114 ac_sed_cmds=cat
20116 fi # test -n "$CONFIG_FILES"
20118 _ACEOF
20119 cat >>$CONFIG_STATUS <<\_ACEOF
20120 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20121 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20122 case $ac_file in
20123 - | *:- | *:-:* ) # input from stdin
20124 cat >$tmp/stdin
20125 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20127 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20128 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20129 * ) ac_file_in=$ac_file.in ;;
20130 esac
20132 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20133 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20135 X"$ac_file" : 'X\(//\)[^/]' \| \
20136 X"$ac_file" : 'X\(//\)$' \| \
20137 X"$ac_file" : 'X\(/\)' \| \
20138 . : '\(.\)' 2>/dev/null ||
20139 echo X"$ac_file" |
20140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20142 /^X\(\/\/\)$/{ s//\1/; q; }
20143 /^X\(\/\).*/{ s//\1/; q; }
20144 s/.*/./; q'`
20145 { if $as_mkdir_p; then
20146 mkdir -p "$ac_dir"
20147 else
20148 as_dir="$ac_dir"
20149 as_dirs=
20150 while test ! -d "$as_dir"; do
20151 as_dirs="$as_dir $as_dirs"
20152 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20154 X"$as_dir" : 'X\(//\)[^/]' \| \
20155 X"$as_dir" : 'X\(//\)$' \| \
20156 X"$as_dir" : 'X\(/\)' \| \
20157 . : '\(.\)' 2>/dev/null ||
20158 echo X"$as_dir" |
20159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20161 /^X\(\/\/\)$/{ s//\1/; q; }
20162 /^X\(\/\).*/{ s//\1/; q; }
20163 s/.*/./; q'`
20164 done
20165 test ! -n "$as_dirs" || mkdir $as_dirs
20166 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20167 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20168 { (exit 1); exit 1; }; }; }
20170 ac_builddir=.
20172 if test "$ac_dir" != .; then
20173 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20174 # A "../" for each directory in $ac_dir_suffix.
20175 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20176 else
20177 ac_dir_suffix= ac_top_builddir=
20180 case $srcdir in
20181 .) # No --srcdir option. We are building in place.
20182 ac_srcdir=.
20183 if test -z "$ac_top_builddir"; then
20184 ac_top_srcdir=.
20185 else
20186 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20187 fi ;;
20188 [\\/]* | ?:[\\/]* ) # Absolute path.
20189 ac_srcdir=$srcdir$ac_dir_suffix;
20190 ac_top_srcdir=$srcdir ;;
20191 *) # Relative path.
20192 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20193 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20194 esac
20196 # Do not use `cd foo && pwd` to compute absolute paths, because
20197 # the directories may not exist.
20198 case `pwd` in
20199 .) ac_abs_builddir="$ac_dir";;
20201 case "$ac_dir" in
20202 .) ac_abs_builddir=`pwd`;;
20203 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20204 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20205 esac;;
20206 esac
20207 case $ac_abs_builddir in
20208 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20210 case ${ac_top_builddir}. in
20211 .) ac_abs_top_builddir=$ac_abs_builddir;;
20212 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20213 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20214 esac;;
20215 esac
20216 case $ac_abs_builddir in
20217 .) ac_abs_srcdir=$ac_srcdir;;
20219 case $ac_srcdir in
20220 .) ac_abs_srcdir=$ac_abs_builddir;;
20221 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20222 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20223 esac;;
20224 esac
20225 case $ac_abs_builddir in
20226 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20228 case $ac_top_srcdir in
20229 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20230 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20231 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20232 esac;;
20233 esac
20236 case $INSTALL in
20237 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20238 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20239 esac
20241 # Let's still pretend it is `configure' which instantiates (i.e., don't
20242 # use $as_me), people would be surprised to read:
20243 # /* config.h. Generated by config.status. */
20244 if test x"$ac_file" = x-; then
20245 configure_input=
20246 else
20247 configure_input="$ac_file. "
20249 configure_input=$configure_input"Generated from `echo $ac_file_in |
20250 sed 's,.*/,,'` by configure."
20252 # First look for the input files in the build tree, otherwise in the
20253 # src tree.
20254 ac_file_inputs=`IFS=:
20255 for f in $ac_file_in; do
20256 case $f in
20257 -) echo $tmp/stdin ;;
20258 [\\/$]*)
20259 # Absolute (can't be DOS-style, as IFS=:)
20260 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20261 echo "$as_me: error: cannot find input file: $f" >&2;}
20262 { (exit 1); exit 1; }; }
20263 echo "$f";;
20264 *) # Relative
20265 if test -f "$f"; then
20266 # Build tree
20267 echo "$f"
20268 elif test -f "$srcdir/$f"; then
20269 # Source tree
20270 echo "$srcdir/$f"
20271 else
20272 # /dev/null tree
20273 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20274 echo "$as_me: error: cannot find input file: $f" >&2;}
20275 { (exit 1); exit 1; }; }
20276 fi;;
20277 esac
20278 done` || { (exit 1); exit 1; }
20280 if test x"$ac_file" != x-; then
20281 { echo "$as_me:$LINENO: creating $ac_file" >&5
20282 echo "$as_me: creating $ac_file" >&6;}
20283 rm -f "$ac_file"
20285 _ACEOF
20286 cat >>$CONFIG_STATUS <<_ACEOF
20287 sed "$ac_vpsub
20288 $extrasub
20289 _ACEOF
20290 cat >>$CONFIG_STATUS <<\_ACEOF
20292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20293 s,@configure_input@,$configure_input,;t t
20294 s,@srcdir@,$ac_srcdir,;t t
20295 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20296 s,@top_srcdir@,$ac_top_srcdir,;t t
20297 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20298 s,@builddir@,$ac_builddir,;t t
20299 s,@abs_builddir@,$ac_abs_builddir,;t t
20300 s,@top_builddir@,$ac_top_builddir,;t t
20301 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20302 s,@INSTALL@,$ac_INSTALL,;t t
20303 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20304 rm -f $tmp/stdin
20305 if test x"$ac_file" != x-; then
20306 mv $tmp/out $ac_file
20307 else
20308 cat $tmp/out
20309 rm -f $tmp/out
20312 done
20313 _ACEOF
20314 cat >>$CONFIG_STATUS <<\_ACEOF
20317 # CONFIG_HEADER section.
20320 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20321 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20323 # ac_d sets the value in "#define NAME VALUE" lines.
20324 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20325 ac_dB='[ ].*$,\1#\2'
20326 ac_dC=' '
20327 ac_dD=',;t'
20328 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20329 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20330 ac_uB='$,\1#\2define\3'
20331 ac_uC=' '
20332 ac_uD=',;t'
20334 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20335 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20336 case $ac_file in
20337 - | *:- | *:-:* ) # input from stdin
20338 cat >$tmp/stdin
20339 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20340 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20341 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20342 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20343 * ) ac_file_in=$ac_file.in ;;
20344 esac
20346 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20347 echo "$as_me: creating $ac_file" >&6;}
20349 # First look for the input files in the build tree, otherwise in the
20350 # src tree.
20351 ac_file_inputs=`IFS=:
20352 for f in $ac_file_in; do
20353 case $f in
20354 -) echo $tmp/stdin ;;
20355 [\\/$]*)
20356 # Absolute (can't be DOS-style, as IFS=:)
20357 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20358 echo "$as_me: error: cannot find input file: $f" >&2;}
20359 { (exit 1); exit 1; }; }
20360 # Do quote $f, to prevent DOS paths from being IFS'd.
20361 echo "$f";;
20362 *) # Relative
20363 if test -f "$f"; then
20364 # Build tree
20365 echo "$f"
20366 elif test -f "$srcdir/$f"; then
20367 # Source tree
20368 echo "$srcdir/$f"
20369 else
20370 # /dev/null tree
20371 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20372 echo "$as_me: error: cannot find input file: $f" >&2;}
20373 { (exit 1); exit 1; }; }
20374 fi;;
20375 esac
20376 done` || { (exit 1); exit 1; }
20377 # Remove the trailing spaces.
20378 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20380 _ACEOF
20382 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20383 # `conftest.undefs', that substitutes the proper values into
20384 # config.h.in to produce config.h. The first handles `#define'
20385 # templates, and the second `#undef' templates.
20386 # And first: Protect against being on the right side of a sed subst in
20387 # config.status. Protect against being in an unquoted here document
20388 # in config.status.
20389 rm -f conftest.defines conftest.undefs
20390 # Using a here document instead of a string reduces the quoting nightmare.
20391 # Putting comments in sed scripts is not portable.
20393 # `end' is used to avoid that the second main sed command (meant for
20394 # 0-ary CPP macros) applies to n-ary macro definitions.
20395 # See the Autoconf documentation for `clear'.
20396 cat >confdef2sed.sed <<\_ACEOF
20397 s/[\\&,]/\\&/g
20398 s,[\\$`],\\&,g
20399 t clear
20400 : clear
20401 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20402 t end
20403 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20404 : end
20405 _ACEOF
20406 # If some macros were called several times there might be several times
20407 # the same #defines, which is useless. Nevertheless, we may not want to
20408 # sort them, since we want the *last* AC-DEFINE to be honored.
20409 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20410 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20411 rm -f confdef2sed.sed
20413 # This sed command replaces #undef with comments. This is necessary, for
20414 # example, in the case of _POSIX_SOURCE, which is predefined and required
20415 # on some systems where configure will not decide to define it.
20416 cat >>conftest.undefs <<\_ACEOF
20417 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20418 _ACEOF
20420 # Break up conftest.defines because some shells have a limit on the size
20421 # of here documents, and old seds have small limits too (100 cmds).
20422 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20423 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20424 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20425 echo ' :' >>$CONFIG_STATUS
20426 rm -f conftest.tail
20427 while grep . conftest.defines >/dev/null
20429 # Write a limited-size here document to $tmp/defines.sed.
20430 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20431 # Speed up: don't consider the non `#define' lines.
20432 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20433 # Work around the forget-to-reset-the-flag bug.
20434 echo 't clr' >>$CONFIG_STATUS
20435 echo ': clr' >>$CONFIG_STATUS
20436 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20437 echo 'CEOF
20438 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20439 rm -f $tmp/in
20440 mv $tmp/out $tmp/in
20441 ' >>$CONFIG_STATUS
20442 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20443 rm -f conftest.defines
20444 mv conftest.tail conftest.defines
20445 done
20446 rm -f conftest.defines
20447 echo ' fi # grep' >>$CONFIG_STATUS
20448 echo >>$CONFIG_STATUS
20450 # Break up conftest.undefs because some shells have a limit on the size
20451 # of here documents, and old seds have small limits too (100 cmds).
20452 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20453 rm -f conftest.tail
20454 while grep . conftest.undefs >/dev/null
20456 # Write a limited-size here document to $tmp/undefs.sed.
20457 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20458 # Speed up: don't consider the non `#undef'
20459 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20460 # Work around the forget-to-reset-the-flag bug.
20461 echo 't clr' >>$CONFIG_STATUS
20462 echo ': clr' >>$CONFIG_STATUS
20463 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20464 echo 'CEOF
20465 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20466 rm -f $tmp/in
20467 mv $tmp/out $tmp/in
20468 ' >>$CONFIG_STATUS
20469 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20470 rm -f conftest.undefs
20471 mv conftest.tail conftest.undefs
20472 done
20473 rm -f conftest.undefs
20475 cat >>$CONFIG_STATUS <<\_ACEOF
20476 # Let's still pretend it is `configure' which instantiates (i.e., don't
20477 # use $as_me), people would be surprised to read:
20478 # /* config.h. Generated by config.status. */
20479 if test x"$ac_file" = x-; then
20480 echo "/* Generated by configure. */" >$tmp/config.h
20481 else
20482 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20484 cat $tmp/in >>$tmp/config.h
20485 rm -f $tmp/in
20486 if test x"$ac_file" != x-; then
20487 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20488 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20489 echo "$as_me: $ac_file is unchanged" >&6;}
20490 else
20491 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20492 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20493 X"$ac_file" : 'X\(//\)[^/]' \| \
20494 X"$ac_file" : 'X\(//\)$' \| \
20495 X"$ac_file" : 'X\(/\)' \| \
20496 . : '\(.\)' 2>/dev/null ||
20497 echo X"$ac_file" |
20498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20500 /^X\(\/\/\)$/{ s//\1/; q; }
20501 /^X\(\/\).*/{ s//\1/; q; }
20502 s/.*/./; q'`
20503 { if $as_mkdir_p; then
20504 mkdir -p "$ac_dir"
20505 else
20506 as_dir="$ac_dir"
20507 as_dirs=
20508 while test ! -d "$as_dir"; do
20509 as_dirs="$as_dir $as_dirs"
20510 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20512 X"$as_dir" : 'X\(//\)[^/]' \| \
20513 X"$as_dir" : 'X\(//\)$' \| \
20514 X"$as_dir" : 'X\(/\)' \| \
20515 . : '\(.\)' 2>/dev/null ||
20516 echo X"$as_dir" |
20517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20519 /^X\(\/\/\)$/{ s//\1/; q; }
20520 /^X\(\/\).*/{ s//\1/; q; }
20521 s/.*/./; q'`
20522 done
20523 test ! -n "$as_dirs" || mkdir $as_dirs
20524 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20525 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20526 { (exit 1); exit 1; }; }; }
20528 rm -f $ac_file
20529 mv $tmp/config.h $ac_file
20531 else
20532 cat $tmp/config.h
20533 rm -f $tmp/config.h
20535 done
20536 _ACEOF
20537 cat >>$CONFIG_STATUS <<\_ACEOF
20540 # CONFIG_COMMANDS section.
20542 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20543 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20544 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20545 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20546 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20547 X"$ac_dest" : 'X\(//\)[^/]' \| \
20548 X"$ac_dest" : 'X\(//\)$' \| \
20549 X"$ac_dest" : 'X\(/\)' \| \
20550 . : '\(.\)' 2>/dev/null ||
20551 echo X"$ac_dest" |
20552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20554 /^X\(\/\/\)$/{ s//\1/; q; }
20555 /^X\(\/\).*/{ s//\1/; q; }
20556 s/.*/./; q'`
20557 { if $as_mkdir_p; then
20558 mkdir -p "$ac_dir"
20559 else
20560 as_dir="$ac_dir"
20561 as_dirs=
20562 while test ! -d "$as_dir"; do
20563 as_dirs="$as_dir $as_dirs"
20564 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20566 X"$as_dir" : 'X\(//\)[^/]' \| \
20567 X"$as_dir" : 'X\(//\)$' \| \
20568 X"$as_dir" : 'X\(/\)' \| \
20569 . : '\(.\)' 2>/dev/null ||
20570 echo X"$as_dir" |
20571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20573 /^X\(\/\/\)$/{ s//\1/; q; }
20574 /^X\(\/\).*/{ s//\1/; q; }
20575 s/.*/./; q'`
20576 done
20577 test ! -n "$as_dirs" || mkdir $as_dirs
20578 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20579 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20580 { (exit 1); exit 1; }; }; }
20582 ac_builddir=.
20584 if test "$ac_dir" != .; then
20585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20586 # A "../" for each directory in $ac_dir_suffix.
20587 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20588 else
20589 ac_dir_suffix= ac_top_builddir=
20592 case $srcdir in
20593 .) # No --srcdir option. We are building in place.
20594 ac_srcdir=.
20595 if test -z "$ac_top_builddir"; then
20596 ac_top_srcdir=.
20597 else
20598 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20599 fi ;;
20600 [\\/]* | ?:[\\/]* ) # Absolute path.
20601 ac_srcdir=$srcdir$ac_dir_suffix;
20602 ac_top_srcdir=$srcdir ;;
20603 *) # Relative path.
20604 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20605 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20606 esac
20608 # Do not use `cd foo && pwd` to compute absolute paths, because
20609 # the directories may not exist.
20610 case `pwd` in
20611 .) ac_abs_builddir="$ac_dir";;
20613 case "$ac_dir" in
20614 .) ac_abs_builddir=`pwd`;;
20615 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20616 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20617 esac;;
20618 esac
20619 case $ac_abs_builddir in
20620 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20622 case ${ac_top_builddir}. in
20623 .) ac_abs_top_builddir=$ac_abs_builddir;;
20624 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20625 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20626 esac;;
20627 esac
20628 case $ac_abs_builddir in
20629 .) ac_abs_srcdir=$ac_srcdir;;
20631 case $ac_srcdir in
20632 .) ac_abs_srcdir=$ac_abs_builddir;;
20633 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20634 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20635 esac;;
20636 esac
20637 case $ac_abs_builddir in
20638 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20640 case $ac_top_srcdir in
20641 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20642 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20643 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20644 esac;;
20645 esac
20648 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20649 echo "$as_me: executing $ac_dest commands" >&6;}
20650 case $ac_dest in
20651 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
20652 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
20653 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
20654 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
20655 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
20656 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
20657 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
20658 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
20659 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
20660 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
20661 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
20662 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
20663 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
20664 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
20665 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
20666 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
20667 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
20668 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
20669 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
20670 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
20671 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
20672 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
20673 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
20674 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
20675 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
20676 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
20677 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
20678 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
20679 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
20680 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
20681 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
20682 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
20683 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
20684 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
20685 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
20686 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
20687 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
20688 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
20689 esac
20690 done
20691 _ACEOF
20693 cat >>$CONFIG_STATUS <<\_ACEOF
20695 { (exit 0); exit 0; }
20696 _ACEOF
20697 chmod +x $CONFIG_STATUS
20698 ac_clean_files=$ac_clean_files_save
20701 # configure is writing to config.log, and then calls config.status.
20702 # config.status does its own redirection, appending to config.log.
20703 # Unfortunately, on DOS this fails, as config.log is still kept open
20704 # by configure, so config.status won't be able to write to it; its
20705 # output is simply discarded. So we exec the FD to /dev/null,
20706 # effectively closing config.log, so it can be properly (re)opened and
20707 # appended to by config.status. When coming back to configure, we
20708 # need to make the FD available again.
20709 if test "$no_create" != yes; then
20710 ac_cs_success=:
20711 ac_config_status_args=
20712 test "$silent" = yes &&
20713 ac_config_status_args="$ac_config_status_args --quiet"
20714 exec 5>/dev/null
20715 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20716 exec 5>>config.log
20717 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20718 # would make configure fail if this is the last instruction.
20719 $ac_cs_success || { (exit 1); exit 1; }
20723 if test "$have_x" = "no"
20724 then
20725 echo
20726 echo "*** Warning: X development files not found. Wine will be built without"
20727 echo "*** X support, which currently does not work, and would probably not be"
20728 echo "*** what you want anyway. You will need to install devel packages of"
20729 echo "*** Xlib/Xfree86 at the very least."
20732 if test "$wine_cv_opengl_version_OK" = "no"
20733 then
20734 echo
20735 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
20736 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
20739 if test "$wine_cv_msg_freetype" = "yes"
20740 then
20741 echo
20742 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
20743 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
20744 echo "*** freetype-devel package (or its equivalent on your distribution) to"
20745 echo "*** enable Wine to use TrueType fonts."
20748 echo
20749 echo "Configure finished. Do 'make depend && make' to compile Wine."
20750 echo