Fixed GetFileVersionInfoSizeA tests on NT.
[wine/multimedia.git] / configure
blob6f7d0b2b60bf988ae5d6a68c01eca031b67d6934
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20041019.
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='20041019'
273 PACKAGE_STRING='Wine 20041019'
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 DLLDEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT FONTFORGE LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPELIBS FREETYPEINCL FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
790 cat <<_ACEOF
791 \`configure' configures Wine 20041019 to adapt to many kinds of systems.
793 Usage: $0 [OPTION]... [VAR=VALUE]...
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
798 Defaults for the options are specified in brackets.
800 Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 _ACEOF
813 cat <<_ACEOF
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
816 [$ac_default_prefix]
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 [PREFIX]
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
825 For better control, use the options below.
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
840 _ACEOF
842 cat <<\_ACEOF
844 X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
848 System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 _ACEOF
854 if test -n "$ac_init_help"; then
855 case $ac_init_help in
856 short | recursive ) echo "Configuration of Wine 20041019:";;
857 esac
858 cat <<\_ACEOF
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --disable-win16 do not include Win16 support
864 --disable-debug compile out all debugging messages
865 --disable-trace compile out TRACE messages
866 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
867 binaries)
869 Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
872 --without-opengl do not use OpenGL
873 --without-curses do not use curses
874 --with-wine-tools=<dir> use Wine tools from directory <dir>
875 --with-x use the X Window System
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CXX C++ compiler command
885 CXXFLAGS C++ compiler flags
886 CPP C preprocessor
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
891 Report bugs to <wine-devel@winehq.org>.
892 _ACEOF
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
902 if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907 ac_dir_suffix= ac_top_builddir=
910 case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963 esac
965 cd $ac_dir
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
968 echo
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
971 echo
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
975 echo
976 $ac_configure --help
977 else
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 cd "$ac_popdir"
981 done
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986 cat <<\_ACEOF
987 Wine configure 20041019
988 generated by GNU Autoconf 2.59
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994 exit 0
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1001 It was created by Wine $as_me 20041019, which was
1002 generated by GNU Autoconf 2.59. Invocation command line was
1004 $ $0 $@
1006 _ACEOF
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030 _ASUNAME
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1035 IFS=$as_save_IFS
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1038 done
1040 } >&5
1042 cat >&5 <<_ACEOF
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1049 _ACEOF
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1064 for ac_arg
1066 case $ac_arg in
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 continue ;;
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073 esac
1074 case $ac_pass in
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
1079 ac_must_keep_next=false # Got value, back to normal.
1080 else
1081 case $ac_arg in
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088 esac
1090 -* ) ac_must_keep_next=true ;;
1091 esac
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1095 ac_sep=" "
1097 esac
1098 done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log. We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
1111 echo
1113 cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118 echo
1119 # The following way of writing the cache mishandles newlines in values,
1121 (set) 2>&1 |
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123 *ac_space=\ *)
1124 sed -n \
1125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 sed -n \
1130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 esac;
1134 echo
1136 cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141 echo
1142 for ac_var in $ac_subst_vars
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1149 if test -n "$ac_subst_files"; then
1150 cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155 echo
1156 for ac_var in $ac_subst_files
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1160 done | sort
1161 echo
1164 if test -s confdefs.h; then
1165 cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170 echo
1171 sed "/^$/d" confdefs.h | sort
1172 echo
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1177 } >&5
1178 rm -f core *.core &&
1179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180 exit $exit_status
1182 for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1192 # Predefined preprocessor variables.
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 else
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
1230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232 sed 's/^/| /' "$ac_site_file" >&5
1233 . "$ac_site_file"
1235 done
1237 if test -r "$cache_file"; then
1238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
1241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243 case $cache_file in
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1246 esac
1248 else
1249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251 >$cache_file
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1264 set,)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,set)
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1272 ,);;
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
1275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1278 echo "$as_me: former value: $ac_old_val" >&2;}
1279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1280 echo "$as_me: current value: $ac_new_val" >&2;}
1281 ac_cache_corrupted=:
1282 fi;;
1283 esac
1284 # Pass precious variables to config.status.
1285 if test "$ac_new_set" = set; then
1286 case $ac_new_val in
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1290 esac
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294 esac
1296 done
1297 if $ac_cache_corrupted; then
1298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers include/config.h"
1340 ac_aux_dir=
1341 for ac_dir in tools $srcdir/tools; do
1342 if test -f $ac_dir/install-sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install-sh -c"
1345 break
1346 elif test -f $ac_dir/install.sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install.sh -c"
1349 break
1350 elif test -f $ac_dir/shtool; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 break
1355 done
1356 if test -z "$ac_aux_dir"; then
1357 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1358 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1359 { (exit 1); exit 1; }; }
1361 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1367 # Check whether --enable-win16 or --disable-win16 was given.
1368 if test "${enable_win16+set}" = set; then
1369 enableval="$enable_win16"
1372 # Check whether --enable-debug or --disable-debug was given.
1373 if test "${enable_debug+set}" = set; then
1374 enableval="$enable_debug"
1377 # Check whether --enable-trace or --disable-trace was given.
1378 if test "${enable_trace+set}" = set; then
1379 enableval="$enable_trace"
1382 # Check whether --enable-win64 or --disable-win64 was given.
1383 if test "${enable_win64+set}" = set; then
1384 enableval="$enable_win64"
1389 # Check whether --with-opengl or --without-opengl was given.
1390 if test "${with_opengl+set}" = set; then
1391 withval="$with_opengl"
1395 # Check whether --with-curses or --without-curses was given.
1396 if test "${with_curses+set}" = set; then
1397 withval="$with_curses"
1401 # Check whether --with-wine-tools or --without-wine-tools was given.
1402 if test "${with_wine_tools+set}" = set; then
1403 withval="$with_wine_tools"
1407 WIN16_FILES="\$(WIN16_FILES)"
1409 WIN16_INSTALL="\$(WIN16_INSTALL)"
1411 if test "x$enable_win16" = "xno"
1412 then
1413 WIN16_FILES=""
1414 WIN16_INSTALL=""
1417 DLLDEFS=""
1419 if test "x$enable_debug" = "xno"
1420 then
1421 DLLDEFS="$DLLDEFS -DWINE_NO_DEBUG_MSGS"
1423 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1424 then
1425 DLLDEFS="$DLLDEFS -DWINE_NO_TRACE_MSGS"
1429 # Make sure we can run config.sub.
1430 $ac_config_sub sun4 >/dev/null 2>&1 ||
1431 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1432 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1433 { (exit 1); exit 1; }; }
1435 echo "$as_me:$LINENO: checking build system type" >&5
1436 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1437 if test "${ac_cv_build+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440 ac_cv_build_alias=$build_alias
1441 test -z "$ac_cv_build_alias" &&
1442 ac_cv_build_alias=`$ac_config_guess`
1443 test -z "$ac_cv_build_alias" &&
1444 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1445 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1446 { (exit 1); exit 1; }; }
1447 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1448 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1449 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1450 { (exit 1); exit 1; }; }
1453 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1454 echo "${ECHO_T}$ac_cv_build" >&6
1455 build=$ac_cv_build
1456 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1457 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1458 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1461 echo "$as_me:$LINENO: checking host system type" >&5
1462 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1463 if test "${ac_cv_host+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466 ac_cv_host_alias=$host_alias
1467 test -z "$ac_cv_host_alias" &&
1468 ac_cv_host_alias=$ac_cv_build_alias
1469 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1470 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1471 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1472 { (exit 1); exit 1; }; }
1475 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1476 echo "${ECHO_T}$ac_cv_host" >&6
1477 host=$ac_cv_host
1478 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1479 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1480 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1483 case $host in
1484 x86_64*linux*)
1485 if test "x$enable_win64" != "xyes"
1486 then
1487 test -n "$CC" || CC="gcc -m32"
1488 test -n "$LD" || LD="ld -m elf_i386"
1489 test -n "$AS" || AS="as --32"
1492 esac
1494 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1495 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1496 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1497 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500 cat >conftest.make <<\_ACEOF
1501 all:
1502 @echo 'ac_maketemp="$(MAKE)"'
1503 _ACEOF
1504 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1505 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1506 if test -n "$ac_maketemp"; then
1507 eval ac_cv_prog_make_${ac_make}_set=yes
1508 else
1509 eval ac_cv_prog_make_${ac_make}_set=no
1511 rm -f conftest.make
1513 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1514 echo "$as_me:$LINENO: result: yes" >&5
1515 echo "${ECHO_T}yes" >&6
1516 SET_MAKE=
1517 else
1518 echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1520 SET_MAKE="MAKE=${MAKE-make}"
1523 ac_ext=c
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536 if test -n "$CC"; then
1537 ac_cv_prog_CC="$CC" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1542 IFS=$as_save_IFS
1543 test -z "$as_dir" && as_dir=.
1544 for ac_exec_ext in '' $ac_executable_extensions; do
1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548 break 2
1550 done
1551 done
1555 CC=$ac_cv_prog_CC
1556 if test -n "$CC"; then
1557 echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1559 else
1560 echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1565 if test -z "$ac_cv_prog_CC"; then
1566 ac_ct_CC=$CC
1567 # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574 if test -n "$ac_ct_CC"; then
1575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1580 IFS=$as_save_IFS
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_ac_ct_CC="gcc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 break 2
1588 done
1589 done
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1597 else
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1602 CC=$ac_ct_CC
1603 else
1604 CC="$ac_cv_prog_CC"
1607 if test -z "$CC"; then
1608 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_CC="${ac_tool_prefix}cc"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628 break 2
1630 done
1631 done
1635 CC=$ac_cv_prog_CC
1636 if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1639 else
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1645 if test -z "$ac_cv_prog_CC"; then
1646 ac_ct_CC=$CC
1647 # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 if test -n "$ac_ct_CC"; then
1655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_CC="cc"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 break 2
1668 done
1669 done
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1677 else
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1682 CC=$ac_ct_CC
1683 else
1684 CC="$ac_cv_prog_CC"
1688 if test -z "$CC"; then
1689 # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699 ac_prog_rejected=no
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708 ac_prog_rejected=yes
1709 continue
1711 ac_cv_prog_CC="cc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1715 done
1716 done
1718 if test $ac_prog_rejected = yes; then
1719 # We found a bogon in the path, so make sure we never use it.
1720 set dummy $ac_cv_prog_CC
1721 shift
1722 if test $# != 0; then
1723 # We chose a different compiler from the bogus one.
1724 # However, it has the same basename, so the bogon will be chosen
1725 # first if we set CC to just the basename; use the full file name.
1726 shift
1727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1732 CC=$ac_cv_prog_CC
1733 if test -n "$CC"; then
1734 echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1736 else
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1742 if test -z "$CC"; then
1743 if test -n "$ac_tool_prefix"; then
1744 for ac_prog in cl
1746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1767 done
1768 done
1772 CC=$ac_cv_prog_CC
1773 if test -n "$CC"; then
1774 echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1776 else
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$CC" && break
1782 done
1784 if test -z "$CC"; then
1785 ac_ct_CC=$CC
1786 for ac_prog in cl
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795 if test -n "$ac_ct_CC"; then
1796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_ac_ct_CC="$ac_prog"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 break 2
1809 done
1810 done
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1818 else
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1823 test -n "$ac_ct_CC" && break
1824 done
1826 CC=$ac_ct_CC
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840 "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843 (eval $ac_compiler --version </dev/null >&5) 2>&5
1844 ac_status=$?
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848 (eval $ac_compiler -v </dev/null >&5) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853 (eval $ac_compiler -V </dev/null >&5) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }
1858 cat >conftest.$ac_ext <<_ACEOF
1859 /* confdefs.h. */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1866 main ()
1870 return 0;
1872 _ACEOF
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1877 # of exeext.
1878 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882 (eval $ac_link_default) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # Find the output, starting from the most likely. This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # resort.
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1892 ac_cv_exeext=
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896 test -f "$ac_file" || continue
1897 case $ac_file in
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1900 conftest.$ac_ext )
1901 # This is the source file.
1903 [ab].out )
1904 # We found the default executable, but exeext='' is most
1905 # certainly right.
1906 break;;
1907 *.* )
1908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909 # FIXME: I believe we export ac_cv_exeext for Libtool,
1910 # but it would be cool to find out if it's true. Does anybody
1911 # maintain Libtool? --akim.
1912 export ac_cv_exeext
1913 break;;
1915 break;;
1916 esac
1917 done
1918 else
1919 echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926 { (exit 77); exit 77; }; }
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1933 # Check the compiler produces executables we can run. If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940 if { ac_try='./$ac_file'
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 (eval $ac_try) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1946 cross_compiling=no
1947 else
1948 if test "$cross_compiling" = maybe; then
1949 cross_compiling=yes
1950 else
1951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run. If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976 (eval $ac_link) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1983 # `rm'.
1984 for ac_file in conftest.exe conftest conftest.*; do
1985 test -f "$ac_file" || continue
1986 case $ac_file in
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989 export ac_cv_exeext
1990 break;;
1991 * ) break;;
1992 esac
1993 done
1994 else
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2008 ac_exeext=$EXEEXT
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h. */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2022 main ()
2026 return 0;
2028 _ACEOF
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; then
2035 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2036 case $ac_file in
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039 break;;
2040 esac
2041 done
2042 else
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }
2053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056 echo "${ECHO_T}$ac_cv_objext" >&6
2057 OBJEXT=$ac_cv_objext
2058 ac_objext=$OBJEXT
2059 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064 cat >conftest.$ac_ext <<_ACEOF
2065 /* confdefs.h. */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2072 main ()
2074 #ifndef __GNUC__
2075 choke me
2076 #endif
2079 return 0;
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>conftest.er1
2085 ac_status=$?
2086 grep -v '^ *+' conftest.er1 >conftest.err
2087 rm -f conftest.er1
2088 cat conftest.err >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); } &&
2091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093 (eval $ac_try) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; } &&
2097 { ac_try='test -s conftest.$ac_objext'
2098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 (eval $ac_try) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; }; then
2103 ac_compiler_gnu=yes
2104 else
2105 echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2108 ac_compiler_gnu=no
2110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2114 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2115 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2116 GCC=`test $ac_compiler_gnu = yes && echo yes`
2117 ac_test_CFLAGS=${CFLAGS+set}
2118 ac_save_CFLAGS=$CFLAGS
2119 CFLAGS="-g"
2120 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2121 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2122 if test "${ac_cv_prog_cc_g+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125 cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h. */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2133 main ()
2137 return 0;
2139 _ACEOF
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>conftest.er1
2143 ac_status=$?
2144 grep -v '^ *+' conftest.er1 >conftest.err
2145 rm -f conftest.er1
2146 cat conftest.err >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 ac_cv_prog_cc_g=yes
2162 else
2163 echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2166 ac_cv_prog_cc_g=no
2168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2172 if test "$ac_test_CFLAGS" = set; then
2173 CFLAGS=$ac_save_CFLAGS
2174 elif test $ac_cv_prog_cc_g = yes; then
2175 if test "$GCC" = yes; then
2176 CFLAGS="-g -O2"
2177 else
2178 CFLAGS="-g"
2180 else
2181 if test "$GCC" = yes; then
2182 CFLAGS="-O2"
2183 else
2184 CFLAGS=
2187 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192 ac_cv_prog_cc_stdc=no
2193 ac_save_CC=$CC
2194 cat >conftest.$ac_ext <<_ACEOF
2195 /* confdefs.h. */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2200 #include <stdarg.h>
2201 #include <stdio.h>
2202 #include <sys/types.h>
2203 #include <sys/stat.h>
2204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2205 struct buf { int x; };
2206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207 static char *e (p, i)
2208 char **p;
2209 int i;
2211 return p[i];
2213 static char *f (char * (*g) (char **, int), char **p, ...)
2215 char *s;
2216 va_list v;
2217 va_start (v,p);
2218 s = g (p, va_arg (v,int));
2219 va_end (v);
2220 return s;
2223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2224 function prototypes and stuff, but not '\xHH' hex character constants.
2225 These don't provoke an error unfortunately, instead are silently treated
2226 as 'x'. The following induces an error, until -std1 is added to get
2227 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2228 array size at least. It's necessary to write '\x00'==0 to get something
2229 that's true only with -std1. */
2230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2232 int test (int i, double x);
2233 struct s1 {int (*f) (int a);};
2234 struct s2 {int (*f) (double a);};
2235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236 int argc;
2237 char **argv;
2239 main ()
2241 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2243 return 0;
2245 _ACEOF
2246 # Don't try gcc -ansi; that turns off useful extensions and
2247 # breaks some systems' header files.
2248 # AIX -qlanglvl=ansi
2249 # Ultrix and OSF/1 -std1
2250 # HP-UX 10.20 and later -Ae
2251 # HP-UX older versions -Aa -D_HPUX_SOURCE
2252 # SVR4 -Xc -D__EXTENSIONS__
2253 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2255 CC="$ac_save_CC $ac_arg"
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>conftest.er1
2259 ac_status=$?
2260 grep -v '^ *+' conftest.er1 >conftest.err
2261 rm -f conftest.er1
2262 cat conftest.err >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 ac_cv_prog_cc_stdc=$ac_arg
2278 break
2279 else
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2284 rm -f conftest.err conftest.$ac_objext
2285 done
2286 rm -f conftest.$ac_ext conftest.$ac_objext
2287 CC=$ac_save_CC
2291 case "x$ac_cv_prog_cc_stdc" in
2292 x|xno)
2293 echo "$as_me:$LINENO: result: none needed" >&5
2294 echo "${ECHO_T}none needed" >&6 ;;
2296 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2297 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2298 CC="$CC $ac_cv_prog_cc_stdc" ;;
2299 esac
2301 # Some people use a C++ compiler to compile C. Since we use `exit',
2302 # in C++ we need to declare it. In case someone uses the same compiler
2303 # for both compiling C and C++ we need to have the C++ compiler decide
2304 # the declaration of exit, since it's the most demanding environment.
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #ifndef __cplusplus
2307 choke me
2308 #endif
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 for ac_declaration in \
2332 '' \
2333 'extern "C" void std::exit (int) throw (); using std::exit;' \
2334 'extern "C" void std::exit (int); using std::exit;' \
2335 'extern "C" void exit (int) throw ();' \
2336 'extern "C" void exit (int);' \
2337 'void exit (int);'
2339 cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h. */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2345 $ac_declaration
2346 #include <stdlib.h>
2348 main ()
2350 exit (42);
2352 return 0;
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2358 ac_status=$?
2359 grep -v '^ *+' conftest.er1 >conftest.err
2360 rm -f conftest.er1
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 continue
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384 cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h. */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h. */
2390 $ac_declaration
2392 main ()
2394 exit (42);
2396 return 0;
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2402 ac_status=$?
2403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 break
2421 else
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427 done
2428 rm -f conftest*
2429 if test -n "$ac_declaration"; then
2430 echo '#ifdef __cplusplus' >>confdefs.h
2431 echo $ac_declaration >>confdefs.h
2432 echo '#endif' >>confdefs.h
2435 else
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441 ac_ext=c
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447 ac_ext=cc
2448 ac_cpp='$CXXCPP $CPPFLAGS'
2449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2452 if test -n "$ac_tool_prefix"; then
2453 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2457 echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2459 if test "${ac_cv_prog_CXX+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462 if test -n "$CXX"; then
2463 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2476 done
2477 done
2481 CXX=$ac_cv_prog_CXX
2482 if test -n "$CXX"; then
2483 echo "$as_me:$LINENO: result: $CXX" >&5
2484 echo "${ECHO_T}$CXX" >&6
2485 else
2486 echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6
2490 test -n "$CXX" && break
2491 done
2493 if test -z "$CXX"; then
2494 ac_ct_CXX=$CXX
2495 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498 set dummy $ac_prog; ac_word=$2
2499 echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2501 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 if test -n "$ac_ct_CXX"; then
2505 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2514 ac_cv_prog_ac_ct_CXX="$ac_prog"
2515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2518 done
2519 done
2523 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2524 if test -n "$ac_ct_CXX"; then
2525 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2526 echo "${ECHO_T}$ac_ct_CXX" >&6
2527 else
2528 echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6
2532 test -n "$ac_ct_CXX" && break
2533 done
2534 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2536 CXX=$ac_ct_CXX
2540 # Provide some information about the compiler.
2541 echo "$as_me:$LINENO:" \
2542 "checking for C++ compiler version" >&5
2543 ac_compiler=`set X $ac_compile; echo $2`
2544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2545 (eval $ac_compiler --version </dev/null >&5) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }
2549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2550 (eval $ac_compiler -v </dev/null >&5) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2555 (eval $ac_compiler -V </dev/null >&5) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }
2560 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2561 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2562 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565 cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h. */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2573 main ()
2575 #ifndef __GNUC__
2576 choke me
2577 #endif
2580 return 0;
2582 _ACEOF
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>conftest.er1
2586 ac_status=$?
2587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 (eval $ac_try) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 ac_compiler_gnu=yes
2605 else
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2609 ac_compiler_gnu=no
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2615 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2616 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2617 GXX=`test $ac_compiler_gnu = yes && echo yes`
2618 ac_test_CXXFLAGS=${CXXFLAGS+set}
2619 ac_save_CXXFLAGS=$CXXFLAGS
2620 CXXFLAGS="-g"
2621 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2622 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2623 if test "${ac_cv_prog_cxx_g+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h. */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2634 main ()
2638 return 0;
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 ac_cv_prog_cxx_g=yes
2663 else
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 ac_cv_prog_cxx_g=no
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2673 if test "$ac_test_CXXFLAGS" = set; then
2674 CXXFLAGS=$ac_save_CXXFLAGS
2675 elif test $ac_cv_prog_cxx_g = yes; then
2676 if test "$GXX" = yes; then
2677 CXXFLAGS="-g -O2"
2678 else
2679 CXXFLAGS="-g"
2681 else
2682 if test "$GXX" = yes; then
2683 CXXFLAGS="-O2"
2684 else
2685 CXXFLAGS=
2688 for ac_declaration in \
2689 '' \
2690 'extern "C" void std::exit (int) throw (); using std::exit;' \
2691 'extern "C" void std::exit (int); using std::exit;' \
2692 'extern "C" void exit (int) throw ();' \
2693 'extern "C" void exit (int);' \
2694 'void exit (int);'
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h. */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2702 $ac_declaration
2703 #include <stdlib.h>
2705 main ()
2707 exit (42);
2709 return 0;
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2738 continue
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h. */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2747 $ac_declaration
2749 main ()
2751 exit (42);
2753 return 0;
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2759 ac_status=$?
2760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 break
2778 else
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 done
2785 rm -f conftest*
2786 if test -n "$ac_declaration"; then
2787 echo '#ifdef __cplusplus' >>confdefs.h
2788 echo $ac_declaration >>confdefs.h
2789 echo '#endif' >>confdefs.h
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806 if test -n "$CPPBIN"; then
2807 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2820 done
2821 done
2825 CPPBIN=$ac_cv_prog_CPPBIN
2826 if test -n "$CPPBIN"; then
2827 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2828 echo "${ECHO_T}$CPPBIN" >&6
2829 else
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2835 if test -z "$ac_cv_prog_CPPBIN"; then
2836 ac_ct_CPPBIN=$CPPBIN
2837 # Extract the first word of "cpp", so it can be a program name with args.
2838 set dummy cpp; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 if test -n "$ac_ct_CPPBIN"; then
2845 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CPPBIN="cpp"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2858 done
2859 done
2861 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2864 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2865 if test -n "$ac_ct_CPPBIN"; then
2866 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2867 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2868 else
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2873 CPPBIN=$ac_ct_CPPBIN
2874 else
2875 CPPBIN="$ac_cv_prog_CPPBIN"
2879 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2880 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2881 if test "${wine_cv_toolsdir+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 if test -z "$with_wine_tools"; then
2885 if test "$cross_compiling" = "yes"; then
2886 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2887 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2888 { (exit 1); exit 1; }; }
2889 else
2890 wine_cv_toolsdir="\$(TOPOBJDIR)"
2892 elif test -d "$with_wine_tools/tools/winebuild"; then
2893 case $with_wine_tools in
2894 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2895 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2896 esac
2897 else
2898 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2899 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2900 { (exit 1); exit 1; }; }
2903 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2904 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2905 TOOLSDIR=$wine_cv_toolsdir
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2918 CPP=
2920 if test -z "$CPP"; then
2921 if test "${ac_cv_prog_CPP+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924 # Double quotes because CPP needs to be expanded
2925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2927 ac_preproc_ok=false
2928 for ac_c_preproc_warn_flag in '' yes
2930 # Use a header file that comes with gcc, so configuring glibc
2931 # with a fresh cross-compiler works.
2932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933 # <limits.h> exists even on freestanding compilers.
2934 # On the NeXT, cc -E runs the code through the compiler's parser,
2935 # not just through cpp. "Syntax error" is here to catch this case.
2936 cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h. */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947 Syntax error
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960 else
2961 ac_cpp_err=
2963 else
2964 ac_cpp_err=yes
2966 if test -z "$ac_cpp_err"; then
2968 else
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 # Broken: fails on valid input.
2973 continue
2975 rm -f conftest.err conftest.$ac_ext
2977 # OK, works on sane cases. Now check whether non-existent headers
2978 # can be detected and how.
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null; then
2995 if test -s conftest.err; then
2996 ac_cpp_err=$ac_c_preproc_warn_flag
2997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2998 else
2999 ac_cpp_err=
3001 else
3002 ac_cpp_err=yes
3004 if test -z "$ac_cpp_err"; then
3005 # Broken: success on invalid input.
3006 continue
3007 else
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3011 # Passes both tests.
3012 ac_preproc_ok=:
3013 break
3015 rm -f conftest.err conftest.$ac_ext
3017 done
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3021 break
3024 done
3025 ac_cv_prog_CPP=$CPP
3028 CPP=$ac_cv_prog_CPP
3029 else
3030 ac_cv_prog_CPP=$CPP
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3034 ac_preproc_ok=false
3035 for ac_c_preproc_warn_flag in '' yes
3037 # Use a header file that comes with gcc, so configuring glibc
3038 # with a fresh cross-compiler works.
3039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040 # <limits.h> exists even on freestanding compilers.
3041 # On the NeXT, cc -E runs the code through the compiler's parser,
3042 # not just through cpp. "Syntax error" is here to catch this case.
3043 cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h. */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3049 #ifdef __STDC__
3050 # include <limits.h>
3051 #else
3052 # include <assert.h>
3053 #endif
3054 Syntax error
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
3066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067 else
3068 ac_cpp_err=
3070 else
3071 ac_cpp_err=yes
3073 if test -z "$ac_cpp_err"; then
3075 else
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 # Broken: fails on valid input.
3080 continue
3082 rm -f conftest.err conftest.$ac_ext
3084 # OK, works on sane cases. Now check whether non-existent headers
3085 # can be detected and how.
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #include <ac_nonexistent.h>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null; then
3102 if test -s conftest.err; then
3103 ac_cpp_err=$ac_c_preproc_warn_flag
3104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3105 else
3106 ac_cpp_err=
3108 else
3109 ac_cpp_err=yes
3111 if test -z "$ac_cpp_err"; then
3112 # Broken: success on invalid input.
3113 continue
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 # Passes both tests.
3119 ac_preproc_ok=:
3120 break
3122 rm -f conftest.err conftest.$ac_ext
3124 done
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3129 else
3130 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145 if test "x$ac_path_x_has_been_run" != xyes; then
3146 echo "$as_me:$LINENO: checking for X" >&5
3147 echo $ECHO_N "checking for X... $ECHO_C" >&6
3149 ac_path_x_has_been_run=yes
3151 # Check whether --with-x or --without-x was given.
3152 if test "${with_x+set}" = set; then
3153 withval="$with_x"
3156 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3157 if test "x$with_x" = xno; then
3158 # The user explicitly disabled X.
3159 have_x=disabled
3160 else
3161 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3162 # Both variables are already set.
3163 have_x=yes
3164 else
3165 if test "${ac_cv_have_x+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 # One or both of the vars are not set, and there is no cached value.
3169 ac_x_includes=no ac_x_libraries=no
3170 rm -fr conftest.dir
3171 if mkdir conftest.dir; then
3172 cd conftest.dir
3173 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3174 cat >Imakefile <<'_ACEOF'
3175 acfindx:
3176 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3177 _ACEOF
3178 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3180 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3181 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3182 for ac_extension in a so sl; do
3183 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3184 test -f $ac_im_libdir/libX11.$ac_extension; then
3185 ac_im_usrlibdir=$ac_im_libdir; break
3187 done
3188 # Screen out bogus values from the imake configuration. They are
3189 # bogus both because they are the default anyway, and because
3190 # using them would break gcc on systems where it needs fixed includes.
3191 case $ac_im_incroot in
3192 /usr/include) ;;
3193 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3194 esac
3195 case $ac_im_usrlibdir in
3196 /usr/lib | /lib) ;;
3197 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3198 esac
3200 cd ..
3201 rm -fr conftest.dir
3204 # Standard set of common directories for X headers.
3205 # Check X11 before X11Rn because it is often a symlink to the current release.
3206 ac_x_header_dirs='
3207 /usr/X11/include
3208 /usr/X11R6/include
3209 /usr/X11R5/include
3210 /usr/X11R4/include
3212 /usr/include/X11
3213 /usr/include/X11R6
3214 /usr/include/X11R5
3215 /usr/include/X11R4
3217 /usr/local/X11/include
3218 /usr/local/X11R6/include
3219 /usr/local/X11R5/include
3220 /usr/local/X11R4/include
3222 /usr/local/include/X11
3223 /usr/local/include/X11R6
3224 /usr/local/include/X11R5
3225 /usr/local/include/X11R4
3227 /usr/X386/include
3228 /usr/x386/include
3229 /usr/XFree86/include/X11
3231 /usr/include
3232 /usr/local/include
3233 /usr/unsupported/include
3234 /usr/athena/include
3235 /usr/local/x11r5/include
3236 /usr/lpp/Xamples/include
3238 /usr/openwin/include
3239 /usr/openwin/share/include'
3241 if test "$ac_x_includes" = no; then
3242 # Guess where to find include files, by looking for a specified header file.
3243 # First, try using that file with no special directory specified.
3244 cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h. */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3250 #include <X11/Intrinsic.h>
3251 _ACEOF
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
3262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263 else
3264 ac_cpp_err=
3266 else
3267 ac_cpp_err=yes
3269 if test -z "$ac_cpp_err"; then
3270 # We can compile using X headers with no special include directory.
3271 ac_x_includes=
3272 else
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 for ac_dir in $ac_x_header_dirs; do
3277 if test -r "$ac_dir/X11/Intrinsic.h"; then
3278 ac_x_includes=$ac_dir
3279 break
3281 done
3283 rm -f conftest.err conftest.$ac_ext
3284 fi # $ac_x_includes = no
3286 if test "$ac_x_libraries" = no; then
3287 # Check for the libraries.
3288 # See if we find them without any special options.
3289 # Don't add to $LIBS permanently.
3290 ac_save_LIBS=$LIBS
3291 LIBS="-lXt $LIBS"
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298 #include <X11/Intrinsic.h>
3300 main ()
3302 XtMalloc (0)
3304 return 0;
3306 _ACEOF
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309 (eval $ac_link) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try='test -s conftest$ac_exeext'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 LIBS=$ac_save_LIBS
3329 # We can link X programs with no special library path.
3330 ac_x_libraries=
3331 else
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 LIBS=$ac_save_LIBS
3336 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3338 # Don't even attempt the hair of trying to link an X program!
3339 for ac_extension in a so sl; do
3340 if test -r $ac_dir/libXt.$ac_extension; then
3341 ac_x_libraries=$ac_dir
3342 break 2
3344 done
3345 done
3347 rm -f conftest.err conftest.$ac_objext \
3348 conftest$ac_exeext conftest.$ac_ext
3349 fi # $ac_x_libraries = no
3351 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3352 # Didn't find X anywhere. Cache the known absence of X.
3353 ac_cv_have_x="have_x=no"
3354 else
3355 # Record where we found X for the cache.
3356 ac_cv_have_x="have_x=yes \
3357 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3362 eval "$ac_cv_have_x"
3363 fi # $with_x != no
3365 if test "$have_x" != yes; then
3366 echo "$as_me:$LINENO: result: $have_x" >&5
3367 echo "${ECHO_T}$have_x" >&6
3368 no_x=yes
3369 else
3370 # If each of the values was on the command line, it overrides each guess.
3371 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3372 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3373 # Update the cache value to reflect the command line values.
3374 ac_cv_have_x="have_x=yes \
3375 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3376 # It might be that x_includes is empty (headers are found in the
3377 # standard search path. Then output the corresponding message
3378 ac_out_x_includes=$x_includes
3379 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3380 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3381 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3385 if test "$no_x" = yes; then
3386 # Not all programs may use this symbol, but it does not hurt to define it.
3388 cat >>confdefs.h <<\_ACEOF
3389 #define X_DISPLAY_MISSING 1
3390 _ACEOF
3392 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3393 else
3394 if test -n "$x_includes"; then
3395 X_CFLAGS="$X_CFLAGS -I$x_includes"
3398 # It would also be nice to do this for all -L options, not just this one.
3399 if test -n "$x_libraries"; then
3400 X_LIBS="$X_LIBS -L$x_libraries"
3401 # For Solaris; some versions of Sun CC require a space after -R and
3402 # others require no space. Words are not sufficient . . . .
3403 case `(uname -sr) 2>/dev/null` in
3404 "SunOS 5"*)
3405 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3406 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3407 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3416 main ()
3420 return 0;
3422 _ACEOF
3423 rm -f conftest.$ac_objext conftest$ac_exeext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3425 (eval $ac_link) 2>conftest.er1
3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; } &&
3438 { ac_try='test -s conftest$ac_exeext'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 ac_R_nospace=yes
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 ac_R_nospace=no
3451 rm -f conftest.err conftest.$ac_objext \
3452 conftest$ac_exeext conftest.$ac_ext
3453 if test $ac_R_nospace = yes; then
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 X_LIBS="$X_LIBS -R$x_libraries"
3457 else
3458 LIBS="$ac_xsave_LIBS -R $x_libraries"
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3467 main ()
3471 return 0;
3473 _ACEOF
3474 rm -f conftest.$ac_objext conftest$ac_exeext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3476 (eval $ac_link) 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; } &&
3489 { ac_try='test -s conftest$ac_exeext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 ac_R_space=yes
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 ac_R_space=no
3502 rm -f conftest.err conftest.$ac_objext \
3503 conftest$ac_exeext conftest.$ac_ext
3504 if test $ac_R_space = yes; then
3505 echo "$as_me:$LINENO: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6
3507 X_LIBS="$X_LIBS -R $x_libraries"
3508 else
3509 echo "$as_me:$LINENO: result: neither works" >&5
3510 echo "${ECHO_T}neither works" >&6
3513 LIBS=$ac_xsave_LIBS
3514 esac
3517 # Check for system-dependent libraries X programs must link with.
3518 # Do this before checking for the system-independent R6 libraries
3519 # (-lICE), since we may need -lsocket or whatever for X linking.
3521 if test "$ISC" = yes; then
3522 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3523 else
3524 # Martyn Johnson says this is needed for Ultrix, if the X
3525 # libraries were built with DECnet support. And Karl Berry says
3526 # the Alpha needs dnet_stub (dnet does not exist).
3527 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3535 /* Override any gcc2 internal prototype to avoid an error. */
3536 #ifdef __cplusplus
3537 extern "C"
3538 #endif
3539 /* We use char because int might match the return type of a gcc2
3540 builtin and then its argument prototype would still apply. */
3541 char XOpenDisplay ();
3543 main ()
3545 XOpenDisplay ();
3547 return 0;
3549 _ACEOF
3550 rm -f conftest.$ac_objext conftest$ac_exeext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3552 (eval $ac_link) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest$ac_exeext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3577 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3578 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581 ac_check_lib_save_LIBS=$LIBS
3582 LIBS="-ldnet $LIBS"
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3590 /* Override any gcc2 internal prototype to avoid an error. */
3591 #ifdef __cplusplus
3592 extern "C"
3593 #endif
3594 /* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3596 char dnet_ntoa ();
3598 main ()
3600 dnet_ntoa ();
3602 return 0;
3604 _ACEOF
3605 rm -f conftest.$ac_objext conftest$ac_exeext
3606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607 (eval $ac_link) 2>conftest.er1
3608 ac_status=$?
3609 grep -v '^ *+' conftest.er1 >conftest.err
3610 rm -f conftest.er1
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } &&
3614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest$ac_exeext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 ac_cv_lib_dnet_dnet_ntoa=yes
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 ac_cv_lib_dnet_dnet_ntoa=no
3633 rm -f conftest.err conftest.$ac_objext \
3634 conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3638 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3639 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3640 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3643 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3644 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3645 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3646 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 ac_check_lib_save_LIBS=$LIBS
3650 LIBS="-ldnet_stub $LIBS"
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 #ifdef __cplusplus
3660 extern "C"
3661 #endif
3662 /* We use char because int might match the return type of a gcc2
3663 builtin and then its argument prototype would still apply. */
3664 char dnet_ntoa ();
3666 main ()
3668 dnet_ntoa ();
3670 return 0;
3672 _ACEOF
3673 rm -f conftest.$ac_objext conftest$ac_exeext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675 (eval $ac_link) 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest$ac_exeext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3695 else
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 ac_cv_lib_dnet_stub_dnet_ntoa=no
3701 rm -f conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext
3703 LIBS=$ac_check_lib_save_LIBS
3705 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3706 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3707 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3708 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3713 rm -f conftest.err conftest.$ac_objext \
3714 conftest$ac_exeext conftest.$ac_ext
3715 LIBS="$ac_xsave_LIBS"
3717 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3718 # to get the SysV transport functions.
3719 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3720 # needs -lnsl.
3721 # The nsl library prevents programs from opening the X display
3722 # on Irix 5.2, according to T.E. Dickey.
3723 # The functions gethostbyname, getservbyname, and inet_addr are
3724 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3725 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3726 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3727 if test "${ac_cv_func_gethostbyname+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h. */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3736 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3738 #define gethostbyname innocuous_gethostbyname
3740 /* System header to define __stub macros and hopefully few prototypes,
3741 which can conflict with char gethostbyname (); below.
3742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3743 <limits.h> exists even on freestanding compilers. */
3745 #ifdef __STDC__
3746 # include <limits.h>
3747 #else
3748 # include <assert.h>
3749 #endif
3751 #undef gethostbyname
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 #ifdef __cplusplus
3755 extern "C"
3757 #endif
3758 /* We use char because int might match the return type of a gcc2
3759 builtin and then its argument prototype would still apply. */
3760 char gethostbyname ();
3761 /* The GNU C library defines this for functions which it implements
3762 to always fail with ENOSYS. Some functions are actually named
3763 something starting with __ and the normal name is an alias. */
3764 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3765 choke me
3766 #else
3767 char (*f) () = gethostbyname;
3768 #endif
3769 #ifdef __cplusplus
3771 #endif
3774 main ()
3776 return f != gethostbyname;
3778 return 0;
3780 _ACEOF
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783 (eval $ac_link) 2>conftest.er1
3784 ac_status=$?
3785 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } &&
3790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try='test -s conftest$ac_exeext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_cv_func_gethostbyname=yes
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 ac_cv_func_gethostbyname=no
3809 rm -f conftest.err conftest.$ac_objext \
3810 conftest$ac_exeext conftest.$ac_ext
3812 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3813 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3815 if test $ac_cv_func_gethostbyname = no; then
3816 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3817 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3818 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 ac_check_lib_save_LIBS=$LIBS
3822 LIBS="-lnsl $LIBS"
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h. */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3830 /* Override any gcc2 internal prototype to avoid an error. */
3831 #ifdef __cplusplus
3832 extern "C"
3833 #endif
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3836 char gethostbyname ();
3838 main ()
3840 gethostbyname ();
3842 return 0;
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_lib_nsl_gethostbyname=yes
3867 else
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_cv_lib_nsl_gethostbyname=no
3873 rm -f conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
3875 LIBS=$ac_check_lib_save_LIBS
3877 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3878 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3879 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3880 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3883 if test $ac_cv_lib_nsl_gethostbyname = no; then
3884 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3885 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3886 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 ac_check_lib_save_LIBS=$LIBS
3890 LIBS="-lbsd $LIBS"
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3898 /* Override any gcc2 internal prototype to avoid an error. */
3899 #ifdef __cplusplus
3900 extern "C"
3901 #endif
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3904 char gethostbyname ();
3906 main ()
3908 gethostbyname ();
3910 return 0;
3912 _ACEOF
3913 rm -f conftest.$ac_objext conftest$ac_exeext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915 (eval $ac_link) 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest$ac_exeext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_lib_bsd_gethostbyname=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_cv_lib_bsd_gethostbyname=no
3941 rm -f conftest.err conftest.$ac_objext \
3942 conftest$ac_exeext conftest.$ac_ext
3943 LIBS=$ac_check_lib_save_LIBS
3945 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3946 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3947 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3948 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3954 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3955 # socket/setsockopt and other routines are undefined under SCO ODT
3956 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3957 # on later versions), says Simon Leinen: it contains gethostby*
3958 # variants that don't use the name server (or something). -lsocket
3959 # must be given before -lnsl if both are needed. We assume that
3960 # if connect needs -lnsl, so does gethostbyname.
3961 echo "$as_me:$LINENO: checking for connect" >&5
3962 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3963 if test "${ac_cv_func_connect+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966 cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h. */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3972 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3974 #define connect innocuous_connect
3976 /* System header to define __stub macros and hopefully few prototypes,
3977 which can conflict with char connect (); below.
3978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979 <limits.h> exists even on freestanding compilers. */
3981 #ifdef __STDC__
3982 # include <limits.h>
3983 #else
3984 # include <assert.h>
3985 #endif
3987 #undef connect
3989 /* Override any gcc2 internal prototype to avoid an error. */
3990 #ifdef __cplusplus
3991 extern "C"
3993 #endif
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
3996 char connect ();
3997 /* The GNU C library defines this for functions which it implements
3998 to always fail with ENOSYS. Some functions are actually named
3999 something starting with __ and the normal name is an alias. */
4000 #if defined (__stub_connect) || defined (__stub___connect)
4001 choke me
4002 #else
4003 char (*f) () = connect;
4004 #endif
4005 #ifdef __cplusplus
4007 #endif
4010 main ()
4012 return f != connect;
4014 return 0;
4016 _ACEOF
4017 rm -f conftest.$ac_objext conftest$ac_exeext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4019 (eval $ac_link) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest$ac_exeext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_cv_func_connect=yes
4039 else
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 ac_cv_func_connect=no
4045 rm -f conftest.err conftest.$ac_objext \
4046 conftest$ac_exeext conftest.$ac_ext
4048 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4049 echo "${ECHO_T}$ac_cv_func_connect" >&6
4051 if test $ac_cv_func_connect = no; then
4052 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4053 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4054 if test "${ac_cv_lib_socket_connect+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 ac_check_lib_save_LIBS=$LIBS
4058 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h. */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4066 /* Override any gcc2 internal prototype to avoid an error. */
4067 #ifdef __cplusplus
4068 extern "C"
4069 #endif
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4072 char connect ();
4074 main ()
4076 connect ();
4078 return 0;
4080 _ACEOF
4081 rm -f conftest.$ac_objext conftest$ac_exeext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4083 (eval $ac_link) 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest$ac_exeext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_lib_socket_connect=yes
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 ac_cv_lib_socket_connect=no
4109 rm -f conftest.err conftest.$ac_objext \
4110 conftest$ac_exeext conftest.$ac_ext
4111 LIBS=$ac_check_lib_save_LIBS
4113 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4114 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4115 if test $ac_cv_lib_socket_connect = yes; then
4116 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4121 # Guillermo Gomez says -lposix is necessary on A/UX.
4122 echo "$as_me:$LINENO: checking for remove" >&5
4123 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4124 if test "${ac_cv_func_remove+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127 cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h. */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4133 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4135 #define remove innocuous_remove
4137 /* System header to define __stub macros and hopefully few prototypes,
4138 which can conflict with char remove (); below.
4139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140 <limits.h> exists even on freestanding compilers. */
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4148 #undef remove
4150 /* Override any gcc2 internal prototype to avoid an error. */
4151 #ifdef __cplusplus
4152 extern "C"
4154 #endif
4155 /* We use char because int might match the return type of a gcc2
4156 builtin and then its argument prototype would still apply. */
4157 char remove ();
4158 /* The GNU C library defines this for functions which it implements
4159 to always fail with ENOSYS. Some functions are actually named
4160 something starting with __ and the normal name is an alias. */
4161 #if defined (__stub_remove) || defined (__stub___remove)
4162 choke me
4163 #else
4164 char (*f) () = remove;
4165 #endif
4166 #ifdef __cplusplus
4168 #endif
4171 main ()
4173 return f != remove;
4175 return 0;
4177 _ACEOF
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; } &&
4193 { ac_try='test -s conftest$ac_exeext'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 (eval $ac_try) 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 ac_cv_func_remove=yes
4200 else
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 ac_cv_func_remove=no
4206 rm -f conftest.err conftest.$ac_objext \
4207 conftest$ac_exeext conftest.$ac_ext
4209 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4210 echo "${ECHO_T}$ac_cv_func_remove" >&6
4212 if test $ac_cv_func_remove = no; then
4213 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4214 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4215 if test "${ac_cv_lib_posix_remove+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 ac_check_lib_save_LIBS=$LIBS
4219 LIBS="-lposix $LIBS"
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h. */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4227 /* Override any gcc2 internal prototype to avoid an error. */
4228 #ifdef __cplusplus
4229 extern "C"
4230 #endif
4231 /* We use char because int might match the return type of a gcc2
4232 builtin and then its argument prototype would still apply. */
4233 char remove ();
4235 main ()
4237 remove ();
4239 return 0;
4241 _ACEOF
4242 rm -f conftest.$ac_objext conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244 (eval $ac_link) 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 (eval $ac_try) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; } &&
4257 { ac_try='test -s conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 (eval $ac_try) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 ac_cv_lib_posix_remove=yes
4264 else
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4268 ac_cv_lib_posix_remove=no
4270 rm -f conftest.err conftest.$ac_objext \
4271 conftest$ac_exeext conftest.$ac_ext
4272 LIBS=$ac_check_lib_save_LIBS
4274 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4275 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4276 if test $ac_cv_lib_posix_remove = yes; then
4277 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4282 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4283 echo "$as_me:$LINENO: checking for shmat" >&5
4284 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4285 if test "${ac_cv_func_shmat+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288 cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h. */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4294 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4296 #define shmat innocuous_shmat
4298 /* System header to define __stub macros and hopefully few prototypes,
4299 which can conflict with char shmat (); below.
4300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4301 <limits.h> exists even on freestanding compilers. */
4303 #ifdef __STDC__
4304 # include <limits.h>
4305 #else
4306 # include <assert.h>
4307 #endif
4309 #undef shmat
4311 /* Override any gcc2 internal prototype to avoid an error. */
4312 #ifdef __cplusplus
4313 extern "C"
4315 #endif
4316 /* We use char because int might match the return type of a gcc2
4317 builtin and then its argument prototype would still apply. */
4318 char shmat ();
4319 /* The GNU C library defines this for functions which it implements
4320 to always fail with ENOSYS. Some functions are actually named
4321 something starting with __ and the normal name is an alias. */
4322 #if defined (__stub_shmat) || defined (__stub___shmat)
4323 choke me
4324 #else
4325 char (*f) () = shmat;
4326 #endif
4327 #ifdef __cplusplus
4329 #endif
4332 main ()
4334 return f != shmat;
4336 return 0;
4338 _ACEOF
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341 (eval $ac_link) 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest$ac_exeext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_func_shmat=yes
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 ac_cv_func_shmat=no
4367 rm -f conftest.err conftest.$ac_objext \
4368 conftest$ac_exeext conftest.$ac_ext
4370 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4371 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4373 if test $ac_cv_func_shmat = no; then
4374 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4375 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4376 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 ac_check_lib_save_LIBS=$LIBS
4380 LIBS="-lipc $LIBS"
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4388 /* Override any gcc2 internal prototype to avoid an error. */
4389 #ifdef __cplusplus
4390 extern "C"
4391 #endif
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4394 char shmat ();
4396 main ()
4398 shmat ();
4400 return 0;
4402 _ACEOF
4403 rm -f conftest.$ac_objext conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405 (eval $ac_link) 2>conftest.er1
4406 ac_status=$?
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest$ac_exeext'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 ac_cv_lib_ipc_shmat=yes
4425 else
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 ac_cv_lib_ipc_shmat=no
4431 rm -f conftest.err conftest.$ac_objext \
4432 conftest$ac_exeext conftest.$ac_ext
4433 LIBS=$ac_check_lib_save_LIBS
4435 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4436 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4437 if test $ac_cv_lib_ipc_shmat = yes; then
4438 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4444 # Check for libraries that X11R6 Xt/Xaw programs need.
4445 ac_save_LDFLAGS=$LDFLAGS
4446 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4447 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4448 # check for ICE first), but we must link in the order -lSM -lICE or
4449 # we get undefined symbols. So assume we have SM if we have ICE.
4450 # These have to be linked with before -lX11, unlike the other
4451 # libraries we check for below, so use a different variable.
4452 # John Interrante, Karl Berry
4453 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4454 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4455 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 ac_check_lib_save_LIBS=$LIBS
4459 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4467 /* Override any gcc2 internal prototype to avoid an error. */
4468 #ifdef __cplusplus
4469 extern "C"
4470 #endif
4471 /* We use char because int might match the return type of a gcc2
4472 builtin and then its argument prototype would still apply. */
4473 char IceConnectionNumber ();
4475 main ()
4477 IceConnectionNumber ();
4479 return 0;
4481 _ACEOF
4482 rm -f conftest.$ac_objext conftest$ac_exeext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4484 (eval $ac_link) 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest$ac_exeext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_lib_ICE_IceConnectionNumber=yes
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_lib_ICE_IceConnectionNumber=no
4510 rm -f conftest.err conftest.$ac_objext \
4511 conftest$ac_exeext conftest.$ac_ext
4512 LIBS=$ac_check_lib_save_LIBS
4514 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4515 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4516 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4517 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4520 LDFLAGS=$ac_save_LDFLAGS
4524 for ac_prog in flex lex
4526 # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530 if test "${ac_cv_prog_LEX+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 if test -n "$LEX"; then
4534 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_LEX="$ac_prog"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4552 LEX=$ac_cv_prog_LEX
4553 if test -n "$LEX"; then
4554 echo "$as_me:$LINENO: result: $LEX" >&5
4555 echo "${ECHO_T}$LEX" >&6
4556 else
4557 echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6
4561 test -n "$LEX" && break
4562 done
4563 test -n "$LEX" || LEX=":"
4565 if test -z "$LEXLIB"
4566 then
4567 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4568 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4569 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 ac_check_lib_save_LIBS=$LIBS
4573 LIBS="-lfl $LIBS"
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4581 /* Override any gcc2 internal prototype to avoid an error. */
4582 #ifdef __cplusplus
4583 extern "C"
4584 #endif
4585 /* We use char because int might match the return type of a gcc2
4586 builtin and then its argument prototype would still apply. */
4587 char yywrap ();
4589 main ()
4591 yywrap ();
4593 return 0;
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598 (eval $ac_link) 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest$ac_exeext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_lib_fl_yywrap=yes
4618 else
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 ac_cv_lib_fl_yywrap=no
4624 rm -f conftest.err conftest.$ac_objext \
4625 conftest$ac_exeext conftest.$ac_ext
4626 LIBS=$ac_check_lib_save_LIBS
4628 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4629 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4630 if test $ac_cv_lib_fl_yywrap = yes; then
4631 LEXLIB="-lfl"
4632 else
4633 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4634 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4635 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638 ac_check_lib_save_LIBS=$LIBS
4639 LIBS="-ll $LIBS"
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4647 /* Override any gcc2 internal prototype to avoid an error. */
4648 #ifdef __cplusplus
4649 extern "C"
4650 #endif
4651 /* We use char because int might match the return type of a gcc2
4652 builtin and then its argument prototype would still apply. */
4653 char yywrap ();
4655 main ()
4657 yywrap ();
4659 return 0;
4661 _ACEOF
4662 rm -f conftest.$ac_objext conftest$ac_exeext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4664 (eval $ac_link) 2>conftest.er1
4665 ac_status=$?
4666 grep -v '^ *+' conftest.er1 >conftest.err
4667 rm -f conftest.er1
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try='test -s conftest$ac_exeext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 (eval $ac_try) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 ac_cv_lib_l_yywrap=yes
4684 else
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4688 ac_cv_lib_l_yywrap=no
4690 rm -f conftest.err conftest.$ac_objext \
4691 conftest$ac_exeext conftest.$ac_ext
4692 LIBS=$ac_check_lib_save_LIBS
4694 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4695 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4696 if test $ac_cv_lib_l_yywrap = yes; then
4697 LEXLIB="-ll"
4704 if test "x$LEX" != "x:"; then
4705 echo "$as_me:$LINENO: checking lex output file root" >&5
4706 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4707 if test "${ac_cv_prog_lex_root+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710 # The minimal lex program is just a single line: %%. But some broken lexes
4711 # (Solaris, I think it was) want two %% lines, so accommodate them.
4712 cat >conftest.l <<_ACEOF
4715 _ACEOF
4716 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4717 (eval $LEX conftest.l) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }
4721 if test -f lex.yy.c; then
4722 ac_cv_prog_lex_root=lex.yy
4723 elif test -f lexyy.c; then
4724 ac_cv_prog_lex_root=lexyy
4725 else
4726 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4727 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4728 { (exit 1); exit 1; }; }
4731 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4732 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4733 rm -f conftest.l
4734 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4736 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4737 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4738 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741 # POSIX says lex can declare yytext either as a pointer or an array; the
4742 # default is implementation-dependent. Figure out which it is, since
4743 # not all implementations provide the %pointer and %array declarations.
4744 ac_cv_prog_lex_yytext_pointer=no
4745 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4746 ac_save_LIBS=$LIBS
4747 LIBS="$LIBS $LEXLIB"
4748 cat >conftest.$ac_ext <<_ACEOF
4749 `cat $LEX_OUTPUT_ROOT.c`
4750 _ACEOF
4751 rm -f conftest.$ac_objext conftest$ac_exeext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4753 (eval $ac_link) 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest$ac_exeext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_cv_prog_lex_yytext_pointer=yes
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4778 rm -f conftest.err conftest.$ac_objext \
4779 conftest$ac_exeext conftest.$ac_ext
4780 LIBS=$ac_save_LIBS
4781 rm -f "${LEX_OUTPUT_ROOT}.c"
4784 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4785 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4786 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4788 cat >>confdefs.h <<\_ACEOF
4789 #define YYTEXT_POINTER 1
4790 _ACEOF
4796 for ac_prog in $LEX flex lex
4798 # Extract the first word of "$ac_prog", so it can be a program name with args.
4799 set dummy $ac_prog; 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_XLEX+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 if test -n "$XLEX"; then
4806 ac_cv_prog_XLEX="$XLEX" # 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_XLEX="$ac_prog"
4816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4824 XLEX=$ac_cv_prog_XLEX
4825 if test -n "$XLEX"; then
4826 echo "$as_me:$LINENO: result: $XLEX" >&5
4827 echo "${ECHO_T}$XLEX" >&6
4828 else
4829 echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4833 test -n "$XLEX" && break
4834 done
4835 test -n "$XLEX" || XLEX="none"
4837 if test "$XLEX" = "none"
4838 then
4839 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4840 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4841 { (exit 1); exit 1; }; }
4844 for ac_prog in bison
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_prog_BISON+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853 if test -n "$BISON"; then
4854 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_BISON="$ac_prog"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4867 done
4868 done
4872 BISON=$ac_cv_prog_BISON
4873 if test -n "$BISON"; then
4874 echo "$as_me:$LINENO: result: $BISON" >&5
4875 echo "${ECHO_T}$BISON" >&6
4876 else
4877 echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6
4881 test -n "$BISON" && break
4882 done
4883 test -n "$BISON" || BISON="none"
4885 if test "$BISON" = "none"
4886 then
4887 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4888 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4889 { (exit 1); exit 1; }; }
4892 if test -n "$ac_tool_prefix"; then
4893 for ac_prog in gas as
4895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_prog_AS+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902 if test -n "$AS"; then
4903 ac_cv_prog_AS="$AS" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4921 AS=$ac_cv_prog_AS
4922 if test -n "$AS"; then
4923 echo "$as_me:$LINENO: result: $AS" >&5
4924 echo "${ECHO_T}$AS" >&6
4925 else
4926 echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4930 test -n "$AS" && break
4931 done
4933 if test -z "$AS"; then
4934 ac_ct_AS=$AS
4935 for ac_prog in gas as
4937 # Extract the first word of "$ac_prog", so it can be a program name with args.
4938 set dummy $ac_prog; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944 if test -n "$ac_ct_AS"; then
4945 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954 ac_cv_prog_ac_ct_AS="$ac_prog"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4963 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4964 if test -n "$ac_ct_AS"; then
4965 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4966 echo "${ECHO_T}$ac_ct_AS" >&6
4967 else
4968 echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6
4972 test -n "$ac_ct_AS" && break
4973 done
4974 test -n "$ac_ct_AS" || ac_ct_AS="as"
4976 AS=$ac_ct_AS
4979 if test -n "$ac_tool_prefix"; then
4980 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}ld; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_prog_LD+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 if test -n "$LD"; then
4988 ac_cv_prog_LD="$LD" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_LD="${ac_tool_prefix}ld"
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5006 LD=$ac_cv_prog_LD
5007 if test -n "$LD"; then
5008 echo "$as_me:$LINENO: result: $LD" >&5
5009 echo "${ECHO_T}$LD" >&6
5010 else
5011 echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5016 if test -z "$ac_cv_prog_LD"; then
5017 ac_ct_LD=$LD
5018 # Extract the first word of "ld", so it can be a program name with args.
5019 set dummy ld; ac_word=$2
5020 echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 if test -n "$ac_ct_LD"; then
5026 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_ac_ct_LD="ld"
5036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5039 done
5040 done
5042 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5045 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5046 if test -n "$ac_ct_LD"; then
5047 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5048 echo "${ECHO_T}$ac_ct_LD" >&6
5049 else
5050 echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5054 LD=$ac_ct_LD
5055 else
5056 LD="$ac_cv_prog_LD"
5059 if test -n "$ac_tool_prefix"; then
5060 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5061 set dummy ${ac_tool_prefix}ar; ac_word=$2
5062 echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5064 if test "${ac_cv_prog_AR+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 if test -n "$AR"; then
5068 ac_cv_prog_AR="$AR" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077 ac_cv_prog_AR="${ac_tool_prefix}ar"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5086 AR=$ac_cv_prog_AR
5087 if test -n "$AR"; then
5088 echo "$as_me:$LINENO: result: $AR" >&5
5089 echo "${ECHO_T}$AR" >&6
5090 else
5091 echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6
5096 if test -z "$ac_cv_prog_AR"; then
5097 ac_ct_AR=$AR
5098 # Extract the first word of "ar", so it can be a program name with args.
5099 set dummy ar; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 if test -n "$ac_ct_AR"; then
5106 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_ac_ct_AR="ar"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5119 done
5120 done
5122 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5125 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5126 if test -n "$ac_ct_AR"; then
5127 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5128 echo "${ECHO_T}$ac_ct_AR" >&6
5129 else
5130 echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5134 AR=$ac_ct_AR
5135 else
5136 AR="$ac_cv_prog_AR"
5139 if test -n "$ac_tool_prefix"; then
5140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5142 echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144 if test "${ac_cv_prog_RANLIB+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 if test -n "$RANLIB"; then
5148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5161 done
5162 done
5166 RANLIB=$ac_cv_prog_RANLIB
5167 if test -n "$RANLIB"; then
5168 echo "$as_me:$LINENO: result: $RANLIB" >&5
5169 echo "${ECHO_T}$RANLIB" >&6
5170 else
5171 echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5176 if test -z "$ac_cv_prog_RANLIB"; then
5177 ac_ct_RANLIB=$RANLIB
5178 # Extract the first word of "ranlib", so it can be a program name with args.
5179 set dummy ranlib; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185 if test -n "$ac_ct_RANLIB"; then
5186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_RANLIB="ranlib"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5202 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5206 if test -n "$ac_ct_RANLIB"; then
5207 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5208 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5209 else
5210 echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5214 RANLIB=$ac_ct_RANLIB
5215 else
5216 RANLIB="$ac_cv_prog_RANLIB"
5219 if test -n "$ac_tool_prefix"; then
5220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5221 set dummy ${ac_tool_prefix}strip; ac_word=$2
5222 echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224 if test "${ac_cv_prog_STRIP+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 if test -n "$STRIP"; then
5228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5246 STRIP=$ac_cv_prog_STRIP
5247 if test -n "$STRIP"; then
5248 echo "$as_me:$LINENO: result: $STRIP" >&5
5249 echo "${ECHO_T}$STRIP" >&6
5250 else
5251 echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5256 if test -z "$ac_cv_prog_STRIP"; then
5257 ac_ct_STRIP=$STRIP
5258 # Extract the first word of "strip", so it can be a program name with args.
5259 set dummy strip; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 if test -n "$ac_ct_STRIP"; then
5266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_prog_ac_ct_STRIP="strip"
5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5279 done
5280 done
5282 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5286 if test -n "$ac_ct_STRIP"; then
5287 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5288 echo "${ECHO_T}$ac_ct_STRIP" >&6
5289 else
5290 echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6
5294 STRIP=$ac_ct_STRIP
5295 else
5296 STRIP="$ac_cv_prog_STRIP"
5299 if test -n "$ac_tool_prefix"; then
5300 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5301 set dummy ${ac_tool_prefix}windres; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_prog_WINDRES+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 if test -n "$WINDRES"; then
5308 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5326 WINDRES=$ac_cv_prog_WINDRES
5327 if test -n "$WINDRES"; then
5328 echo "$as_me:$LINENO: result: $WINDRES" >&5
5329 echo "${ECHO_T}$WINDRES" >&6
5330 else
5331 echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5336 if test -z "$ac_cv_prog_WINDRES"; then
5337 ac_ct_WINDRES=$WINDRES
5338 # Extract the first word of "windres", so it can be a program name with args.
5339 set dummy windres; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 if test -n "$ac_ct_WINDRES"; then
5346 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_ac_ct_WINDRES="windres"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5359 done
5360 done
5362 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5365 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5366 if test -n "$ac_ct_WINDRES"; then
5367 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5368 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5369 else
5370 echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5374 WINDRES=$ac_ct_WINDRES
5375 else
5376 WINDRES="$ac_cv_prog_WINDRES"
5379 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5380 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5381 LN_S=$as_ln_s
5382 if test "$LN_S" = "ln -s"; then
5383 echo "$as_me:$LINENO: result: yes" >&5
5384 echo "${ECHO_T}yes" >&6
5385 else
5386 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5387 echo "${ECHO_T}no, using $LN_S" >&6
5390 echo "$as_me:$LINENO: checking whether ln works" >&5
5391 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5392 rm -f conf$$ conf$$.file
5393 echo >conf$$.file
5394 if ln conf$$.file conf$$ 2>/dev/null; then
5395 LN=ln
5397 echo "$as_me:$LINENO: result: yes" >&5
5398 echo "${ECHO_T}yes" >&6
5399 else
5400 LN="cp -p"
5402 echo "$as_me:$LINENO: result: no, using $LN" >&5
5403 echo "${ECHO_T}no, using $LN" >&6
5405 rm -f conf$$ conf$$.file
5406 echo "$as_me:$LINENO: checking for egrep" >&5
5407 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5408 if test "${ac_cv_prog_egrep+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5412 then ac_cv_prog_egrep='grep -E'
5413 else ac_cv_prog_egrep='egrep'
5416 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5417 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5418 EGREP=$ac_cv_prog_egrep
5421 # Extract the first word of "ldconfig", so it can be a program name with args.
5422 set dummy ldconfig; ac_word=$2
5423 echo "$as_me:$LINENO: checking for $ac_word" >&5
5424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428 case $LDCONFIG in
5429 [\\/]* | ?:[\\/]*)
5430 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in /sbin /usr/sbin $PATH
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5444 done
5445 done
5447 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5449 esac
5451 LDCONFIG=$ac_cv_path_LDCONFIG
5453 if test -n "$LDCONFIG"; then
5454 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5455 echo "${ECHO_T}$LDCONFIG" >&6
5456 else
5457 echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5461 # Find a good install program. We prefer a C program (faster),
5462 # so one script is as good as another. But avoid the broken or
5463 # incompatible versions:
5464 # SysV /etc/install, /usr/sbin/install
5465 # SunOS /usr/etc/install
5466 # IRIX /sbin/install
5467 # AIX /bin/install
5468 # AmigaOS /C/install, which installs bootblocks on floppy discs
5469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5472 # OS/2's system install, which has a completely different semantic
5473 # ./install, which can be erroneously created by make from ./install.sh.
5474 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5475 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5476 if test -z "$INSTALL"; then
5477 if test "${ac_cv_path_install+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
5485 # Account for people who put trailing slashes in PATH elements.
5486 case $as_dir/ in
5487 ./ | .// | /cC/* | \
5488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5490 /usr/ucb/* ) ;;
5492 # OSF1 and SCO ODT 3.0 have their own names for install.
5493 # Don't use installbsd from OSF since it installs stuff as root
5494 # by default.
5495 for ac_prog in ginstall scoinst install; do
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5498 if test $ac_prog = install &&
5499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5500 # AIX install. It has an incompatible calling convention.
5502 elif test $ac_prog = install &&
5503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5504 # program-specific install script used by HP pwplus--don't use.
5506 else
5507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5508 break 3
5511 done
5512 done
5514 esac
5515 done
5519 if test "${ac_cv_path_install+set}" = set; then
5520 INSTALL=$ac_cv_path_install
5521 else
5522 # As a last resort, use the slow shell script. We don't cache a
5523 # path for INSTALL within a source directory, because that will
5524 # break other packages using the cache if that directory is
5525 # removed, or if the path is relative.
5526 INSTALL=$ac_install_sh
5529 echo "$as_me:$LINENO: result: $INSTALL" >&5
5530 echo "${ECHO_T}$INSTALL" >&6
5532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5533 # It thinks the first close brace ends the variable substitution.
5534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5540 case "$INSTALL" in
5541 [\\/$]* | ?:[\\/]* ) ;;
5542 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5543 esac
5545 for ac_prog in lclint lint
5547 # Extract the first word of "$ac_prog", so it can be a program name with args.
5548 set dummy $ac_prog; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_prog_LINT+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 if test -n "$LINT"; then
5555 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_LINT="$ac_prog"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5568 done
5569 done
5573 LINT=$ac_cv_prog_LINT
5574 if test -n "$LINT"; then
5575 echo "$as_me:$LINENO: result: $LINT" >&5
5576 echo "${ECHO_T}$LINT" >&6
5577 else
5578 echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6
5582 test -n "$LINT" && break
5583 done
5585 if test "$LINT" = "lint"
5586 then
5587 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5592 for ac_prog in docbook2html db2html
5594 # Extract the first word of "$ac_prog", so it can be a program name with args.
5595 set dummy $ac_prog; ac_word=$2
5596 echo "$as_me:$LINENO: checking for $ac_word" >&5
5597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5598 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601 if test -n "$DB2HTML"; then
5602 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_DB2HTML="$ac_prog"
5612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5615 done
5616 done
5620 DB2HTML=$ac_cv_prog_DB2HTML
5621 if test -n "$DB2HTML"; then
5622 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5623 echo "${ECHO_T}$DB2HTML" >&6
5624 else
5625 echo "$as_me:$LINENO: result: no" >&5
5626 echo "${ECHO_T}no" >&6
5629 test -n "$DB2HTML" && break
5630 done
5631 test -n "$DB2HTML" || DB2HTML="false"
5633 for ac_prog in docbook2pdf db2pdf
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 if test -n "$DB2PDF"; then
5643 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_DB2PDF="$ac_prog"
5653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5656 done
5657 done
5661 DB2PDF=$ac_cv_prog_DB2PDF
5662 if test -n "$DB2PDF"; then
5663 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5664 echo "${ECHO_T}$DB2PDF" >&6
5665 else
5666 echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5670 test -n "$DB2PDF" && break
5671 done
5672 test -n "$DB2PDF" || DB2PDF="false"
5674 for ac_prog in docbook2ps db2ps
5676 # Extract the first word of "$ac_prog", so it can be a program name with args.
5677 set dummy $ac_prog; ac_word=$2
5678 echo "$as_me:$LINENO: checking for $ac_word" >&5
5679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680 if test "${ac_cv_prog_DB2PS+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 if test -n "$DB2PS"; then
5684 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_DB2PS="$ac_prog"
5694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5697 done
5698 done
5702 DB2PS=$ac_cv_prog_DB2PS
5703 if test -n "$DB2PS"; then
5704 echo "$as_me:$LINENO: result: $DB2PS" >&5
5705 echo "${ECHO_T}$DB2PS" >&6
5706 else
5707 echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5711 test -n "$DB2PS" && break
5712 done
5713 test -n "$DB2PS" || DB2PS="false"
5715 for ac_prog in docbook2txt db2txt
5717 # Extract the first word of "$ac_prog", so it can be a program name with args.
5718 set dummy $ac_prog; ac_word=$2
5719 echo "$as_me:$LINENO: checking for $ac_word" >&5
5720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 if test -n "$DB2TXT"; then
5725 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_DB2TXT="$ac_prog"
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5738 done
5739 done
5743 DB2TXT=$ac_cv_prog_DB2TXT
5744 if test -n "$DB2TXT"; then
5745 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5746 echo "${ECHO_T}$DB2TXT" >&6
5747 else
5748 echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6
5752 test -n "$DB2TXT" && break
5753 done
5754 test -n "$DB2TXT" || DB2TXT="false"
5756 for ac_prog in fontforge
5758 # Extract the first word of "$ac_prog", so it can be a program name with args.
5759 set dummy $ac_prog; ac_word=$2
5760 echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5762 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 if test -n "$FONTFORGE"; then
5766 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775 ac_cv_prog_FONTFORGE="$ac_prog"
5776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5779 done
5780 done
5784 FONTFORGE=$ac_cv_prog_FONTFORGE
5785 if test -n "$FONTFORGE"; then
5786 echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5787 echo "${ECHO_T}$FONTFORGE" >&6
5788 else
5789 echo "$as_me:$LINENO: result: no" >&5
5790 echo "${ECHO_T}no" >&6
5793 test -n "$FONTFORGE" && break
5794 done
5795 test -n "$FONTFORGE" || FONTFORGE="false"
5800 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5801 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5802 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805 ac_check_lib_save_LIBS=$LIBS
5806 LIBS="-li386 $LIBS"
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5814 /* Override any gcc2 internal prototype to avoid an error. */
5815 #ifdef __cplusplus
5816 extern "C"
5817 #endif
5818 /* We use char because int might match the return type of a gcc2
5819 builtin and then its argument prototype would still apply. */
5820 char i386_set_ldt ();
5822 main ()
5824 i386_set_ldt ();
5826 return 0;
5828 _ACEOF
5829 rm -f conftest.$ac_objext conftest$ac_exeext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5831 (eval $ac_link) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest$ac_exeext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_lib_i386_i386_set_ldt=yes
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 ac_cv_lib_i386_i386_set_ldt=no
5857 rm -f conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
5859 LIBS=$ac_check_lib_save_LIBS
5861 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5862 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5863 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5864 cat >>confdefs.h <<_ACEOF
5865 #define HAVE_LIBI386 1
5866 _ACEOF
5868 LIBS="-li386 $LIBS"
5873 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5874 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5875 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878 ac_check_lib_save_LIBS=$LIBS
5879 LIBS="-lossaudio $LIBS"
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5887 /* Override any gcc2 internal prototype to avoid an error. */
5888 #ifdef __cplusplus
5889 extern "C"
5890 #endif
5891 /* We use char because int might match the return type of a gcc2
5892 builtin and then its argument prototype would still apply. */
5893 char _oss_ioctl ();
5895 main ()
5897 _oss_ioctl ();
5899 return 0;
5901 _ACEOF
5902 rm -f conftest.$ac_objext conftest$ac_exeext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5904 (eval $ac_link) 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 (eval $ac_try) 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; } &&
5917 { ac_try='test -s conftest$ac_exeext'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5923 ac_cv_lib_ossaudio__oss_ioctl=yes
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 ac_cv_lib_ossaudio__oss_ioctl=no
5930 rm -f conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext conftest.$ac_ext
5932 LIBS=$ac_check_lib_save_LIBS
5934 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5935 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5936 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5937 cat >>confdefs.h <<_ACEOF
5938 #define HAVE_LIBOSSAUDIO 1
5939 _ACEOF
5941 LIBS="-lossaudio $LIBS"
5946 for ac_func in iswalnum
5948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5949 echo "$as_me:$LINENO: checking for $ac_func" >&5
5950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5951 if eval "test \"\${$as_ac_var+set}\" = set"; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954 cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h. */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5962 #define $ac_func innocuous_$ac_func
5964 /* System header to define __stub macros and hopefully few prototypes,
5965 which can conflict with char $ac_func (); below.
5966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5967 <limits.h> exists even on freestanding compilers. */
5969 #ifdef __STDC__
5970 # include <limits.h>
5971 #else
5972 # include <assert.h>
5973 #endif
5975 #undef $ac_func
5977 /* Override any gcc2 internal prototype to avoid an error. */
5978 #ifdef __cplusplus
5979 extern "C"
5981 #endif
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5984 char $ac_func ();
5985 /* The GNU C library defines this for functions which it implements
5986 to always fail with ENOSYS. Some functions are actually named
5987 something starting with __ and the normal name is an alias. */
5988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5989 choke me
5990 #else
5991 char (*f) () = $ac_func;
5992 #endif
5993 #ifdef __cplusplus
5995 #endif
5998 main ()
6000 return f != $ac_func;
6002 return 0;
6004 _ACEOF
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>conftest.er1
6008 ac_status=$?
6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; } &&
6020 { ac_try='test -s conftest$ac_exeext'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 eval "$as_ac_var=yes"
6027 else
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 eval "$as_ac_var=no"
6033 rm -f conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6038 if test `eval echo '${'$as_ac_var'}'` = yes; then
6039 cat >>confdefs.h <<_ACEOF
6040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6041 _ACEOF
6043 else
6045 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
6046 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6047 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 ac_check_lib_save_LIBS=$LIBS
6051 LIBS="-lw $LIBS"
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6059 /* Override any gcc2 internal prototype to avoid an error. */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6065 char iswalnum ();
6067 main ()
6069 iswalnum ();
6071 return 0;
6073 _ACEOF
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076 (eval $ac_link) 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 (eval $ac_try) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_lib_w_iswalnum=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_cv_lib_w_iswalnum=no
6102 rm -f conftest.err conftest.$ac_objext \
6103 conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6106 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6107 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6108 if test $ac_cv_lib_w_iswalnum = yes; then
6109 cat >>confdefs.h <<_ACEOF
6110 #define HAVE_LIBW 1
6111 _ACEOF
6113 LIBS="-lw $LIBS"
6118 done
6121 for ac_func in gethostbyname
6123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6124 echo "$as_me:$LINENO: checking for $ac_func" >&5
6125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6126 if eval "test \"\${$as_ac_var+set}\" = set"; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6137 #define $ac_func innocuous_$ac_func
6139 /* System header to define __stub macros and hopefully few prototypes,
6140 which can conflict with char $ac_func (); below.
6141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142 <limits.h> exists even on freestanding compilers. */
6144 #ifdef __STDC__
6145 # include <limits.h>
6146 #else
6147 # include <assert.h>
6148 #endif
6150 #undef $ac_func
6152 /* Override any gcc2 internal prototype to avoid an error. */
6153 #ifdef __cplusplus
6154 extern "C"
6156 #endif
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6159 char $ac_func ();
6160 /* The GNU C library defines this for functions which it implements
6161 to always fail with ENOSYS. Some functions are actually named
6162 something starting with __ and the normal name is an alias. */
6163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6164 choke me
6165 #else
6166 char (*f) () = $ac_func;
6167 #endif
6168 #ifdef __cplusplus
6170 #endif
6173 main ()
6175 return f != $ac_func;
6177 return 0;
6179 _ACEOF
6180 rm -f conftest.$ac_objext conftest$ac_exeext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182 (eval $ac_link) 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest$ac_exeext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 eval "$as_ac_var=yes"
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 eval "$as_ac_var=no"
6208 rm -f conftest.err conftest.$ac_objext \
6209 conftest$ac_exeext conftest.$ac_ext
6211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6213 if test `eval echo '${'$as_ac_var'}'` = yes; then
6214 cat >>confdefs.h <<_ACEOF
6215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6216 _ACEOF
6218 else
6220 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6221 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6222 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lnsl $LIBS"
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h. */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 /* Override any gcc2 internal prototype to avoid an error. */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 /* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6240 char gethostbyname ();
6242 main ()
6244 gethostbyname ();
6246 return 0;
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest$ac_exeext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_cv_lib_nsl_gethostbyname=yes
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 ac_cv_lib_nsl_gethostbyname=no
6277 rm -f conftest.err conftest.$ac_objext \
6278 conftest$ac_exeext conftest.$ac_ext
6279 LIBS=$ac_check_lib_save_LIBS
6281 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6282 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6283 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6284 cat >>confdefs.h <<_ACEOF
6285 #define HAVE_LIBNSL 1
6286 _ACEOF
6288 LIBS="-lnsl $LIBS"
6293 done
6296 for ac_func in connect
6298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6299 echo "$as_me:$LINENO: checking for $ac_func" >&5
6300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6301 if eval "test \"\${$as_ac_var+set}\" = set"; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6312 #define $ac_func innocuous_$ac_func
6314 /* System header to define __stub macros and hopefully few prototypes,
6315 which can conflict with char $ac_func (); below.
6316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6317 <limits.h> exists even on freestanding compilers. */
6319 #ifdef __STDC__
6320 # include <limits.h>
6321 #else
6322 # include <assert.h>
6323 #endif
6325 #undef $ac_func
6327 /* Override any gcc2 internal prototype to avoid an error. */
6328 #ifdef __cplusplus
6329 extern "C"
6331 #endif
6332 /* We use char because int might match the return type of a gcc2
6333 builtin and then its argument prototype would still apply. */
6334 char $ac_func ();
6335 /* The GNU C library defines this for functions which it implements
6336 to always fail with ENOSYS. Some functions are actually named
6337 something starting with __ and the normal name is an alias. */
6338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6339 choke me
6340 #else
6341 char (*f) () = $ac_func;
6342 #endif
6343 #ifdef __cplusplus
6345 #endif
6348 main ()
6350 return f != $ac_func;
6352 return 0;
6354 _ACEOF
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357 (eval $ac_link) 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try='test -s conftest$ac_exeext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 eval "$as_ac_var=yes"
6377 else
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 eval "$as_ac_var=no"
6383 rm -f conftest.err conftest.$ac_objext \
6384 conftest$ac_exeext conftest.$ac_ext
6386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6388 if test `eval echo '${'$as_ac_var'}'` = yes; then
6389 cat >>confdefs.h <<_ACEOF
6390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6391 _ACEOF
6393 else
6395 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6396 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6397 if test "${ac_cv_lib_socket_connect+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 ac_check_lib_save_LIBS=$LIBS
6401 LIBS="-lsocket $LIBS"
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 #ifdef __cplusplus
6411 extern "C"
6412 #endif
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6415 char connect ();
6417 main ()
6419 connect ();
6421 return 0;
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try='test -s conftest$ac_exeext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_cv_lib_socket_connect=yes
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 ac_cv_lib_socket_connect=no
6452 rm -f conftest.err conftest.$ac_objext \
6453 conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6456 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6457 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6458 if test $ac_cv_lib_socket_connect = yes; then
6459 cat >>confdefs.h <<_ACEOF
6460 #define HAVE_LIBSOCKET 1
6461 _ACEOF
6463 LIBS="-lsocket $LIBS"
6468 done
6471 for ac_func in inet_aton
6473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6474 echo "$as_me:$LINENO: checking for $ac_func" >&5
6475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6476 if eval "test \"\${$as_ac_var+set}\" = set"; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479 cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h. */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6487 #define $ac_func innocuous_$ac_func
6489 /* System header to define __stub macros and hopefully few prototypes,
6490 which can conflict with char $ac_func (); below.
6491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6492 <limits.h> exists even on freestanding compilers. */
6494 #ifdef __STDC__
6495 # include <limits.h>
6496 #else
6497 # include <assert.h>
6498 #endif
6500 #undef $ac_func
6502 /* Override any gcc2 internal prototype to avoid an error. */
6503 #ifdef __cplusplus
6504 extern "C"
6506 #endif
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6509 char $ac_func ();
6510 /* The GNU C library defines this for functions which it implements
6511 to always fail with ENOSYS. Some functions are actually named
6512 something starting with __ and the normal name is an alias. */
6513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6514 choke me
6515 #else
6516 char (*f) () = $ac_func;
6517 #endif
6518 #ifdef __cplusplus
6520 #endif
6523 main ()
6525 return f != $ac_func;
6527 return 0;
6529 _ACEOF
6530 rm -f conftest.$ac_objext conftest$ac_exeext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6532 (eval $ac_link) 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 (eval $ac_try) 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest$ac_exeext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 eval "$as_ac_var=yes"
6552 else
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 eval "$as_ac_var=no"
6558 rm -f conftest.err conftest.$ac_objext \
6559 conftest$ac_exeext conftest.$ac_ext
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6563 if test `eval echo '${'$as_ac_var'}'` = yes; then
6564 cat >>confdefs.h <<_ACEOF
6565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6566 _ACEOF
6568 else
6570 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6571 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6572 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575 ac_check_lib_save_LIBS=$LIBS
6576 LIBS="-lresolv $LIBS"
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6584 /* Override any gcc2 internal prototype to avoid an error. */
6585 #ifdef __cplusplus
6586 extern "C"
6587 #endif
6588 /* We use char because int might match the return type of a gcc2
6589 builtin and then its argument prototype would still apply. */
6590 char inet_aton ();
6592 main ()
6594 inet_aton ();
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6601 (eval $ac_link) 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try='test -s conftest$ac_exeext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_lib_resolv_inet_aton=yes
6621 else
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6625 ac_cv_lib_resolv_inet_aton=no
6627 rm -f conftest.err conftest.$ac_objext \
6628 conftest$ac_exeext conftest.$ac_ext
6629 LIBS=$ac_check_lib_save_LIBS
6631 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6632 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6633 if test $ac_cv_lib_resolv_inet_aton = yes; then
6634 cat >>confdefs.h <<_ACEOF
6635 #define HAVE_LIBRESOLV 1
6636 _ACEOF
6638 LIBS="-lresolv $LIBS"
6643 done
6646 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6647 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6648 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651 ac_check_lib_save_LIBS=$LIBS
6652 LIBS="-lxpg4 $LIBS"
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6660 /* Override any gcc2 internal prototype to avoid an error. */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6666 char _xpg4_setrunelocale ();
6668 main ()
6670 _xpg4_setrunelocale ();
6672 return 0;
6674 _ACEOF
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 (eval $ac_try) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; } &&
6690 { ac_try='test -s conftest$ac_exeext'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 (eval $ac_try) 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6703 rm -f conftest.err conftest.$ac_objext \
6704 conftest$ac_exeext conftest.$ac_ext
6705 LIBS=$ac_check_lib_save_LIBS
6707 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6708 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6709 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define HAVE_LIBXPG4 1
6712 _ACEOF
6714 LIBS="-lxpg4 $LIBS"
6719 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6720 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6721 if test "${ac_cv_lib_poll_poll+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 ac_check_lib_save_LIBS=$LIBS
6725 LIBS="-lpoll $LIBS"
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h. */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6733 /* Override any gcc2 internal prototype to avoid an error. */
6734 #ifdef __cplusplus
6735 extern "C"
6736 #endif
6737 /* We use char because int might match the return type of a gcc2
6738 builtin and then its argument prototype would still apply. */
6739 char poll ();
6741 main ()
6743 poll ();
6745 return 0;
6747 _ACEOF
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750 (eval $ac_link) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; } &&
6763 { ac_try='test -s conftest$ac_exeext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 ac_cv_lib_poll_poll=yes
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 ac_cv_lib_poll_poll=no
6776 rm -f conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6778 LIBS=$ac_check_lib_save_LIBS
6780 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6781 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6782 if test $ac_cv_lib_poll_poll = yes; then
6783 cat >>confdefs.h <<_ACEOF
6784 #define HAVE_LIBPOLL 1
6785 _ACEOF
6787 LIBS="-lpoll $LIBS"
6792 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6793 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6794 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 ac_check_lib_save_LIBS=$LIBS
6798 LIBS="-lresolv $LIBS"
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6806 /* Override any gcc2 internal prototype to avoid an error. */
6807 #ifdef __cplusplus
6808 extern "C"
6809 #endif
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6812 char res_9_init ();
6814 main ()
6816 res_9_init ();
6818 return 0;
6820 _ACEOF
6821 rm -f conftest.$ac_objext conftest$ac_exeext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823 (eval $ac_link) 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; } &&
6836 { ac_try='test -s conftest$ac_exeext'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 (eval $ac_try) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6842 ac_cv_lib_resolv_res_9_init=yes
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 ac_cv_lib_resolv_res_9_init=no
6849 rm -f conftest.err conftest.$ac_objext \
6850 conftest$ac_exeext conftest.$ac_ext
6851 LIBS=$ac_check_lib_save_LIBS
6853 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6854 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6855 if test $ac_cv_lib_resolv_res_9_init = yes; then
6856 cat >>confdefs.h <<_ACEOF
6857 #define HAVE_LIBRESOLV 1
6858 _ACEOF
6860 LIBS="-lresolv $LIBS"
6864 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6865 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6866 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-lpthread $LIBS"
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h. */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6878 /* Override any gcc2 internal prototype to avoid an error. */
6879 #ifdef __cplusplus
6880 extern "C"
6881 #endif
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6884 char pthread_create ();
6886 main ()
6888 pthread_create ();
6890 return 0;
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
6908 { ac_try='test -s conftest$ac_exeext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_lib_pthread_pthread_create=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ac_cv_lib_pthread_pthread_create=no
6921 rm -f conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
6923 LIBS=$ac_check_lib_save_LIBS
6925 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6926 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6927 if test $ac_cv_lib_pthread_pthread_create = yes; then
6928 LIBPTHREAD="-lpthread"
6935 XFILES=""
6937 OPENGLFILES=""
6939 GLU32FILES=""
6941 OPENGL_LIBS=""
6944 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6945 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6946 if test "${ac_cv_header_stdc+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #include <stdlib.h>
6956 #include <stdarg.h>
6957 #include <string.h>
6958 #include <float.h>
6961 main ()
6965 return 0;
6967 _ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970 (eval $ac_compile) 2>conftest.er1
6971 ac_status=$?
6972 grep -v '^ *+' conftest.er1 >conftest.err
6973 rm -f conftest.er1
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try='test -s conftest.$ac_objext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6989 ac_cv_header_stdc=yes
6990 else
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 ac_cv_header_stdc=no
6996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6998 if test $ac_cv_header_stdc = yes; then
6999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
7008 _ACEOF
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "memchr" >/dev/null 2>&1; then
7012 else
7013 ac_cv_header_stdc=no
7015 rm -f conftest*
7019 if test $ac_cv_header_stdc = yes; then
7020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h. */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 #include <stdlib.h>
7029 _ACEOF
7030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7031 $EGREP "free" >/dev/null 2>&1; then
7033 else
7034 ac_cv_header_stdc=no
7036 rm -f conftest*
7040 if test $ac_cv_header_stdc = yes; then
7041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7042 if test "$cross_compiling" = yes; then
7044 else
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 #include <ctype.h>
7052 #if ((' ' & 0x0FF) == 0x020)
7053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7055 #else
7056 # define ISLOWER(c) \
7057 (('a' <= (c) && (c) <= 'i') \
7058 || ('j' <= (c) && (c) <= 'r') \
7059 || ('s' <= (c) && (c) <= 'z'))
7060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7061 #endif
7063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7065 main ()
7067 int i;
7068 for (i = 0; i < 256; i++)
7069 if (XOR (islower (i), ISLOWER (i))
7070 || toupper (i) != TOUPPER (i))
7071 exit(2);
7072 exit (0);
7074 _ACEOF
7075 rm -f conftest$ac_exeext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7077 (eval $ac_link) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7087 else
7088 echo "$as_me: program exited with status $ac_status" >&5
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 ( exit $ac_status )
7093 ac_cv_header_stdc=no
7095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7099 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7100 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7101 if test $ac_cv_header_stdc = yes; then
7103 cat >>confdefs.h <<\_ACEOF
7104 #define STDC_HEADERS 1
7105 _ACEOF
7109 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7119 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7120 inttypes.h stdint.h unistd.h
7122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7123 echo "$as_me:$LINENO: checking for $ac_header" >&5
7124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128 cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h. */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 $ac_includes_default
7136 #include <$ac_header>
7137 _ACEOF
7138 rm -f conftest.$ac_objext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140 (eval $ac_compile) 2>conftest.er1
7141 ac_status=$?
7142 grep -v '^ *+' conftest.er1 >conftest.err
7143 rm -f conftest.er1
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 (eval $ac_try) 2>&5
7150 ac_status=$?
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; } &&
7153 { ac_try='test -s conftest.$ac_objext'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; }; then
7159 eval "$as_ac_Header=yes"
7160 else
7161 echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7164 eval "$as_ac_Header=no"
7166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7171 cat >>confdefs.h <<_ACEOF
7172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7173 _ACEOF
7177 done
7275 for ac_header in \
7276 arpa/inet.h \
7277 arpa/nameser.h \
7278 cups/cups.h \
7279 direct.h \
7280 elf.h \
7281 float.h \
7282 fontconfig/fontconfig.h \
7283 getopt.h \
7284 gif_lib.h \
7285 ieeefp.h \
7286 io.h \
7287 jack/jack.h \
7288 jpeglib.h \
7289 lcms.h \
7290 libio.h \
7291 libutil.h \
7292 link.h \
7293 linux/cdrom.h \
7294 linux/compiler.h \
7295 linux/hdreg.h \
7296 linux/input.h \
7297 linux/ioctl.h \
7298 linux/joystick.h \
7299 linux/major.h \
7300 linux/param.h \
7301 linux/serial.h \
7302 linux/ucdrom.h \
7303 machine/cpu.h \
7304 mntent.h \
7305 netdb.h \
7306 netinet/in.h \
7307 netinet/in_systm.h \
7308 netinet/tcp.h \
7309 netinet/tcp_fsm.h \
7310 openssl/des.h \
7311 openssl/md2.h \
7312 openssl/rc2.h \
7313 openssl/rc4.h \
7314 openssl/rsa.h \
7315 openssl/ssl.h \
7316 process.h \
7317 pthread.h \
7318 pty.h \
7319 pwd.h \
7320 regex.h \
7321 sched.h \
7322 scsi/sg.h \
7323 scsi/scsi.h \
7324 scsi/scsi_ioctl.h \
7325 socket.h \
7326 stdint.h \
7327 strings.h \
7328 sys/cdio.h \
7329 sys/elf32.h \
7330 sys/errno.h \
7331 sys/epoll.h \
7332 sys/exec_elf.h \
7333 sys/file.h \
7334 sys/filio.h \
7335 sys/inttypes.h \
7336 sys/ioctl.h \
7337 sys/ipc.h \
7338 sys/link.h \
7339 sys/lwp.h \
7340 sys/mman.h \
7341 sys/modem.h \
7342 sys/msg.h \
7343 sys/param.h \
7344 sys/poll.h \
7345 sys/ptrace.h \
7346 sys/reg.h \
7347 sys/scsiio.h \
7348 sys/shm.h \
7349 sys/signal.h \
7350 sys/socket.h \
7351 sys/sockio.h \
7352 sys/statfs.h \
7353 sys/statvfs.h \
7354 sys/strtio.h \
7355 sys/syscall.h \
7356 sys/sysctl.h \
7357 sys/time.h \
7358 sys/times.h \
7359 sys/uio.h \
7360 sys/un.h \
7361 sys/v86.h \
7362 sys/v86intr.h \
7363 sys/vfs.h \
7364 sys/vm86.h \
7365 sys/wait.h \
7366 syscall.h \
7367 termios.h \
7368 unistd.h \
7369 utime.h \
7370 valgrind/memcheck.h
7373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7375 echo "$as_me:$LINENO: checking for $ac_header" >&5
7376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7382 else
7383 # Is the header compilable?
7384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 $ac_includes_default
7393 #include <$ac_header>
7394 _ACEOF
7395 rm -f conftest.$ac_objext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397 (eval $ac_compile) 2>conftest.er1
7398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try='test -s conftest.$ac_objext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_header_compiler=yes
7417 else
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7421 ac_header_compiler=no
7423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7425 echo "${ECHO_T}$ac_header_compiler" >&6
7427 # Is the header present?
7428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 #include <$ac_header>
7437 _ACEOF
7438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } >/dev/null; then
7446 if test -s conftest.err; then
7447 ac_cpp_err=$ac_c_preproc_warn_flag
7448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7449 else
7450 ac_cpp_err=
7452 else
7453 ac_cpp_err=yes
7455 if test -z "$ac_cpp_err"; then
7456 ac_header_preproc=yes
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7461 ac_header_preproc=no
7463 rm -f conftest.err conftest.$ac_ext
7464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7465 echo "${ECHO_T}$ac_header_preproc" >&6
7467 # So? What about this header?
7468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7469 yes:no: )
7470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7474 ac_header_preproc=yes
7476 no:yes:* )
7477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7490 cat <<\_ASBOX
7491 ## ------------------------------------ ##
7492 ## Report this to wine-devel@winehq.org ##
7493 ## ------------------------------------ ##
7494 _ASBOX
7496 sed "s/^/$as_me: WARNING: /" >&2
7498 esac
7499 echo "$as_me:$LINENO: checking for $ac_header" >&5
7500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 eval "$as_ac_Header=\$ac_header_preproc"
7506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7511 cat >>confdefs.h <<_ACEOF
7512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7513 _ACEOF
7517 done
7519 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7520 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7521 if test "${ac_cv_header_stat_broken+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524 cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h. */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7530 #include <sys/types.h>
7531 #include <sys/stat.h>
7533 #if defined(S_ISBLK) && defined(S_IFDIR)
7534 # if S_ISBLK (S_IFDIR)
7535 You lose.
7536 # endif
7537 #endif
7539 #if defined(S_ISBLK) && defined(S_IFCHR)
7540 # if S_ISBLK (S_IFCHR)
7541 You lose.
7542 # endif
7543 #endif
7545 #if defined(S_ISLNK) && defined(S_IFREG)
7546 # if S_ISLNK (S_IFREG)
7547 You lose.
7548 # endif
7549 #endif
7551 #if defined(S_ISSOCK) && defined(S_IFREG)
7552 # if S_ISSOCK (S_IFREG)
7553 You lose.
7554 # endif
7555 #endif
7557 _ACEOF
7558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7559 $EGREP "You lose" >/dev/null 2>&1; then
7560 ac_cv_header_stat_broken=yes
7561 else
7562 ac_cv_header_stat_broken=no
7564 rm -f conftest*
7567 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7568 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7569 if test $ac_cv_header_stat_broken = yes; then
7571 cat >>confdefs.h <<\_ACEOF
7572 #define STAT_MACROS_BROKEN 1
7573 _ACEOF
7579 if test "$have_x" = "yes"
7580 then
7581 XLIB="-lXext -lX11"
7582 ac_save_CPPFLAGS="$CPPFLAGS"
7583 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7586 for ac_header in X11/Xlib.h
7588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7590 echo "$as_me:$LINENO: checking for $ac_header" >&5
7591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7597 else
7598 # Is the header compilable?
7599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7601 cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7608 #include <$ac_header>
7609 _ACEOF
7610 rm -f conftest.$ac_objext
7611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7612 (eval $ac_compile) 2>conftest.er1
7613 ac_status=$?
7614 grep -v '^ *+' conftest.er1 >conftest.err
7615 rm -f conftest.er1
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest.$ac_objext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_header_compiler=yes
7632 else
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 ac_header_compiler=no
7638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7640 echo "${ECHO_T}$ac_header_compiler" >&6
7642 # Is the header present?
7643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7645 cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h. */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h. */
7651 #include <$ac_header>
7652 _ACEOF
7653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } >/dev/null; then
7661 if test -s conftest.err; then
7662 ac_cpp_err=$ac_c_preproc_warn_flag
7663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7664 else
7665 ac_cpp_err=
7667 else
7668 ac_cpp_err=yes
7670 if test -z "$ac_cpp_err"; then
7671 ac_header_preproc=yes
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7676 ac_header_preproc=no
7678 rm -f conftest.err conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7680 echo "${ECHO_T}$ac_header_preproc" >&6
7682 # So? What about this header?
7683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7684 yes:no: )
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7689 ac_header_preproc=yes
7691 no:yes:* )
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7705 cat <<\_ASBOX
7706 ## ------------------------------------ ##
7707 ## Report this to wine-devel@winehq.org ##
7708 ## ------------------------------------ ##
7709 _ASBOX
7711 sed "s/^/$as_me: WARNING: /" >&2
7713 esac
7714 echo "$as_me:$LINENO: checking for $ac_header" >&5
7715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719 eval "$as_ac_Header=\$ac_header_preproc"
7721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7726 cat >>confdefs.h <<_ACEOF
7727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7728 _ACEOF
7740 for ac_header in X11/XKBlib.h \
7741 X11/Xutil.h \
7742 X11/extensions/shape.h \
7743 X11/extensions/XInput.h \
7744 X11/extensions/XShm.h \
7745 X11/extensions/Xrandr.h \
7746 X11/extensions/Xrender.h \
7747 X11/extensions/Xvlib.h \
7748 X11/extensions/xf86dga.h \
7749 X11/extensions/xf86vmode.h
7751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7752 echo "$as_me:$LINENO: checking for $ac_header" >&5
7753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757 cat >conftest.$ac_ext <<_ACEOF
7758 /* confdefs.h. */
7759 _ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7763 #include <X11/Xlib.h>
7764 #ifdef HAVE_X11_XUTIL_H
7765 # include <X11/Xutil.h>
7766 #endif
7768 #include <$ac_header>
7769 _ACEOF
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; } &&
7785 { ac_try='test -s conftest.$ac_objext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 (eval $ac_try) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 eval "$as_ac_Header=yes"
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 eval "$as_ac_Header=no"
7798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7803 cat >>confdefs.h <<_ACEOF
7804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7805 _ACEOF
7809 done
7812 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7813 then
7814 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7815 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7816 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819 ac_check_lib_save_LIBS=$LIBS
7820 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7828 /* Override any gcc2 internal prototype to avoid an error. */
7829 #ifdef __cplusplus
7830 extern "C"
7831 #endif
7832 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */
7834 char XkbQueryExtension ();
7836 main ()
7838 XkbQueryExtension ();
7840 return 0;
7842 _ACEOF
7843 rm -f conftest.$ac_objext conftest$ac_exeext
7844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7845 (eval $ac_link) 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 (eval $ac_try) 2>&5
7855 ac_status=$?
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; } &&
7858 { ac_try='test -s conftest$ac_exeext'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 (eval $ac_try) 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 ac_cv_lib_X11_XkbQueryExtension=yes
7865 else
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 ac_cv_lib_X11_XkbQueryExtension=no
7871 rm -f conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7873 LIBS=$ac_check_lib_save_LIBS
7875 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7876 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7877 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7879 cat >>confdefs.h <<\_ACEOF
7880 #define HAVE_XKB 1
7881 _ACEOF
7887 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7888 then
7889 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7890 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7891 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894 ac_check_lib_save_LIBS=$LIBS
7895 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7896 cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h. */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7903 /* Override any gcc2 internal prototype to avoid an error. */
7904 #ifdef __cplusplus
7905 extern "C"
7906 #endif
7907 /* We use char because int might match the return type of a gcc2
7908 builtin and then its argument prototype would still apply. */
7909 char XShmQueryExtension ();
7911 main ()
7913 XShmQueryExtension ();
7915 return 0;
7917 _ACEOF
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920 (eval $ac_link) 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest$ac_exeext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_cv_lib_Xext_XShmQueryExtension=yes
7940 else
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7944 ac_cv_lib_Xext_XShmQueryExtension=no
7946 rm -f conftest.err conftest.$ac_objext \
7947 conftest$ac_exeext conftest.$ac_ext
7948 LIBS=$ac_check_lib_save_LIBS
7950 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7951 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7952 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7954 cat >>confdefs.h <<\_ACEOF
7955 #define HAVE_LIBXXSHM 1
7956 _ACEOF
7962 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7963 then
7964 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7965 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7966 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969 ac_check_lib_save_LIBS=$LIBS
7970 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7971 cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h. */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7978 /* Override any gcc2 internal prototype to avoid an error. */
7979 #ifdef __cplusplus
7980 extern "C"
7981 #endif
7982 /* We use char because int might match the return type of a gcc2
7983 builtin and then its argument prototype would still apply. */
7984 char XShapeQueryExtension ();
7986 main ()
7988 XShapeQueryExtension ();
7990 return 0;
7992 _ACEOF
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7995 (eval $ac_link) 2>conftest.er1
7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; } &&
8008 { ac_try='test -s conftest$ac_exeext'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 ac_cv_lib_Xext_XShapeQueryExtension=yes
8015 else
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8019 ac_cv_lib_Xext_XShapeQueryExtension=no
8021 rm -f conftest.err conftest.$ac_objext \
8022 conftest$ac_exeext conftest.$ac_ext
8023 LIBS=$ac_check_lib_save_LIBS
8025 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8026 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8027 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8029 cat >>confdefs.h <<\_ACEOF
8030 #define HAVE_LIBXSHAPE 1
8031 _ACEOF
8037 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8038 then
8039 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8040 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8041 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044 ac_check_lib_save_LIBS=$LIBS
8045 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8053 /* Override any gcc2 internal prototype to avoid an error. */
8054 #ifdef __cplusplus
8055 extern "C"
8056 #endif
8057 /* We use char because int might match the return type of a gcc2
8058 builtin and then its argument prototype would still apply. */
8059 char XDGAQueryExtension ();
8061 main ()
8063 XDGAQueryExtension ();
8065 return 0;
8067 _ACEOF
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8070 (eval $ac_link) 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest$ac_exeext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8090 else
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8096 rm -f conftest.err conftest.$ac_objext \
8097 conftest$ac_exeext conftest.$ac_ext
8098 LIBS=$ac_check_lib_save_LIBS
8100 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8101 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8102 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8104 cat >>confdefs.h <<\_ACEOF
8105 #define HAVE_LIBXXF86DGA2 1
8106 _ACEOF
8108 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8110 else
8111 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
8112 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8113 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116 ac_check_lib_save_LIBS=$LIBS
8117 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
8118 $LIBS"
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8126 /* Override any gcc2 internal prototype to avoid an error. */
8127 #ifdef __cplusplus
8128 extern "C"
8129 #endif
8130 /* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8132 char XF86DGAQueryExtension ();
8134 main ()
8136 XF86DGAQueryExtension ();
8138 return 0;
8140 _ACEOF
8141 rm -f conftest.$ac_objext conftest$ac_exeext
8142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8143 (eval $ac_link) 2>conftest.er1
8144 ac_status=$?
8145 grep -v '^ *+' conftest.er1 >conftest.err
8146 rm -f conftest.er1
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; } &&
8156 { ac_try='test -s conftest$ac_exeext'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
8163 else
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
8169 rm -f conftest.err conftest.$ac_objext \
8170 conftest$ac_exeext conftest.$ac_ext
8171 LIBS=$ac_check_lib_save_LIBS
8173 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
8174 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
8175 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
8177 cat >>confdefs.h <<\_ACEOF
8178 #define HAVE_LIBXXF86DGA 1
8179 _ACEOF
8181 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8190 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8191 then
8192 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8193 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8194 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197 ac_check_lib_save_LIBS=$LIBS
8198 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8199 cat >conftest.$ac_ext <<_ACEOF
8200 /* confdefs.h. */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8206 /* Override any gcc2 internal prototype to avoid an error. */
8207 #ifdef __cplusplus
8208 extern "C"
8209 #endif
8210 /* We use char because int might match the return type of a gcc2
8211 builtin and then its argument prototype would still apply. */
8212 char XF86VidModeQueryExtension ();
8214 main ()
8216 XF86VidModeQueryExtension ();
8218 return 0;
8220 _ACEOF
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223 (eval $ac_link) 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 (eval $ac_try) 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; } &&
8236 { ac_try='test -s conftest$ac_exeext'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 (eval $ac_try) 2>&5
8239 ac_status=$?
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8242 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8243 else
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8247 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8249 rm -f conftest.err conftest.$ac_objext \
8250 conftest$ac_exeext conftest.$ac_ext
8251 LIBS=$ac_check_lib_save_LIBS
8253 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8254 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8255 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8257 cat >>confdefs.h <<\_ACEOF
8258 #define HAVE_LIBXXF86VM 1
8259 _ACEOF
8261 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8267 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8268 then
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h. */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 #include <X11/Xlib.h>
8276 #include <X11/extensions/Xrandr.h>
8278 main ()
8280 static typeof(XRRSetScreenConfigAndRate) * func;
8282 return 0;
8284 _ACEOF
8285 rm -f conftest.$ac_objext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8287 (eval $ac_compile) 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest.$ac_objext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 (eval $ac_try) 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8307 cat >>confdefs.h <<\_ACEOF
8308 #define HAVE_LIBXRANDR 1
8309 _ACEOF
8311 else
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8319 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8320 then
8321 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8322 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8323 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326 ac_check_lib_save_LIBS=$LIBS
8327 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8328 cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h. */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8335 /* Override any gcc2 internal prototype to avoid an error. */
8336 #ifdef __cplusplus
8337 extern "C"
8338 #endif
8339 /* We use char because int might match the return type of a gcc2
8340 builtin and then its argument prototype would still apply. */
8341 char XvShmCreateImage ();
8343 main ()
8345 XvShmCreateImage ();
8347 return 0;
8349 _ACEOF
8350 rm -f conftest.$ac_objext conftest$ac_exeext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8352 (eval $ac_link) 2>conftest.er1
8353 ac_status=$?
8354 grep -v '^ *+' conftest.er1 >conftest.err
8355 rm -f conftest.er1
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 (eval $ac_try) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try='test -s conftest$ac_exeext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 (eval $ac_try) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_cv_lib_Xv_XvShmCreateImage=yes
8372 else
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 ac_cv_lib_Xv_XvShmCreateImage=no
8378 rm -f conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 LIBS=$ac_check_lib_save_LIBS
8382 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8383 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8384 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8386 cat >>confdefs.h <<\_ACEOF
8387 #define HAVE_XVIDEO 1
8388 _ACEOF
8390 X_PRE_LIBS="$X_PRE_LIBS -lXv"
8396 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8397 then
8398 echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8399 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
8400 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 else
8403 ac_check_lib_save_LIBS=$LIBS
8404 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h. */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8412 /* Override any gcc2 internal prototype to avoid an error. */
8413 #ifdef __cplusplus
8414 extern "C"
8415 #endif
8416 /* We use char because int might match the return type of a gcc2
8417 builtin and then its argument prototype would still apply. */
8418 char XRenderSetPictureTransform ();
8420 main ()
8422 XRenderSetPictureTransform ();
8424 return 0;
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438 (eval $ac_try) 2>&5
8439 ac_status=$?
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest$ac_exeext'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 (eval $ac_try) 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8449 else
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8455 rm -f conftest.err conftest.$ac_objext \
8456 conftest$ac_exeext conftest.$ac_ext
8457 LIBS=$ac_check_lib_save_LIBS
8459 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8460 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8461 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8463 cat >>confdefs.h <<\_ACEOF
8464 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8465 _ACEOF
8474 done
8476 if test "x$with_opengl" != "xno"
8477 then
8478 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8479 then
8480 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8481 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8482 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8483 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8484 { (exit 1); exit 1; }; }
8489 for ac_header in GL/gl.h GL/glx.h
8491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8493 echo "$as_me:$LINENO: checking for $ac_header" >&5
8494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8500 else
8501 # Is the header compilable?
8502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8504 cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h. */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 $ac_includes_default
8511 #include <$ac_header>
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8515 (eval $ac_compile) 2>conftest.er1
8516 ac_status=$?
8517 grep -v '^ *+' conftest.er1 >conftest.err
8518 rm -f conftest.er1
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; } &&
8528 { ac_try='test -s conftest.$ac_objext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_header_compiler=yes
8535 else
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_header_compiler=no
8541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8543 echo "${ECHO_T}$ac_header_compiler" >&6
8545 # Is the header present?
8546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 #include <$ac_header>
8555 _ACEOF
8556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8558 ac_status=$?
8559 grep -v '^ *+' conftest.er1 >conftest.err
8560 rm -f conftest.er1
8561 cat conftest.err >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } >/dev/null; then
8564 if test -s conftest.err; then
8565 ac_cpp_err=$ac_c_preproc_warn_flag
8566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8567 else
8568 ac_cpp_err=
8570 else
8571 ac_cpp_err=yes
8573 if test -z "$ac_cpp_err"; then
8574 ac_header_preproc=yes
8575 else
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8579 ac_header_preproc=no
8581 rm -f conftest.err conftest.$ac_ext
8582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8583 echo "${ECHO_T}$ac_header_preproc" >&6
8585 # So? What about this header?
8586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8587 yes:no: )
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8592 ac_header_preproc=yes
8594 no:yes:* )
8595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8608 cat <<\_ASBOX
8609 ## ------------------------------------ ##
8610 ## Report this to wine-devel@winehq.org ##
8611 ## ------------------------------------ ##
8612 _ASBOX
8614 sed "s/^/$as_me: WARNING: /" >&2
8616 esac
8617 echo "$as_me:$LINENO: checking for $ac_header" >&5
8618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622 eval "$as_ac_Header=\$ac_header_preproc"
8624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8629 cat >>confdefs.h <<_ACEOF
8630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8631 _ACEOF
8635 done
8637 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8638 then
8640 for ac_header in GL/glext.h
8642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8643 echo "$as_me:$LINENO: checking for $ac_header" >&5
8644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648 cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h. */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8654 #include <GL/glx.h>
8656 #include <$ac_header>
8657 _ACEOF
8658 rm -f conftest.$ac_objext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8660 (eval $ac_compile) 2>conftest.er1
8661 ac_status=$?
8662 grep -v '^ *+' conftest.er1 >conftest.err
8663 rm -f conftest.er1
8664 cat conftest.err >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } &&
8667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 (eval $ac_try) 2>&5
8670 ac_status=$?
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; } &&
8673 { ac_try='test -s conftest.$ac_objext'
8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 (eval $ac_try) 2>&5
8676 ac_status=$?
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; }; then
8679 eval "$as_ac_Header=yes"
8680 else
8681 echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8684 eval "$as_ac_Header=no"
8686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8691 cat >>confdefs.h <<_ACEOF
8692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8693 _ACEOF
8697 done
8699 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8700 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8701 if test "${wine_cv_opengl_version_OK+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704 cat >conftest.$ac_ext <<_ACEOF
8705 /* confdefs.h. */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 #include <GL/gl.h>
8712 main ()
8714 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8716 return 0;
8718 _ACEOF
8719 rm -f conftest.$ac_objext
8720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8721 (eval $ac_compile) 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest.$ac_objext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 (eval $ac_try) 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 wine_cv_opengl_version_OK="yes"
8741 else
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 wine_cv_opengl_version_OK="no"
8748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8751 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8752 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8754 if test "$wine_cv_opengl_version_OK" = "yes"
8755 then
8756 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8757 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8758 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 else
8761 ac_check_lib_save_LIBS=$LIBS
8762 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h. */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8770 /* Override any gcc2 internal prototype to avoid an error. */
8771 #ifdef __cplusplus
8772 extern "C"
8773 #endif
8774 /* We use char because int might match the return type of a gcc2
8775 builtin and then its argument prototype would still apply. */
8776 char glXCreateContext ();
8778 main ()
8780 glXCreateContext ();
8782 return 0;
8784 _ACEOF
8785 rm -f conftest.$ac_objext conftest$ac_exeext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8787 (eval $ac_link) 2>conftest.er1
8788 ac_status=$?
8789 grep -v '^ *+' conftest.er1 >conftest.err
8790 rm -f conftest.er1
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } &&
8794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 (eval $ac_try) 2>&5
8797 ac_status=$?
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; } &&
8800 { ac_try='test -s conftest$ac_exeext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 (eval $ac_try) 2>&5
8803 ac_status=$?
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8806 ac_cv_lib_GL_glXCreateContext=yes
8807 else
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8811 ac_cv_lib_GL_glXCreateContext=no
8813 rm -f conftest.err conftest.$ac_objext \
8814 conftest$ac_exeext conftest.$ac_ext
8815 LIBS=$ac_check_lib_save_LIBS
8817 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8818 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8819 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8820 OPENGL_LIBS="-lGL"
8825 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8826 then
8827 OPENGLFILES='$(OPENGLFILES)'
8829 cat >>confdefs.h <<\_ACEOF
8830 #define HAVE_OPENGL 1
8831 _ACEOF
8834 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8835 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8836 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 else
8839 ac_check_lib_save_LIBS=$LIBS
8840 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8841 cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h. */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8848 /* Override any gcc2 internal prototype to avoid an error. */
8849 #ifdef __cplusplus
8850 extern "C"
8851 #endif
8852 /* We use char because int might match the return type of a gcc2
8853 builtin and then its argument prototype would still apply. */
8854 char glXGetProcAddressARB ();
8856 main ()
8858 glXGetProcAddressARB ();
8860 return 0;
8862 _ACEOF
8863 rm -f conftest.$ac_objext conftest$ac_exeext
8864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8865 (eval $ac_link) 2>conftest.er1
8866 ac_status=$?
8867 grep -v '^ *+' conftest.er1 >conftest.err
8868 rm -f conftest.er1
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } &&
8872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try='test -s conftest$ac_exeext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 ac_cv_lib_GL_glXGetProcAddressARB=yes
8885 else
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8889 ac_cv_lib_GL_glXGetProcAddressARB=no
8891 rm -f conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8896 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8897 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8899 cat >>confdefs.h <<\_ACEOF
8900 #define HAVE_GLX_GETPROCADDRESS 1
8901 _ACEOF
8906 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8907 then
8908 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8909 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8910 if test "${wine_cv_extension_prototypes+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913 cat >conftest.$ac_ext <<_ACEOF
8914 /* confdefs.h. */
8915 _ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h. */
8919 #include <GL/gl.h>
8920 #ifdef HAVE_GL_GLEXT_H
8921 # include <GL/glext.h>
8922 #endif
8925 main ()
8927 PFNGLCOLORTABLEEXTPROC test_proc;
8929 return 0;
8931 _ACEOF
8932 rm -f conftest.$ac_objext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8934 (eval $ac_compile) 2>conftest.er1
8935 ac_status=$?
8936 grep -v '^ *+' conftest.er1 >conftest.err
8937 rm -f conftest.er1
8938 cat conftest.err >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } &&
8941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest.$ac_objext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 wine_cv_extension_prototypes="yes"
8954 else
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8958 wine_cv_extension_prototypes="no"
8961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8964 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8965 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8966 if test "$wine_cv_extension_prototypes" = "yes"
8967 then
8969 cat >>confdefs.h <<\_ACEOF
8970 #define HAVE_GLEXT_PROTOTYPES 1
8971 _ACEOF
8977 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8978 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8979 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982 ac_check_lib_save_LIBS=$LIBS
8983 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8984 $LIBS"
8985 cat >conftest.$ac_ext <<_ACEOF
8986 /* confdefs.h. */
8987 _ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8992 /* Override any gcc2 internal prototype to avoid an error. */
8993 #ifdef __cplusplus
8994 extern "C"
8995 #endif
8996 /* We use char because int might match the return type of a gcc2
8997 builtin and then its argument prototype would still apply. */
8998 char gluLookAt ();
9000 main ()
9002 gluLookAt ();
9004 return 0;
9006 _ACEOF
9007 rm -f conftest.$ac_objext conftest$ac_exeext
9008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9009 (eval $ac_link) 2>conftest.er1
9010 ac_status=$?
9011 grep -v '^ *+' conftest.er1 >conftest.err
9012 rm -f conftest.er1
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } &&
9016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 (eval $ac_try) 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; } &&
9022 { ac_try='test -s conftest$ac_exeext'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 (eval $ac_try) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9028 ac_cv_lib_GLU_gluLookAt=yes
9029 else
9030 echo "$as_me: failed program was:" >&5
9031 sed 's/^/| /' conftest.$ac_ext >&5
9033 ac_cv_lib_GLU_gluLookAt=no
9035 rm -f conftest.err conftest.$ac_objext \
9036 conftest$ac_exeext conftest.$ac_ext
9037 LIBS=$ac_check_lib_save_LIBS
9039 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9040 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
9041 if test $ac_cv_lib_GLU_gluLookAt = yes; then
9042 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
9043 GLU32FILES='$(GLU32FILES)'
9049 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9050 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
9051 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9054 ac_check_lib_save_LIBS=$LIBS
9055 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
9056 cat >conftest.$ac_ext <<_ACEOF
9057 /* confdefs.h. */
9058 _ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9063 /* Override any gcc2 internal prototype to avoid an error. */
9064 #ifdef __cplusplus
9065 extern "C"
9066 #endif
9067 /* We use char because int might match the return type of a gcc2
9068 builtin and then its argument prototype would still apply. */
9069 char glutMainLoop ();
9071 main ()
9073 glutMainLoop ();
9075 return 0;
9077 _ACEOF
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>conftest.er1
9081 ac_status=$?
9082 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -f conftest.er1
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 (eval $ac_try) 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try='test -s conftest$ac_exeext'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 (eval $ac_try) 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9099 ac_cv_lib_glut_glutMainLoop=yes
9100 else
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9104 ac_cv_lib_glut_glutMainLoop=no
9106 rm -f conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
9108 LIBS=$ac_check_lib_save_LIBS
9110 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9111 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
9112 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9113 GLUT_LIBS="-lglut -lXmu -lXi"
9115 GLUT32FILES='$(GLUT32FILES)'
9122 NASLIBS=""
9125 for ac_header in audio/audiolib.h
9127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9129 echo "$as_me:$LINENO: checking for $ac_header" >&5
9130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9136 else
9137 # Is the header compilable?
9138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9140 cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h. */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 $ac_includes_default
9147 #include <$ac_header>
9148 _ACEOF
9149 rm -f conftest.$ac_objext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9151 (eval $ac_compile) 2>conftest.er1
9152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; } &&
9164 { ac_try='test -s conftest.$ac_objext'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_header_compiler=yes
9171 else
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9175 ac_header_compiler=no
9177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9179 echo "${ECHO_T}$ac_header_compiler" >&6
9181 # Is the header present?
9182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9184 cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h. */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9190 #include <$ac_header>
9191 _ACEOF
9192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9194 ac_status=$?
9195 grep -v '^ *+' conftest.er1 >conftest.err
9196 rm -f conftest.er1
9197 cat conftest.err >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } >/dev/null; then
9200 if test -s conftest.err; then
9201 ac_cpp_err=$ac_c_preproc_warn_flag
9202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9203 else
9204 ac_cpp_err=
9206 else
9207 ac_cpp_err=yes
9209 if test -z "$ac_cpp_err"; then
9210 ac_header_preproc=yes
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 ac_header_preproc=no
9217 rm -f conftest.err conftest.$ac_ext
9218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9219 echo "${ECHO_T}$ac_header_preproc" >&6
9221 # So? What about this header?
9222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9223 yes:no: )
9224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9228 ac_header_preproc=yes
9230 no:yes:* )
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9244 cat <<\_ASBOX
9245 ## ------------------------------------ ##
9246 ## Report this to wine-devel@winehq.org ##
9247 ## ------------------------------------ ##
9248 _ASBOX
9250 sed "s/^/$as_me: WARNING: /" >&2
9252 esac
9253 echo "$as_me:$LINENO: checking for $ac_header" >&5
9254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9256 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 else
9258 eval "$as_ac_Header=\$ac_header_preproc"
9260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9265 cat >>confdefs.h <<_ACEOF
9266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9267 _ACEOF
9269 for ac_header in audio/soundlib.h
9271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9272 echo "$as_me:$LINENO: checking for $ac_header" >&5
9273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277 cat >conftest.$ac_ext <<_ACEOF
9278 /* confdefs.h. */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 #include <audio/audiolib.h>
9285 #include <$ac_header>
9286 _ACEOF
9287 rm -f conftest.$ac_objext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9289 (eval $ac_compile) 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } &&
9296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; } &&
9302 { ac_try='test -s conftest.$ac_objext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 eval "$as_ac_Header=yes"
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 eval "$as_ac_Header=no"
9315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9320 cat >>confdefs.h <<_ACEOF
9321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9322 _ACEOF
9326 done
9328 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9329 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9330 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333 ac_check_lib_save_LIBS=$LIBS
9334 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h. */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9342 /* Override any gcc2 internal prototype to avoid an error. */
9343 #ifdef __cplusplus
9344 extern "C"
9345 #endif
9346 /* We use char because int might match the return type of a gcc2
9347 builtin and then its argument prototype would still apply. */
9348 char AuCreateFlow ();
9350 main ()
9352 AuCreateFlow ();
9354 return 0;
9356 _ACEOF
9357 rm -f conftest.$ac_objext conftest$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>conftest.er1
9360 ac_status=$?
9361 grep -v '^ *+' conftest.er1 >conftest.err
9362 rm -f conftest.er1
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 (eval $ac_try) 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; } &&
9372 { ac_try='test -s conftest$ac_exeext'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 ac_cv_lib_audio_AuCreateFlow=yes
9379 else
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9383 ac_cv_lib_audio_AuCreateFlow=no
9385 rm -f conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 LIBS=$ac_check_lib_save_LIBS
9389 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9390 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9391 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9393 cat >>confdefs.h <<\_ACEOF
9394 #define HAVE_NAS 1
9395 _ACEOF
9397 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9402 done
9405 CPPFLAGS="$ac_save_CPPFLAGS"
9406 XFILES='$(XFILES)'
9407 else
9408 XLIB=""
9409 X_CFLAGS=""
9410 X_LIBS=""
9413 CURSESLIBS=""
9414 if test "x$with_curses" != "xno"
9415 then
9417 for ac_header in ncurses.h
9419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9421 echo "$as_me:$LINENO: checking for $ac_header" >&5
9422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9428 else
9429 # Is the header compilable?
9430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 $ac_includes_default
9439 #include <$ac_header>
9440 _ACEOF
9441 rm -f conftest.$ac_objext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9443 (eval $ac_compile) 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } &&
9450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_header_compiler=yes
9463 else
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ac_header_compiler=no
9469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9471 echo "${ECHO_T}$ac_header_compiler" >&6
9473 # Is the header present?
9474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 #include <$ac_header>
9483 _ACEOF
9484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } >/dev/null; then
9492 if test -s conftest.err; then
9493 ac_cpp_err=$ac_c_preproc_warn_flag
9494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9495 else
9496 ac_cpp_err=
9498 else
9499 ac_cpp_err=yes
9501 if test -z "$ac_cpp_err"; then
9502 ac_header_preproc=yes
9503 else
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9507 ac_header_preproc=no
9509 rm -f conftest.err conftest.$ac_ext
9510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9511 echo "${ECHO_T}$ac_header_preproc" >&6
9513 # So? What about this header?
9514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9515 yes:no: )
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9520 ac_header_preproc=yes
9522 no:yes:* )
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9536 cat <<\_ASBOX
9537 ## ------------------------------------ ##
9538 ## Report this to wine-devel@winehq.org ##
9539 ## ------------------------------------ ##
9540 _ASBOX
9542 sed "s/^/$as_me: WARNING: /" >&2
9544 esac
9545 echo "$as_me:$LINENO: checking for $ac_header" >&5
9546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550 eval "$as_ac_Header=\$ac_header_preproc"
9552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9557 cat >>confdefs.h <<_ACEOF
9558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9559 _ACEOF
9560 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9561 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9562 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565 ac_check_lib_save_LIBS=$LIBS
9566 LIBS="-lncurses $LIBS"
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9574 /* Override any gcc2 internal prototype to avoid an error. */
9575 #ifdef __cplusplus
9576 extern "C"
9577 #endif
9578 /* We use char because int might match the return type of a gcc2
9579 builtin and then its argument prototype would still apply. */
9580 char waddch ();
9582 main ()
9584 waddch ();
9586 return 0;
9588 _ACEOF
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9591 (eval $ac_link) 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 (eval $ac_try) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try='test -s conftest$ac_exeext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 (eval $ac_try) 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 ac_cv_lib_ncurses_waddch=yes
9611 else
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 ac_cv_lib_ncurses_waddch=no
9617 rm -f conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9619 LIBS=$ac_check_lib_save_LIBS
9621 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9622 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9623 if test $ac_cv_lib_ncurses_waddch = yes; then
9625 cat >>confdefs.h <<\_ACEOF
9626 #define HAVE_LIBNCURSES 1
9627 _ACEOF
9629 CURSESLIBS="-lncurses"
9630 else
9632 for ac_header in curses.h
9634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9636 echo "$as_me:$LINENO: checking for $ac_header" >&5
9637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9643 else
9644 # Is the header compilable?
9645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9647 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h. */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9653 $ac_includes_default
9654 #include <$ac_header>
9655 _ACEOF
9656 rm -f conftest.$ac_objext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9658 (eval $ac_compile) 2>conftest.er1
9659 ac_status=$?
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } &&
9665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest.$ac_objext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_header_compiler=yes
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9682 ac_header_compiler=no
9684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9686 echo "${ECHO_T}$ac_header_compiler" >&6
9688 # Is the header present?
9689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h. */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697 #include <$ac_header>
9698 _ACEOF
9699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } >/dev/null; then
9707 if test -s conftest.err; then
9708 ac_cpp_err=$ac_c_preproc_warn_flag
9709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9710 else
9711 ac_cpp_err=
9713 else
9714 ac_cpp_err=yes
9716 if test -z "$ac_cpp_err"; then
9717 ac_header_preproc=yes
9718 else
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 ac_header_preproc=no
9724 rm -f conftest.err conftest.$ac_ext
9725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9726 echo "${ECHO_T}$ac_header_preproc" >&6
9728 # So? What about this header?
9729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9730 yes:no: )
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9735 ac_header_preproc=yes
9737 no:yes:* )
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9751 cat <<\_ASBOX
9752 ## ------------------------------------ ##
9753 ## Report this to wine-devel@winehq.org ##
9754 ## ------------------------------------ ##
9755 _ASBOX
9757 sed "s/^/$as_me: WARNING: /" >&2
9759 esac
9760 echo "$as_me:$LINENO: checking for $ac_header" >&5
9761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765 eval "$as_ac_Header=\$ac_header_preproc"
9767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9772 cat >>confdefs.h <<_ACEOF
9773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9774 _ACEOF
9775 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9776 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9777 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780 ac_check_lib_save_LIBS=$LIBS
9781 LIBS="-lcurses $LIBS"
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9789 /* Override any gcc2 internal prototype to avoid an error. */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 /* We use char because int might match the return type of a gcc2
9794 builtin and then its argument prototype would still apply. */
9795 char waddch ();
9797 main ()
9799 waddch ();
9801 return 0;
9803 _ACEOF
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9806 (eval $ac_link) 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 (eval $ac_try) 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 ac_cv_lib_curses_waddch=yes
9826 else
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_cv_lib_curses_waddch=no
9832 rm -f conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834 LIBS=$ac_check_lib_save_LIBS
9836 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9837 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9838 if test $ac_cv_lib_curses_waddch = yes; then
9840 cat >>confdefs.h <<\_ACEOF
9841 #define HAVE_LIBCURSES 1
9842 _ACEOF
9844 CURSESLIBS="-lcurses"
9849 done
9855 done
9857 saved_libs="$LIBS"
9858 LIBS="$CURSESLIBS $LIBS"
9861 for ac_func in getbkgd resizeterm
9863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9864 echo "$as_me:$LINENO: checking for $ac_func" >&5
9865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_var+set}\" = set"; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9877 #define $ac_func innocuous_$ac_func
9879 /* System header to define __stub macros and hopefully few prototypes,
9880 which can conflict with char $ac_func (); below.
9881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9882 <limits.h> exists even on freestanding compilers. */
9884 #ifdef __STDC__
9885 # include <limits.h>
9886 #else
9887 # include <assert.h>
9888 #endif
9890 #undef $ac_func
9892 /* Override any gcc2 internal prototype to avoid an error. */
9893 #ifdef __cplusplus
9894 extern "C"
9896 #endif
9897 /* We use char because int might match the return type of a gcc2
9898 builtin and then its argument prototype would still apply. */
9899 char $ac_func ();
9900 /* The GNU C library defines this for functions which it implements
9901 to always fail with ENOSYS. Some functions are actually named
9902 something starting with __ and the normal name is an alias. */
9903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9904 choke me
9905 #else
9906 char (*f) () = $ac_func;
9907 #endif
9908 #ifdef __cplusplus
9910 #endif
9913 main ()
9915 return f != $ac_func;
9917 return 0;
9919 _ACEOF
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9922 (eval $ac_link) 2>conftest.er1
9923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; } &&
9935 { ac_try='test -s conftest$ac_exeext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 eval "$as_ac_var=yes"
9942 else
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9946 eval "$as_ac_var=no"
9948 rm -f conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9953 if test `eval echo '${'$as_ac_var'}'` = yes; then
9954 cat >>confdefs.h <<_ACEOF
9955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9956 _ACEOF
9959 done
9961 LIBS="$saved_libs"
9965 # Extract the first word of "sane-config", so it can be a program name with args.
9966 set dummy sane-config; ac_word=$2
9967 echo "$as_me:$LINENO: checking for $ac_word" >&5
9968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9969 if test "${ac_cv_prog_sane_devel+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972 if test -n "$sane_devel"; then
9973 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9974 else
9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 for as_dir in $PATH
9978 IFS=$as_save_IFS
9979 test -z "$as_dir" && as_dir=.
9980 for ac_exec_ext in '' $ac_executable_extensions; do
9981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9982 ac_cv_prog_sane_devel="sane-config"
9983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9984 break 2
9986 done
9987 done
9989 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9992 sane_devel=$ac_cv_prog_sane_devel
9993 if test -n "$sane_devel"; then
9994 echo "$as_me:$LINENO: result: $sane_devel" >&5
9995 echo "${ECHO_T}$sane_devel" >&6
9996 else
9997 echo "$as_me:$LINENO: result: no" >&5
9998 echo "${ECHO_T}no" >&6
10001 if test "$sane_devel" = "no"
10002 then
10003 SANELIBS=""
10004 SANEINCL=""
10005 else
10006 SANELIBS="`$sane_devel --libs`"
10007 SANEINCL="`$sane_devel --cflags`"
10008 ac_save_CPPFLAGS="$CPPFLAGS"
10009 ac_save_LIBS="$LIBS"
10010 CPPFLAGS="$CPPFLAGS $SANEINCL"
10011 LIBS="$LIBS $SANELIBS"
10012 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10013 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10014 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10015 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10019 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10020 else
10021 # Is the header compilable?
10022 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10023 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
10024 cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h. */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 $ac_includes_default
10031 #include <sane/sane.h>
10032 _ACEOF
10033 rm -f conftest.$ac_objext
10034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10035 (eval $ac_compile) 2>conftest.er1
10036 ac_status=$?
10037 grep -v '^ *+' conftest.er1 >conftest.err
10038 rm -f conftest.er1
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
10042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; } &&
10048 { ac_try='test -s conftest.$ac_objext'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_header_compiler=yes
10055 else
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_header_compiler=no
10061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10063 echo "${ECHO_T}$ac_header_compiler" >&6
10065 # Is the header present?
10066 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10067 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 #include <sane/sane.h>
10075 _ACEOF
10076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10078 ac_status=$?
10079 grep -v '^ *+' conftest.er1 >conftest.err
10080 rm -f conftest.er1
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } >/dev/null; then
10084 if test -s conftest.err; then
10085 ac_cpp_err=$ac_c_preproc_warn_flag
10086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10087 else
10088 ac_cpp_err=
10090 else
10091 ac_cpp_err=yes
10093 if test -z "$ac_cpp_err"; then
10094 ac_header_preproc=yes
10095 else
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10099 ac_header_preproc=no
10101 rm -f conftest.err conftest.$ac_ext
10102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10103 echo "${ECHO_T}$ac_header_preproc" >&6
10105 # So? What about this header?
10106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10107 yes:no: )
10108 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10109 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10111 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10112 ac_header_preproc=yes
10114 no:yes:* )
10115 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10116 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10118 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10120 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10122 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10124 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10126 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10128 cat <<\_ASBOX
10129 ## ------------------------------------ ##
10130 ## Report this to wine-devel@winehq.org ##
10131 ## ------------------------------------ ##
10132 _ASBOX
10134 sed "s/^/$as_me: WARNING: /" >&2
10136 esac
10137 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10138 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10139 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142 ac_cv_header_sane_sane_h=$ac_header_preproc
10144 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10145 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10148 if test $ac_cv_header_sane_sane_h = yes; then
10149 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10150 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10151 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154 ac_check_lib_save_LIBS=$LIBS
10155 LIBS="-lsane $LIBS"
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h. */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10163 /* Override any gcc2 internal prototype to avoid an error. */
10164 #ifdef __cplusplus
10165 extern "C"
10166 #endif
10167 /* We use char because int might match the return type of a gcc2
10168 builtin and then its argument prototype would still apply. */
10169 char sane_open ();
10171 main ()
10173 sane_open ();
10175 return 0;
10177 _ACEOF
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10180 (eval $ac_link) 2>conftest.er1
10181 ac_status=$?
10182 grep -v '^ *+' conftest.er1 >conftest.err
10183 rm -f conftest.er1
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } &&
10187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10190 ac_status=$?
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; } &&
10193 { ac_try='test -s conftest$ac_exeext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_lib_sane_sane_open=yes
10200 else
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_cv_lib_sane_sane_open=no
10206 rm -f conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208 LIBS=$ac_check_lib_save_LIBS
10210 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10211 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10212 if test $ac_cv_lib_sane_sane_open = yes; then
10214 cat >>confdefs.h <<\_ACEOF
10215 #define HAVE_SANE 1
10216 _ACEOF
10218 else
10219 SANELIBS=""
10220 SANEINCL=""
10223 else
10224 SANELIBS=""
10225 SANEINCL=""
10229 LIBS="$ac_save_LIBS"
10230 CPPFLAGS="$ac_save_CPPFLAGS"
10236 for ac_header in unicode/ubidi.h
10238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10240 echo "$as_me:$LINENO: checking for $ac_header" >&5
10241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10247 else
10248 # Is the header compilable?
10249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10251 cat >conftest.$ac_ext <<_ACEOF
10252 /* confdefs.h. */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 $ac_includes_default
10258 #include <$ac_header>
10259 _ACEOF
10260 rm -f conftest.$ac_objext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262 (eval $ac_compile) 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10272 ac_status=$?
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; } &&
10275 { ac_try='test -s conftest.$ac_objext'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 ac_header_compiler=yes
10282 else
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10286 ac_header_compiler=no
10288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10290 echo "${ECHO_T}$ac_header_compiler" >&6
10292 # Is the header present?
10293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h. */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301 #include <$ac_header>
10302 _ACEOF
10303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10305 ac_status=$?
10306 grep -v '^ *+' conftest.er1 >conftest.err
10307 rm -f conftest.er1
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } >/dev/null; then
10311 if test -s conftest.err; then
10312 ac_cpp_err=$ac_c_preproc_warn_flag
10313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10314 else
10315 ac_cpp_err=
10317 else
10318 ac_cpp_err=yes
10320 if test -z "$ac_cpp_err"; then
10321 ac_header_preproc=yes
10322 else
10323 echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10326 ac_header_preproc=no
10328 rm -f conftest.err conftest.$ac_ext
10329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10330 echo "${ECHO_T}$ac_header_preproc" >&6
10332 # So? What about this header?
10333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10334 yes:no: )
10335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10339 ac_header_preproc=yes
10341 no:yes:* )
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10355 cat <<\_ASBOX
10356 ## ------------------------------------ ##
10357 ## Report this to wine-devel@winehq.org ##
10358 ## ------------------------------------ ##
10359 _ASBOX
10361 sed "s/^/$as_me: WARNING: /" >&2
10363 esac
10364 echo "$as_me:$LINENO: checking for $ac_header" >&5
10365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 else
10369 eval "$as_ac_Header=\$ac_header_preproc"
10371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10376 cat >>confdefs.h <<_ACEOF
10377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10378 _ACEOF
10382 done
10384 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10385 then
10386 saved_libs="$LIBS"
10387 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10388 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
10389 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
10390 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
10391 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
10392 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h. */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 #include <unicode/ubidi.h>
10401 main ()
10403 ubidi_open()
10405 return 0;
10407 _ACEOF
10408 rm -f conftest.$ac_objext conftest$ac_exeext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410 (eval $ac_link) 2>conftest.er1
10411 ac_status=$?
10412 grep -v '^ *+' conftest.er1 >conftest.err
10413 rm -f conftest.er1
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; } &&
10423 { ac_try='test -s conftest$ac_exeext'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10430 cat >>confdefs.h <<\_ACEOF
10431 #define HAVE_ICU 1
10432 _ACEOF
10434 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10436 echo "$as_me:$LINENO: result: yes" >&5
10437 echo "${ECHO_T}yes" >&6
10438 else
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10442 echo "$as_me:$LINENO: result: no" >&5
10443 echo "${ECHO_T}no" >&6
10445 rm -f conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10447 LIBS="$saved_libs"
10450 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10451 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10452 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 ac_check_lib_save_LIBS=$LIBS
10456 LIBS="-lfreetype $X_LIBS $LIBS"
10457 cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h. */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10464 /* Override any gcc2 internal prototype to avoid an error. */
10465 #ifdef __cplusplus
10466 extern "C"
10467 #endif
10468 /* We use char because int might match the return type of a gcc2
10469 builtin and then its argument prototype would still apply. */
10470 char FT_Init_FreeType ();
10472 main ()
10474 FT_Init_FreeType ();
10476 return 0;
10478 _ACEOF
10479 rm -f conftest.$ac_objext conftest$ac_exeext
10480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10481 (eval $ac_link) 2>conftest.er1
10482 ac_status=$?
10483 grep -v '^ *+' conftest.er1 >conftest.err
10484 rm -f conftest.er1
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; } &&
10494 { ac_try='test -s conftest$ac_exeext'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; }; then
10500 ac_cv_lib_freetype_FT_Init_FreeType=yes
10501 else
10502 echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.$ac_ext >&5
10505 ac_cv_lib_freetype_FT_Init_FreeType=no
10507 rm -f conftest.err conftest.$ac_objext \
10508 conftest$ac_exeext conftest.$ac_ext
10509 LIBS=$ac_check_lib_save_LIBS
10511 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10512 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10513 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10514 ft_lib=yes
10515 else
10516 ft_lib=no
10519 if test "$ft_lib" = "no"
10520 then
10521 FREETYPELIBS=""
10522 FREETYPEINCL=""
10523 wine_cv_msg_freetype=no
10524 else
10525 # Extract the first word of "freetype-config", so it can be a program name with args.
10526 set dummy freetype-config; ac_word=$2
10527 echo "$as_me:$LINENO: checking for $ac_word" >&5
10528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10529 if test "${ac_cv_prog_ft_devel+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532 if test -n "$ft_devel"; then
10533 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10534 else
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in $PATH
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10542 ac_cv_prog_ft_devel="freetype-config"
10543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10546 done
10547 done
10549 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10552 ft_devel=$ac_cv_prog_ft_devel
10553 if test -n "$ft_devel"; then
10554 echo "$as_me:$LINENO: result: $ft_devel" >&5
10555 echo "${ECHO_T}$ft_devel" >&6
10556 else
10557 echo "$as_me:$LINENO: result: no" >&5
10558 echo "${ECHO_T}no" >&6
10561 if test "$ft_devel" = "no"
10562 then
10563 # Extract the first word of "freetype2-config", so it can be a program name with args.
10564 set dummy freetype2-config; ac_word=$2
10565 echo "$as_me:$LINENO: checking for $ac_word" >&5
10566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10567 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 else
10570 if test -n "$ft_devel2"; then
10571 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10572 else
10573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574 for as_dir in $PATH
10576 IFS=$as_save_IFS
10577 test -z "$as_dir" && as_dir=.
10578 for ac_exec_ext in '' $ac_executable_extensions; do
10579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10580 ac_cv_prog_ft_devel2="freetype2-config"
10581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10582 break 2
10584 done
10585 done
10587 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10590 ft_devel2=$ac_cv_prog_ft_devel2
10591 if test -n "$ft_devel2"; then
10592 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10593 echo "${ECHO_T}$ft_devel2" >&6
10594 else
10595 echo "$as_me:$LINENO: result: no" >&5
10596 echo "${ECHO_T}no" >&6
10599 if test "$ft_devel2" = "freetype2-config"
10600 then
10601 ft_devel=$ft_devel2
10604 if test "$ft_devel" = "no"
10605 then
10606 FREETYPELIBS=""
10607 FREETYPEINCL=""
10608 wine_cv_msg_freetype=yes
10609 else
10610 FREETYPELIBS=`$ft_devel --libs`
10611 FREETYPEINCL=`$ft_devel --cflags`
10612 ac_save_CPPFLAGS="$CPPFLAGS"
10613 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10624 for ac_header in ft2build.h \
10625 freetype/freetype.h \
10626 freetype/ftglyph.h \
10627 freetype/tttables.h \
10628 freetype/ftnames.h \
10629 freetype/ftsnames.h \
10630 freetype/ttnameid.h \
10631 freetype/ftoutln.h \
10632 freetype/ftwinfnt.h \
10633 freetype/internal/sfnt.h
10635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10636 echo "$as_me:$LINENO: checking for $ac_header" >&5
10637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h. */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647 #if HAVE_FT2BUILD_H
10648 #include <ft2build.h>
10649 #endif
10651 #include <$ac_header>
10652 _ACEOF
10653 rm -f conftest.$ac_objext
10654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655 (eval $ac_compile) 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try='test -s conftest.$ac_objext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 eval "$as_ac_Header=yes"
10675 else
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 eval "$as_ac_Header=no"
10681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10686 cat >>confdefs.h <<_ACEOF
10687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10688 _ACEOF
10692 done
10694 cat >conftest.$ac_ext <<_ACEOF
10695 /* confdefs.h. */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 #include <ft2build.h>
10701 #include <freetype/fttrigon.h>
10702 _ACEOF
10703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10705 ac_status=$?
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } >/dev/null; then
10711 if test -s conftest.err; then
10712 ac_cpp_err=$ac_c_preproc_warn_flag
10713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10714 else
10715 ac_cpp_err=
10717 else
10718 ac_cpp_err=yes
10720 if test -z "$ac_cpp_err"; then
10722 cat >>confdefs.h <<\_ACEOF
10723 #define HAVE_FREETYPE_FTTRIGON_H 1
10724 _ACEOF
10726 wine_cv_fttrigon=yes
10727 else
10728 echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10731 wine_cv_fttrigon=no
10733 rm -f conftest.err conftest.$ac_ext
10734 CPPFLAGS="$ac_save_CPPFLAGS"
10735 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10736 then
10738 cat >>confdefs.h <<\_ACEOF
10739 #define HAVE_FREETYPE 1
10740 _ACEOF
10742 wine_cv_msg_freetype=no
10743 else
10744 FREETYPELIBS=""
10745 FREETYPEINCL=""
10746 wine_cv_msg_freetype=yes
10753 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10754 then
10755 FONTSSUBDIRS="fonts"
10759 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10760 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10761 if test "${ac_cv_c_ppdev+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764 cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h. */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10770 #include <linux/ppdev.h>
10772 main ()
10774 ioctl (1,PPCLAIM,0)
10776 return 0;
10778 _ACEOF
10779 rm -f conftest.$ac_objext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10781 (eval $ac_compile) 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; } &&
10794 { ac_try='test -s conftest.$ac_objext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ac_cv_c_ppdev="yes"
10801 else
10802 echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10805 ac_cv_c_ppdev="no"
10807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10810 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10811 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10812 if test "$ac_cv_c_ppdev" = "yes"
10813 then
10815 cat >>confdefs.h <<\_ACEOF
10816 #define HAVE_PPDEV 1
10817 _ACEOF
10821 echo "$as_me:$LINENO: checking for va_copy" >&5
10822 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10823 if test "${ac_cv_c_va_copy+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826 cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h. */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 #include <stdarg.h>
10834 main ()
10836 va_list ap1, ap2;
10837 va_copy(ap1,ap2);
10840 return 0;
10842 _ACEOF
10843 rm -f conftest.$ac_objext conftest$ac_exeext
10844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10845 (eval $ac_link) 2>conftest.er1
10846 ac_status=$?
10847 grep -v '^ *+' conftest.er1 >conftest.err
10848 rm -f conftest.er1
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } &&
10852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest$ac_exeext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_c_va_copy="yes"
10865 else
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ac_cv_c_va_copy="no"
10871 rm -f conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10875 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10876 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10877 if test "$ac_cv_c_va_copy" = "yes"
10878 then
10880 cat >>confdefs.h <<\_ACEOF
10881 #define HAVE_VA_COPY 1
10882 _ACEOF
10885 echo "$as_me:$LINENO: checking for __va_copy" >&5
10886 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10887 if test "${ac_cv_c___va_copy+set}" = set; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10889 else
10890 cat >conftest.$ac_ext <<_ACEOF
10891 /* confdefs.h. */
10892 _ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10896 #include <stdarg.h>
10898 main ()
10900 va_list ap1, ap2;
10901 __va_copy(ap1,ap2);
10904 return 0;
10906 _ACEOF
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909 (eval $ac_link) 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; } &&
10922 { ac_try='test -s conftest$ac_exeext'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; }; then
10928 ac_cv_c___va_copy="yes"
10929 else
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10933 ac_cv_c___va_copy="no"
10935 rm -f conftest.err conftest.$ac_objext \
10936 conftest$ac_exeext conftest.$ac_ext
10939 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10940 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10941 if test "$ac_cv_c___va_copy" = "yes"
10942 then
10944 cat >>confdefs.h <<\_ACEOF
10945 #define HAVE___VA_COPY 1
10946 _ACEOF
10950 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10951 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10952 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961 #include <setjmp.h>
10963 main ()
10965 sigjmp_buf buf;
10966 sigsetjmp( buf, 1 );
10967 siglongjmp( buf, 1 );
10969 return 0;
10971 _ACEOF
10972 rm -f conftest.$ac_objext conftest$ac_exeext
10973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10974 (eval $ac_link) 2>conftest.er1
10975 ac_status=$?
10976 grep -v '^ *+' conftest.er1 >conftest.err
10977 rm -f conftest.er1
10978 cat conftest.err >&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
10981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; } &&
10987 { ac_try='test -s conftest$ac_exeext'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; }; then
10993 ac_cv_c_sigsetjmp="yes"
10994 else
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10998 ac_cv_c_sigsetjmp="no"
11000 rm -f conftest.err conftest.$ac_objext \
11001 conftest$ac_exeext conftest.$ac_ext
11004 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11005 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
11006 if test "$ac_cv_c_sigsetjmp" = "yes"
11007 then
11009 cat >>confdefs.h <<\_ACEOF
11010 #define HAVE_SIGSETJMP 1
11011 _ACEOF
11015 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11016 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
11017 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 #define _GNU_SOURCE
11027 #include <pthread.h>
11030 main ()
11032 if ((pthread_rwlock_t *) 0)
11033 return 0;
11034 if (sizeof (pthread_rwlock_t))
11035 return 0;
11037 return 0;
11039 _ACEOF
11040 rm -f conftest.$ac_objext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042 (eval $ac_compile) 2>conftest.er1
11043 ac_status=$?
11044 grep -v '^ *+' conftest.er1 >conftest.err
11045 rm -f conftest.er1
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; } &&
11055 { ac_try='test -s conftest.$ac_objext'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 ac_cv_type_pthread_rwlock_t=yes
11062 else
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11066 ac_cv_type_pthread_rwlock_t=no
11068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11070 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11071 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
11072 if test $ac_cv_type_pthread_rwlock_t = yes; then
11074 cat >>confdefs.h <<_ACEOF
11075 #define HAVE_PTHREAD_RWLOCK_T 1
11076 _ACEOF
11080 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11081 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11082 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 #define _GNU_SOURCE
11092 #include <pthread.h>
11095 main ()
11097 if ((pthread_rwlockattr_t *) 0)
11098 return 0;
11099 if (sizeof (pthread_rwlockattr_t))
11100 return 0;
11102 return 0;
11104 _ACEOF
11105 rm -f conftest.$ac_objext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11107 (eval $ac_compile) 2>conftest.er1
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } &&
11114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; } &&
11120 { ac_try='test -s conftest.$ac_objext'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 ac_cv_type_pthread_rwlockattr_t=yes
11127 else
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11131 ac_cv_type_pthread_rwlockattr_t=no
11133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11135 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11136 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11137 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11139 cat >>confdefs.h <<_ACEOF
11140 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11141 _ACEOF
11147 ac_save_LIBS="$LIBS"
11148 LIBS="$LIBS $LIBPTHREAD"
11152 for ac_func in \
11153 pthread_getattr_np \
11154 pthread_get_stackaddr_np \
11155 pthread_get_stacksize_np \
11158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11159 echo "$as_me:$LINENO: checking for $ac_func" >&5
11160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11161 if eval "test \"\${$as_ac_var+set}\" = set"; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 else
11164 cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h. */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11172 #define $ac_func innocuous_$ac_func
11174 /* System header to define __stub macros and hopefully few prototypes,
11175 which can conflict with char $ac_func (); below.
11176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11177 <limits.h> exists even on freestanding compilers. */
11179 #ifdef __STDC__
11180 # include <limits.h>
11181 #else
11182 # include <assert.h>
11183 #endif
11185 #undef $ac_func
11187 /* Override any gcc2 internal prototype to avoid an error. */
11188 #ifdef __cplusplus
11189 extern "C"
11191 #endif
11192 /* We use char because int might match the return type of a gcc2
11193 builtin and then its argument prototype would still apply. */
11194 char $ac_func ();
11195 /* The GNU C library defines this for functions which it implements
11196 to always fail with ENOSYS. Some functions are actually named
11197 something starting with __ and the normal name is an alias. */
11198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11199 choke me
11200 #else
11201 char (*f) () = $ac_func;
11202 #endif
11203 #ifdef __cplusplus
11205 #endif
11208 main ()
11210 return f != $ac_func;
11212 return 0;
11214 _ACEOF
11215 rm -f conftest.$ac_objext conftest$ac_exeext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11217 (eval $ac_link) 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 eval "$as_ac_var=yes"
11237 else
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 eval "$as_ac_var=no"
11243 rm -f conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11248 if test `eval echo '${'$as_ac_var'}'` = yes; then
11249 cat >>confdefs.h <<_ACEOF
11250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11251 _ACEOF
11254 done
11256 LIBS="$ac_save_LIBS"
11261 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
11263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11265 echo "$as_me:$LINENO: checking for $ac_header" >&5
11266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11272 else
11273 # Is the header compilable?
11274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11276 cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h. */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 $ac_includes_default
11283 #include <$ac_header>
11284 _ACEOF
11285 rm -f conftest.$ac_objext
11286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11287 (eval $ac_compile) 2>conftest.er1
11288 ac_status=$?
11289 grep -v '^ *+' conftest.er1 >conftest.err
11290 rm -f conftest.er1
11291 cat conftest.err >&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
11306 ac_header_compiler=yes
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 ac_header_compiler=no
11313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11315 echo "${ECHO_T}$ac_header_compiler" >&6
11317 # Is the header present?
11318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 #include <$ac_header>
11327 _ACEOF
11328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } >/dev/null; then
11336 if test -s conftest.err; then
11337 ac_cpp_err=$ac_c_preproc_warn_flag
11338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11339 else
11340 ac_cpp_err=
11342 else
11343 ac_cpp_err=yes
11345 if test -z "$ac_cpp_err"; then
11346 ac_header_preproc=yes
11347 else
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 ac_header_preproc=no
11353 rm -f conftest.err conftest.$ac_ext
11354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11355 echo "${ECHO_T}$ac_header_preproc" >&6
11357 # So? What about this header?
11358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11359 yes:no: )
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11364 ac_header_preproc=yes
11366 no:yes:* )
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11380 cat <<\_ASBOX
11381 ## ------------------------------------ ##
11382 ## Report this to wine-devel@winehq.org ##
11383 ## ------------------------------------ ##
11384 _ASBOX
11386 sed "s/^/$as_me: WARNING: /" >&2
11388 esac
11389 echo "$as_me:$LINENO: checking for $ac_header" >&5
11390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394 eval "$as_ac_Header=\$ac_header_preproc"
11396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11401 cat >>confdefs.h <<_ACEOF
11402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11403 _ACEOF
11404 break
11407 done
11410 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11411 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11412 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11422 #if defined(HAVE_SYS_SOUNDCARD_H)
11423 #include <sys/soundcard.h>
11424 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11425 #include <machine/soundcard.h>
11426 #elif defined(HAVE_SOUNDCARD_H)
11427 #include <soundcard.h>
11428 #endif
11431 main ()
11435 /* check for one of the Open Sound System specific SNDCTL_ defines */
11436 #if !defined(SNDCTL_DSP_STEREO)
11437 #error No open sound system
11438 #endif
11441 return 0;
11443 _ACEOF
11444 rm -f conftest.$ac_objext
11445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11446 (eval $ac_compile) 2>conftest.er1
11447 ac_status=$?
11448 grep -v '^ *+' conftest.er1 >conftest.err
11449 rm -f conftest.er1
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } &&
11453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; } &&
11459 { ac_try='test -s conftest.$ac_objext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_cv_c_opensoundsystem="yes"
11466 else
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 ac_cv_c_opensoundsystem="no"
11472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11474 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11475 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11477 if test "$ac_cv_c_opensoundsystem" = "yes"
11478 then
11480 cat >>confdefs.h <<\_ACEOF
11481 #define HAVE_OSS 1
11482 _ACEOF
11486 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11487 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11488 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491 cat >conftest.$ac_ext <<_ACEOF
11492 /* confdefs.h. */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11498 #if defined(HAVE_SYS_SOUNDCARD_H)
11499 #include <sys/soundcard.h>
11500 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11501 #include <machine/soundcard.h>
11502 #elif defined(HAVE_SOUNDCARD_H)
11503 #include <soundcard.h>
11504 #endif
11507 main ()
11511 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11512 #if !defined(SNDCTL_SEQ_SYNC)
11513 #error No open sound system MIDI interface
11514 #endif
11517 return 0;
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522 (eval $ac_compile) 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest.$ac_objext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 ac_cv_c_opensoundsystem_midi="yes"
11542 else
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 ac_cv_c_opensoundsystem_midi="no"
11548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11550 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11551 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11553 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11554 then
11556 cat >>confdefs.h <<\_ACEOF
11557 #define HAVE_OSS_MIDI 1
11558 _ACEOF
11562 # Extract the first word of "artsc-config", so it can be a program name with args.
11563 set dummy artsc-config; ac_word=$2
11564 echo "$as_me:$LINENO: checking for $ac_word" >&5
11565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11566 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569 case $ARTSCCONFIG in
11570 [\\/]* | ?:[\\/]*)
11571 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11581 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 break 2
11585 done
11586 done
11589 esac
11591 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11593 if test -n "$ARTSCCONFIG"; then
11594 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11595 echo "${ECHO_T}$ARTSCCONFIG" >&6
11596 else
11597 echo "$as_me:$LINENO: result: no" >&5
11598 echo "${ECHO_T}no" >&6
11601 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11602 then
11603 ARTSC_CFLAGS=""
11604 for i in `$ARTSCCONFIG --cflags`
11606 case "$i" in
11607 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11608 esac
11609 done
11610 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11611 save_CFLAGS="$CFLAGS"
11612 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11613 cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h. */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619 #include <artsc.h>
11621 main ()
11623 arts_stream_t stream;
11625 return 0;
11627 _ACEOF
11628 rm -f conftest.$ac_objext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11630 (eval $ac_compile) 2>conftest.er1
11631 ac_status=$?
11632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; } &&
11643 { ac_try='test -s conftest.$ac_objext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ARTSLIBS=$ARTSC_LIBS
11651 ARTSINCL=$ARTSC_CFLAGS
11654 cat >>confdefs.h <<\_ACEOF
11655 #define HAVE_ARTS 1
11656 _ACEOF
11658 else
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11664 CFLAGS="$save_CFLAGS"
11667 ALSALIBS=""
11671 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11675 echo "$as_me:$LINENO: checking for $ac_header" >&5
11676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11682 else
11683 # Is the header compilable?
11684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 $ac_includes_default
11693 #include <$ac_header>
11694 _ACEOF
11695 rm -f conftest.$ac_objext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11697 (eval $ac_compile) 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest.$ac_objext'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11716 ac_header_compiler=yes
11717 else
11718 echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 ac_header_compiler=no
11723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11725 echo "${ECHO_T}$ac_header_compiler" >&6
11727 # Is the header present?
11728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11730 cat >conftest.$ac_ext <<_ACEOF
11731 /* confdefs.h. */
11732 _ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 #include <$ac_header>
11737 _ACEOF
11738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } >/dev/null; then
11746 if test -s conftest.err; then
11747 ac_cpp_err=$ac_c_preproc_warn_flag
11748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11749 else
11750 ac_cpp_err=
11752 else
11753 ac_cpp_err=yes
11755 if test -z "$ac_cpp_err"; then
11756 ac_header_preproc=yes
11757 else
11758 echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11761 ac_header_preproc=no
11763 rm -f conftest.err conftest.$ac_ext
11764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11765 echo "${ECHO_T}$ac_header_preproc" >&6
11767 # So? What about this header?
11768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11769 yes:no: )
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11774 ac_header_preproc=yes
11776 no:yes:* )
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11790 cat <<\_ASBOX
11791 ## ------------------------------------ ##
11792 ## Report this to wine-devel@winehq.org ##
11793 ## ------------------------------------ ##
11794 _ASBOX
11796 sed "s/^/$as_me: WARNING: /" >&2
11798 esac
11799 echo "$as_me:$LINENO: checking for $ac_header" >&5
11800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804 eval "$as_ac_Header=\$ac_header_preproc"
11806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11813 _ACEOF
11814 break
11817 done
11819 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11820 then
11821 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11822 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11823 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826 ac_check_lib_save_LIBS=$LIBS
11827 LIBS="-lasound $LIBS"
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h. */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11835 /* Override any gcc2 internal prototype to avoid an error. */
11836 #ifdef __cplusplus
11837 extern "C"
11838 #endif
11839 /* We use char because int might match the return type of a gcc2
11840 builtin and then its argument prototype would still apply. */
11841 char snd_pcm_open ();
11843 main ()
11845 snd_pcm_open ();
11847 return 0;
11849 _ACEOF
11850 rm -f conftest.$ac_objext conftest$ac_exeext
11851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11852 (eval $ac_link) 2>conftest.er1
11853 ac_status=$?
11854 grep -v '^ *+' conftest.er1 >conftest.err
11855 rm -f conftest.er1
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest$ac_exeext'
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 ac_cv_lib_asound_snd_pcm_open=yes
11872 else
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11876 ac_cv_lib_asound_snd_pcm_open=no
11878 rm -f conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11880 LIBS=$ac_check_lib_save_LIBS
11882 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11883 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11884 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11886 cat >>confdefs.h <<\_ACEOF
11887 #define HAVE_ALSA 1
11888 _ACEOF
11890 ALSALIBS="-lasound"
11896 AUDIOIOLIBS=""
11899 for ac_header in libaudioio.h
11901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11903 echo "$as_me:$LINENO: checking for $ac_header" >&5
11904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11910 else
11911 # Is the header compilable?
11912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11914 cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h. */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 $ac_includes_default
11921 #include <$ac_header>
11922 _ACEOF
11923 rm -f conftest.$ac_objext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11925 (eval $ac_compile) 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934 (eval $ac_try) 2>&5
11935 ac_status=$?
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; } &&
11938 { ac_try='test -s conftest.$ac_objext'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 ac_header_compiler=yes
11945 else
11946 echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 ac_header_compiler=no
11951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11953 echo "${ECHO_T}$ac_header_compiler" >&6
11955 # Is the header present?
11956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11958 cat >conftest.$ac_ext <<_ACEOF
11959 /* confdefs.h. */
11960 _ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11964 #include <$ac_header>
11965 _ACEOF
11966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } >/dev/null; then
11974 if test -s conftest.err; then
11975 ac_cpp_err=$ac_c_preproc_warn_flag
11976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11977 else
11978 ac_cpp_err=
11980 else
11981 ac_cpp_err=yes
11983 if test -z "$ac_cpp_err"; then
11984 ac_header_preproc=yes
11985 else
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11989 ac_header_preproc=no
11991 rm -f conftest.err conftest.$ac_ext
11992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11993 echo "${ECHO_T}$ac_header_preproc" >&6
11995 # So? What about this header?
11996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11997 yes:no: )
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12002 ac_header_preproc=yes
12004 no:yes:* )
12005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12018 cat <<\_ASBOX
12019 ## ------------------------------------ ##
12020 ## Report this to wine-devel@winehq.org ##
12021 ## ------------------------------------ ##
12022 _ASBOX
12024 sed "s/^/$as_me: WARNING: /" >&2
12026 esac
12027 echo "$as_me:$LINENO: checking for $ac_header" >&5
12028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032 eval "$as_ac_Header=\$ac_header_preproc"
12034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12039 cat >>confdefs.h <<_ACEOF
12040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12041 _ACEOF
12042 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12043 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
12044 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047 ac_check_lib_save_LIBS=$LIBS
12048 LIBS="-laudioio $LIBS"
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h. */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12056 /* Override any gcc2 internal prototype to avoid an error. */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
12060 /* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12062 char AudioIOGetVersion ();
12064 main ()
12066 AudioIOGetVersion ();
12068 return 0;
12070 _ACEOF
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12073 (eval $ac_link) 2>conftest.er1
12074 ac_status=$?
12075 grep -v '^ *+' conftest.er1 >conftest.err
12076 rm -f conftest.er1
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest$ac_exeext'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
12092 ac_cv_lib_audioio_AudioIOGetVersion=yes
12093 else
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_cv_lib_audioio_AudioIOGetVersion=no
12099 rm -f conftest.err conftest.$ac_objext \
12100 conftest$ac_exeext conftest.$ac_ext
12101 LIBS=$ac_check_lib_save_LIBS
12103 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12104 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12105 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12106 AUDIOIOLIBS="-laudioio"
12108 cat >>confdefs.h <<\_ACEOF
12109 #define HAVE_LIBAUDIOIO 1
12110 _ACEOF
12116 done
12121 for ac_header in capi20.h
12123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12125 echo "$as_me:$LINENO: checking for $ac_header" >&5
12126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12132 else
12133 # Is the header compilable?
12134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 $ac_includes_default
12143 #include <$ac_header>
12144 _ACEOF
12145 rm -f conftest.$ac_objext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147 (eval $ac_compile) 2>conftest.er1
12148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest.$ac_objext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_header_compiler=yes
12167 else
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_header_compiler=no
12173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12175 echo "${ECHO_T}$ac_header_compiler" >&6
12177 # Is the header present?
12178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 #include <$ac_header>
12187 _ACEOF
12188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } >/dev/null; then
12196 if test -s conftest.err; then
12197 ac_cpp_err=$ac_c_preproc_warn_flag
12198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12199 else
12200 ac_cpp_err=
12202 else
12203 ac_cpp_err=yes
12205 if test -z "$ac_cpp_err"; then
12206 ac_header_preproc=yes
12207 else
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12211 ac_header_preproc=no
12213 rm -f conftest.err conftest.$ac_ext
12214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12215 echo "${ECHO_T}$ac_header_preproc" >&6
12217 # So? What about this header?
12218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12219 yes:no: )
12220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12224 ac_header_preproc=yes
12226 no:yes:* )
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12240 cat <<\_ASBOX
12241 ## ------------------------------------ ##
12242 ## Report this to wine-devel@winehq.org ##
12243 ## ------------------------------------ ##
12244 _ASBOX
12246 sed "s/^/$as_me: WARNING: /" >&2
12248 esac
12249 echo "$as_me:$LINENO: checking for $ac_header" >&5
12250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254 eval "$as_ac_Header=\$ac_header_preproc"
12256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12261 cat >>confdefs.h <<_ACEOF
12262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12263 _ACEOF
12266 for ac_header in linux/capi.h
12268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12270 echo "$as_me:$LINENO: checking for $ac_header" >&5
12271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12277 else
12278 # Is the header compilable?
12279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12281 cat >conftest.$ac_ext <<_ACEOF
12282 /* confdefs.h. */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 $ac_includes_default
12288 #include <$ac_header>
12289 _ACEOF
12290 rm -f conftest.$ac_objext
12291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12292 (eval $ac_compile) 2>conftest.er1
12293 ac_status=$?
12294 grep -v '^ *+' conftest.er1 >conftest.err
12295 rm -f conftest.er1
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest.$ac_objext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_header_compiler=yes
12312 else
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 ac_header_compiler=no
12318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12320 echo "${ECHO_T}$ac_header_compiler" >&6
12322 # Is the header present?
12323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h. */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12331 #include <$ac_header>
12332 _ACEOF
12333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12335 ac_status=$?
12336 grep -v '^ *+' conftest.er1 >conftest.err
12337 rm -f conftest.er1
12338 cat conftest.err >&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } >/dev/null; then
12341 if test -s conftest.err; then
12342 ac_cpp_err=$ac_c_preproc_warn_flag
12343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12344 else
12345 ac_cpp_err=
12347 else
12348 ac_cpp_err=yes
12350 if test -z "$ac_cpp_err"; then
12351 ac_header_preproc=yes
12352 else
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12356 ac_header_preproc=no
12358 rm -f conftest.err conftest.$ac_ext
12359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12360 echo "${ECHO_T}$ac_header_preproc" >&6
12362 # So? What about this header?
12363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12364 yes:no: )
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12369 ac_header_preproc=yes
12371 no:yes:* )
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12385 cat <<\_ASBOX
12386 ## ------------------------------------ ##
12387 ## Report this to wine-devel@winehq.org ##
12388 ## ------------------------------------ ##
12389 _ASBOX
12391 sed "s/^/$as_me: WARNING: /" >&2
12393 esac
12394 echo "$as_me:$LINENO: checking for $ac_header" >&5
12395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399 eval "$as_ac_Header=\$ac_header_preproc"
12401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12406 cat >>confdefs.h <<_ACEOF
12407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12408 _ACEOF
12410 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12411 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12412 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 else
12415 ac_check_lib_save_LIBS=$LIBS
12416 LIBS="-lcapi20 $LIBS"
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h. */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12424 /* Override any gcc2 internal prototype to avoid an error. */
12425 #ifdef __cplusplus
12426 extern "C"
12427 #endif
12428 /* We use char because int might match the return type of a gcc2
12429 builtin and then its argument prototype would still apply. */
12430 char capi20_register ();
12432 main ()
12434 capi20_register ();
12436 return 0;
12438 _ACEOF
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441 (eval $ac_link) 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest$ac_exeext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_cv_lib_capi20_capi20_register=yes
12461 else
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 ac_cv_lib_capi20_capi20_register=no
12467 rm -f conftest.err conftest.$ac_objext \
12468 conftest$ac_exeext conftest.$ac_ext
12469 LIBS=$ac_check_lib_save_LIBS
12471 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12472 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12473 if test $ac_cv_lib_capi20_capi20_register = yes; then
12476 cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_CAPI4LINUX 1
12478 _ACEOF
12480 CAPI4LINUXLIBS="-lcapi20"
12488 done
12493 done
12497 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12498 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12499 if test "${ac_cv_mmap64_works+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 else
12502 if test "$cross_compiling" = yes; then
12503 ac_cv_mmap64_works="no"
12504 else
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h. */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12512 #define _FILE_OFFSET_BITS 64
12513 #include <stdio.h>
12514 #include <unistd.h>
12515 #include <fcntl.h>
12516 #include <sys/mman.h>
12517 #include <errno.h>
12519 int main(int argc,char **argv) {
12520 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12521 if (fd == -1) exit(1);
12523 unlink("conftest.map");
12525 write(fd,"test",4);
12527 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12528 (errno == EINVAL)
12530 exit(1);
12532 close(fd);
12533 fprintf(stderr,"success!\n");
12534 exit(0);
12538 _ACEOF
12539 rm -f conftest$ac_exeext
12540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12541 (eval $ac_link) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_mmap64_works="yes"
12551 else
12552 echo "$as_me: program exited with status $ac_status" >&5
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 ( exit $ac_status )
12557 ac_cv_mmap64_works="no"
12559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12562 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12563 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12565 if test "$ac_cv_mmap64_works" = "yes"
12566 then
12568 cat >>confdefs.h <<\_ACEOF
12569 #define _FILE_OFFSET_BITS 64
12570 _ACEOF
12575 EXTRACFLAGS=""
12577 if test "x${GCC}" = "xyes"
12578 then
12579 EXTRACFLAGS="-Wall -pipe"
12581 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12582 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12583 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586 if test "$cross_compiling" = yes; then
12587 ac_cv_c_gcc_strength_bug="yes"
12588 else
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h. */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12596 int L[4] = {0,1,2,3};
12597 int main(void) {
12598 static int Array[3];
12599 unsigned int B = 3;
12600 int i;
12601 for(i=0; i<B; i++) Array[i] = i - 3;
12602 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12603 L[i] = 4;
12605 exit( Array[1] != -2 || L[2] != 3);
12607 _ACEOF
12608 rm -f conftest$ac_exeext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12610 (eval $ac_link) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_cv_c_gcc_strength_bug="no"
12620 else
12621 echo "$as_me: program exited with status $ac_status" >&5
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12625 ( exit $ac_status )
12626 ac_cv_c_gcc_strength_bug="yes"
12628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12631 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12632 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12633 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12634 then
12635 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12638 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12639 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12640 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643 ac_wine_try_cflags_saved=$CFLAGS
12644 CFLAGS="$CFLAGS -fshort-wchar"
12645 cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h. */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12653 main ()
12657 return 0;
12659 _ACEOF
12660 rm -f conftest.$ac_objext conftest$ac_exeext
12661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12662 (eval $ac_link) 2>conftest.er1
12663 ac_status=$?
12664 grep -v '^ *+' conftest.er1 >conftest.err
12665 rm -f conftest.er1
12666 cat conftest.err >&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } &&
12675 { ac_try='test -s conftest$ac_exeext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_cv_c_gcc_fshort_wchar="yes"
12682 else
12683 echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12686 ac_cv_c_gcc_fshort_wchar="no"
12688 rm -f conftest.err conftest.$ac_objext \
12689 conftest$ac_exeext conftest.$ac_ext
12690 CFLAGS=$ac_wine_try_cflags_saved
12692 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12693 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12694 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12695 then
12697 cat >>confdefs.h <<\_ACEOF
12698 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12699 _ACEOF
12703 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12704 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12705 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12706 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 else
12708 ac_wine_try_cflags_saved=$CFLAGS
12709 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12710 cat >conftest.$ac_ext <<_ACEOF
12711 /* confdefs.h. */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12718 main ()
12722 return 0;
12724 _ACEOF
12725 rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12727 (eval $ac_link) 2>conftest.er1
12728 ac_status=$?
12729 grep -v '^ *+' conftest.er1 >conftest.err
12730 rm -f conftest.er1
12731 cat conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } &&
12734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest$ac_exeext'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_cv_c_gcc_stack_boundary="yes"
12747 else
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 ac_cv_c_gcc_stack_boundary="no"
12753 rm -f conftest.err conftest.$ac_objext \
12754 conftest$ac_exeext conftest.$ac_ext
12755 CFLAGS=$ac_wine_try_cflags_saved
12757 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12758 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12759 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12760 then
12761 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12764 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12765 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12766 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769 ac_wine_try_cflags_saved=$CFLAGS
12770 CFLAGS="$CFLAGS -fno-strict-aliasing"
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h. */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12779 main ()
12783 return 0;
12785 _ACEOF
12786 rm -f conftest.$ac_objext conftest$ac_exeext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12788 (eval $ac_link) 2>conftest.er1
12789 ac_status=$?
12790 grep -v '^ *+' conftest.er1 >conftest.err
12791 rm -f conftest.er1
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_cv_c_gcc_no_strict_aliasing="yes"
12808 else
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_cv_c_gcc_no_strict_aliasing="no"
12814 rm -f conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816 CFLAGS=$ac_wine_try_cflags_saved
12818 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12819 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12820 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12821 then
12822 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12825 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12826 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12827 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830 ac_wine_try_cflags_saved=$CFLAGS
12831 CFLAGS="$CFLAGS -gstabs+"
12832 cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h. */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12840 main ()
12844 return 0;
12846 _ACEOF
12847 rm -f conftest.$ac_objext conftest$ac_exeext
12848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12849 (eval $ac_link) 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest$ac_exeext'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; }; then
12868 ac_cv_c_gcc_gstabs="yes"
12869 else
12870 echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12873 ac_cv_c_gcc_gstabs="no"
12875 rm -f conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12877 CFLAGS=$ac_wine_try_cflags_saved
12879 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12880 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12881 if test "$ac_cv_c_gcc_gstabs" = "yes"
12882 then
12883 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12886 saved_CFLAGS="$CFLAGS"
12887 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12888 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12889 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12890 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12892 else
12893 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h. */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 #include <string.h>
12901 main ()
12905 return 0;
12907 _ACEOF
12908 rm -f conftest.$ac_objext
12909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12910 (eval $ac_compile) 2>conftest.er1
12911 ac_status=$?
12912 grep -v '^ *+' conftest.er1 >conftest.err
12913 rm -f conftest.er1
12914 cat conftest.err >&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } &&
12917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest.$ac_objext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 ac_cv_c_string_h_warnings=no
12930 else
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12934 ac_cv_c_string_h_warnings=yes
12936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12938 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12939 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12940 CFLAGS="$saved_CFLAGS"
12941 if test "$ac_cv_c_string_h_warnings" = "no"
12942 then
12943 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12948 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12949 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12950 if test "${ac_cv_asm_func_def+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953 cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h. */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 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"); }
12962 main ()
12966 return 0;
12968 _ACEOF
12969 rm -f conftest.$ac_objext conftest$ac_exeext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12971 (eval $ac_link) 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest$ac_exeext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 ac_cv_asm_func_def=".def"
12991 else
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 cat >conftest.$ac_ext <<_ACEOF
12996 /* confdefs.h. */
12997 _ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13001 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
13004 main ()
13008 return 0;
13010 _ACEOF
13011 rm -f conftest.$ac_objext conftest$ac_exeext
13012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13013 (eval $ac_link) 2>conftest.er1
13014 ac_status=$?
13015 grep -v '^ *+' conftest.er1 >conftest.err
13016 rm -f conftest.er1
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest$ac_exeext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_cv_asm_func_def=".type @function"
13033 else
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13037 cat >conftest.$ac_ext <<_ACEOF
13038 /* confdefs.h. */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13043 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
13046 main ()
13050 return 0;
13052 _ACEOF
13053 rm -f conftest.$ac_objext conftest$ac_exeext
13054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13055 (eval $ac_link) 2>conftest.er1
13056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
13062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; } &&
13068 { ac_try='test -s conftest$ac_exeext'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13071 ac_status=$?
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; }; then
13074 ac_cv_asm_func_def=".type 2"
13075 else
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13079 ac_cv_asm_func_def="unknown"
13081 rm -f conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13084 rm -f conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13087 rm -f conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13090 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13091 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
13095 case "$ac_cv_asm_func_def" in
13096 ".def")
13097 cat >>confdefs.h <<\_ACEOF
13098 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13099 _ACEOF
13101 ".type @function")
13102 cat >>confdefs.h <<\_ACEOF
13103 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13104 _ACEOF
13106 ".type 2")
13107 cat >>confdefs.h <<\_ACEOF
13108 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13109 _ACEOF
13112 cat >>confdefs.h <<\_ACEOF
13113 #define __ASM_FUNC(name) ""
13114 _ACEOF
13116 esac
13119 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13120 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
13121 if test "${ac_cv_c_extern_prefix+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13123 else
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h. */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13131 extern int ac_test;
13133 main ()
13135 if (ac_test) return 1
13137 return 0;
13139 _ACEOF
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13142 (eval $ac_link) 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; } &&
13155 { ac_try='test -s conftest$ac_exeext'
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_c_extern_prefix="yes"
13162 else
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ac_cv_c_extern_prefix="no"
13168 rm -f conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13171 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13172 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
13176 if test "$ac_cv_c_extern_prefix" = "yes"
13177 then
13178 cat >>confdefs.h <<\_ACEOF
13179 #define __ASM_NAME(name) "_" name
13180 _ACEOF
13182 else
13183 cat >>confdefs.h <<\_ACEOF
13184 #define __ASM_NAME(name) name
13185 _ACEOF
13190 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
13191 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
13192 if test "${ac_cv_c_asm_string+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 else
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
13204 main ()
13208 return 0;
13210 _ACEOF
13211 rm -f conftest.$ac_objext conftest$ac_exeext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13213 (eval $ac_link) 2>conftest.er1
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } &&
13220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest$ac_exeext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_c_asm_string=".string"
13233 else
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h. */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13243 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
13246 main ()
13250 return 0;
13252 _ACEOF
13253 rm -f conftest.$ac_objext conftest$ac_exeext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13255 (eval $ac_link) 2>conftest.er1
13256 ac_status=$?
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
13262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest$ac_exeext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_cv_c_asm_string=".asciz"
13275 else
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13279 cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h. */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13285 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13288 main ()
13292 return 0;
13294 _ACEOF
13295 rm -f conftest.$ac_objext conftest$ac_exeext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13297 (eval $ac_link) 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; } &&
13310 { ac_try='test -s conftest$ac_exeext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 ac_cv_c_asm_string=".ascii"
13317 else
13318 echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13321 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13322 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13323 { (exit 1); exit 1; }; }
13325 rm -f conftest.err conftest.$ac_objext \
13326 conftest$ac_exeext conftest.$ac_ext
13328 rm -f conftest.err conftest.$ac_objext \
13329 conftest$ac_exeext conftest.$ac_ext
13331 rm -f conftest.err conftest.$ac_objext \
13332 conftest$ac_exeext conftest.$ac_ext
13334 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
13335 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
13338 cat >>confdefs.h <<_ACEOF
13339 #define __ASM_STRING "$ac_cv_c_asm_string"
13340 _ACEOF
13344 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13345 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
13346 if test "${ac_cv_c_asm_short+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 else
13349 cat >conftest.$ac_ext <<_ACEOF
13350 /* confdefs.h. */
13351 _ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
13358 main ()
13362 return 0;
13364 _ACEOF
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13367 (eval $ac_link) 2>conftest.er1
13368 ac_status=$?
13369 grep -v '^ *+' conftest.er1 >conftest.err
13370 rm -f conftest.er1
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_c_asm_short=".short"
13387 else
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13400 main ()
13404 return 0;
13406 _ACEOF
13407 rm -f conftest.$ac_objext conftest$ac_exeext
13408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13409 (eval $ac_link) 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest$ac_exeext'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_cv_c_asm_short=".half"
13429 else
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13433 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13434 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13435 { (exit 1); exit 1; }; }
13437 rm -f conftest.err conftest.$ac_objext \
13438 conftest$ac_exeext conftest.$ac_ext
13440 rm -f conftest.err conftest.$ac_objext \
13441 conftest$ac_exeext conftest.$ac_ext
13443 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13444 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13447 cat >>confdefs.h <<_ACEOF
13448 #define __ASM_SHORT "$ac_cv_c_asm_short"
13449 _ACEOF
13453 echo "$as_me:$LINENO: checking for .size in assembler" >&5
13454 echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
13455 if test "${ac_cv_c_asm_size+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458 cat >conftest.$ac_ext <<_ACEOF
13459 /* confdefs.h. */
13460 _ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13464 void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
13467 main ()
13471 return 0;
13473 _ACEOF
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13476 (eval $ac_link) 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; } &&
13489 { ac_try='test -s conftest$ac_exeext'
13490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491 (eval $ac_try) 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
13495 ac_cv_c_asm_size="yes"
13496 else
13497 echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13500 ac_cv_c_asm_size="no"
13502 rm -f conftest.err conftest.$ac_objext \
13503 conftest$ac_exeext conftest.$ac_ext
13505 echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13506 echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13508 if test "$ac_cv_c_asm_size" = "yes"
13509 then
13511 cat >>confdefs.h <<\_ACEOF
13512 #define HAVE_ASM_DOT_SIZE 1
13513 _ACEOF
13518 DLLEXT=""
13520 DLLFLAGS="-D_REENTRANT"
13522 DLLIBS=""
13524 LDSHARED=""
13526 LDDLLFLAGS=""
13528 LIBEXT="so"
13530 IMPLIBEXT="def"
13533 case $host_os in
13534 cygwin*|mingw32*)
13535 if test -n "$ac_tool_prefix"; then
13536 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13537 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13538 echo "$as_me:$LINENO: checking for $ac_word" >&5
13539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13540 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 else
13543 if test -n "$DLLTOOL"; then
13544 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13545 else
13546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13547 for as_dir in $PATH
13549 IFS=$as_save_IFS
13550 test -z "$as_dir" && as_dir=.
13551 for ac_exec_ext in '' $ac_executable_extensions; do
13552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13553 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13555 break 2
13557 done
13558 done
13562 DLLTOOL=$ac_cv_prog_DLLTOOL
13563 if test -n "$DLLTOOL"; then
13564 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13565 echo "${ECHO_T}$DLLTOOL" >&6
13566 else
13567 echo "$as_me:$LINENO: result: no" >&5
13568 echo "${ECHO_T}no" >&6
13572 if test -z "$ac_cv_prog_DLLTOOL"; then
13573 ac_ct_DLLTOOL=$DLLTOOL
13574 # Extract the first word of "dlltool", so it can be a program name with args.
13575 set dummy dlltool; ac_word=$2
13576 echo "$as_me:$LINENO: checking for $ac_word" >&5
13577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13578 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581 if test -n "$ac_ct_DLLTOOL"; then
13582 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13583 else
13584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 for as_dir in $PATH
13587 IFS=$as_save_IFS
13588 test -z "$as_dir" && as_dir=.
13589 for ac_exec_ext in '' $ac_executable_extensions; do
13590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13591 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13593 break 2
13595 done
13596 done
13598 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13601 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13602 if test -n "$ac_ct_DLLTOOL"; then
13603 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13604 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13605 else
13606 echo "$as_me:$LINENO: result: no" >&5
13607 echo "${ECHO_T}no" >&6
13610 DLLTOOL=$ac_ct_DLLTOOL
13611 else
13612 DLLTOOL="$ac_cv_prog_DLLTOOL"
13615 if test -n "$ac_tool_prefix"; then
13616 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13617 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13618 echo "$as_me:$LINENO: checking for $ac_word" >&5
13619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13620 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623 if test -n "$DLLWRAP"; then
13624 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13625 else
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13629 IFS=$as_save_IFS
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13633 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 break 2
13637 done
13638 done
13642 DLLWRAP=$ac_cv_prog_DLLWRAP
13643 if test -n "$DLLWRAP"; then
13644 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13645 echo "${ECHO_T}$DLLWRAP" >&6
13646 else
13647 echo "$as_me:$LINENO: result: no" >&5
13648 echo "${ECHO_T}no" >&6
13652 if test -z "$ac_cv_prog_DLLWRAP"; then
13653 ac_ct_DLLWRAP=$DLLWRAP
13654 # Extract the first word of "dllwrap", so it can be a program name with args.
13655 set dummy dllwrap; ac_word=$2
13656 echo "$as_me:$LINENO: checking for $ac_word" >&5
13657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13658 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661 if test -n "$ac_ct_DLLWRAP"; then
13662 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13663 else
13664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665 for as_dir in $PATH
13667 IFS=$as_save_IFS
13668 test -z "$as_dir" && as_dir=.
13669 for ac_exec_ext in '' $ac_executable_extensions; do
13670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13671 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13673 break 2
13675 done
13676 done
13678 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13681 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13682 if test -n "$ac_ct_DLLWRAP"; then
13683 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13684 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13685 else
13686 echo "$as_me:$LINENO: result: no" >&5
13687 echo "${ECHO_T}no" >&6
13690 DLLWRAP=$ac_ct_DLLWRAP
13691 else
13692 DLLWRAP="$ac_cv_prog_DLLWRAP"
13695 if test "$DLLWRAP" = "false"; then
13696 LIBEXT="a"
13697 else
13698 LIBEXT="dll"
13700 IMPLIBEXT="a"
13701 WIN16_FILES=""
13702 WIN16_INSTALL=""
13706 for ac_header in dlfcn.h
13708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13710 echo "$as_me:$LINENO: checking for $ac_header" >&5
13711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13717 else
13718 # Is the header compilable?
13719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13721 cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h. */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 $ac_includes_default
13728 #include <$ac_header>
13729 _ACEOF
13730 rm -f conftest.$ac_objext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13732 (eval $ac_compile) 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; } &&
13745 { ac_try='test -s conftest.$ac_objext'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13751 ac_header_compiler=yes
13752 else
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13756 ac_header_compiler=no
13758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13760 echo "${ECHO_T}$ac_header_compiler" >&6
13762 # Is the header present?
13763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13765 cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h. */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13771 #include <$ac_header>
13772 _ACEOF
13773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } >/dev/null; then
13781 if test -s conftest.err; then
13782 ac_cpp_err=$ac_c_preproc_warn_flag
13783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13784 else
13785 ac_cpp_err=
13787 else
13788 ac_cpp_err=yes
13790 if test -z "$ac_cpp_err"; then
13791 ac_header_preproc=yes
13792 else
13793 echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13796 ac_header_preproc=no
13798 rm -f conftest.err conftest.$ac_ext
13799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13800 echo "${ECHO_T}$ac_header_preproc" >&6
13802 # So? What about this header?
13803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13804 yes:no: )
13805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13809 ac_header_preproc=yes
13811 no:yes:* )
13812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13825 cat <<\_ASBOX
13826 ## ------------------------------------ ##
13827 ## Report this to wine-devel@winehq.org ##
13828 ## ------------------------------------ ##
13829 _ASBOX
13831 sed "s/^/$as_me: WARNING: /" >&2
13833 esac
13834 echo "$as_me:$LINENO: checking for $ac_header" >&5
13835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839 eval "$as_ac_Header=\$ac_header_preproc"
13841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13846 cat >>confdefs.h <<_ACEOF
13847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13848 _ACEOF
13850 for ac_func in dlopen
13852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13853 echo "$as_me:$LINENO: checking for $ac_func" >&5
13854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13855 if eval "test \"\${$as_ac_var+set}\" = set"; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858 cat >conftest.$ac_ext <<_ACEOF
13859 /* confdefs.h. */
13860 _ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13866 #define $ac_func innocuous_$ac_func
13868 /* System header to define __stub macros and hopefully few prototypes,
13869 which can conflict with char $ac_func (); below.
13870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13871 <limits.h> exists even on freestanding compilers. */
13873 #ifdef __STDC__
13874 # include <limits.h>
13875 #else
13876 # include <assert.h>
13877 #endif
13879 #undef $ac_func
13881 /* Override any gcc2 internal prototype to avoid an error. */
13882 #ifdef __cplusplus
13883 extern "C"
13885 #endif
13886 /* We use char because int might match the return type of a gcc2
13887 builtin and then its argument prototype would still apply. */
13888 char $ac_func ();
13889 /* The GNU C library defines this for functions which it implements
13890 to always fail with ENOSYS. Some functions are actually named
13891 something starting with __ and the normal name is an alias. */
13892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13893 choke me
13894 #else
13895 char (*f) () = $ac_func;
13896 #endif
13897 #ifdef __cplusplus
13899 #endif
13902 main ()
13904 return f != $ac_func;
13906 return 0;
13908 _ACEOF
13909 rm -f conftest.$ac_objext conftest$ac_exeext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13911 (eval $ac_link) 2>conftest.er1
13912 ac_status=$?
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } &&
13924 { ac_try='test -s conftest$ac_exeext'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 eval "$as_ac_var=yes"
13931 else
13932 echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13935 eval "$as_ac_var=no"
13937 rm -f conftest.err conftest.$ac_objext \
13938 conftest$ac_exeext conftest.$ac_ext
13940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13942 if test `eval echo '${'$as_ac_var'}'` = yes; then
13943 cat >>confdefs.h <<_ACEOF
13944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13945 _ACEOF
13947 else
13948 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13949 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953 ac_check_lib_save_LIBS=$LIBS
13954 LIBS="-ldl $LIBS"
13955 cat >conftest.$ac_ext <<_ACEOF
13956 /* confdefs.h. */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13962 /* Override any gcc2 internal prototype to avoid an error. */
13963 #ifdef __cplusplus
13964 extern "C"
13965 #endif
13966 /* We use char because int might match the return type of a gcc2
13967 builtin and then its argument prototype would still apply. */
13968 char dlopen ();
13970 main ()
13972 dlopen ();
13974 return 0;
13976 _ACEOF
13977 rm -f conftest.$ac_objext conftest$ac_exeext
13978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13979 (eval $ac_link) 2>conftest.er1
13980 ac_status=$?
13981 grep -v '^ *+' conftest.er1 >conftest.err
13982 rm -f conftest.er1
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } &&
13986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; } &&
13992 { ac_try='test -s conftest$ac_exeext'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998 ac_cv_lib_dl_dlopen=yes
13999 else
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 ac_cv_lib_dl_dlopen=no
14005 rm -f conftest.err conftest.$ac_objext \
14006 conftest$ac_exeext conftest.$ac_ext
14007 LIBS=$ac_check_lib_save_LIBS
14009 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14011 if test $ac_cv_lib_dl_dlopen = yes; then
14013 cat >>confdefs.h <<\_ACEOF
14014 #define HAVE_DLOPEN 1
14015 _ACEOF
14017 DLLIBS="-ldl"
14018 else
14019 LIBEXT="a"
14023 done
14025 else
14026 LIBEXT="a"
14029 done
14032 if test "$LIBEXT" = "so"
14033 then
14034 DLLFLAGS="$DLLFLAGS -fPIC"
14035 DLLEXT=".so"
14036 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
14037 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
14038 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 else
14041 ac_wine_try_cflags_saved=$CFLAGS
14042 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
14043 cat >conftest.$ac_ext <<_ACEOF
14044 void myfunc() {}
14045 _ACEOF
14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048 (eval $ac_link) 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; } &&
14061 { ac_try='test -s conftest$ac_exeext'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 ac_cv_c_dll_gnuelf="yes"
14068 else
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 ac_cv_c_dll_gnuelf="no"
14074 rm -f conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14076 CFLAGS=$ac_wine_try_cflags_saved
14078 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
14079 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
14080 if test "$ac_cv_c_dll_gnuelf" = "yes"
14081 then
14082 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
14083 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
14084 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
14085 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
14086 if test "${ac_cv_c_dll_zdefs+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 else
14089 ac_wine_try_cflags_saved=$CFLAGS
14090 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
14091 cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h. */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14099 main ()
14103 return 0;
14105 _ACEOF
14106 rm -f conftest.$ac_objext conftest$ac_exeext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14108 (eval $ac_link) 2>conftest.er1
14109 ac_status=$?
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } &&
14115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; } &&
14121 { ac_try='test -s conftest$ac_exeext'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; }; then
14127 ac_cv_c_dll_zdefs="yes"
14128 else
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14132 ac_cv_c_dll_zdefs="no"
14134 rm -f conftest.err conftest.$ac_objext \
14135 conftest$ac_exeext conftest.$ac_ext
14136 CFLAGS=$ac_wine_try_cflags_saved
14138 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14139 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
14140 if test "$ac_cv_c_dll_zdefs" = "yes"
14141 then
14142 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
14145 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14146 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
14147 if test "${ac_cv_c_dll_init_fini+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150 ac_wine_try_cflags_saved=$CFLAGS
14151 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14152 cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h. */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14160 main ()
14164 return 0;
14166 _ACEOF
14167 rm -f conftest.$ac_objext conftest$ac_exeext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14169 (eval $ac_link) 2>conftest.er1
14170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest$ac_exeext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_cv_c_dll_init_fini="yes"
14189 else
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ac_cv_c_dll_init_fini="no"
14195 rm -f conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
14197 CFLAGS=$ac_wine_try_cflags_saved
14199 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14200 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
14201 if test "$ac_cv_c_dll_init_fini" = "yes"
14202 then
14203 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
14206 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14207 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
14208 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 else
14211 echo '{ global: *; };' >conftest.map
14212 ac_wine_try_cflags_saved=$CFLAGS
14213 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14214 cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h. */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14222 main ()
14226 return 0;
14228 _ACEOF
14229 rm -f conftest.$ac_objext conftest$ac_exeext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14231 (eval $ac_link) 2>conftest.er1
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14250 ac_cv_c_ld_version_scripts="yes"
14251 else
14252 echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14255 ac_cv_c_ld_version_scripts="no"
14257 rm -f conftest.err conftest.$ac_objext \
14258 conftest$ac_exeext conftest.$ac_ext
14259 CFLAGS=$ac_wine_try_cflags_saved
14260 rm -f conftest.map
14262 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14263 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14264 if test "$ac_cv_c_ld_version_scripts" = "yes"
14265 then
14266 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14269 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14270 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14271 if test "${ac_cv_c_export_dynamic+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 else
14274 ac_wine_try_cflags_saved=$CFLAGS
14275 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14276 cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h. */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14284 main ()
14288 return 0;
14290 _ACEOF
14291 rm -f conftest.$ac_objext conftest$ac_exeext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14293 (eval $ac_link) 2>conftest.er1
14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest$ac_exeext'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 ac_cv_c_export_dynamic="yes"
14313 else
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14317 ac_cv_c_export_dynamic="no"
14319 rm -f conftest.err conftest.$ac_objext \
14320 conftest$ac_exeext conftest.$ac_ext
14321 CFLAGS=$ac_wine_try_cflags_saved
14323 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14324 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14325 if test "$ac_cv_c_export_dynamic" = "yes"
14326 then
14327 LDEXECFLAGS="-Wl,--export-dynamic"
14331 case $host_cpu in
14332 *i[3456789]86*)
14333 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
14334 echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
14335 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338 ac_wine_try_cflags_saved=$CFLAGS
14339 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
14340 cat >conftest.$ac_ext <<_ACEOF
14341 /* confdefs.h. */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14348 main ()
14352 return 0;
14354 _ACEOF
14355 rm -f conftest.$ac_objext conftest$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357 (eval $ac_link) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest$ac_exeext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_cv_ld_reloc_exec="yes"
14377 else
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14381 ac_cv_ld_reloc_exec="no"
14383 rm -f conftest.err conftest.$ac_objext \
14384 conftest$ac_exeext conftest.$ac_ext
14385 CFLAGS=$ac_wine_try_cflags_saved
14387 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14388 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14389 if test "$ac_cv_ld_reloc_exec" = "yes"
14390 then
14391 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
14394 esac
14396 else
14397 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14398 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14399 if test "${ac_cv_c_dll_unixware+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 else
14402 ac_wine_try_cflags_saved=$CFLAGS
14403 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14404 cat >conftest.$ac_ext <<_ACEOF
14405 void myfunc() {}
14406 _ACEOF
14407 rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14409 (eval $ac_link) 2>conftest.er1
14410 ac_status=$?
14411 grep -v '^ *+' conftest.er1 >conftest.err
14412 rm -f conftest.er1
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } &&
14416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest$ac_exeext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_cv_c_dll_unixware="yes"
14429 else
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14433 ac_cv_c_dll_unixware="no"
14435 rm -f conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
14437 CFLAGS=$ac_wine_try_cflags_saved
14439 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14440 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14441 if test "$ac_cv_c_dll_unixware" = "yes"
14442 then
14443 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14444 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14446 else
14447 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14448 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14449 if test "${ac_cv_c_dll_macho+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452 ac_wine_try_cflags_saved=$CFLAGS
14453 CFLAGS="$CFLAGS -bundle"
14454 cat >conftest.$ac_ext <<_ACEOF
14455 void myfunc() {}
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_c_dll_macho="yes"
14479 else
14480 echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14483 ac_cv_c_dll_macho="no"
14485 rm -f conftest.err conftest.$ac_objext \
14486 conftest$ac_exeext conftest.$ac_ext
14487 CFLAGS=$ac_wine_try_cflags_saved
14489 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14490 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14491 if test "$ac_cv_c_dll_macho" = "yes"
14492 then
14493 LIBEXT="dylib"
14494 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14495 LDSHARED="\$(CC) -dynamiclib"
14496 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14497 STRIP="$STRIP -u -r"
14498 LDEXECFLAGS="-seg1addr 0x120000"
14500 LDLIBWINEFLAGS="-seg1addr 0x140000"
14502 COREFOUNDATIONLIB="-framework CoreFoundation"
14504 IOKITLIB="-framework IOKit"
14506 IOKITLIB = "$IOKITLIB $COREFOUNDATIONLIB"
14507 else
14508 echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14509 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
14510 if test "${ac_cv_c_dll_hpux+set}" = set; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 else
14513 ac_wine_try_cflags_saved=$CFLAGS
14514 CFLAGS="$CFLAGS -shared"
14515 cat >conftest.$ac_ext <<_ACEOF
14516 void myfunc() {}
14517 _ACEOF
14518 rm -f conftest.$ac_objext conftest$ac_exeext
14519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14520 (eval $ac_link) 2>conftest.er1
14521 ac_status=$?
14522 grep -v '^ *+' conftest.er1 >conftest.err
14523 rm -f conftest.er1
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } &&
14527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; } &&
14533 { ac_try='test -s conftest$ac_exeext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 ac_cv_c_dll_hpux="yes"
14540 else
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14544 ac_cv_c_dll_hpux="no"
14546 rm -f conftest.err conftest.$ac_objext \
14547 conftest$ac_exeext conftest.$ac_ext
14548 CFLAGS=$ac_wine_try_cflags_saved
14550 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14551 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
14552 if test "$ac_cv_c_dll_hpux" = "yes"
14553 then
14554 LIBEXT="sl"
14555 DLLEXT=".sl"
14556 LDDLLFLAGS="-shared -fPIC"
14557 LDSHARED="\$(CC) -shared"
14564 CROSSTEST=""
14566 if test "$cross_compiling" = "no"
14567 then
14568 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14570 # Extract the first word of "$ac_prog", so it can be a program name with args.
14571 set dummy $ac_prog; ac_word=$2
14572 echo "$as_me:$LINENO: checking for $ac_word" >&5
14573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14574 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 else
14577 if test -n "$CROSSCC"; then
14578 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14579 else
14580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14581 for as_dir in $PATH
14583 IFS=$as_save_IFS
14584 test -z "$as_dir" && as_dir=.
14585 for ac_exec_ext in '' $ac_executable_extensions; do
14586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14587 ac_cv_prog_CROSSCC="$ac_prog"
14588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14589 break 2
14591 done
14592 done
14596 CROSSCC=$ac_cv_prog_CROSSCC
14597 if test -n "$CROSSCC"; then
14598 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14599 echo "${ECHO_T}$CROSSCC" >&6
14600 else
14601 echo "$as_me:$LINENO: result: no" >&5
14602 echo "${ECHO_T}no" >&6
14605 test -n "$CROSSCC" && break
14606 done
14607 test -n "$CROSSCC" || CROSSCC="false"
14609 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14611 # Extract the first word of "$ac_prog", so it can be a program name with args.
14612 set dummy $ac_prog; ac_word=$2
14613 echo "$as_me:$LINENO: checking for $ac_word" >&5
14614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14615 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618 if test -n "$DLLTOOL"; then
14619 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14620 else
14621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622 for as_dir in $PATH
14624 IFS=$as_save_IFS
14625 test -z "$as_dir" && as_dir=.
14626 for ac_exec_ext in '' $ac_executable_extensions; do
14627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14628 ac_cv_prog_DLLTOOL="$ac_prog"
14629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14630 break 2
14632 done
14633 done
14637 DLLTOOL=$ac_cv_prog_DLLTOOL
14638 if test -n "$DLLTOOL"; then
14639 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14640 echo "${ECHO_T}$DLLTOOL" >&6
14641 else
14642 echo "$as_me:$LINENO: result: no" >&5
14643 echo "${ECHO_T}no" >&6
14646 test -n "$DLLTOOL" && break
14647 done
14648 test -n "$DLLTOOL" || DLLTOOL="false"
14650 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14652 # Extract the first word of "$ac_prog", so it can be a program name with args.
14653 set dummy $ac_prog; ac_word=$2
14654 echo "$as_me:$LINENO: checking for $ac_word" >&5
14655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14656 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14658 else
14659 if test -n "$CROSSWINDRES"; then
14660 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14661 else
14662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14663 for as_dir in $PATH
14665 IFS=$as_save_IFS
14666 test -z "$as_dir" && as_dir=.
14667 for ac_exec_ext in '' $ac_executable_extensions; do
14668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14669 ac_cv_prog_CROSSWINDRES="$ac_prog"
14670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14671 break 2
14673 done
14674 done
14678 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14679 if test -n "$CROSSWINDRES"; then
14680 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14681 echo "${ECHO_T}$CROSSWINDRES" >&6
14682 else
14683 echo "$as_me:$LINENO: result: no" >&5
14684 echo "${ECHO_T}no" >&6
14687 test -n "$CROSSWINDRES" && break
14688 done
14689 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14691 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14694 esac
14696 if test "$LIBEXT" = "a"; then
14697 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14698 It is currently not possible to build Wine without shared library
14699 (.so) support to allow transparent switch between .so and .dll files.
14700 If you are using Linux, you will need a newer binutils.
14701 " >&5
14702 echo "$as_me: error: could not find a way to build shared libraries.
14703 It is currently not possible to build Wine without shared library
14704 (.so) support to allow transparent switch between .so and .dll files.
14705 If you are using Linux, you will need a newer binutils.
14706 " >&2;}
14707 { (exit 1); exit 1; }; }
14710 case $build_os in
14711 cygwin*|mingw32*)
14712 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14714 darwin*|macosx*)
14715 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14718 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14720 esac
14722 case $host_os in
14723 mingw32*)
14724 CRTLIBS="-lmsvcrt"
14726 SOCKETLIBS="-lws2_32"
14729 esac
14731 case $host_os in
14732 linux*)
14733 case $host_cpu in
14734 *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14736 *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14738 esac
14739 MAIN_BINARY="wine-glibc"
14742 darwin*)
14743 WINE_BINARIES="wine-pthread"
14745 MAIN_BINARY="wine-pthread"
14749 WINE_BINARIES="wine-kthread"
14751 MAIN_BINARY="wine-kthread"
14754 esac
14757 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14758 then
14759 # Extract the first word of "ldd", so it can be a program name with args.
14760 set dummy ldd; ac_word=$2
14761 echo "$as_me:$LINENO: checking for $ac_word" >&5
14762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14763 if test "${ac_cv_path_LDD+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 else
14766 case $LDD in
14767 [\\/]* | ?:[\\/]*)
14768 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14772 as_dummy="/sbin:/usr/sbin:$PATH"
14773 for as_dir in $as_dummy
14775 IFS=$as_save_IFS
14776 test -z "$as_dir" && as_dir=.
14777 for ac_exec_ext in '' $ac_executable_extensions; do
14778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14779 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14781 break 2
14783 done
14784 done
14786 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14788 esac
14790 LDD=$ac_cv_path_LDD
14792 if test -n "$LDD"; then
14793 echo "$as_me:$LINENO: result: $LDD" >&5
14794 echo "${ECHO_T}$LDD" >&6
14795 else
14796 echo "$as_me:$LINENO: result: no" >&5
14797 echo "${ECHO_T}no" >&6
14801 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14802 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14803 if test "${ac_cv_lib_soname_X11+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 else
14806 ac_get_soname_save_LIBS=$LIBS
14807 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14808 cat >conftest.$ac_ext <<_ACEOF
14809 /* confdefs.h. */
14810 _ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14815 /* Override any gcc2 internal prototype to avoid an error. */
14816 #ifdef __cplusplus
14817 extern "C"
14818 #endif
14819 /* We use char because int might match the return type of a gcc2
14820 builtin and then its argument prototype would still apply. */
14821 char XCreateWindow ();
14823 main ()
14825 XCreateWindow ();
14827 return 0;
14829 _ACEOF
14830 rm -f conftest.$ac_objext conftest$ac_exeext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14832 (eval $ac_link) 2>conftest.er1
14833 ac_status=$?
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; } &&
14845 { ac_try='test -s conftest$ac_exeext'
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; }; then
14851 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"`
14852 if test "x$ac_cv_lib_soname_X11" = "x"
14853 then
14854 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14856 else
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14862 rm -f conftest.err conftest.$ac_objext \
14863 conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_get_soname_save_LIBS
14866 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14867 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14868 if test "x$ac_cv_lib_soname_X11" != xNONE
14869 then
14870 cat >>confdefs.h <<_ACEOF
14871 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14872 _ACEOF
14875 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14876 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14877 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880 ac_get_soname_save_LIBS=$LIBS
14881 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14882 cat >conftest.$ac_ext <<_ACEOF
14883 /* confdefs.h. */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h. */
14889 /* Override any gcc2 internal prototype to avoid an error. */
14890 #ifdef __cplusplus
14891 extern "C"
14892 #endif
14893 /* We use char because int might match the return type of a gcc2
14894 builtin and then its argument prototype would still apply. */
14895 char XextCreateExtension ();
14897 main ()
14899 XextCreateExtension ();
14901 return 0;
14903 _ACEOF
14904 rm -f conftest.$ac_objext conftest$ac_exeext
14905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14906 (eval $ac_link) 2>conftest.er1
14907 ac_status=$?
14908 grep -v '^ *+' conftest.er1 >conftest.err
14909 rm -f conftest.er1
14910 cat conftest.err >&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
14913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14916 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; } &&
14919 { ac_try='test -s conftest$ac_exeext'
14920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921 (eval $ac_try) 2>&5
14922 ac_status=$?
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; }; then
14925 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"`
14926 if test "x$ac_cv_lib_soname_Xext" = "x"
14927 then
14928 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14930 else
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14936 rm -f conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938 LIBS=$ac_get_soname_save_LIBS
14940 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14941 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14942 if test "x$ac_cv_lib_soname_Xext" != xNONE
14943 then
14944 cat >>confdefs.h <<_ACEOF
14945 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14946 _ACEOF
14949 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14950 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14951 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14953 else
14954 ac_get_soname_save_LIBS=$LIBS
14955 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14956 cat >conftest.$ac_ext <<_ACEOF
14957 /* confdefs.h. */
14958 _ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h. */
14963 /* Override any gcc2 internal prototype to avoid an error. */
14964 #ifdef __cplusplus
14965 extern "C"
14966 #endif
14967 /* We use char because int might match the return type of a gcc2
14968 builtin and then its argument prototype would still apply. */
14969 char XOpenDevice ();
14971 main ()
14973 XOpenDevice ();
14975 return 0;
14977 _ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14980 (eval $ac_link) 2>conftest.er1
14981 ac_status=$?
14982 grep -v '^ *+' conftest.er1 >conftest.err
14983 rm -f conftest.er1
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } &&
14987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; } &&
14993 { ac_try='test -s conftest$ac_exeext'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
14999 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"`
15000 if test "x$ac_cv_lib_soname_Xi" = "x"
15001 then
15002 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
15004 else
15005 echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15008 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
15010 rm -f conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15012 LIBS=$ac_get_soname_save_LIBS
15014 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
15015 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
15016 if test "x$ac_cv_lib_soname_Xi" != xNONE
15017 then
15018 cat >>confdefs.h <<_ACEOF
15019 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
15020 _ACEOF
15023 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
15024 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
15025 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 else
15028 ac_get_soname_save_LIBS=$LIBS
15029 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15030 cat >conftest.$ac_ext <<_ACEOF
15031 /* confdefs.h. */
15032 _ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15037 /* Override any gcc2 internal prototype to avoid an error. */
15038 #ifdef __cplusplus
15039 extern "C"
15040 #endif
15041 /* We use char because int might match the return type of a gcc2
15042 builtin and then its argument prototype would still apply. */
15043 char XRenderQueryExtension ();
15045 main ()
15047 XRenderQueryExtension ();
15049 return 0;
15051 _ACEOF
15052 rm -f conftest.$ac_objext conftest$ac_exeext
15053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15054 (eval $ac_link) 2>conftest.er1
15055 ac_status=$?
15056 grep -v '^ *+' conftest.er1 >conftest.err
15057 rm -f conftest.er1
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
15061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; } &&
15067 { ac_try='test -s conftest$ac_exeext'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"`
15074 if test "x$ac_cv_lib_soname_Xrender" = "x"
15075 then
15076 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
15078 else
15079 echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15082 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
15084 rm -f conftest.err conftest.$ac_objext \
15085 conftest$ac_exeext conftest.$ac_ext
15086 LIBS=$ac_get_soname_save_LIBS
15088 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
15089 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
15090 if test "x$ac_cv_lib_soname_Xrender" != xNONE
15091 then
15092 cat >>confdefs.h <<_ACEOF
15093 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
15094 _ACEOF
15097 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
15098 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
15099 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102 ac_get_soname_save_LIBS=$LIBS
15103 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15104 cat >conftest.$ac_ext <<_ACEOF
15105 /* confdefs.h. */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15111 /* Override any gcc2 internal prototype to avoid an error. */
15112 #ifdef __cplusplus
15113 extern "C"
15114 #endif
15115 /* We use char because int might match the return type of a gcc2
15116 builtin and then its argument prototype would still apply. */
15117 char XRRQueryExtension ();
15119 main ()
15121 XRRQueryExtension ();
15123 return 0;
15125 _ACEOF
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15128 (eval $ac_link) 2>conftest.er1
15129 ac_status=$?
15130 grep -v '^ *+' conftest.er1 >conftest.err
15131 rm -f conftest.er1
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
15135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; } &&
15141 { ac_try='test -s conftest$ac_exeext'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15144 ac_status=$?
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
15147 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"`
15148 if test "x$ac_cv_lib_soname_Xrandr" = "x"
15149 then
15150 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
15152 else
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
15158 rm -f conftest.err conftest.$ac_objext \
15159 conftest$ac_exeext conftest.$ac_ext
15160 LIBS=$ac_get_soname_save_LIBS
15162 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
15163 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
15164 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
15165 then
15166 cat >>confdefs.h <<_ACEOF
15167 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
15168 _ACEOF
15171 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
15172 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
15173 if test "${ac_cv_lib_soname_freetype+set}" = set; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 else
15176 ac_get_soname_save_LIBS=$LIBS
15177 LIBS="-lfreetype $X_LIBS $LIBS"
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. */
15185 /* Override any gcc2 internal prototype to avoid an error. */
15186 #ifdef __cplusplus
15187 extern "C"
15188 #endif
15189 /* We use char because int might match the return type of a gcc2
15190 builtin and then its argument prototype would still apply. */
15191 char FT_Init_FreeType ();
15193 main ()
15195 FT_Init_FreeType ();
15197 return 0;
15199 _ACEOF
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15202 (eval $ac_link) 2>conftest.er1
15203 ac_status=$?
15204 grep -v '^ *+' conftest.er1 >conftest.err
15205 rm -f conftest.er1
15206 cat conftest.err >&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } &&
15209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15212 ac_status=$?
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; } &&
15215 { ac_try='test -s conftest$ac_exeext'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }; then
15221 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"`
15222 if test "x$ac_cv_lib_soname_freetype" = "x"
15223 then
15224 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15226 else
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15232 rm -f conftest.err conftest.$ac_objext \
15233 conftest$ac_exeext conftest.$ac_ext
15234 LIBS=$ac_get_soname_save_LIBS
15236 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15237 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
15238 if test "x$ac_cv_lib_soname_freetype" != xNONE
15239 then
15240 cat >>confdefs.h <<_ACEOF
15241 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15242 _ACEOF
15245 echo "$as_me:$LINENO: checking for -lGL soname" >&5
15246 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
15247 if test "${ac_cv_lib_soname_GL+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250 ac_get_soname_save_LIBS=$LIBS
15251 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15252 cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h. */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15259 /* Override any gcc2 internal prototype to avoid an error. */
15260 #ifdef __cplusplus
15261 extern "C"
15262 #endif
15263 /* We use char because int might match the return type of a gcc2
15264 builtin and then its argument prototype would still apply. */
15265 char glXQueryExtension ();
15267 main ()
15269 glXQueryExtension ();
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_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"`
15296 if test "x$ac_cv_lib_soname_GL" = "x"
15297 then
15298 ac_cv_lib_soname_GL="libGL.$LIBEXT"
15300 else
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 ac_cv_lib_soname_GL="libGL.$LIBEXT"
15306 rm -f conftest.err conftest.$ac_objext \
15307 conftest$ac_exeext conftest.$ac_ext
15308 LIBS=$ac_get_soname_save_LIBS
15310 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15311 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15312 if test "x$ac_cv_lib_soname_GL" != xNONE
15313 then
15314 cat >>confdefs.h <<_ACEOF
15315 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15316 _ACEOF
15319 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
15320 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
15321 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15323 else
15324 ac_get_soname_save_LIBS=$LIBS
15325 LIBS="-ltxc_dxtn $LIBS"
15326 cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h. */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15333 /* Override any gcc2 internal prototype to avoid an error. */
15334 #ifdef __cplusplus
15335 extern "C"
15336 #endif
15337 /* We use char because int might match the return type of a gcc2
15338 builtin and then its argument prototype would still apply. */
15339 char fetch_2d_texel_rgba_dxt1 ();
15341 main ()
15343 fetch_2d_texel_rgba_dxt1 ();
15345 return 0;
15347 _ACEOF
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15350 (eval $ac_link) 2>conftest.er1
15351 ac_status=$?
15352 grep -v '^ *+' conftest.er1 >conftest.err
15353 rm -f conftest.er1
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } &&
15357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15359 (eval $ac_try) 2>&5
15360 ac_status=$?
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; } &&
15363 { ac_try='test -s conftest$ac_exeext'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"`
15370 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
15371 then
15372 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15374 else
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15378 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15380 rm -f conftest.err conftest.$ac_objext \
15381 conftest$ac_exeext conftest.$ac_ext
15382 LIBS=$ac_get_soname_save_LIBS
15384 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15385 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
15386 if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
15387 then
15388 cat >>confdefs.h <<_ACEOF
15389 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15390 _ACEOF
15393 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15394 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15395 if test "${ac_cv_lib_soname_cups+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 else
15398 ac_get_soname_save_LIBS=$LIBS
15399 LIBS="-lcups $LIBS"
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h. */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15407 /* Override any gcc2 internal prototype to avoid an error. */
15408 #ifdef __cplusplus
15409 extern "C"
15410 #endif
15411 /* We use char because int might match the return type of a gcc2
15412 builtin and then its argument prototype would still apply. */
15413 char cupsGetDefault ();
15415 main ()
15417 cupsGetDefault ();
15419 return 0;
15421 _ACEOF
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15424 (eval $ac_link) 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest$ac_exeext'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"`
15444 if test "x$ac_cv_lib_soname_cups" = "x"
15445 then
15446 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15448 else
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15454 rm -f conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 LIBS=$ac_get_soname_save_LIBS
15458 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15459 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15460 if test "x$ac_cv_lib_soname_cups" != xNONE
15461 then
15462 cat >>confdefs.h <<_ACEOF
15463 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15464 _ACEOF
15467 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15468 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15469 if test "${ac_cv_lib_soname_jack+set}" = set; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15471 else
15472 ac_get_soname_save_LIBS=$LIBS
15473 LIBS="-ljack $LIBS"
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15481 /* Override any gcc2 internal prototype to avoid an error. */
15482 #ifdef __cplusplus
15483 extern "C"
15484 #endif
15485 /* We use char because int might match the return type of a gcc2
15486 builtin and then its argument prototype would still apply. */
15487 char jack_client_new ();
15489 main ()
15491 jack_client_new ();
15493 return 0;
15495 _ACEOF
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15498 (eval $ac_link) 2>conftest.er1
15499 ac_status=$?
15500 grep -v '^ *+' conftest.er1 >conftest.err
15501 rm -f conftest.er1
15502 cat conftest.err >&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } &&
15505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15508 ac_status=$?
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; } &&
15511 { ac_try='test -s conftest$ac_exeext'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15517 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"`
15518 if test "x$ac_cv_lib_soname_jack" = "x"
15519 then
15520 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15522 else
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15528 rm -f conftest.err conftest.$ac_objext \
15529 conftest$ac_exeext conftest.$ac_ext
15530 LIBS=$ac_get_soname_save_LIBS
15532 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15533 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15534 if test "x$ac_cv_lib_soname_jack" != xNONE
15535 then
15536 cat >>confdefs.h <<_ACEOF
15537 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15538 _ACEOF
15541 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15542 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15543 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546 ac_get_soname_save_LIBS=$LIBS
15547 LIBS="-lfontconfig $LIBS"
15548 cat >conftest.$ac_ext <<_ACEOF
15549 /* confdefs.h. */
15550 _ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15555 /* Override any gcc2 internal prototype to avoid an error. */
15556 #ifdef __cplusplus
15557 extern "C"
15558 #endif
15559 /* We use char because int might match the return type of a gcc2
15560 builtin and then its argument prototype would still apply. */
15561 char FcInit ();
15563 main ()
15565 FcInit ();
15567 return 0;
15569 _ACEOF
15570 rm -f conftest.$ac_objext conftest$ac_exeext
15571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15572 (eval $ac_link) 2>conftest.er1
15573 ac_status=$?
15574 grep -v '^ *+' conftest.er1 >conftest.err
15575 rm -f conftest.er1
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
15579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest$ac_exeext'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"`
15592 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15593 then
15594 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15596 else
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15602 rm -f conftest.err conftest.$ac_objext \
15603 conftest$ac_exeext conftest.$ac_ext
15604 LIBS=$ac_get_soname_save_LIBS
15606 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15607 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15608 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15609 then
15610 cat >>confdefs.h <<_ACEOF
15611 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15612 _ACEOF
15615 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15616 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15617 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 else
15620 ac_get_soname_save_LIBS=$LIBS
15621 LIBS="-lssl $LIBS"
15622 cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h. */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15629 /* Override any gcc2 internal prototype to avoid an error. */
15630 #ifdef __cplusplus
15631 extern "C"
15632 #endif
15633 /* We use char because int might match the return type of a gcc2
15634 builtin and then its argument prototype would still apply. */
15635 char SSL_library_init ();
15637 main ()
15639 SSL_library_init ();
15641 return 0;
15643 _ACEOF
15644 rm -f conftest.$ac_objext conftest$ac_exeext
15645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15646 (eval $ac_link) 2>conftest.er1
15647 ac_status=$?
15648 grep -v '^ *+' conftest.er1 >conftest.err
15649 rm -f conftest.er1
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; } &&
15659 { ac_try='test -s conftest$ac_exeext'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }; then
15665 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"`
15666 if test "x$ac_cv_lib_soname_ssl" = "x"
15667 then
15668 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15670 else
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15676 rm -f conftest.err conftest.$ac_objext \
15677 conftest$ac_exeext conftest.$ac_ext
15678 LIBS=$ac_get_soname_save_LIBS
15680 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15681 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15682 if test "x$ac_cv_lib_soname_ssl" != xNONE
15683 then
15684 cat >>confdefs.h <<_ACEOF
15685 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15686 _ACEOF
15689 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15690 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15691 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 else
15694 ac_get_soname_save_LIBS=$LIBS
15695 LIBS="-lcrypto $LIBS"
15696 cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h. */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15703 /* Override any gcc2 internal prototype to avoid an error. */
15704 #ifdef __cplusplus
15705 extern "C"
15706 #endif
15707 /* We use char because int might match the return type of a gcc2
15708 builtin and then its argument prototype would still apply. */
15709 char BIO_new_socket ();
15711 main ()
15713 BIO_new_socket ();
15715 return 0;
15717 _ACEOF
15718 rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15720 (eval $ac_link) 2>conftest.er1
15721 ac_status=$?
15722 grep -v '^ *+' conftest.er1 >conftest.err
15723 rm -f conftest.er1
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try='test -s conftest$ac_exeext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"`
15740 if test "x$ac_cv_lib_soname_crypto" = "x"
15741 then
15742 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15744 else
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15750 rm -f conftest.err conftest.$ac_objext \
15751 conftest$ac_exeext conftest.$ac_ext
15752 LIBS=$ac_get_soname_save_LIBS
15754 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15755 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15756 if test "x$ac_cv_lib_soname_crypto" != xNONE
15757 then
15758 cat >>confdefs.h <<_ACEOF
15759 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15760 _ACEOF
15763 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15764 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15765 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 else
15768 ac_get_soname_save_LIBS=$LIBS
15769 LIBS="-lncurses $LIBS"
15770 cat >conftest.$ac_ext <<_ACEOF
15771 /* confdefs.h. */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h. */
15777 /* Override any gcc2 internal prototype to avoid an error. */
15778 #ifdef __cplusplus
15779 extern "C"
15780 #endif
15781 /* We use char because int might match the return type of a gcc2
15782 builtin and then its argument prototype would still apply. */
15783 char waddch ();
15785 main ()
15787 waddch ();
15789 return 0;
15791 _ACEOF
15792 rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15794 (eval $ac_link) 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } &&
15801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15803 (eval $ac_try) 2>&5
15804 ac_status=$?
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; } &&
15807 { ac_try='test -s conftest$ac_exeext'
15808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5
15810 ac_status=$?
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; }; then
15813 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"`
15814 if test "x$ac_cv_lib_soname_ncurses" = "x"
15815 then
15816 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15818 else
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15822 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15824 rm -f conftest.err conftest.$ac_objext \
15825 conftest$ac_exeext conftest.$ac_ext
15826 LIBS=$ac_get_soname_save_LIBS
15828 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15829 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15830 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15831 then
15832 cat >>confdefs.h <<_ACEOF
15833 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15834 _ACEOF
15837 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15838 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15839 if test "${ac_cv_lib_soname_curses+set}" = set; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 else
15842 ac_get_soname_save_LIBS=$LIBS
15843 LIBS="-lcurses $LIBS"
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h. */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15851 /* Override any gcc2 internal prototype to avoid an error. */
15852 #ifdef __cplusplus
15853 extern "C"
15854 #endif
15855 /* We use char because int might match the return type of a gcc2
15856 builtin and then its argument prototype would still apply. */
15857 char waddch ();
15859 main ()
15861 waddch ();
15863 return 0;
15865 _ACEOF
15866 rm -f conftest.$ac_objext conftest$ac_exeext
15867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15868 (eval $ac_link) 2>conftest.er1
15869 ac_status=$?
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
15875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; } &&
15881 { ac_try='test -s conftest$ac_exeext'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"`
15888 if test "x$ac_cv_lib_soname_curses" = "x"
15889 then
15890 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15892 else
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15898 rm -f conftest.err conftest.$ac_objext \
15899 conftest$ac_exeext conftest.$ac_ext
15900 LIBS=$ac_get_soname_save_LIBS
15902 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15903 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15904 if test "x$ac_cv_lib_soname_curses" != xNONE
15905 then
15906 cat >>confdefs.h <<_ACEOF
15907 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15908 _ACEOF
15911 echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15912 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15913 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15915 else
15916 ac_get_soname_save_LIBS=$LIBS
15917 LIBS="-ljpeg $LIBS"
15918 cat >conftest.$ac_ext <<_ACEOF
15919 /* confdefs.h. */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15925 /* Override any gcc2 internal prototype to avoid an error. */
15926 #ifdef __cplusplus
15927 extern "C"
15928 #endif
15929 /* We use char because int might match the return type of a gcc2
15930 builtin and then its argument prototype would still apply. */
15931 char jpeg_start_decompress ();
15933 main ()
15935 jpeg_start_decompress ();
15937 return 0;
15939 _ACEOF
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942 (eval $ac_link) 2>conftest.er1
15943 ac_status=$?
15944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; } &&
15955 { ac_try='test -s conftest$ac_exeext'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15961 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"`
15962 if test "x$ac_cv_lib_soname_jpeg" = "x"
15963 then
15964 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15966 else
15967 echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15972 rm -f conftest.err conftest.$ac_objext \
15973 conftest$ac_exeext conftest.$ac_ext
15974 LIBS=$ac_get_soname_save_LIBS
15976 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15977 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15978 if test "x$ac_cv_lib_soname_jpeg" != xNONE
15979 then
15980 cat >>confdefs.h <<_ACEOF
15981 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15982 _ACEOF
15985 echo "$as_me:$LINENO: checking for -lungif soname" >&5
15986 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15987 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990 ac_get_soname_save_LIBS=$LIBS
15991 LIBS="-lungif $LIBS"
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h. */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15999 /* Override any gcc2 internal prototype to avoid an error. */
16000 #ifdef __cplusplus
16001 extern "C"
16002 #endif
16003 /* We use char because int might match the return type of a gcc2
16004 builtin and then its argument prototype would still apply. */
16005 char DGifOpen ();
16007 main ()
16009 DGifOpen ();
16011 return 0;
16013 _ACEOF
16014 rm -f conftest.$ac_objext conftest$ac_exeext
16015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16016 (eval $ac_link) 2>conftest.er1
16017 ac_status=$?
16018 grep -v '^ *+' conftest.er1 >conftest.err
16019 rm -f conftest.er1
16020 cat conftest.err >&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } &&
16023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest$ac_exeext'
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"`
16036 if test "x$ac_cv_lib_soname_ungif" = "x"
16037 then
16038 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
16040 else
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
16046 rm -f conftest.err conftest.$ac_objext \
16047 conftest$ac_exeext conftest.$ac_ext
16048 LIBS=$ac_get_soname_save_LIBS
16050 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
16051 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
16052 if test "x$ac_cv_lib_soname_ungif" != xNONE
16053 then
16054 cat >>confdefs.h <<_ACEOF
16055 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
16056 _ACEOF
16059 echo "$as_me:$LINENO: checking for -lgif soname" >&5
16060 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
16061 if test "${ac_cv_lib_soname_gif+set}" = set; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 else
16064 ac_get_soname_save_LIBS=$LIBS
16065 LIBS="-lgif $LIBS"
16066 cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h. */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16073 /* Override any gcc2 internal prototype to avoid an error. */
16074 #ifdef __cplusplus
16075 extern "C"
16076 #endif
16077 /* We use char because int might match the return type of a gcc2
16078 builtin and then its argument prototype would still apply. */
16079 char DGifOpen ();
16081 main ()
16083 DGifOpen ();
16085 return 0;
16087 _ACEOF
16088 rm -f conftest.$ac_objext conftest$ac_exeext
16089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16090 (eval $ac_link) 2>conftest.er1
16091 ac_status=$?
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
16097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest$ac_exeext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"`
16110 if test "x$ac_cv_lib_soname_gif" = "x"
16111 then
16112 ac_cv_lib_soname_gif="libgif.$LIBEXT"
16114 else
16115 echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16118 ac_cv_lib_soname_gif="libgif.$LIBEXT"
16120 rm -f conftest.err conftest.$ac_objext \
16121 conftest$ac_exeext conftest.$ac_ext
16122 LIBS=$ac_get_soname_save_LIBS
16124 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
16125 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
16126 if test "x$ac_cv_lib_soname_gif" != xNONE
16127 then
16128 cat >>confdefs.h <<_ACEOF
16129 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
16130 _ACEOF
16133 echo "$as_me:$LINENO: checking for -llcms soname" >&5
16134 echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6
16135 if test "${ac_cv_lib_soname_lcms+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 else
16138 ac_get_soname_save_LIBS=$LIBS
16139 LIBS="-llcms $LIBS"
16140 cat >conftest.$ac_ext <<_ACEOF
16141 /* confdefs.h. */
16142 _ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h. */
16147 /* Override any gcc2 internal prototype to avoid an error. */
16148 #ifdef __cplusplus
16149 extern "C"
16150 #endif
16151 /* We use char because int might match the return type of a gcc2
16152 builtin and then its argument prototype would still apply. */
16153 char cmsOpenProfileFromFile ();
16155 main ()
16157 cmsOpenProfileFromFile ();
16159 return 0;
16161 _ACEOF
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164 (eval $ac_link) 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest$ac_exeext'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^ ]*\).*$/\1/"`
16184 if test "x$ac_cv_lib_soname_lcms" = "x"
16185 then
16186 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
16188 else
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
16194 rm -f conftest.err conftest.$ac_objext \
16195 conftest$ac_exeext conftest.$ac_ext
16196 LIBS=$ac_get_soname_save_LIBS
16198 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5
16199 echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6
16200 if test "x$ac_cv_lib_soname_lcms" != xNONE
16201 then
16202 cat >>confdefs.h <<_ACEOF
16203 #define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms"
16204 _ACEOF
16210 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16211 # for constant arguments. Useless!
16212 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16213 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16214 if test "${ac_cv_working_alloca_h+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16216 else
16217 cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h. */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16223 #include <alloca.h>
16225 main ()
16227 char *p = (char *) alloca (2 * sizeof (int));
16229 return 0;
16231 _ACEOF
16232 rm -f conftest.$ac_objext conftest$ac_exeext
16233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16234 (eval $ac_link) 2>conftest.er1
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243 (eval $ac_try) 2>&5
16244 ac_status=$?
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; } &&
16247 { ac_try='test -s conftest$ac_exeext'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; }; then
16253 ac_cv_working_alloca_h=yes
16254 else
16255 echo "$as_me: failed program was:" >&5
16256 sed 's/^/| /' conftest.$ac_ext >&5
16258 ac_cv_working_alloca_h=no
16260 rm -f conftest.err conftest.$ac_objext \
16261 conftest$ac_exeext conftest.$ac_ext
16263 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16264 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16265 if test $ac_cv_working_alloca_h = yes; then
16267 cat >>confdefs.h <<\_ACEOF
16268 #define HAVE_ALLOCA_H 1
16269 _ACEOF
16273 echo "$as_me:$LINENO: checking for alloca" >&5
16274 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16275 if test "${ac_cv_func_alloca_works+set}" = set; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16277 else
16278 cat >conftest.$ac_ext <<_ACEOF
16279 /* confdefs.h. */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16284 #ifdef __GNUC__
16285 # define alloca __builtin_alloca
16286 #else
16287 # ifdef _MSC_VER
16288 # include <malloc.h>
16289 # define alloca _alloca
16290 # else
16291 # if HAVE_ALLOCA_H
16292 # include <alloca.h>
16293 # else
16294 # ifdef _AIX
16295 #pragma alloca
16296 # else
16297 # ifndef alloca /* predefined by HP cc +Olibcalls */
16298 char *alloca ();
16299 # endif
16300 # endif
16301 # endif
16302 # endif
16303 #endif
16306 main ()
16308 char *p = (char *) alloca (1);
16310 return 0;
16312 _ACEOF
16313 rm -f conftest.$ac_objext conftest$ac_exeext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16315 (eval $ac_link) 2>conftest.er1
16316 ac_status=$?
16317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
16322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; } &&
16328 { ac_try='test -s conftest$ac_exeext'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_func_alloca_works=yes
16335 else
16336 echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16339 ac_cv_func_alloca_works=no
16341 rm -f conftest.err conftest.$ac_objext \
16342 conftest$ac_exeext conftest.$ac_ext
16344 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16345 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16347 if test $ac_cv_func_alloca_works = yes; then
16349 cat >>confdefs.h <<\_ACEOF
16350 #define HAVE_ALLOCA 1
16351 _ACEOF
16353 else
16354 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16355 # that cause trouble. Some versions do not even contain alloca or
16356 # contain a buggy version. If you still want to use their alloca,
16357 # use ar to extract alloca.o from them instead of compiling alloca.c.
16359 ALLOCA=alloca.$ac_objext
16361 cat >>confdefs.h <<\_ACEOF
16362 #define C_ALLOCA 1
16363 _ACEOF
16366 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16367 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16368 if test "${ac_cv_os_cray+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16370 else
16371 cat >conftest.$ac_ext <<_ACEOF
16372 /* confdefs.h. */
16373 _ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 #if defined(CRAY) && ! defined(CRAY2)
16378 webecray
16379 #else
16380 wenotbecray
16381 #endif
16383 _ACEOF
16384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16385 $EGREP "webecray" >/dev/null 2>&1; then
16386 ac_cv_os_cray=yes
16387 else
16388 ac_cv_os_cray=no
16390 rm -f conftest*
16393 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16394 echo "${ECHO_T}$ac_cv_os_cray" >&6
16395 if test $ac_cv_os_cray = yes; then
16396 for ac_func in _getb67 GETB67 getb67; do
16397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16398 echo "$as_me:$LINENO: checking for $ac_func" >&5
16399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16400 if eval "test \"\${$as_ac_var+set}\" = set"; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403 cat >conftest.$ac_ext <<_ACEOF
16404 /* confdefs.h. */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16411 #define $ac_func innocuous_$ac_func
16413 /* System header to define __stub macros and hopefully few prototypes,
16414 which can conflict with char $ac_func (); below.
16415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16416 <limits.h> exists even on freestanding compilers. */
16418 #ifdef __STDC__
16419 # include <limits.h>
16420 #else
16421 # include <assert.h>
16422 #endif
16424 #undef $ac_func
16426 /* Override any gcc2 internal prototype to avoid an error. */
16427 #ifdef __cplusplus
16428 extern "C"
16430 #endif
16431 /* We use char because int might match the return type of a gcc2
16432 builtin and then its argument prototype would still apply. */
16433 char $ac_func ();
16434 /* The GNU C library defines this for functions which it implements
16435 to always fail with ENOSYS. Some functions are actually named
16436 something starting with __ and the normal name is an alias. */
16437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16438 choke me
16439 #else
16440 char (*f) () = $ac_func;
16441 #endif
16442 #ifdef __cplusplus
16444 #endif
16447 main ()
16449 return f != $ac_func;
16451 return 0;
16453 _ACEOF
16454 rm -f conftest.$ac_objext conftest$ac_exeext
16455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16456 (eval $ac_link) 2>conftest.er1
16457 ac_status=$?
16458 grep -v '^ *+' conftest.er1 >conftest.err
16459 rm -f conftest.er1
16460 cat conftest.err >&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } &&
16463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; } &&
16469 { ac_try='test -s conftest$ac_exeext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 eval "$as_ac_var=yes"
16476 else
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 eval "$as_ac_var=no"
16482 rm -f conftest.err conftest.$ac_objext \
16483 conftest$ac_exeext conftest.$ac_ext
16485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16487 if test `eval echo '${'$as_ac_var'}'` = yes; then
16489 cat >>confdefs.h <<_ACEOF
16490 #define CRAY_STACKSEG_END $ac_func
16491 _ACEOF
16493 break
16496 done
16499 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16500 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16501 if test "${ac_cv_c_stack_direction+set}" = set; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 else
16504 if test "$cross_compiling" = yes; then
16505 ac_cv_c_stack_direction=0
16506 else
16507 cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h. */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16514 find_stack_direction ()
16516 static char *addr = 0;
16517 auto char dummy;
16518 if (addr == 0)
16520 addr = &dummy;
16521 return find_stack_direction ();
16523 else
16524 return (&dummy > addr) ? 1 : -1;
16528 main ()
16530 exit (find_stack_direction () < 0);
16532 _ACEOF
16533 rm -f conftest$ac_exeext
16534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16535 (eval $ac_link) 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16544 ac_cv_c_stack_direction=1
16545 else
16546 echo "$as_me: program exited with status $ac_status" >&5
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 ( exit $ac_status )
16551 ac_cv_c_stack_direction=-1
16553 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16556 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16557 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16559 cat >>confdefs.h <<_ACEOF
16560 #define STACK_DIRECTION $ac_cv_c_stack_direction
16561 _ACEOF
16628 for ac_func in \
16629 _lwp_create \
16630 _lwp_self \
16631 _pclose \
16632 _popen \
16633 _snprintf \
16634 _spawnvp \
16635 _stricmp \
16636 _strnicmp \
16637 _vsnprintf \
16638 chsize \
16639 clone \
16640 epoll_create \
16641 ffs \
16642 finite \
16643 fork \
16644 fpclass \
16645 fstatfs \
16646 fstatvfs \
16647 ftruncate \
16648 ftruncate64 \
16649 futimes \
16650 getnetbyaddr \
16651 getnetbyname \
16652 getopt_long \
16653 getpagesize \
16654 getprotobyname \
16655 getprotobynumber \
16656 getpwuid \
16657 getservbyport \
16658 gettid \
16659 gettimeofday \
16660 getuid \
16661 inet_network \
16662 lseek64 \
16663 lstat \
16664 memmove \
16665 mmap \
16666 pclose \
16667 popen \
16668 pread \
16669 pwrite \
16670 readlink \
16671 rfork \
16672 sched_yield \
16673 select \
16674 sendmsg \
16675 settimeofday \
16676 sigaltstack \
16677 snprintf \
16678 spawnvp \
16679 statfs \
16680 statvfs \
16681 strcasecmp \
16682 strerror \
16683 strncasecmp \
16684 tcgetattr \
16685 timegm \
16686 usleep \
16687 vfscanf \
16688 vsnprintf \
16689 wait4 \
16690 waitpid \
16693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16694 echo "$as_me:$LINENO: checking for $ac_func" >&5
16695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16696 if eval "test \"\${$as_ac_var+set}\" = set"; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h. */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16707 #define $ac_func innocuous_$ac_func
16709 /* System header to define __stub macros and hopefully few prototypes,
16710 which can conflict with char $ac_func (); below.
16711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16712 <limits.h> exists even on freestanding compilers. */
16714 #ifdef __STDC__
16715 # include <limits.h>
16716 #else
16717 # include <assert.h>
16718 #endif
16720 #undef $ac_func
16722 /* Override any gcc2 internal prototype to avoid an error. */
16723 #ifdef __cplusplus
16724 extern "C"
16726 #endif
16727 /* We use char because int might match the return type of a gcc2
16728 builtin and then its argument prototype would still apply. */
16729 char $ac_func ();
16730 /* The GNU C library defines this for functions which it implements
16731 to always fail with ENOSYS. Some functions are actually named
16732 something starting with __ and the normal name is an alias. */
16733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16734 choke me
16735 #else
16736 char (*f) () = $ac_func;
16737 #endif
16738 #ifdef __cplusplus
16740 #endif
16743 main ()
16745 return f != $ac_func;
16747 return 0;
16749 _ACEOF
16750 rm -f conftest.$ac_objext conftest$ac_exeext
16751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16752 (eval $ac_link) 2>conftest.er1
16753 ac_status=$?
16754 grep -v '^ *+' conftest.er1 >conftest.err
16755 rm -f conftest.er1
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try='test -s conftest$ac_exeext'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 eval "$as_ac_var=yes"
16772 else
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 eval "$as_ac_var=no"
16778 rm -f conftest.err conftest.$ac_objext \
16779 conftest$ac_exeext conftest.$ac_ext
16781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16783 if test `eval echo '${'$as_ac_var'}'` = yes; then
16784 cat >>confdefs.h <<_ACEOF
16785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16786 _ACEOF
16789 done
16795 for ac_header in sys/mount.h sys/user.h
16797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16798 echo "$as_me:$LINENO: checking for $ac_header" >&5
16799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 else
16803 cat >conftest.$ac_ext <<_ACEOF
16804 /* confdefs.h. */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 #include <sys/types.h>
16810 #if HAVE_SYS_PARAM_H
16811 # include <sys/param.h>
16812 #endif
16814 #include <$ac_header>
16815 _ACEOF
16816 rm -f conftest.$ac_objext
16817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16818 (eval $ac_compile) 2>conftest.er1
16819 ac_status=$?
16820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 eval "$as_ac_Header=yes"
16838 else
16839 echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16842 eval "$as_ac_Header=no"
16844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16849 cat >>confdefs.h <<_ACEOF
16850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16851 _ACEOF
16855 done
16863 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16866 echo "$as_me:$LINENO: checking for $ac_header" >&5
16867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 #include <sys/types.h>
16878 #if HAVE_SYS_SOCKET_H
16879 # include <sys/socket.h>
16880 #endif
16882 #include <$ac_header>
16883 _ACEOF
16884 rm -f conftest.$ac_objext
16885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886 (eval $ac_compile) 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; } &&
16899 { ac_try='test -s conftest.$ac_objext'
16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16902 ac_status=$?
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; }; then
16905 eval "$as_ac_Header=yes"
16906 else
16907 echo "$as_me: failed program was:" >&5
16908 sed 's/^/| /' conftest.$ac_ext >&5
16910 eval "$as_ac_Header=no"
16912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16917 cat >>confdefs.h <<_ACEOF
16918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16919 _ACEOF
16923 done
16927 for ac_header in resolv.h
16929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16930 echo "$as_me:$LINENO: checking for $ac_header" >&5
16931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16933 echo $ECHO_N "(cached) $ECHO_C" >&6
16934 else
16935 cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h. */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16941 #include <sys/types.h>
16942 #if HAVE_SYS_SOCKET_H
16943 # include <sys/socket.h>
16944 #endif
16945 #if HAVE_NETINET_IN_H
16946 # include <netinet/in.h>
16947 #endif
16948 #if HAVE_ARPA_NAMESER_H
16949 # include <arpa/nameser.h>
16950 #endif
16952 #include <$ac_header>
16953 _ACEOF
16954 rm -f conftest.$ac_objext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16956 (eval $ac_compile) 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest.$ac_objext'
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 eval "$as_ac_Header=yes"
16976 else
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 eval "$as_ac_Header=no"
16982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16987 cat >>confdefs.h <<_ACEOF
16988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16989 _ACEOF
16993 done
16997 for ac_header in netinet/ip.h
16999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17000 echo "$as_me:$LINENO: checking for $ac_header" >&5
17001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17003 echo $ECHO_N "(cached) $ECHO_C" >&6
17004 else
17005 cat >conftest.$ac_ext <<_ACEOF
17006 /* confdefs.h. */
17007 _ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17011 #include <sys/types.h>
17012 #if HAVE_SYS_SOCKET_H
17013 # include <sys/socket.h>
17014 #endif
17015 #if HAVE_NETINET_IN_SYSTM_H
17016 # include <netinet/in_systm.h>
17017 #endif
17019 #include <$ac_header>
17020 _ACEOF
17021 rm -f conftest.$ac_objext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17023 (eval $ac_compile) 2>conftest.er1
17024 ac_status=$?
17025 grep -v '^ *+' conftest.er1 >conftest.err
17026 rm -f conftest.er1
17027 cat conftest.err >&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); } &&
17030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; } &&
17036 { ac_try='test -s conftest.$ac_objext'
17037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 eval "$as_ac_Header=yes"
17043 else
17044 echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17047 eval "$as_ac_Header=no"
17049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17054 cat >>confdefs.h <<_ACEOF
17055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17056 _ACEOF
17060 done
17064 for ac_header in ucontext.h
17066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17067 echo "$as_me:$LINENO: checking for $ac_header" >&5
17068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072 cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h. */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 #include <signal.h>
17080 #include <$ac_header>
17081 _ACEOF
17082 rm -f conftest.$ac_objext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17084 (eval $ac_compile) 2>conftest.er1
17085 ac_status=$?
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; } &&
17097 { ac_try='test -s conftest.$ac_objext'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 eval "$as_ac_Header=yes"
17104 else
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17108 eval "$as_ac_Header=no"
17110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17115 cat >>confdefs.h <<_ACEOF
17116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17117 _ACEOF
17121 done
17125 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
17126 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
17127 if test "${ac_cv_c_ipx_gnu+set}" = set; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130 cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h. */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17136 #include <sys/types.h>
17137 #ifdef HAVE_SYS_SOCKET_H
17138 # include <sys/socket.h>
17139 #endif
17140 #include <netipx/ipx.h>
17142 main ()
17144 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17146 return 0;
17148 _ACEOF
17149 rm -f conftest.$ac_objext
17150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17151 (eval $ac_compile) 2>conftest.er1
17152 ac_status=$?
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17170 ac_cv_c_ipx_gnu="yes"
17171 else
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17175 ac_cv_c_ipx_gnu="no"
17177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17180 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17181 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17182 if test "$ac_cv_c_ipx_gnu" = "yes"
17183 then
17185 cat >>confdefs.h <<\_ACEOF
17186 #define HAVE_IPX_GNU 1
17187 _ACEOF
17191 if test "$ac_cv_c_ipx_gnu" = "no"
17192 then
17193 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17194 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17195 if test "${ac_cv_c_ipx_linux+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198 cat >conftest.$ac_ext <<_ACEOF
17199 /* confdefs.h. */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17204 #include <sys/types.h>
17205 #ifdef HAVE_SYS_SOCKET_H
17206 # include <sys/socket.h>
17207 #endif
17208 #include <asm/types.h>
17209 #include <linux/ipx.h>
17211 main ()
17213 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17215 return 0;
17217 _ACEOF
17218 rm -f conftest.$ac_objext
17219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17220 (eval $ac_compile) 2>conftest.er1
17221 ac_status=$?
17222 grep -v '^ *+' conftest.er1 >conftest.err
17223 rm -f conftest.er1
17224 cat conftest.err >&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); } &&
17227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try='test -s conftest.$ac_objext'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 ac_cv_c_ipx_linux="yes"
17240 else
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17244 ac_cv_c_ipx_linux="no"
17246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17249 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17250 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17251 if test "$ac_cv_c_ipx_linux" = "yes"
17252 then
17254 cat >>confdefs.h <<\_ACEOF
17255 #define HAVE_IPX_LINUX 1
17256 _ACEOF
17262 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17263 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17264 if test "${ac_cv_c_const+set}" = set; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 else
17267 cat >conftest.$ac_ext <<_ACEOF
17268 /* confdefs.h. */
17269 _ACEOF
17270 cat confdefs.h >>conftest.$ac_ext
17271 cat >>conftest.$ac_ext <<_ACEOF
17272 /* end confdefs.h. */
17275 main ()
17277 /* FIXME: Include the comments suggested by Paul. */
17278 #ifndef __cplusplus
17279 /* Ultrix mips cc rejects this. */
17280 typedef int charset[2];
17281 const charset x;
17282 /* SunOS 4.1.1 cc rejects this. */
17283 char const *const *ccp;
17284 char **p;
17285 /* NEC SVR4.0.2 mips cc rejects this. */
17286 struct point {int x, y;};
17287 static struct point const zero = {0,0};
17288 /* AIX XL C 1.02.0.0 rejects this.
17289 It does not let you subtract one const X* pointer from another in
17290 an arm of an if-expression whose if-part is not a constant
17291 expression */
17292 const char *g = "string";
17293 ccp = &g + (g ? g-g : 0);
17294 /* HPUX 7.0 cc rejects these. */
17295 ++ccp;
17296 p = (char**) ccp;
17297 ccp = (char const *const *) p;
17298 { /* SCO 3.2v4 cc rejects this. */
17299 char *t;
17300 char const *s = 0 ? (char *) 0 : (char const *) 0;
17302 *t++ = 0;
17304 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17305 int x[] = {25, 17};
17306 const int *foo = &x[0];
17307 ++foo;
17309 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17310 typedef const int *iptr;
17311 iptr p = 0;
17312 ++p;
17314 { /* AIX XL C 1.02.0.0 rejects this saying
17315 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17316 struct s { int j; const int *ap[3]; };
17317 struct s *b; b->j = 5;
17319 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17320 const int foo = 10;
17322 #endif
17325 return 0;
17327 _ACEOF
17328 rm -f conftest.$ac_objext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17330 (eval $ac_compile) 2>conftest.er1
17331 ac_status=$?
17332 grep -v '^ *+' conftest.er1 >conftest.err
17333 rm -f conftest.er1
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } &&
17337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; } &&
17343 { ac_try='test -s conftest.$ac_objext'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; }; then
17349 ac_cv_c_const=yes
17350 else
17351 echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17354 ac_cv_c_const=no
17356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17358 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17359 echo "${ECHO_T}$ac_cv_c_const" >&6
17360 if test $ac_cv_c_const = no; then
17362 cat >>confdefs.h <<\_ACEOF
17363 #define const
17364 _ACEOF
17368 echo "$as_me:$LINENO: checking for inline" >&5
17369 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17370 if test "${ac_cv_c_inline+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 else
17373 ac_cv_c_inline=no
17374 for ac_kw in inline __inline__ __inline; do
17375 cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h. */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 #ifndef __cplusplus
17382 typedef int foo_t;
17383 static $ac_kw foo_t static_foo () {return 0; }
17384 $ac_kw foo_t foo () {return 0; }
17385 #endif
17387 _ACEOF
17388 rm -f conftest.$ac_objext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17390 (eval $ac_compile) 2>conftest.er1
17391 ac_status=$?
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest.$ac_objext'
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 ac_cv_c_inline=$ac_kw; break
17410 else
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17416 done
17419 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17420 echo "${ECHO_T}$ac_cv_c_inline" >&6
17423 case $ac_cv_c_inline in
17424 inline | yes) ;;
17426 case $ac_cv_c_inline in
17427 no) ac_val=;;
17428 *) ac_val=$ac_cv_c_inline;;
17429 esac
17430 cat >>confdefs.h <<_ACEOF
17431 #ifndef __cplusplus
17432 #define inline $ac_val
17433 #endif
17434 _ACEOF
17436 esac
17438 echo "$as_me:$LINENO: checking for mode_t" >&5
17439 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17440 if test "${ac_cv_type_mode_t+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443 cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h. */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17449 $ac_includes_default
17451 main ()
17453 if ((mode_t *) 0)
17454 return 0;
17455 if (sizeof (mode_t))
17456 return 0;
17458 return 0;
17460 _ACEOF
17461 rm -f conftest.$ac_objext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17463 (eval $ac_compile) 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
17470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest.$ac_objext'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; }; then
17482 ac_cv_type_mode_t=yes
17483 else
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 ac_cv_type_mode_t=no
17489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17491 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17492 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17493 if test $ac_cv_type_mode_t = yes; then
17495 cat >>confdefs.h <<_ACEOF
17496 #define HAVE_MODE_T 1
17497 _ACEOF
17501 echo "$as_me:$LINENO: checking for off_t" >&5
17502 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17503 if test "${ac_cv_type_off_t+set}" = set; then
17504 echo $ECHO_N "(cached) $ECHO_C" >&6
17505 else
17506 cat >conftest.$ac_ext <<_ACEOF
17507 /* confdefs.h. */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17512 $ac_includes_default
17514 main ()
17516 if ((off_t *) 0)
17517 return 0;
17518 if (sizeof (off_t))
17519 return 0;
17521 return 0;
17523 _ACEOF
17524 rm -f conftest.$ac_objext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17526 (eval $ac_compile) 2>conftest.er1
17527 ac_status=$?
17528 grep -v '^ *+' conftest.er1 >conftest.err
17529 rm -f conftest.er1
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest.$ac_objext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_cv_type_off_t=yes
17546 else
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 ac_cv_type_off_t=no
17552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17554 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17555 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17556 if test $ac_cv_type_off_t = yes; then
17558 cat >>confdefs.h <<_ACEOF
17559 #define HAVE_OFF_T 1
17560 _ACEOF
17564 echo "$as_me:$LINENO: checking for pid_t" >&5
17565 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17566 if test "${ac_cv_type_pid_t+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569 cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h. */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17575 $ac_includes_default
17577 main ()
17579 if ((pid_t *) 0)
17580 return 0;
17581 if (sizeof (pid_t))
17582 return 0;
17584 return 0;
17586 _ACEOF
17587 rm -f conftest.$ac_objext
17588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17589 (eval $ac_compile) 2>conftest.er1
17590 ac_status=$?
17591 grep -v '^ *+' conftest.er1 >conftest.err
17592 rm -f conftest.er1
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
17596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest.$ac_objext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 ac_cv_type_pid_t=yes
17609 else
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 ac_cv_type_pid_t=no
17615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17617 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17618 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17619 if test $ac_cv_type_pid_t = yes; then
17621 cat >>confdefs.h <<_ACEOF
17622 #define HAVE_PID_T 1
17623 _ACEOF
17627 echo "$as_me:$LINENO: checking for size_t" >&5
17628 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17629 if test "${ac_cv_type_size_t+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
17631 else
17632 cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h. */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17638 $ac_includes_default
17640 main ()
17642 if ((size_t *) 0)
17643 return 0;
17644 if (sizeof (size_t))
17645 return 0;
17647 return 0;
17649 _ACEOF
17650 rm -f conftest.$ac_objext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17652 (eval $ac_compile) 2>conftest.er1
17653 ac_status=$?
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest.$ac_objext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 ac_cv_type_size_t=yes
17672 else
17673 echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17676 ac_cv_type_size_t=no
17678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17680 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17681 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17682 if test $ac_cv_type_size_t = yes; then
17684 cat >>confdefs.h <<_ACEOF
17685 #define HAVE_SIZE_T 1
17686 _ACEOF
17690 echo "$as_me:$LINENO: checking for ssize_t" >&5
17691 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17692 if test "${ac_cv_type_ssize_t+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17694 else
17695 cat >conftest.$ac_ext <<_ACEOF
17696 /* confdefs.h. */
17697 _ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 $ac_includes_default
17703 main ()
17705 if ((ssize_t *) 0)
17706 return 0;
17707 if (sizeof (ssize_t))
17708 return 0;
17710 return 0;
17712 _ACEOF
17713 rm -f conftest.$ac_objext
17714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17715 (eval $ac_compile) 2>conftest.er1
17716 ac_status=$?
17717 grep -v '^ *+' conftest.er1 >conftest.err
17718 rm -f conftest.er1
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest.$ac_objext'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 ac_cv_type_ssize_t=yes
17735 else
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 ac_cv_type_ssize_t=no
17741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17743 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17744 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17745 if test $ac_cv_type_ssize_t = yes; then
17747 cat >>confdefs.h <<_ACEOF
17748 #define HAVE_SSIZE_T 1
17749 _ACEOF
17753 echo "$as_me:$LINENO: checking for long long" >&5
17754 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17755 if test "${ac_cv_type_long_long+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758 cat >conftest.$ac_ext <<_ACEOF
17759 /* confdefs.h. */
17760 _ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764 $ac_includes_default
17766 main ()
17768 if ((long long *) 0)
17769 return 0;
17770 if (sizeof (long long))
17771 return 0;
17773 return 0;
17775 _ACEOF
17776 rm -f conftest.$ac_objext
17777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17778 (eval $ac_compile) 2>conftest.er1
17779 ac_status=$?
17780 grep -v '^ *+' conftest.er1 >conftest.err
17781 rm -f conftest.er1
17782 cat conftest.err >&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
17785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17788 ac_status=$?
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; } &&
17791 { ac_try='test -s conftest.$ac_objext'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
17797 ac_cv_type_long_long=yes
17798 else
17799 echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17802 ac_cv_type_long_long=no
17804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17806 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17807 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17808 if test $ac_cv_type_long_long = yes; then
17810 cat >>confdefs.h <<_ACEOF
17811 #define HAVE_LONG_LONG 1
17812 _ACEOF
17816 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17817 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17818 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17819 echo $ECHO_N "(cached) $ECHO_C" >&6
17820 else
17821 cat >conftest.$ac_ext <<_ACEOF
17822 /* confdefs.h. */
17823 _ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h. */
17827 $ac_includes_default
17829 main ()
17831 if ((fsblkcnt_t *) 0)
17832 return 0;
17833 if (sizeof (fsblkcnt_t))
17834 return 0;
17836 return 0;
17838 _ACEOF
17839 rm -f conftest.$ac_objext
17840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17841 (eval $ac_compile) 2>conftest.er1
17842 ac_status=$?
17843 grep -v '^ *+' conftest.er1 >conftest.err
17844 rm -f conftest.er1
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest.$ac_objext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 ac_cv_type_fsblkcnt_t=yes
17861 else
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 ac_cv_type_fsblkcnt_t=no
17867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17869 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17870 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17871 if test $ac_cv_type_fsblkcnt_t = yes; then
17873 cat >>confdefs.h <<_ACEOF
17874 #define HAVE_FSBLKCNT_T 1
17875 _ACEOF
17879 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17880 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17881 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17883 else
17884 cat >conftest.$ac_ext <<_ACEOF
17885 /* confdefs.h. */
17886 _ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 $ac_includes_default
17892 main ()
17894 if ((fsfilcnt_t *) 0)
17895 return 0;
17896 if (sizeof (fsfilcnt_t))
17897 return 0;
17899 return 0;
17901 _ACEOF
17902 rm -f conftest.$ac_objext
17903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17904 (eval $ac_compile) 2>conftest.er1
17905 ac_status=$?
17906 grep -v '^ *+' conftest.er1 >conftest.err
17907 rm -f conftest.er1
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } &&
17911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try='test -s conftest.$ac_objext'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; }; then
17923 ac_cv_type_fsfilcnt_t=yes
17924 else
17925 echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17928 ac_cv_type_fsfilcnt_t=no
17930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17932 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17933 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17934 if test $ac_cv_type_fsfilcnt_t = yes; then
17936 cat >>confdefs.h <<_ACEOF
17937 #define HAVE_FSFILCNT_T 1
17938 _ACEOF
17944 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17945 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17946 if test "${wine_cv_linux_input_h+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 else
17949 cat >conftest.$ac_ext <<_ACEOF
17950 /* confdefs.h. */
17951 _ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17956 #include <linux/input.h>
17959 main ()
17962 int foo = EVIOCGBIT(EV_ABS,42);
17963 int bar = BTN_PINKIE;
17964 int fortytwo = 42;
17967 return 0;
17969 _ACEOF
17970 rm -f conftest.$ac_objext
17971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17972 (eval $ac_compile) 2>conftest.er1
17973 ac_status=$?
17974 grep -v '^ *+' conftest.er1 >conftest.err
17975 rm -f conftest.er1
17976 cat conftest.err >&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } &&
17979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; } &&
17985 { ac_try='test -s conftest.$ac_objext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991 wine_cv_linux_input_h=yes
17992 else
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 wine_cv_linux_input_h=no
17998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18001 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
18002 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
18003 if test "$wine_cv_linux_input_h" = "yes"
18004 then
18006 cat >>confdefs.h <<\_ACEOF
18007 #define HAVE_CORRECT_LINUXINPUT_H 1
18008 _ACEOF
18013 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
18014 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
18015 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
18016 echo $ECHO_N "(cached) $ECHO_C" >&6
18017 else
18018 cat >conftest.$ac_ext <<_ACEOF
18019 /* confdefs.h. */
18020 _ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h. */
18025 #include <netdb.h>
18028 main ()
18031 char *name=NULL;
18032 struct hostent he;
18033 struct hostent *result;
18034 char *buf=NULL;
18035 int bufsize=0;
18036 int res,errnr;
18037 char *addr=NULL;
18038 int addrlen=0;
18039 int addrtype=0;
18040 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
18041 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
18044 return 0;
18046 _ACEOF
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 2>conftest.er1
18050 ac_status=$?
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18059 ac_status=$?
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try='test -s conftest$ac_exeext'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; }; then
18068 wine_cv_linux_gethostbyname_r_6=yes
18069 else
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 wine_cv_linux_gethostbyname_r_6=no
18076 rm -f conftest.err conftest.$ac_objext \
18077 conftest$ac_exeext conftest.$ac_ext
18080 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
18081 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
18082 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
18083 then
18085 cat >>confdefs.h <<\_ACEOF
18086 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
18087 _ACEOF
18091 if test "$ac_cv_header_linux_joystick_h" = "yes"
18092 then
18093 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
18094 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
18095 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098 cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h. */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18105 #include <sys/ioctl.h>
18106 #include <linux/joystick.h>
18108 struct js_event blub;
18109 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18110 #error "no 2.2 header"
18111 #endif
18114 main ()
18116 /*empty*/
18118 return 0;
18120 _ACEOF
18121 rm -f conftest.$ac_objext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18123 (eval $ac_compile) 2>conftest.er1
18124 ac_status=$?
18125 grep -v '^ *+' conftest.er1 >conftest.err
18126 rm -f conftest.er1
18127 cat conftest.err >&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } &&
18130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; } &&
18136 { ac_try='test -s conftest.$ac_objext'
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; }; then
18142 wine_cv_linux_joystick_22_api=yes
18143 else
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18147 wine_cv_linux_joystick_22_api=no
18149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18152 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18153 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
18154 if test "$wine_cv_linux_joystick_22_api" = "yes"
18155 then
18157 cat >>confdefs.h <<\_ACEOF
18158 #define HAVE_LINUX_22_JOYSTICK_API 1
18159 _ACEOF
18165 if test "$ac_cv_header_sys_vfs_h" = "yes"
18166 then
18167 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
18168 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18169 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18171 else
18172 cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h. */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18179 #include <sys/types.h>
18180 #ifdef HAVE_SYS_PARAM_H
18181 # include <sys/param.h>
18182 #endif
18183 #include <sys/vfs.h>
18186 main ()
18189 struct statfs stfs;
18191 memset(&stfs,0,sizeof(stfs));
18194 return 0;
18196 _ACEOF
18197 rm -f conftest.$ac_objext
18198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18199 (eval $ac_compile) 2>conftest.er1
18200 ac_status=$?
18201 grep -v '^ *+' conftest.er1 >conftest.err
18202 rm -f conftest.er1
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } &&
18206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; } &&
18212 { ac_try='test -s conftest.$ac_objext'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 wine_cv_sys_vfs_has_statfs=yes
18219 else
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18223 wine_cv_sys_vfs_has_statfs=no
18226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18229 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18230 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18231 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18232 then
18234 cat >>confdefs.h <<\_ACEOF
18235 #define STATFS_DEFINED_BY_SYS_VFS 1
18236 _ACEOF
18241 if test "$ac_cv_header_sys_statfs_h" = "yes"
18242 then
18243 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18244 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18245 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248 cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h. */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18255 #include <sys/types.h>
18256 #ifdef HAVE_SYS_PARAM_H
18257 # include <sys/param.h>
18258 #endif
18259 #include <sys/statfs.h>
18262 main ()
18265 struct statfs stfs;
18268 return 0;
18270 _ACEOF
18271 rm -f conftest.$ac_objext
18272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18273 (eval $ac_compile) 2>conftest.er1
18274 ac_status=$?
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest.$ac_objext'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 wine_cv_sys_statfs_has_statfs=yes
18293 else
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18297 wine_cv_sys_statfs_has_statfs=no
18300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18303 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18304 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18305 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18306 then
18308 cat >>confdefs.h <<\_ACEOF
18309 #define STATFS_DEFINED_BY_SYS_STATFS 1
18310 _ACEOF
18315 if test "$ac_cv_header_sys_mount_h" = "yes"
18316 then
18317 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18318 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18319 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 else
18322 cat >conftest.$ac_ext <<_ACEOF
18323 /* confdefs.h. */
18324 _ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18329 #include <sys/types.h>
18330 #ifdef HAVE_SYS_PARAM_H
18331 # include <sys/param.h>
18332 #endif
18333 #include <sys/mount.h>
18336 main ()
18339 struct statfs stfs;
18342 return 0;
18344 _ACEOF
18345 rm -f conftest.$ac_objext
18346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18347 (eval $ac_compile) 2>conftest.er1
18348 ac_status=$?
18349 grep -v '^ *+' conftest.er1 >conftest.err
18350 rm -f conftest.er1
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } &&
18354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; } &&
18360 { ac_try='test -s conftest.$ac_objext'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18366 wine_cv_sys_mount_has_statfs=yes
18367 else
18368 echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18371 wine_cv_sys_mount_has_statfs=no
18374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18377 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18378 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18379 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18380 then
18382 cat >>confdefs.h <<\_ACEOF
18383 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18384 _ACEOF
18390 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18391 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18392 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h. */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 #include <sys/types.h>
18402 #ifdef HAVE_SYS_PARAM_H
18403 # include <sys/param.h>
18404 #endif
18405 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18406 # include <sys/mount.h>
18407 #else
18408 # ifdef STATFS_DEFINED_BY_SYS_VFS
18409 # include <sys/vfs.h>
18410 # else
18411 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18412 # include <sys/statfs.h>
18413 # endif
18414 # endif
18415 #endif
18418 main ()
18420 static struct statfs ac_aggr;
18421 if (ac_aggr.f_bfree)
18422 return 0;
18424 return 0;
18426 _ACEOF
18427 rm -f conftest.$ac_objext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18429 (eval $ac_compile) 2>conftest.er1
18430 ac_status=$?
18431 grep -v '^ *+' conftest.er1 >conftest.err
18432 rm -f conftest.er1
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; } &&
18442 { ac_try='test -s conftest.$ac_objext'
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18445 ac_status=$?
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; }; then
18448 ac_cv_member_struct_statfs_f_bfree=yes
18449 else
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18453 cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h. */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18459 #include <sys/types.h>
18460 #ifdef HAVE_SYS_PARAM_H
18461 # include <sys/param.h>
18462 #endif
18463 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18464 # include <sys/mount.h>
18465 #else
18466 # ifdef STATFS_DEFINED_BY_SYS_VFS
18467 # include <sys/vfs.h>
18468 # else
18469 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18470 # include <sys/statfs.h>
18471 # endif
18472 # endif
18473 #endif
18476 main ()
18478 static struct statfs ac_aggr;
18479 if (sizeof ac_aggr.f_bfree)
18480 return 0;
18482 return 0;
18484 _ACEOF
18485 rm -f conftest.$ac_objext
18486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18487 (eval $ac_compile) 2>conftest.er1
18488 ac_status=$?
18489 grep -v '^ *+' conftest.er1 >conftest.err
18490 rm -f conftest.er1
18491 cat conftest.err >&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
18494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18497 ac_status=$?
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; } &&
18500 { ac_try='test -s conftest.$ac_objext'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 ac_cv_member_struct_statfs_f_bfree=yes
18507 else
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18511 ac_cv_member_struct_statfs_f_bfree=no
18513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18517 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18518 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18519 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18521 cat >>confdefs.h <<_ACEOF
18522 #define HAVE_STRUCT_STATFS_F_BFREE 1
18523 _ACEOF
18527 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18528 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18529 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18531 else
18532 cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h. */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538 #include <sys/types.h>
18539 #ifdef HAVE_SYS_PARAM_H
18540 # include <sys/param.h>
18541 #endif
18542 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18543 # include <sys/mount.h>
18544 #else
18545 # ifdef STATFS_DEFINED_BY_SYS_VFS
18546 # include <sys/vfs.h>
18547 # else
18548 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18549 # include <sys/statfs.h>
18550 # endif
18551 # endif
18552 #endif
18555 main ()
18557 static struct statfs ac_aggr;
18558 if (ac_aggr.f_bavail)
18559 return 0;
18561 return 0;
18563 _ACEOF
18564 rm -f conftest.$ac_objext
18565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18566 (eval $ac_compile) 2>conftest.er1
18567 ac_status=$?
18568 grep -v '^ *+' conftest.er1 >conftest.err
18569 rm -f conftest.er1
18570 cat conftest.err >&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } &&
18573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; } &&
18579 { ac_try='test -s conftest.$ac_objext'
18580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18581 (eval $ac_try) 2>&5
18582 ac_status=$?
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); }; }; then
18585 ac_cv_member_struct_statfs_f_bavail=yes
18586 else
18587 echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18590 cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h. */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18596 #include <sys/types.h>
18597 #ifdef HAVE_SYS_PARAM_H
18598 # include <sys/param.h>
18599 #endif
18600 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18601 # include <sys/mount.h>
18602 #else
18603 # ifdef STATFS_DEFINED_BY_SYS_VFS
18604 # include <sys/vfs.h>
18605 # else
18606 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18607 # include <sys/statfs.h>
18608 # endif
18609 # endif
18610 #endif
18613 main ()
18615 static struct statfs ac_aggr;
18616 if (sizeof ac_aggr.f_bavail)
18617 return 0;
18619 return 0;
18621 _ACEOF
18622 rm -f conftest.$ac_objext
18623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18624 (eval $ac_compile) 2>conftest.er1
18625 ac_status=$?
18626 grep -v '^ *+' conftest.er1 >conftest.err
18627 rm -f conftest.er1
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } &&
18631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; } &&
18637 { ac_try='test -s conftest.$ac_objext'
18638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639 (eval $ac_try) 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 ac_cv_member_struct_statfs_f_bavail=yes
18644 else
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 ac_cv_member_struct_statfs_f_bavail=no
18650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18654 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18655 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18656 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18658 cat >>confdefs.h <<_ACEOF
18659 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18660 _ACEOF
18664 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18665 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18666 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 else
18669 cat >conftest.$ac_ext <<_ACEOF
18670 /* confdefs.h. */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 #include <sys/types.h>
18676 #ifdef HAVE_SYS_PARAM_H
18677 # include <sys/param.h>
18678 #endif
18679 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18680 # include <sys/mount.h>
18681 #else
18682 # ifdef STATFS_DEFINED_BY_SYS_VFS
18683 # include <sys/vfs.h>
18684 # else
18685 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18686 # include <sys/statfs.h>
18687 # endif
18688 # endif
18689 #endif
18692 main ()
18694 static struct statfs ac_aggr;
18695 if (ac_aggr.f_frsize)
18696 return 0;
18698 return 0;
18700 _ACEOF
18701 rm -f conftest.$ac_objext
18702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18703 (eval $ac_compile) 2>conftest.er1
18704 ac_status=$?
18705 grep -v '^ *+' conftest.er1 >conftest.err
18706 rm -f conftest.er1
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } &&
18710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; } &&
18716 { ac_try='test -s conftest.$ac_objext'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18719 ac_status=$?
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 ac_cv_member_struct_statfs_f_frsize=yes
18723 else
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18727 cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h. */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 #include <sys/types.h>
18734 #ifdef HAVE_SYS_PARAM_H
18735 # include <sys/param.h>
18736 #endif
18737 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18738 # include <sys/mount.h>
18739 #else
18740 # ifdef STATFS_DEFINED_BY_SYS_VFS
18741 # include <sys/vfs.h>
18742 # else
18743 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18744 # include <sys/statfs.h>
18745 # endif
18746 # endif
18747 #endif
18750 main ()
18752 static struct statfs ac_aggr;
18753 if (sizeof ac_aggr.f_frsize)
18754 return 0;
18756 return 0;
18758 _ACEOF
18759 rm -f conftest.$ac_objext
18760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18761 (eval $ac_compile) 2>conftest.er1
18762 ac_status=$?
18763 grep -v '^ *+' conftest.er1 >conftest.err
18764 rm -f conftest.er1
18765 cat conftest.err >&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } &&
18768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18771 ac_status=$?
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; } &&
18774 { ac_try='test -s conftest.$ac_objext'
18775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776 (eval $ac_try) 2>&5
18777 ac_status=$?
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; }; then
18780 ac_cv_member_struct_statfs_f_frsize=yes
18781 else
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18785 ac_cv_member_struct_statfs_f_frsize=no
18787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18792 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18793 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18795 cat >>confdefs.h <<_ACEOF
18796 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18797 _ACEOF
18801 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18802 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18803 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 else
18806 cat >conftest.$ac_ext <<_ACEOF
18807 /* confdefs.h. */
18808 _ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18812 #include <sys/types.h>
18813 #ifdef HAVE_SYS_PARAM_H
18814 # include <sys/param.h>
18815 #endif
18816 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18817 # include <sys/mount.h>
18818 #else
18819 # ifdef STATFS_DEFINED_BY_SYS_VFS
18820 # include <sys/vfs.h>
18821 # else
18822 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18823 # include <sys/statfs.h>
18824 # endif
18825 # endif
18826 #endif
18829 main ()
18831 static struct statfs ac_aggr;
18832 if (ac_aggr.f_ffree)
18833 return 0;
18835 return 0;
18837 _ACEOF
18838 rm -f conftest.$ac_objext
18839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18840 (eval $ac_compile) 2>conftest.er1
18841 ac_status=$?
18842 grep -v '^ *+' conftest.er1 >conftest.err
18843 rm -f conftest.er1
18844 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; } &&
18853 { ac_try='test -s conftest.$ac_objext'
18854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 (eval $ac_try) 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; }; then
18859 ac_cv_member_struct_statfs_f_ffree=yes
18860 else
18861 echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 cat >conftest.$ac_ext <<_ACEOF
18865 /* confdefs.h. */
18866 _ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18870 #include <sys/types.h>
18871 #ifdef HAVE_SYS_PARAM_H
18872 # include <sys/param.h>
18873 #endif
18874 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18875 # include <sys/mount.h>
18876 #else
18877 # ifdef STATFS_DEFINED_BY_SYS_VFS
18878 # include <sys/vfs.h>
18879 # else
18880 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18881 # include <sys/statfs.h>
18882 # endif
18883 # endif
18884 #endif
18887 main ()
18889 static struct statfs ac_aggr;
18890 if (sizeof ac_aggr.f_ffree)
18891 return 0;
18893 return 0;
18895 _ACEOF
18896 rm -f conftest.$ac_objext
18897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18898 (eval $ac_compile) 2>conftest.er1
18899 ac_status=$?
18900 grep -v '^ *+' conftest.er1 >conftest.err
18901 rm -f conftest.er1
18902 cat conftest.err >&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
18905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18908 ac_status=$?
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; } &&
18911 { ac_try='test -s conftest.$ac_objext'
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18914 ac_status=$?
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18917 ac_cv_member_struct_statfs_f_ffree=yes
18918 else
18919 echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 ac_cv_member_struct_statfs_f_ffree=no
18924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18928 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18929 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18930 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18932 cat >>confdefs.h <<_ACEOF
18933 #define HAVE_STRUCT_STATFS_F_FFREE 1
18934 _ACEOF
18938 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18939 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18940 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18942 else
18943 cat >conftest.$ac_ext <<_ACEOF
18944 /* confdefs.h. */
18945 _ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18949 #include <sys/types.h>
18950 #ifdef HAVE_SYS_PARAM_H
18951 # include <sys/param.h>
18952 #endif
18953 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18954 # include <sys/mount.h>
18955 #else
18956 # ifdef STATFS_DEFINED_BY_SYS_VFS
18957 # include <sys/vfs.h>
18958 # else
18959 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18960 # include <sys/statfs.h>
18961 # endif
18962 # endif
18963 #endif
18966 main ()
18968 static struct statfs ac_aggr;
18969 if (ac_aggr.f_favail)
18970 return 0;
18972 return 0;
18974 _ACEOF
18975 rm -f conftest.$ac_objext
18976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18977 (eval $ac_compile) 2>conftest.er1
18978 ac_status=$?
18979 grep -v '^ *+' conftest.er1 >conftest.err
18980 rm -f conftest.er1
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
18984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986 (eval $ac_try) 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; } &&
18990 { ac_try='test -s conftest.$ac_objext'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; }; then
18996 ac_cv_member_struct_statfs_f_favail=yes
18997 else
18998 echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19001 cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h. */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 #include <sys/types.h>
19008 #ifdef HAVE_SYS_PARAM_H
19009 # include <sys/param.h>
19010 #endif
19011 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19012 # include <sys/mount.h>
19013 #else
19014 # ifdef STATFS_DEFINED_BY_SYS_VFS
19015 # include <sys/vfs.h>
19016 # else
19017 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19018 # include <sys/statfs.h>
19019 # endif
19020 # endif
19021 #endif
19024 main ()
19026 static struct statfs ac_aggr;
19027 if (sizeof ac_aggr.f_favail)
19028 return 0;
19030 return 0;
19032 _ACEOF
19033 rm -f conftest.$ac_objext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19035 (eval $ac_compile) 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; } &&
19048 { ac_try='test -s conftest.$ac_objext'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_cv_member_struct_statfs_f_favail=yes
19055 else
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19059 ac_cv_member_struct_statfs_f_favail=no
19061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19065 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
19066 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
19067 if test $ac_cv_member_struct_statfs_f_favail = yes; then
19069 cat >>confdefs.h <<_ACEOF
19070 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
19071 _ACEOF
19075 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
19076 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
19077 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080 cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h. */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 #include <sys/types.h>
19087 #ifdef HAVE_SYS_PARAM_H
19088 # include <sys/param.h>
19089 #endif
19090 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19091 # include <sys/mount.h>
19092 #else
19093 # ifdef STATFS_DEFINED_BY_SYS_VFS
19094 # include <sys/vfs.h>
19095 # else
19096 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19097 # include <sys/statfs.h>
19098 # endif
19099 # endif
19100 #endif
19103 main ()
19105 static struct statfs ac_aggr;
19106 if (ac_aggr.f_namelen)
19107 return 0;
19109 return 0;
19111 _ACEOF
19112 rm -f conftest.$ac_objext
19113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19114 (eval $ac_compile) 2>conftest.er1
19115 ac_status=$?
19116 grep -v '^ *+' conftest.er1 >conftest.err
19117 rm -f conftest.er1
19118 cat conftest.err >&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } &&
19121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest.$ac_objext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_cv_member_struct_statfs_f_namelen=yes
19134 else
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19138 cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h. */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19144 #include <sys/types.h>
19145 #ifdef HAVE_SYS_PARAM_H
19146 # include <sys/param.h>
19147 #endif
19148 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19149 # include <sys/mount.h>
19150 #else
19151 # ifdef STATFS_DEFINED_BY_SYS_VFS
19152 # include <sys/vfs.h>
19153 # else
19154 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19155 # include <sys/statfs.h>
19156 # endif
19157 # endif
19158 #endif
19161 main ()
19163 static struct statfs ac_aggr;
19164 if (sizeof ac_aggr.f_namelen)
19165 return 0;
19167 return 0;
19169 _ACEOF
19170 rm -f conftest.$ac_objext
19171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19172 (eval $ac_compile) 2>conftest.er1
19173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 (eval $ac_try) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; } &&
19185 { ac_try='test -s conftest.$ac_objext'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 ac_cv_member_struct_statfs_f_namelen=yes
19192 else
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ac_cv_member_struct_statfs_f_namelen=no
19198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19202 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19203 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19204 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19206 cat >>confdefs.h <<_ACEOF
19207 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19208 _ACEOF
19214 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19215 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19216 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19218 else
19219 cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h. */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19225 #ifdef HAVE_SYS_STATVFS_H
19226 #include <sys/statvfs.h>
19227 #endif
19230 main ()
19232 static struct statvfs ac_aggr;
19233 if (ac_aggr.f_blocks)
19234 return 0;
19236 return 0;
19238 _ACEOF
19239 rm -f conftest.$ac_objext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241 (eval $ac_compile) 2>conftest.er1
19242 ac_status=$?
19243 grep -v '^ *+' conftest.er1 >conftest.err
19244 rm -f conftest.er1
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_member_struct_statvfs_f_blocks=yes
19261 else
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19265 cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h. */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 #ifdef HAVE_SYS_STATVFS_H
19272 #include <sys/statvfs.h>
19273 #endif
19276 main ()
19278 static struct statvfs ac_aggr;
19279 if (sizeof ac_aggr.f_blocks)
19280 return 0;
19282 return 0;
19284 _ACEOF
19285 rm -f conftest.$ac_objext
19286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287 (eval $ac_compile) 2>conftest.er1
19288 ac_status=$?
19289 grep -v '^ *+' conftest.er1 >conftest.err
19290 rm -f conftest.er1
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } &&
19294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_cv_member_struct_statvfs_f_blocks=yes
19307 else
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19311 ac_cv_member_struct_statvfs_f_blocks=no
19313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19317 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19318 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19319 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19321 cat >>confdefs.h <<_ACEOF
19322 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19323 _ACEOF
19329 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19330 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19331 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 else
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h. */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19340 #include <sys/types.h>
19341 #ifdef HAVE_SYS_SOCKET_H
19342 # include <sys/socket.h>
19343 #endif
19344 #ifdef HAVE_SYS_UN_H
19345 # include <sys/un.h>
19346 #endif
19349 main ()
19351 static struct msghdr ac_aggr;
19352 if (ac_aggr.msg_accrights)
19353 return 0;
19355 return 0;
19357 _ACEOF
19358 rm -f conftest.$ac_objext
19359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19360 (eval $ac_compile) 2>conftest.er1
19361 ac_status=$?
19362 grep -v '^ *+' conftest.er1 >conftest.err
19363 rm -f conftest.er1
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; } &&
19373 { ac_try='test -s conftest.$ac_objext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_member_struct_msghdr_msg_accrights=yes
19380 else
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 cat >conftest.$ac_ext <<_ACEOF
19385 /* confdefs.h. */
19386 _ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19390 #include <sys/types.h>
19391 #ifdef HAVE_SYS_SOCKET_H
19392 # include <sys/socket.h>
19393 #endif
19394 #ifdef HAVE_SYS_UN_H
19395 # include <sys/un.h>
19396 #endif
19399 main ()
19401 static struct msghdr ac_aggr;
19402 if (sizeof ac_aggr.msg_accrights)
19403 return 0;
19405 return 0;
19407 _ACEOF
19408 rm -f conftest.$ac_objext
19409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19410 (eval $ac_compile) 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } &&
19417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; } &&
19423 { ac_try='test -s conftest.$ac_objext'
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 ac_cv_member_struct_msghdr_msg_accrights=yes
19430 else
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19434 ac_cv_member_struct_msghdr_msg_accrights=no
19436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19440 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19441 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19442 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19444 cat >>confdefs.h <<_ACEOF
19445 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19446 _ACEOF
19450 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19451 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19452 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 else
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h. */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461 #include <sys/types.h>
19462 #ifdef HAVE_SYS_SOCKET_H
19463 # include <sys/socket.h>
19464 #endif
19465 #ifdef HAVE_SYS_UN_H
19466 # include <sys/un.h>
19467 #endif
19470 main ()
19472 static struct sockaddr ac_aggr;
19473 if (ac_aggr.sa_len)
19474 return 0;
19476 return 0;
19478 _ACEOF
19479 rm -f conftest.$ac_objext
19480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19481 (eval $ac_compile) 2>conftest.er1
19482 ac_status=$?
19483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } &&
19488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest.$ac_objext'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 ac_cv_member_struct_sockaddr_sa_len=yes
19501 else
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h. */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 #include <sys/types.h>
19512 #ifdef HAVE_SYS_SOCKET_H
19513 # include <sys/socket.h>
19514 #endif
19515 #ifdef HAVE_SYS_UN_H
19516 # include <sys/un.h>
19517 #endif
19520 main ()
19522 static struct sockaddr ac_aggr;
19523 if (sizeof ac_aggr.sa_len)
19524 return 0;
19526 return 0;
19528 _ACEOF
19529 rm -f conftest.$ac_objext
19530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19531 (eval $ac_compile) 2>conftest.er1
19532 ac_status=$?
19533 grep -v '^ *+' conftest.er1 >conftest.err
19534 rm -f conftest.er1
19535 cat conftest.err >&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } &&
19538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; } &&
19544 { ac_try='test -s conftest.$ac_objext'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
19550 ac_cv_member_struct_sockaddr_sa_len=yes
19551 else
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 ac_cv_member_struct_sockaddr_sa_len=no
19557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19561 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19562 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19563 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19565 cat >>confdefs.h <<_ACEOF
19566 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19567 _ACEOF
19571 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19572 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19573 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576 cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h. */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582 #include <sys/types.h>
19583 #ifdef HAVE_SYS_SOCKET_H
19584 # include <sys/socket.h>
19585 #endif
19586 #ifdef HAVE_SYS_UN_H
19587 # include <sys/un.h>
19588 #endif
19591 main ()
19593 static struct sockaddr_un ac_aggr;
19594 if (ac_aggr.sun_len)
19595 return 0;
19597 return 0;
19599 _ACEOF
19600 rm -f conftest.$ac_objext
19601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19602 (eval $ac_compile) 2>conftest.er1
19603 ac_status=$?
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } &&
19609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 ac_cv_member_struct_sockaddr_un_sun_len=yes
19622 else
19623 echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 cat >conftest.$ac_ext <<_ACEOF
19627 /* confdefs.h. */
19628 _ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19632 #include <sys/types.h>
19633 #ifdef HAVE_SYS_SOCKET_H
19634 # include <sys/socket.h>
19635 #endif
19636 #ifdef HAVE_SYS_UN_H
19637 # include <sys/un.h>
19638 #endif
19641 main ()
19643 static struct sockaddr_un ac_aggr;
19644 if (sizeof ac_aggr.sun_len)
19645 return 0;
19647 return 0;
19649 _ACEOF
19650 rm -f conftest.$ac_objext
19651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19652 (eval $ac_compile) 2>conftest.er1
19653 ac_status=$?
19654 grep -v '^ *+' conftest.er1 >conftest.err
19655 rm -f conftest.er1
19656 cat conftest.err >&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } &&
19659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; } &&
19665 { ac_try='test -s conftest.$ac_objext'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 ac_cv_member_struct_sockaddr_un_sun_len=yes
19672 else
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 ac_cv_member_struct_sockaddr_un_sun_len=no
19678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19682 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19683 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19684 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19686 cat >>confdefs.h <<_ACEOF
19687 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19688 _ACEOF
19694 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19695 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19696 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699 cat >conftest.$ac_ext <<_ACEOF
19700 /* confdefs.h. */
19701 _ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19705 #include <signal.h>
19708 main ()
19710 static siginfo_t ac_aggr;
19711 if (ac_aggr.si_fd)
19712 return 0;
19714 return 0;
19716 _ACEOF
19717 rm -f conftest.$ac_objext
19718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19719 (eval $ac_compile) 2>conftest.er1
19720 ac_status=$?
19721 grep -v '^ *+' conftest.er1 >conftest.err
19722 rm -f conftest.er1
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } &&
19726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 ac_cv_member_siginfo_t_si_fd=yes
19739 else
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19743 cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h. */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19749 #include <signal.h>
19752 main ()
19754 static siginfo_t ac_aggr;
19755 if (sizeof ac_aggr.si_fd)
19756 return 0;
19758 return 0;
19760 _ACEOF
19761 rm -f conftest.$ac_objext
19762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19763 (eval $ac_compile) 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19773 ac_status=$?
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; } &&
19776 { ac_try='test -s conftest.$ac_objext'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; }; then
19782 ac_cv_member_siginfo_t_si_fd=yes
19783 else
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_cv_member_siginfo_t_si_fd=no
19789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19793 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19794 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19795 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19797 cat >>confdefs.h <<_ACEOF
19798 #define HAVE_SIGINFO_T_SI_FD 1
19799 _ACEOF
19805 echo "$as_me:$LINENO: checking for struct option.name" >&5
19806 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19807 if test "${ac_cv_member_struct_option_name+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 else
19810 cat >conftest.$ac_ext <<_ACEOF
19811 /* confdefs.h. */
19812 _ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h. */
19816 #ifdef HAVE_GETOPT_H
19817 #include <getopt.h>
19818 #endif
19821 main ()
19823 static struct option ac_aggr;
19824 if (ac_aggr.name)
19825 return 0;
19827 return 0;
19829 _ACEOF
19830 rm -f conftest.$ac_objext
19831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19832 (eval $ac_compile) 2>conftest.er1
19833 ac_status=$?
19834 grep -v '^ *+' conftest.er1 >conftest.err
19835 rm -f conftest.er1
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } &&
19839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; } &&
19845 { ac_try='test -s conftest.$ac_objext'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; }; then
19851 ac_cv_member_struct_option_name=yes
19852 else
19853 echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19856 cat >conftest.$ac_ext <<_ACEOF
19857 /* confdefs.h. */
19858 _ACEOF
19859 cat confdefs.h >>conftest.$ac_ext
19860 cat >>conftest.$ac_ext <<_ACEOF
19861 /* end confdefs.h. */
19862 #ifdef HAVE_GETOPT_H
19863 #include <getopt.h>
19864 #endif
19867 main ()
19869 static struct option ac_aggr;
19870 if (sizeof ac_aggr.name)
19871 return 0;
19873 return 0;
19875 _ACEOF
19876 rm -f conftest.$ac_objext
19877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19878 (eval $ac_compile) 2>conftest.er1
19879 ac_status=$?
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
19885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; } &&
19891 { ac_try='test -s conftest.$ac_objext'
19892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893 (eval $ac_try) 2>&5
19894 ac_status=$?
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; }; then
19897 ac_cv_member_struct_option_name=yes
19898 else
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_cv_member_struct_option_name=no
19904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19908 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19909 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19910 if test $ac_cv_member_struct_option_name = yes; then
19912 cat >>confdefs.h <<_ACEOF
19913 #define HAVE_STRUCT_OPTION_NAME 1
19914 _ACEOF
19920 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19921 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19922 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925 cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h. */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 $ac_includes_default
19933 main ()
19935 static struct stat ac_aggr;
19936 if (ac_aggr.st_blocks)
19937 return 0;
19939 return 0;
19941 _ACEOF
19942 rm -f conftest.$ac_objext
19943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19944 (eval $ac_compile) 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest.$ac_objext'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 ac_cv_member_struct_stat_st_blocks=yes
19964 else
19965 echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19968 cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h. */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 $ac_includes_default
19976 main ()
19978 static struct stat ac_aggr;
19979 if (sizeof ac_aggr.st_blocks)
19980 return 0;
19982 return 0;
19984 _ACEOF
19985 rm -f conftest.$ac_objext
19986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19987 (eval $ac_compile) 2>conftest.er1
19988 ac_status=$?
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest.$ac_objext'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 ac_cv_member_struct_stat_st_blocks=yes
20007 else
20008 echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20011 ac_cv_member_struct_stat_st_blocks=no
20013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20017 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20018 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20019 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20021 cat >>confdefs.h <<_ACEOF
20022 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20023 _ACEOF
20030 case $host_cpu in
20031 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20032 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
20033 if test "${ac_cv_cpp_def___i386__+set}" = set; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 else
20036 cat >conftest.$ac_ext <<_ACEOF
20037 /* confdefs.h. */
20038 _ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h. */
20042 #ifndef __i386__
20044 #endif
20045 _ACEOF
20046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20047 $EGREP "yes" >/dev/null 2>&1; then
20048 ac_cv_cpp_def___i386__=yes
20049 else
20050 ac_cv_cpp_def___i386__=no
20052 rm -f conftest*
20055 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20056 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
20057 if test $ac_cv_cpp_def___i386__ = yes; then
20058 CFLAGS="$CFLAGS -D__i386__"
20059 LINTFLAGS="$LINTFLAGS -D__i386__"
20062 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20063 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
20064 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20065 echo $ECHO_N "(cached) $ECHO_C" >&6
20066 else
20067 cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h. */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073 #ifndef __ALPHA__
20075 #endif
20076 _ACEOF
20077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20078 $EGREP "yes" >/dev/null 2>&1; then
20079 ac_cv_cpp_def___ALPHA__=yes
20080 else
20081 ac_cv_cpp_def___ALPHA__=no
20083 rm -f conftest*
20086 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20087 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
20088 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20089 CFLAGS="$CFLAGS -D__ALPHA__"
20090 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20093 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20094 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
20095 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098 cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h. */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 #ifndef __sparc__
20106 #endif
20107 _ACEOF
20108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20109 $EGREP "yes" >/dev/null 2>&1; then
20110 ac_cv_cpp_def___sparc__=yes
20111 else
20112 ac_cv_cpp_def___sparc__=no
20114 rm -f conftest*
20117 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20118 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20119 if test $ac_cv_cpp_def___sparc__ = yes; then
20120 CFLAGS="$CFLAGS -D__sparc__"
20121 LINTFLAGS="$LINTFLAGS -D__sparc__"
20124 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20125 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20126 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129 cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h. */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 #ifndef __powerpc__
20137 #endif
20138 _ACEOF
20139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20140 $EGREP "yes" >/dev/null 2>&1; then
20141 ac_cv_cpp_def___powerpc__=yes
20142 else
20143 ac_cv_cpp_def___powerpc__=no
20145 rm -f conftest*
20148 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20149 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20150 if test $ac_cv_cpp_def___powerpc__ = yes; then
20151 CFLAGS="$CFLAGS -D__powerpc__"
20152 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20155 esac
20157 case $host_vendor in
20158 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20159 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
20160 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20161 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 else
20163 cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h. */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 #ifndef __sun__
20171 #endif
20172 _ACEOF
20173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20174 $EGREP "yes" >/dev/null 2>&1; then
20175 ac_cv_cpp_def___sun__=yes
20176 else
20177 ac_cv_cpp_def___sun__=no
20179 rm -f conftest*
20182 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20183 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20184 if test $ac_cv_cpp_def___sun__ = yes; then
20185 CFLAGS="$CFLAGS -D__sun__"
20186 LINTFLAGS="$LINTFLAGS -D__sun__"
20189 esac
20195 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
20197 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
20199 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
20201 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
20203 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
20205 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
20207 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
20209 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
20211 ac_config_commands="$ac_config_commands dlls/kernel/messages"
20213 ac_config_commands="$ac_config_commands dlls/user/dde"
20215 ac_config_commands="$ac_config_commands dlls/user/resources"
20217 ac_config_commands="$ac_config_commands dlls/wineps/data"
20219 ac_config_commands="$ac_config_commands include/wine"
20221 ac_config_commands="$ac_config_commands misc"
20223 ac_config_commands="$ac_config_commands programs/regedit/tests"
20225 ac_config_commands="$ac_config_commands windows"
20228 MAKE_RULES=Make.rules
20231 MAKE_DLL_RULES=dlls/Makedll.rules
20234 MAKE_TEST_RULES=dlls/Maketest.rules
20237 MAKE_LIB_RULES=libs/Makelib.rules
20240 MAKE_PROG_RULES=programs/Makeprog.rules
20243 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/advpack/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/secur32/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/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/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
20246 cat >confcache <<\_ACEOF
20247 # This file is a shell script that caches the results of configure
20248 # tests run on this system so they can be shared between configure
20249 # scripts and configure runs, see configure's option --config-cache.
20250 # It is not useful on other systems. If it contains results you don't
20251 # want to keep, you may remove or edit it.
20253 # config.status only pays attention to the cache file if you give it
20254 # the --recheck option to rerun configure.
20256 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20258 # following values.
20260 _ACEOF
20262 # The following way of writing the cache mishandles newlines in values,
20263 # but we know of no workaround that is simple, portable, and efficient.
20264 # So, don't put newlines in cache variables' values.
20265 # Ultrix sh set writes to stderr and can't be redirected directly,
20266 # and sets the high bit in the cache file unless we assign to the vars.
20268 (set) 2>&1 |
20269 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20270 *ac_space=\ *)
20271 # `set' does not quote correctly, so add quotes (double-quote
20272 # substitution turns \\\\ into \\, and sed turns \\ into \).
20273 sed -n \
20274 "s/'/'\\\\''/g;
20275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20278 # `set' quotes correctly as required by POSIX, so do not add quotes.
20279 sed -n \
20280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20282 esac;
20284 sed '
20285 t clear
20286 : clear
20287 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20288 t end
20289 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20290 : end' >>confcache
20291 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20292 if test -w $cache_file; then
20293 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20294 cat confcache >$cache_file
20295 else
20296 echo "not updating unwritable cache $cache_file"
20299 rm -f confcache
20301 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20302 # Let make expand exec_prefix.
20303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20305 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20306 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20307 # trailing colons and then remove the whole line if VPATH becomes empty
20308 # (actually we leave an empty line to preserve line numbers).
20309 if test "x$srcdir" = x.; then
20310 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20311 s/:*\$(srcdir):*/:/;
20312 s/:*\${srcdir}:*/:/;
20313 s/:*@srcdir@:*/:/;
20314 s/^\([^=]*=[ ]*\):*/\1/;
20315 s/:*$//;
20316 s/^[^=]*=[ ]*$//;
20320 DEFS=-DHAVE_CONFIG_H
20322 ac_libobjs=
20323 ac_ltlibobjs=
20324 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20325 # 1. Remove the extension, and $U if already installed.
20326 ac_i=`echo "$ac_i" |
20327 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20328 # 2. Add them.
20329 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20330 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20331 done
20332 LIBOBJS=$ac_libobjs
20334 LTLIBOBJS=$ac_ltlibobjs
20338 : ${CONFIG_STATUS=./config.status}
20339 ac_clean_files_save=$ac_clean_files
20340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20341 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20342 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20343 cat >$CONFIG_STATUS <<_ACEOF
20344 #! $SHELL
20345 # Generated by $as_me.
20346 # Run this file to recreate the current configuration.
20347 # Compiler output produced by configure, useful for debugging
20348 # configure, is in config.log if it exists.
20350 debug=false
20351 ac_cs_recheck=false
20352 ac_cs_silent=false
20353 SHELL=\${CONFIG_SHELL-$SHELL}
20354 _ACEOF
20356 cat >>$CONFIG_STATUS <<\_ACEOF
20357 ## --------------------- ##
20358 ## M4sh Initialization. ##
20359 ## --------------------- ##
20361 # Be Bourne compatible
20362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20363 emulate sh
20364 NULLCMD=:
20365 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20366 # is contrary to our usage. Disable this feature.
20367 alias -g '${1+"$@"}'='"$@"'
20368 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20369 set -o posix
20371 DUALCASE=1; export DUALCASE # for MKS sh
20373 # Support unset when possible.
20374 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20375 as_unset=unset
20376 else
20377 as_unset=false
20381 # Work around bugs in pre-3.0 UWIN ksh.
20382 $as_unset ENV MAIL MAILPATH
20383 PS1='$ '
20384 PS2='> '
20385 PS4='+ '
20387 # NLS nuisances.
20388 for as_var in \
20389 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20390 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20391 LC_TELEPHONE LC_TIME
20393 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20394 eval $as_var=C; export $as_var
20395 else
20396 $as_unset $as_var
20398 done
20400 # Required to use basename.
20401 if expr a : '\(a\)' >/dev/null 2>&1; then
20402 as_expr=expr
20403 else
20404 as_expr=false
20407 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20408 as_basename=basename
20409 else
20410 as_basename=false
20414 # Name of the executable.
20415 as_me=`$as_basename "$0" ||
20416 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20417 X"$0" : 'X\(//\)$' \| \
20418 X"$0" : 'X\(/\)$' \| \
20419 . : '\(.\)' 2>/dev/null ||
20420 echo X/"$0" |
20421 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20422 /^X\/\(\/\/\)$/{ s//\1/; q; }
20423 /^X\/\(\/\).*/{ s//\1/; q; }
20424 s/.*/./; q'`
20427 # PATH needs CR, and LINENO needs CR and PATH.
20428 # Avoid depending upon Character Ranges.
20429 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20430 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20431 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20432 as_cr_digits='0123456789'
20433 as_cr_alnum=$as_cr_Letters$as_cr_digits
20435 # The user is always right.
20436 if test "${PATH_SEPARATOR+set}" != set; then
20437 echo "#! /bin/sh" >conf$$.sh
20438 echo "exit 0" >>conf$$.sh
20439 chmod +x conf$$.sh
20440 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20441 PATH_SEPARATOR=';'
20442 else
20443 PATH_SEPARATOR=:
20445 rm -f conf$$.sh
20449 as_lineno_1=$LINENO
20450 as_lineno_2=$LINENO
20451 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20452 test "x$as_lineno_1" != "x$as_lineno_2" &&
20453 test "x$as_lineno_3" = "x$as_lineno_2" || {
20454 # Find who we are. Look in the path if we contain no path at all
20455 # relative or not.
20456 case $0 in
20457 *[\\/]* ) as_myself=$0 ;;
20458 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20459 for as_dir in $PATH
20461 IFS=$as_save_IFS
20462 test -z "$as_dir" && as_dir=.
20463 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20464 done
20467 esac
20468 # We did not find ourselves, most probably we were run as `sh COMMAND'
20469 # in which case we are not to be found in the path.
20470 if test "x$as_myself" = x; then
20471 as_myself=$0
20473 if test ! -f "$as_myself"; then
20474 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20475 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20476 { (exit 1); exit 1; }; }
20478 case $CONFIG_SHELL in
20480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20481 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20483 IFS=$as_save_IFS
20484 test -z "$as_dir" && as_dir=.
20485 for as_base in sh bash ksh sh5; do
20486 case $as_dir in
20488 if ("$as_dir/$as_base" -c '
20489 as_lineno_1=$LINENO
20490 as_lineno_2=$LINENO
20491 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20492 test "x$as_lineno_1" != "x$as_lineno_2" &&
20493 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20494 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20495 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20496 CONFIG_SHELL=$as_dir/$as_base
20497 export CONFIG_SHELL
20498 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20499 fi;;
20500 esac
20501 done
20502 done
20504 esac
20506 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20507 # uniformly replaced by the line number. The first 'sed' inserts a
20508 # line-number line before each line; the second 'sed' does the real
20509 # work. The second script uses 'N' to pair each line-number line
20510 # with the numbered line, and appends trailing '-' during
20511 # substitution so that $LINENO is not a special case at line end.
20512 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20513 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20514 sed '=' <$as_myself |
20515 sed '
20517 s,$,-,
20518 : loop
20519 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20520 t loop
20521 s,-$,,
20522 s,^['$as_cr_digits']*\n,,
20523 ' >$as_me.lineno &&
20524 chmod +x $as_me.lineno ||
20525 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20526 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20527 { (exit 1); exit 1; }; }
20529 # Don't try to exec as it changes $[0], causing all sort of problems
20530 # (the dirname of $[0] is not the place where we might find the
20531 # original and so on. Autoconf is especially sensible to this).
20532 . ./$as_me.lineno
20533 # Exit status is that of the last command.
20534 exit
20538 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20539 *c*,-n*) ECHO_N= ECHO_C='
20540 ' ECHO_T=' ' ;;
20541 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20542 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20543 esac
20545 if expr a : '\(a\)' >/dev/null 2>&1; then
20546 as_expr=expr
20547 else
20548 as_expr=false
20551 rm -f conf$$ conf$$.exe conf$$.file
20552 echo >conf$$.file
20553 if ln -s conf$$.file conf$$ 2>/dev/null; then
20554 # We could just check for DJGPP; but this test a) works b) is more generic
20555 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20556 if test -f conf$$.exe; then
20557 # Don't use ln at all; we don't have any links
20558 as_ln_s='cp -p'
20559 else
20560 as_ln_s='ln -s'
20562 elif ln conf$$.file conf$$ 2>/dev/null; then
20563 as_ln_s=ln
20564 else
20565 as_ln_s='cp -p'
20567 rm -f conf$$ conf$$.exe conf$$.file
20569 if mkdir -p . 2>/dev/null; then
20570 as_mkdir_p=:
20571 else
20572 test -d ./-p && rmdir ./-p
20573 as_mkdir_p=false
20576 as_executable_p="test -f"
20578 # Sed expression to map a string onto a valid CPP name.
20579 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20581 # Sed expression to map a string onto a valid variable name.
20582 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20585 # IFS
20586 # We need space, tab and new line, in precisely that order.
20587 as_nl='
20589 IFS=" $as_nl"
20591 # CDPATH.
20592 $as_unset CDPATH
20594 exec 6>&1
20596 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20597 # report actual input values of CONFIG_FILES etc. instead of their
20598 # values after options handling. Logging --version etc. is OK.
20599 exec 5>>config.log
20601 echo
20602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20603 ## Running $as_me. ##
20604 _ASBOX
20605 } >&5
20606 cat >&5 <<_CSEOF
20608 This file was extended by Wine $as_me 20041019, which was
20609 generated by GNU Autoconf 2.59. Invocation command line was
20611 CONFIG_FILES = $CONFIG_FILES
20612 CONFIG_HEADERS = $CONFIG_HEADERS
20613 CONFIG_LINKS = $CONFIG_LINKS
20614 CONFIG_COMMANDS = $CONFIG_COMMANDS
20615 $ $0 $@
20617 _CSEOF
20618 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20619 echo >&5
20620 _ACEOF
20622 # Files that config.status was made for.
20623 if test -n "$ac_config_files"; then
20624 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20627 if test -n "$ac_config_headers"; then
20628 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20631 if test -n "$ac_config_links"; then
20632 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20635 if test -n "$ac_config_commands"; then
20636 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20639 cat >>$CONFIG_STATUS <<\_ACEOF
20641 ac_cs_usage="\
20642 \`$as_me' instantiates files from templates according to the
20643 current configuration.
20645 Usage: $0 [OPTIONS] [FILE]...
20647 -h, --help print this help, then exit
20648 -V, --version print version number, then exit
20649 -q, --quiet do not print progress messages
20650 -d, --debug don't remove temporary files
20651 --recheck update $as_me by reconfiguring in the same conditions
20652 --file=FILE[:TEMPLATE]
20653 instantiate the configuration file FILE
20654 --header=FILE[:TEMPLATE]
20655 instantiate the configuration header FILE
20657 Configuration files:
20658 $config_files
20660 Configuration headers:
20661 $config_headers
20663 Configuration commands:
20664 $config_commands
20666 Report bugs to <bug-autoconf@gnu.org>."
20667 _ACEOF
20669 cat >>$CONFIG_STATUS <<_ACEOF
20670 ac_cs_version="\\
20671 Wine config.status 20041019
20672 configured by $0, generated by GNU Autoconf 2.59,
20673 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20675 Copyright (C) 2003 Free Software Foundation, Inc.
20676 This config.status script is free software; the Free Software Foundation
20677 gives unlimited permission to copy, distribute and modify it."
20678 srcdir=$srcdir
20679 INSTALL="$INSTALL"
20680 _ACEOF
20682 cat >>$CONFIG_STATUS <<\_ACEOF
20683 # If no file are specified by the user, then we need to provide default
20684 # value. By we need to know if files were specified by the user.
20685 ac_need_defaults=:
20686 while test $# != 0
20688 case $1 in
20689 --*=*)
20690 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20691 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20692 ac_shift=:
20695 ac_option=$1
20696 ac_optarg=$2
20697 ac_shift=shift
20699 *) # This is not an option, so the user has probably given explicit
20700 # arguments.
20701 ac_option=$1
20702 ac_need_defaults=false;;
20703 esac
20705 case $ac_option in
20706 # Handling of the options.
20707 _ACEOF
20708 cat >>$CONFIG_STATUS <<\_ACEOF
20709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20710 ac_cs_recheck=: ;;
20711 --version | --vers* | -V )
20712 echo "$ac_cs_version"; exit 0 ;;
20713 --he | --h)
20714 # Conflict between --help and --header
20715 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20716 Try \`$0 --help' for more information." >&5
20717 echo "$as_me: error: ambiguous option: $1
20718 Try \`$0 --help' for more information." >&2;}
20719 { (exit 1); exit 1; }; };;
20720 --help | --hel | -h )
20721 echo "$ac_cs_usage"; exit 0 ;;
20722 --debug | --d* | -d )
20723 debug=: ;;
20724 --file | --fil | --fi | --f )
20725 $ac_shift
20726 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20727 ac_need_defaults=false;;
20728 --header | --heade | --head | --hea )
20729 $ac_shift
20730 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20731 ac_need_defaults=false;;
20732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20733 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20734 ac_cs_silent=: ;;
20736 # This is an error.
20737 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20738 Try \`$0 --help' for more information." >&5
20739 echo "$as_me: error: unrecognized option: $1
20740 Try \`$0 --help' for more information." >&2;}
20741 { (exit 1); exit 1; }; } ;;
20743 *) ac_config_targets="$ac_config_targets $1" ;;
20745 esac
20746 shift
20747 done
20749 ac_configure_extra_args=
20751 if $ac_cs_silent; then
20752 exec 6>/dev/null
20753 ac_configure_extra_args="$ac_configure_extra_args --silent"
20756 _ACEOF
20757 cat >>$CONFIG_STATUS <<_ACEOF
20758 if \$ac_cs_recheck; then
20759 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20760 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20763 _ACEOF
20769 cat >>$CONFIG_STATUS <<\_ACEOF
20770 for ac_config_target in $ac_config_targets
20772 case "$ac_config_target" in
20773 # Handling of arguments.
20774 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20775 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20776 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20777 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20778 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20779 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20780 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20781 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20782 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20783 "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20784 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20785 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20786 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20787 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20788 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20789 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20790 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20791 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20792 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20793 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20794 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20795 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20796 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20797 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20798 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20799 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20800 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20801 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20802 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20803 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20804 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20805 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20806 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20807 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20808 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20809 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20810 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20811 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20812 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20813 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20814 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20815 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20816 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20817 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20818 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20819 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20820 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20821 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20822 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20823 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20824 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20825 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20826 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20827 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20828 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20829 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20830 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20831 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20832 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20833 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20834 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20835 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20836 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20837 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20838 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20839 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20840 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20841 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20842 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20843 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20844 "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20845 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20846 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20847 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20848 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20849 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20850 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20851 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20852 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20853 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20854 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20855 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20856 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20857 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20858 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20859 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20860 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20861 "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20862 "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20863 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20864 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20865 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20866 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20867 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20868 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20869 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20870 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20871 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20872 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20873 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20874 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20875 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20876 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20877 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20878 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20879 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20880 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20881 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20882 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20883 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20884 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20885 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20886 "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20887 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20888 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20889 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20890 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20891 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20892 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20893 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20894 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20895 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20896 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20897 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20898 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20899 "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20900 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20901 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20902 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20903 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20904 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20905 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20906 "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20907 "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
20908 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20909 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20910 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20911 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20912 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20913 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20914 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20915 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20916 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20917 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20918 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20919 "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20920 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20921 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20922 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20923 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20924 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20925 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20926 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20927 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20928 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20929 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20930 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20931 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20932 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20933 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20934 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20935 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20936 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20937 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20938 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20939 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20940 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20941 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20942 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20943 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20944 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20945 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20946 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20947 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20948 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20949 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20950 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20951 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20952 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20953 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20954 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20955 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20956 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20957 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20958 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20959 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20960 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20961 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20962 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20963 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20964 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20965 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20966 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20967 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20968 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20969 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20970 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20971 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20972 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20973 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20974 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20975 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20976 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20977 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20978 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20979 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20980 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20981 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20982 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20983 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20984 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20985 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20986 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20987 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20988 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20989 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20990 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20991 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20992 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20993 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20994 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20995 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20996 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20997 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20998 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20999 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
21000 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21001 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21002 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21003 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21004 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
21005 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21006 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21007 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21008 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21009 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21010 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21011 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21012 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21013 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21014 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21015 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21016 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
21017 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21018 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21019 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21020 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21021 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21022 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
21023 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
21024 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
21025 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
21026 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
21027 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
21028 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
21029 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
21030 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
21031 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
21032 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
21033 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
21034 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21035 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
21036 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
21037 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
21038 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21039 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21040 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21041 { (exit 1); exit 1; }; };;
21042 esac
21043 done
21045 # If the user did not use the arguments to specify the items to instantiate,
21046 # then the envvar interface is used. Set only those that are not.
21047 # We use the long form for the default assignment because of an extremely
21048 # bizarre bug on SunOS 4.1.3.
21049 if $ac_need_defaults; then
21050 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21051 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21052 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21055 # Have a temporary directory for convenience. Make it in the build tree
21056 # simply because there is no reason to put it here, and in addition,
21057 # creating and moving files from /tmp can sometimes cause problems.
21058 # Create a temporary directory, and hook for its removal unless debugging.
21059 $debug ||
21061 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21062 trap '{ (exit 1); exit 1; }' 1 2 13 15
21065 # Create a (secure) tmp directory for tmp files.
21068 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21069 test -n "$tmp" && test -d "$tmp"
21070 } ||
21072 tmp=./confstat$$-$RANDOM
21073 (umask 077 && mkdir $tmp)
21074 } ||
21076 echo "$me: cannot create a temporary directory in ." >&2
21077 { (exit 1); exit 1; }
21080 _ACEOF
21082 cat >>$CONFIG_STATUS <<_ACEOF
21085 # CONFIG_FILES section.
21088 # No need to generate the scripts if there are no CONFIG_FILES.
21089 # This happens for instance when ./config.status config.h
21090 if test -n "\$CONFIG_FILES"; then
21091 # Protect against being on the right side of a sed subst in config.status.
21092 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21093 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21094 s,@SHELL@,$SHELL,;t t
21095 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21096 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21097 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21098 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21099 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21100 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21101 s,@exec_prefix@,$exec_prefix,;t t
21102 s,@prefix@,$prefix,;t t
21103 s,@program_transform_name@,$program_transform_name,;t t
21104 s,@bindir@,$bindir,;t t
21105 s,@sbindir@,$sbindir,;t t
21106 s,@libexecdir@,$libexecdir,;t t
21107 s,@datadir@,$datadir,;t t
21108 s,@sysconfdir@,$sysconfdir,;t t
21109 s,@sharedstatedir@,$sharedstatedir,;t t
21110 s,@localstatedir@,$localstatedir,;t t
21111 s,@libdir@,$libdir,;t t
21112 s,@includedir@,$includedir,;t t
21113 s,@oldincludedir@,$oldincludedir,;t t
21114 s,@infodir@,$infodir,;t t
21115 s,@mandir@,$mandir,;t t
21116 s,@build_alias@,$build_alias,;t t
21117 s,@host_alias@,$host_alias,;t t
21118 s,@target_alias@,$target_alias,;t t
21119 s,@DEFS@,$DEFS,;t t
21120 s,@ECHO_C@,$ECHO_C,;t t
21121 s,@ECHO_N@,$ECHO_N,;t t
21122 s,@ECHO_T@,$ECHO_T,;t t
21123 s,@LIBS@,$LIBS,;t t
21124 s,@WIN16_FILES@,$WIN16_FILES,;t t
21125 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
21126 s,@DLLDEFS@,$DLLDEFS,;t t
21127 s,@build@,$build,;t t
21128 s,@build_cpu@,$build_cpu,;t t
21129 s,@build_vendor@,$build_vendor,;t t
21130 s,@build_os@,$build_os,;t t
21131 s,@host@,$host,;t t
21132 s,@host_cpu@,$host_cpu,;t t
21133 s,@host_vendor@,$host_vendor,;t t
21134 s,@host_os@,$host_os,;t t
21135 s,@SET_MAKE@,$SET_MAKE,;t t
21136 s,@CC@,$CC,;t t
21137 s,@CFLAGS@,$CFLAGS,;t t
21138 s,@LDFLAGS@,$LDFLAGS,;t t
21139 s,@CPPFLAGS@,$CPPFLAGS,;t t
21140 s,@ac_ct_CC@,$ac_ct_CC,;t t
21141 s,@EXEEXT@,$EXEEXT,;t t
21142 s,@OBJEXT@,$OBJEXT,;t t
21143 s,@CXX@,$CXX,;t t
21144 s,@CXXFLAGS@,$CXXFLAGS,;t t
21145 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21146 s,@CPPBIN@,$CPPBIN,;t t
21147 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
21148 s,@TOOLSDIR@,$TOOLSDIR,;t t
21149 s,@CPP@,$CPP,;t t
21150 s,@X_CFLAGS@,$X_CFLAGS,;t t
21151 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21152 s,@X_LIBS@,$X_LIBS,;t t
21153 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21154 s,@LEX@,$LEX,;t t
21155 s,@LEXLIB@,$LEXLIB,;t t
21156 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
21157 s,@XLEX@,$XLEX,;t t
21158 s,@BISON@,$BISON,;t t
21159 s,@AS@,$AS,;t t
21160 s,@ac_ct_AS@,$ac_ct_AS,;t t
21161 s,@LD@,$LD,;t t
21162 s,@ac_ct_LD@,$ac_ct_LD,;t t
21163 s,@AR@,$AR,;t t
21164 s,@ac_ct_AR@,$ac_ct_AR,;t t
21165 s,@RANLIB@,$RANLIB,;t t
21166 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21167 s,@STRIP@,$STRIP,;t t
21168 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21169 s,@WINDRES@,$WINDRES,;t t
21170 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21171 s,@LN_S@,$LN_S,;t t
21172 s,@LN@,$LN,;t t
21173 s,@EGREP@,$EGREP,;t t
21174 s,@LDCONFIG@,$LDCONFIG,;t t
21175 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21176 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21177 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21178 s,@LINT@,$LINT,;t t
21179 s,@LINTFLAGS@,$LINTFLAGS,;t t
21180 s,@DB2HTML@,$DB2HTML,;t t
21181 s,@DB2PDF@,$DB2PDF,;t t
21182 s,@DB2PS@,$DB2PS,;t t
21183 s,@DB2TXT@,$DB2TXT,;t t
21184 s,@FONTFORGE@,$FONTFORGE,;t t
21185 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
21186 s,@XLIB@,$XLIB,;t t
21187 s,@XFILES@,$XFILES,;t t
21188 s,@OPENGLFILES@,$OPENGLFILES,;t t
21189 s,@GLU32FILES@,$GLU32FILES,;t t
21190 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
21191 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21192 s,@GLUT32FILES@,$GLUT32FILES,;t t
21193 s,@NASLIBS@,$NASLIBS,;t t
21194 s,@CURSESLIBS@,$CURSESLIBS,;t t
21195 s,@sane_devel@,$sane_devel,;t t
21196 s,@SANELIBS@,$SANELIBS,;t t
21197 s,@SANEINCL@,$SANEINCL,;t t
21198 s,@ICULIBS@,$ICULIBS,;t t
21199 s,@ft_devel@,$ft_devel,;t t
21200 s,@ft_devel2@,$ft_devel2,;t t
21201 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
21202 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
21203 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
21204 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21205 s,@ARTSLIBS@,$ARTSLIBS,;t t
21206 s,@ARTSINCL@,$ARTSINCL,;t t
21207 s,@ALSALIBS@,$ALSALIBS,;t t
21208 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
21209 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
21210 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
21211 s,@DLLEXT@,$DLLEXT,;t t
21212 s,@DLLFLAGS@,$DLLFLAGS,;t t
21213 s,@DLLIBS@,$DLLIBS,;t t
21214 s,@LDSHARED@,$LDSHARED,;t t
21215 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
21216 s,@LIBEXT@,$LIBEXT,;t t
21217 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21218 s,@DLLTOOL@,$DLLTOOL,;t t
21219 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21220 s,@DLLWRAP@,$DLLWRAP,;t t
21221 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
21222 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
21223 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
21224 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
21225 s,@IOKITLIB@,$IOKITLIB,;t t
21226 s,@CROSSTEST@,$CROSSTEST,;t t
21227 s,@CROSSCC@,$CROSSCC,;t t
21228 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
21229 s,@LDPATH@,$LDPATH,;t t
21230 s,@CRTLIBS@,$CRTLIBS,;t t
21231 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
21232 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21233 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
21234 s,@LDD@,$LDD,;t t
21235 s,@ALLOCA@,$ALLOCA,;t t
21236 s,@LIBOBJS@,$LIBOBJS,;t t
21237 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21238 /@MAKE_RULES@/r $MAKE_RULES
21239 s,@MAKE_RULES@,,;t t
21240 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21241 s,@MAKE_DLL_RULES@,,;t t
21242 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21243 s,@MAKE_TEST_RULES@,,;t t
21244 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21245 s,@MAKE_LIB_RULES@,,;t t
21246 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21247 s,@MAKE_PROG_RULES@,,;t t
21248 CEOF
21250 _ACEOF
21252 cat >>$CONFIG_STATUS <<\_ACEOF
21253 # Split the substitutions into bite-sized pieces for seds with
21254 # small command number limits, like on Digital OSF/1 and HP-UX.
21255 ac_max_sed_lines=48
21256 ac_sed_frag=1 # Number of current file.
21257 ac_beg=1 # First line for current file.
21258 ac_end=$ac_max_sed_lines # Line after last line for current file.
21259 ac_more_lines=:
21260 ac_sed_cmds=
21261 while $ac_more_lines; do
21262 if test $ac_beg -gt 1; then
21263 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21264 else
21265 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21267 if test ! -s $tmp/subs.frag; then
21268 ac_more_lines=false
21269 else
21270 # The purpose of the label and of the branching condition is to
21271 # speed up the sed processing (if there are no `@' at all, there
21272 # is no need to browse any of the substitutions).
21273 # These are the two extra sed commands mentioned above.
21274 (echo ':t
21275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21276 if test -z "$ac_sed_cmds"; then
21277 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21278 else
21279 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21281 ac_sed_frag=`expr $ac_sed_frag + 1`
21282 ac_beg=$ac_end
21283 ac_end=`expr $ac_end + $ac_max_sed_lines`
21285 done
21286 if test -z "$ac_sed_cmds"; then
21287 ac_sed_cmds=cat
21289 fi # test -n "$CONFIG_FILES"
21291 _ACEOF
21292 cat >>$CONFIG_STATUS <<\_ACEOF
21293 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21295 case $ac_file in
21296 - | *:- | *:-:* ) # input from stdin
21297 cat >$tmp/stdin
21298 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21300 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21302 * ) ac_file_in=$ac_file.in ;;
21303 esac
21305 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21306 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21308 X"$ac_file" : 'X\(//\)[^/]' \| \
21309 X"$ac_file" : 'X\(//\)$' \| \
21310 X"$ac_file" : 'X\(/\)' \| \
21311 . : '\(.\)' 2>/dev/null ||
21312 echo X"$ac_file" |
21313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21315 /^X\(\/\/\)$/{ s//\1/; q; }
21316 /^X\(\/\).*/{ s//\1/; q; }
21317 s/.*/./; q'`
21318 { if $as_mkdir_p; then
21319 mkdir -p "$ac_dir"
21320 else
21321 as_dir="$ac_dir"
21322 as_dirs=
21323 while test ! -d "$as_dir"; do
21324 as_dirs="$as_dir $as_dirs"
21325 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21327 X"$as_dir" : 'X\(//\)[^/]' \| \
21328 X"$as_dir" : 'X\(//\)$' \| \
21329 X"$as_dir" : 'X\(/\)' \| \
21330 . : '\(.\)' 2>/dev/null ||
21331 echo X"$as_dir" |
21332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21334 /^X\(\/\/\)$/{ s//\1/; q; }
21335 /^X\(\/\).*/{ s//\1/; q; }
21336 s/.*/./; q'`
21337 done
21338 test ! -n "$as_dirs" || mkdir $as_dirs
21339 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21340 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21341 { (exit 1); exit 1; }; }; }
21343 ac_builddir=.
21345 if test "$ac_dir" != .; then
21346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21347 # A "../" for each directory in $ac_dir_suffix.
21348 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21349 else
21350 ac_dir_suffix= ac_top_builddir=
21353 case $srcdir in
21354 .) # No --srcdir option. We are building in place.
21355 ac_srcdir=.
21356 if test -z "$ac_top_builddir"; then
21357 ac_top_srcdir=.
21358 else
21359 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21360 fi ;;
21361 [\\/]* | ?:[\\/]* ) # Absolute path.
21362 ac_srcdir=$srcdir$ac_dir_suffix;
21363 ac_top_srcdir=$srcdir ;;
21364 *) # Relative path.
21365 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21366 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21367 esac
21369 # Do not use `cd foo && pwd` to compute absolute paths, because
21370 # the directories may not exist.
21371 case `pwd` in
21372 .) ac_abs_builddir="$ac_dir";;
21374 case "$ac_dir" in
21375 .) ac_abs_builddir=`pwd`;;
21376 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21377 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21378 esac;;
21379 esac
21380 case $ac_abs_builddir in
21381 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21383 case ${ac_top_builddir}. in
21384 .) ac_abs_top_builddir=$ac_abs_builddir;;
21385 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21386 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21387 esac;;
21388 esac
21389 case $ac_abs_builddir in
21390 .) ac_abs_srcdir=$ac_srcdir;;
21392 case $ac_srcdir in
21393 .) ac_abs_srcdir=$ac_abs_builddir;;
21394 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21395 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21396 esac;;
21397 esac
21398 case $ac_abs_builddir in
21399 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21401 case $ac_top_srcdir in
21402 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21403 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21404 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21405 esac;;
21406 esac
21409 case $INSTALL in
21410 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21411 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21412 esac
21414 # Let's still pretend it is `configure' which instantiates (i.e., don't
21415 # use $as_me), people would be surprised to read:
21416 # /* config.h. Generated by config.status. */
21417 if test x"$ac_file" = x-; then
21418 configure_input=
21419 else
21420 configure_input="$ac_file. "
21422 configure_input=$configure_input"Generated from `echo $ac_file_in |
21423 sed 's,.*/,,'` by configure."
21425 # First look for the input files in the build tree, otherwise in the
21426 # src tree.
21427 ac_file_inputs=`IFS=:
21428 for f in $ac_file_in; do
21429 case $f in
21430 -) echo $tmp/stdin ;;
21431 [\\/$]*)
21432 # Absolute (can't be DOS-style, as IFS=:)
21433 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21434 echo "$as_me: error: cannot find input file: $f" >&2;}
21435 { (exit 1); exit 1; }; }
21436 echo "$f";;
21437 *) # Relative
21438 if test -f "$f"; then
21439 # Build tree
21440 echo "$f"
21441 elif test -f "$srcdir/$f"; then
21442 # Source tree
21443 echo "$srcdir/$f"
21444 else
21445 # /dev/null tree
21446 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21447 echo "$as_me: error: cannot find input file: $f" >&2;}
21448 { (exit 1); exit 1; }; }
21449 fi;;
21450 esac
21451 done` || { (exit 1); exit 1; }
21453 if test x"$ac_file" != x-; then
21454 { echo "$as_me:$LINENO: creating $ac_file" >&5
21455 echo "$as_me: creating $ac_file" >&6;}
21456 rm -f "$ac_file"
21458 _ACEOF
21459 cat >>$CONFIG_STATUS <<_ACEOF
21460 sed "$ac_vpsub
21461 $extrasub
21462 _ACEOF
21463 cat >>$CONFIG_STATUS <<\_ACEOF
21465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21466 s,@configure_input@,$configure_input,;t t
21467 s,@srcdir@,$ac_srcdir,;t t
21468 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21469 s,@top_srcdir@,$ac_top_srcdir,;t t
21470 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21471 s,@builddir@,$ac_builddir,;t t
21472 s,@abs_builddir@,$ac_abs_builddir,;t t
21473 s,@top_builddir@,$ac_top_builddir,;t t
21474 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21475 s,@INSTALL@,$ac_INSTALL,;t t
21476 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21477 rm -f $tmp/stdin
21478 if test x"$ac_file" != x-; then
21479 mv $tmp/out $ac_file
21480 else
21481 cat $tmp/out
21482 rm -f $tmp/out
21485 done
21486 _ACEOF
21487 cat >>$CONFIG_STATUS <<\_ACEOF
21490 # CONFIG_HEADER section.
21493 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21494 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21496 # ac_d sets the value in "#define NAME VALUE" lines.
21497 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21498 ac_dB='[ ].*$,\1#\2'
21499 ac_dC=' '
21500 ac_dD=',;t'
21501 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21502 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21503 ac_uB='$,\1#\2define\3'
21504 ac_uC=' '
21505 ac_uD=',;t'
21507 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21508 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21509 case $ac_file in
21510 - | *:- | *:-:* ) # input from stdin
21511 cat >$tmp/stdin
21512 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21513 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21514 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21515 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21516 * ) ac_file_in=$ac_file.in ;;
21517 esac
21519 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21520 echo "$as_me: creating $ac_file" >&6;}
21522 # First look for the input files in the build tree, otherwise in the
21523 # src tree.
21524 ac_file_inputs=`IFS=:
21525 for f in $ac_file_in; do
21526 case $f in
21527 -) echo $tmp/stdin ;;
21528 [\\/$]*)
21529 # Absolute (can't be DOS-style, as IFS=:)
21530 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21531 echo "$as_me: error: cannot find input file: $f" >&2;}
21532 { (exit 1); exit 1; }; }
21533 # Do quote $f, to prevent DOS paths from being IFS'd.
21534 echo "$f";;
21535 *) # Relative
21536 if test -f "$f"; then
21537 # Build tree
21538 echo "$f"
21539 elif test -f "$srcdir/$f"; then
21540 # Source tree
21541 echo "$srcdir/$f"
21542 else
21543 # /dev/null tree
21544 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21545 echo "$as_me: error: cannot find input file: $f" >&2;}
21546 { (exit 1); exit 1; }; }
21547 fi;;
21548 esac
21549 done` || { (exit 1); exit 1; }
21550 # Remove the trailing spaces.
21551 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21553 _ACEOF
21555 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21556 # `conftest.undefs', that substitutes the proper values into
21557 # config.h.in to produce config.h. The first handles `#define'
21558 # templates, and the second `#undef' templates.
21559 # And first: Protect against being on the right side of a sed subst in
21560 # config.status. Protect against being in an unquoted here document
21561 # in config.status.
21562 rm -f conftest.defines conftest.undefs
21563 # Using a here document instead of a string reduces the quoting nightmare.
21564 # Putting comments in sed scripts is not portable.
21566 # `end' is used to avoid that the second main sed command (meant for
21567 # 0-ary CPP macros) applies to n-ary macro definitions.
21568 # See the Autoconf documentation for `clear'.
21569 cat >confdef2sed.sed <<\_ACEOF
21570 s/[\\&,]/\\&/g
21571 s,[\\$`],\\&,g
21572 t clear
21573 : clear
21574 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21575 t end
21576 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21577 : end
21578 _ACEOF
21579 # If some macros were called several times there might be several times
21580 # the same #defines, which is useless. Nevertheless, we may not want to
21581 # sort them, since we want the *last* AC-DEFINE to be honored.
21582 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21583 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21584 rm -f confdef2sed.sed
21586 # This sed command replaces #undef with comments. This is necessary, for
21587 # example, in the case of _POSIX_SOURCE, which is predefined and required
21588 # on some systems where configure will not decide to define it.
21589 cat >>conftest.undefs <<\_ACEOF
21590 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21591 _ACEOF
21593 # Break up conftest.defines because some shells have a limit on the size
21594 # of here documents, and old seds have small limits too (100 cmds).
21595 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21596 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21597 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21598 echo ' :' >>$CONFIG_STATUS
21599 rm -f conftest.tail
21600 while grep . conftest.defines >/dev/null
21602 # Write a limited-size here document to $tmp/defines.sed.
21603 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21604 # Speed up: don't consider the non `#define' lines.
21605 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21606 # Work around the forget-to-reset-the-flag bug.
21607 echo 't clr' >>$CONFIG_STATUS
21608 echo ': clr' >>$CONFIG_STATUS
21609 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21610 echo 'CEOF
21611 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21612 rm -f $tmp/in
21613 mv $tmp/out $tmp/in
21614 ' >>$CONFIG_STATUS
21615 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21616 rm -f conftest.defines
21617 mv conftest.tail conftest.defines
21618 done
21619 rm -f conftest.defines
21620 echo ' fi # grep' >>$CONFIG_STATUS
21621 echo >>$CONFIG_STATUS
21623 # Break up conftest.undefs because some shells have a limit on the size
21624 # of here documents, and old seds have small limits too (100 cmds).
21625 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21626 rm -f conftest.tail
21627 while grep . conftest.undefs >/dev/null
21629 # Write a limited-size here document to $tmp/undefs.sed.
21630 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21631 # Speed up: don't consider the non `#undef'
21632 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21633 # Work around the forget-to-reset-the-flag bug.
21634 echo 't clr' >>$CONFIG_STATUS
21635 echo ': clr' >>$CONFIG_STATUS
21636 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21637 echo 'CEOF
21638 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21639 rm -f $tmp/in
21640 mv $tmp/out $tmp/in
21641 ' >>$CONFIG_STATUS
21642 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21643 rm -f conftest.undefs
21644 mv conftest.tail conftest.undefs
21645 done
21646 rm -f conftest.undefs
21648 cat >>$CONFIG_STATUS <<\_ACEOF
21649 # Let's still pretend it is `configure' which instantiates (i.e., don't
21650 # use $as_me), people would be surprised to read:
21651 # /* config.h. Generated by config.status. */
21652 if test x"$ac_file" = x-; then
21653 echo "/* Generated by configure. */" >$tmp/config.h
21654 else
21655 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21657 cat $tmp/in >>$tmp/config.h
21658 rm -f $tmp/in
21659 if test x"$ac_file" != x-; then
21660 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21661 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21662 echo "$as_me: $ac_file is unchanged" >&6;}
21663 else
21664 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21665 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21666 X"$ac_file" : 'X\(//\)[^/]' \| \
21667 X"$ac_file" : 'X\(//\)$' \| \
21668 X"$ac_file" : 'X\(/\)' \| \
21669 . : '\(.\)' 2>/dev/null ||
21670 echo X"$ac_file" |
21671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21673 /^X\(\/\/\)$/{ s//\1/; q; }
21674 /^X\(\/\).*/{ s//\1/; q; }
21675 s/.*/./; q'`
21676 { if $as_mkdir_p; then
21677 mkdir -p "$ac_dir"
21678 else
21679 as_dir="$ac_dir"
21680 as_dirs=
21681 while test ! -d "$as_dir"; do
21682 as_dirs="$as_dir $as_dirs"
21683 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21684 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21685 X"$as_dir" : 'X\(//\)[^/]' \| \
21686 X"$as_dir" : 'X\(//\)$' \| \
21687 X"$as_dir" : 'X\(/\)' \| \
21688 . : '\(.\)' 2>/dev/null ||
21689 echo X"$as_dir" |
21690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21691 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21692 /^X\(\/\/\)$/{ s//\1/; q; }
21693 /^X\(\/\).*/{ s//\1/; q; }
21694 s/.*/./; q'`
21695 done
21696 test ! -n "$as_dirs" || mkdir $as_dirs
21697 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21698 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21699 { (exit 1); exit 1; }; }; }
21701 rm -f $ac_file
21702 mv $tmp/config.h $ac_file
21704 else
21705 cat $tmp/config.h
21706 rm -f $tmp/config.h
21708 done
21709 _ACEOF
21710 cat >>$CONFIG_STATUS <<\_ACEOF
21713 # CONFIG_COMMANDS section.
21715 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21716 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21717 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21718 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21719 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21720 X"$ac_dest" : 'X\(//\)[^/]' \| \
21721 X"$ac_dest" : 'X\(//\)$' \| \
21722 X"$ac_dest" : 'X\(/\)' \| \
21723 . : '\(.\)' 2>/dev/null ||
21724 echo X"$ac_dest" |
21725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21727 /^X\(\/\/\)$/{ s//\1/; q; }
21728 /^X\(\/\).*/{ s//\1/; q; }
21729 s/.*/./; q'`
21730 { if $as_mkdir_p; then
21731 mkdir -p "$ac_dir"
21732 else
21733 as_dir="$ac_dir"
21734 as_dirs=
21735 while test ! -d "$as_dir"; do
21736 as_dirs="$as_dir $as_dirs"
21737 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21739 X"$as_dir" : 'X\(//\)[^/]' \| \
21740 X"$as_dir" : 'X\(//\)$' \| \
21741 X"$as_dir" : 'X\(/\)' \| \
21742 . : '\(.\)' 2>/dev/null ||
21743 echo X"$as_dir" |
21744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21745 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21746 /^X\(\/\/\)$/{ s//\1/; q; }
21747 /^X\(\/\).*/{ s//\1/; q; }
21748 s/.*/./; q'`
21749 done
21750 test ! -n "$as_dirs" || mkdir $as_dirs
21751 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21752 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21753 { (exit 1); exit 1; }; }; }
21755 ac_builddir=.
21757 if test "$ac_dir" != .; then
21758 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21759 # A "../" for each directory in $ac_dir_suffix.
21760 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21761 else
21762 ac_dir_suffix= ac_top_builddir=
21765 case $srcdir in
21766 .) # No --srcdir option. We are building in place.
21767 ac_srcdir=.
21768 if test -z "$ac_top_builddir"; then
21769 ac_top_srcdir=.
21770 else
21771 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21772 fi ;;
21773 [\\/]* | ?:[\\/]* ) # Absolute path.
21774 ac_srcdir=$srcdir$ac_dir_suffix;
21775 ac_top_srcdir=$srcdir ;;
21776 *) # Relative path.
21777 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21778 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21779 esac
21781 # Do not use `cd foo && pwd` to compute absolute paths, because
21782 # the directories may not exist.
21783 case `pwd` in
21784 .) ac_abs_builddir="$ac_dir";;
21786 case "$ac_dir" in
21787 .) ac_abs_builddir=`pwd`;;
21788 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21789 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21790 esac;;
21791 esac
21792 case $ac_abs_builddir in
21793 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21795 case ${ac_top_builddir}. in
21796 .) ac_abs_top_builddir=$ac_abs_builddir;;
21797 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21798 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21799 esac;;
21800 esac
21801 case $ac_abs_builddir in
21802 .) ac_abs_srcdir=$ac_srcdir;;
21804 case $ac_srcdir in
21805 .) ac_abs_srcdir=$ac_abs_builddir;;
21806 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21807 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21808 esac;;
21809 esac
21810 case $ac_abs_builddir in
21811 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21813 case $ac_top_srcdir in
21814 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21815 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21816 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21817 esac;;
21818 esac
21821 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21822 echo "$as_me: executing $ac_dest commands" >&6;}
21823 case $ac_dest in
21824 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21825 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21826 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21827 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21828 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21829 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21830 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21831 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21832 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21833 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21834 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21835 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21836 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21837 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21838 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21839 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21840 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21841 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21842 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21843 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21844 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21845 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21846 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21847 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21848 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21849 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21850 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21851 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21852 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21853 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21854 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21855 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21856 esac
21857 done
21858 _ACEOF
21860 cat >>$CONFIG_STATUS <<\_ACEOF
21862 { (exit 0); exit 0; }
21863 _ACEOF
21864 chmod +x $CONFIG_STATUS
21865 ac_clean_files=$ac_clean_files_save
21868 # configure is writing to config.log, and then calls config.status.
21869 # config.status does its own redirection, appending to config.log.
21870 # Unfortunately, on DOS this fails, as config.log is still kept open
21871 # by configure, so config.status won't be able to write to it; its
21872 # output is simply discarded. So we exec the FD to /dev/null,
21873 # effectively closing config.log, so it can be properly (re)opened and
21874 # appended to by config.status. When coming back to configure, we
21875 # need to make the FD available again.
21876 if test "$no_create" != yes; then
21877 ac_cs_success=:
21878 ac_config_status_args=
21879 test "$silent" = yes &&
21880 ac_config_status_args="$ac_config_status_args --quiet"
21881 exec 5>/dev/null
21882 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21883 exec 5>>config.log
21884 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21885 # would make configure fail if this is the last instruction.
21886 $ac_cs_success || { (exit 1); exit 1; }
21890 if test "$have_x" = "no"
21891 then
21892 echo
21893 echo "*** Warning: X development files not found. Wine will be built without"
21894 echo "*** X support, which currently does not work, and would probably not be"
21895 echo "*** what you want anyway. You will need to install devel packages of"
21896 echo "*** Xlib/Xfree86 at the very least."
21899 if test "$wine_cv_opengl_version_OK" = "no"
21900 then
21901 echo
21902 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21903 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21906 if test "$wine_cv_msg_freetype" = "yes"
21907 then
21908 echo
21909 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21910 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21911 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21912 echo "*** enable Wine to use TrueType fonts."
21915 echo
21916 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
21917 echo