- Windows reports 0x80 on pressed buttons not 0xFF
[wine/multimedia.git] / configure
blobc42fe23aed05edeeb44bd3f2b7df91ed07e77b88
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20050419.
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='20050419'
273 PACKAGE_STRING='Wine 20050419'
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 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 20050419 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 20050419:";;
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 20050419
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 20050419, 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"
1490 host_cpu="i386"
1493 esac
1495 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1496 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1497 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1498 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501 cat >conftest.make <<\_ACEOF
1502 all:
1503 @echo 'ac_maketemp="$(MAKE)"'
1504 _ACEOF
1505 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1506 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1507 if test -n "$ac_maketemp"; then
1508 eval ac_cv_prog_make_${ac_make}_set=yes
1509 else
1510 eval ac_cv_prog_make_${ac_make}_set=no
1512 rm -f conftest.make
1514 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1515 echo "$as_me:$LINENO: result: yes" >&5
1516 echo "${ECHO_T}yes" >&6
1517 SET_MAKE=
1518 else
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1521 SET_MAKE="MAKE=${MAKE-make}"
1524 ac_ext=c
1525 ac_cpp='$CPP $CPPFLAGS'
1526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1529 if test -n "$ac_tool_prefix"; then
1530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1531 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_CC+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537 if test -n "$CC"; then
1538 ac_cv_prog_CC="$CC" # Let the user override the test.
1539 else
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 for as_dir in $PATH
1543 IFS=$as_save_IFS
1544 test -z "$as_dir" && as_dir=.
1545 for ac_exec_ext in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 break 2
1551 done
1552 done
1556 CC=$ac_cv_prog_CC
1557 if test -n "$CC"; then
1558 echo "$as_me:$LINENO: result: $CC" >&5
1559 echo "${ECHO_T}$CC" >&6
1560 else
1561 echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1566 if test -z "$ac_cv_prog_CC"; then
1567 ac_ct_CC=$CC
1568 # Extract the first word of "gcc", so it can be a program name with args.
1569 set dummy gcc; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 if test -n "$ac_ct_CC"; then
1576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577 else
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 for as_dir in $PATH
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_ac_ct_CC="gcc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1589 done
1590 done
1594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1595 if test -n "$ac_ct_CC"; then
1596 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1597 echo "${ECHO_T}$ac_ct_CC" >&6
1598 else
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1603 CC=$ac_ct_CC
1604 else
1605 CC="$ac_cv_prog_CC"
1608 if test -z "$CC"; then
1609 if test -n "$ac_tool_prefix"; then
1610 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1611 set dummy ${ac_tool_prefix}cc; ac_word=$2
1612 echo "$as_me:$LINENO: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 else
1617 if test -n "$CC"; then
1618 ac_cv_prog_CC="$CC" # Let the user override the test.
1619 else
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 for as_dir in $PATH
1623 IFS=$as_save_IFS
1624 test -z "$as_dir" && as_dir=.
1625 for ac_exec_ext in '' $ac_executable_extensions; do
1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627 ac_cv_prog_CC="${ac_tool_prefix}cc"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 break 2
1631 done
1632 done
1636 CC=$ac_cv_prog_CC
1637 if test -n "$CC"; then
1638 echo "$as_me:$LINENO: result: $CC" >&5
1639 echo "${ECHO_T}$CC" >&6
1640 else
1641 echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1646 if test -z "$ac_cv_prog_CC"; then
1647 ac_ct_CC=$CC
1648 # Extract the first word of "cc", so it can be a program name with args.
1649 set dummy cc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$ac_ct_CC"; then
1656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_ac_ct_CC="cc"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1669 done
1670 done
1674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1675 if test -n "$ac_ct_CC"; then
1676 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1677 echo "${ECHO_T}$ac_ct_CC" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1683 CC=$ac_ct_CC
1684 else
1685 CC="$ac_cv_prog_CC"
1689 if test -z "$CC"; then
1690 # Extract the first word of "cc", so it can be a program name with args.
1691 set dummy cc; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1699 else
1700 ac_prog_rejected=no
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1709 ac_prog_rejected=yes
1710 continue
1712 ac_cv_prog_CC="cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1716 done
1717 done
1719 if test $ac_prog_rejected = yes; then
1720 # We found a bogon in the path, so make sure we never use it.
1721 set dummy $ac_cv_prog_CC
1722 shift
1723 if test $# != 0; then
1724 # We chose a different compiler from the bogus one.
1725 # However, it has the same basename, so the bogon will be chosen
1726 # first if we set CC to just the basename; use the full file name.
1727 shift
1728 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1733 CC=$ac_cv_prog_CC
1734 if test -n "$CC"; then
1735 echo "$as_me:$LINENO: result: $CC" >&5
1736 echo "${ECHO_T}$CC" >&6
1737 else
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1743 if test -z "$CC"; then
1744 if test -n "$ac_tool_prefix"; then
1745 for ac_prog in cl
1747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754 if test -n "$CC"; then
1755 ac_cv_prog_CC="$CC" # Let the user override the test.
1756 else
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766 break 2
1768 done
1769 done
1773 CC=$ac_cv_prog_CC
1774 if test -n "$CC"; then
1775 echo "$as_me:$LINENO: result: $CC" >&5
1776 echo "${ECHO_T}$CC" >&6
1777 else
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1782 test -n "$CC" && break
1783 done
1785 if test -z "$CC"; then
1786 ac_ct_CC=$CC
1787 for ac_prog in cl
1789 # Extract the first word of "$ac_prog", so it can be a program name with args.
1790 set dummy $ac_prog; ac_word=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 if test -n "$ac_ct_CC"; then
1797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798 else
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_ac_ct_CC="$ac_prog"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 break 2
1810 done
1811 done
1815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1816 if test -n "$ac_ct_CC"; then
1817 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1818 echo "${ECHO_T}$ac_ct_CC" >&6
1819 else
1820 echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1824 test -n "$ac_ct_CC" && break
1825 done
1827 CC=$ac_ct_CC
1833 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1834 See \`config.log' for more details." >&5
1835 echo "$as_me: error: no acceptable C compiler found in \$PATH
1836 See \`config.log' for more details." >&2;}
1837 { (exit 1); exit 1; }; }
1839 # Provide some information about the compiler.
1840 echo "$as_me:$LINENO:" \
1841 "checking for C compiler version" >&5
1842 ac_compiler=`set X $ac_compile; echo $2`
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1844 (eval $ac_compiler --version </dev/null >&5) 2>&5
1845 ac_status=$?
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1849 (eval $ac_compiler -v </dev/null >&5) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }
1853 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1854 (eval $ac_compiler -V </dev/null >&5) 2>&5
1855 ac_status=$?
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }
1859 cat >conftest.$ac_ext <<_ACEOF
1860 /* confdefs.h. */
1861 _ACEOF
1862 cat confdefs.h >>conftest.$ac_ext
1863 cat >>conftest.$ac_ext <<_ACEOF
1864 /* end confdefs.h. */
1867 main ()
1871 return 0;
1873 _ACEOF
1874 ac_clean_files_save=$ac_clean_files
1875 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1876 # Try to create an executable without -o first, disregard a.out.
1877 # It will help us diagnose broken compilers, and finding out an intuition
1878 # of exeext.
1879 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1880 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1881 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1883 (eval $ac_link_default) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # Find the output, starting from the most likely. This scheme is
1888 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1889 # resort.
1891 # Be careful to initialize this variable, since it used to be cached.
1892 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893 ac_cv_exeext=
1894 # b.out is created by i960 compilers.
1895 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1897 test -f "$ac_file" || continue
1898 case $ac_file in
1899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1901 conftest.$ac_ext )
1902 # This is the source file.
1904 [ab].out )
1905 # We found the default executable, but exeext='' is most
1906 # certainly right.
1907 break;;
1908 *.* )
1909 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1910 # FIXME: I believe we export ac_cv_exeext for Libtool,
1911 # but it would be cool to find out if it's true. Does anybody
1912 # maintain Libtool? --akim.
1913 export ac_cv_exeext
1914 break;;
1916 break;;
1917 esac
1918 done
1919 else
1920 echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1924 See \`config.log' for more details." >&5
1925 echo "$as_me: error: C compiler cannot create executables
1926 See \`config.log' for more details." >&2;}
1927 { (exit 77); exit 77; }; }
1930 ac_exeext=$ac_cv_exeext
1931 echo "$as_me:$LINENO: result: $ac_file" >&5
1932 echo "${ECHO_T}$ac_file" >&6
1934 # Check the compiler produces executables we can run. If not, either
1935 # the compiler is broken, or we cross compile.
1936 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1937 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1938 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1939 # If not cross compiling, check that we can run a simple program.
1940 if test "$cross_compiling" != yes; then
1941 if { ac_try='./$ac_file'
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; }; then
1947 cross_compiling=no
1948 else
1949 if test "$cross_compiling" = maybe; then
1950 cross_compiling=yes
1951 else
1952 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'.
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot run C compiled programs.
1956 If you meant to cross compile, use \`--host'.
1957 See \`config.log' for more details." >&2;}
1958 { (exit 1); exit 1; }; }
1962 echo "$as_me:$LINENO: result: yes" >&5
1963 echo "${ECHO_T}yes" >&6
1965 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1966 ac_clean_files=$ac_clean_files_save
1967 # Check the compiler produces executables we can run. If not, either
1968 # the compiler is broken, or we cross compile.
1969 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1970 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1971 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1972 echo "${ECHO_T}$cross_compiling" >&6
1974 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1975 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1977 (eval $ac_link) 2>&5
1978 ac_status=$?
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); }; then
1981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1982 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1983 # work properly (i.e., refer to `conftest.exe'), while it won't with
1984 # `rm'.
1985 for ac_file in conftest.exe conftest conftest.*; do
1986 test -f "$ac_file" || continue
1987 case $ac_file in
1988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990 export ac_cv_exeext
1991 break;;
1992 * ) break;;
1993 esac
1994 done
1995 else
1996 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1997 See \`config.log' for more details." >&5
1998 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1999 See \`config.log' for more details." >&2;}
2000 { (exit 1); exit 1; }; }
2003 rm -f conftest$ac_cv_exeext
2004 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2005 echo "${ECHO_T}$ac_cv_exeext" >&6
2007 rm -f conftest.$ac_ext
2008 EXEEXT=$ac_cv_exeext
2009 ac_exeext=$EXEEXT
2010 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2011 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2012 if test "${ac_cv_objext+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015 cat >conftest.$ac_ext <<_ACEOF
2016 /* confdefs.h. */
2017 _ACEOF
2018 cat confdefs.h >>conftest.$ac_ext
2019 cat >>conftest.$ac_ext <<_ACEOF
2020 /* end confdefs.h. */
2023 main ()
2027 return 0;
2029 _ACEOF
2030 rm -f conftest.o conftest.obj
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; then
2036 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037 case $ac_file in
2038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2040 break;;
2041 esac
2042 done
2043 else
2044 echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2047 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2048 See \`config.log' for more details." >&5
2049 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2050 See \`config.log' for more details." >&2;}
2051 { (exit 1); exit 1; }; }
2054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2056 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2057 echo "${ECHO_T}$ac_cv_objext" >&6
2058 OBJEXT=$ac_cv_objext
2059 ac_objext=$OBJEXT
2060 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2061 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2062 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065 cat >conftest.$ac_ext <<_ACEOF
2066 /* confdefs.h. */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h. */
2073 main ()
2075 #ifndef __GNUC__
2076 choke me
2077 #endif
2080 return 0;
2082 _ACEOF
2083 rm -f conftest.$ac_objext
2084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085 (eval $ac_compile) 2>conftest.er1
2086 ac_status=$?
2087 grep -v '^ *+' conftest.er1 >conftest.err
2088 rm -f conftest.er1
2089 cat conftest.err >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); } &&
2092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 (eval $ac_try) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2104 ac_compiler_gnu=yes
2105 else
2106 echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2109 ac_compiler_gnu=no
2111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2115 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2116 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2117 GCC=`test $ac_compiler_gnu = yes && echo yes`
2118 ac_test_CFLAGS=${CFLAGS+set}
2119 ac_save_CFLAGS=$CFLAGS
2120 CFLAGS="-g"
2121 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2122 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_g+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h. */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2134 main ()
2138 return 0;
2140 _ACEOF
2141 rm -f conftest.$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143 (eval $ac_compile) 2>conftest.er1
2144 ac_status=$?
2145 grep -v '^ *+' conftest.er1 >conftest.err
2146 rm -f conftest.er1
2147 cat conftest.err >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; } &&
2156 { ac_try='test -s conftest.$ac_objext'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 (eval $ac_try) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2162 ac_cv_prog_cc_g=yes
2163 else
2164 echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2167 ac_cv_prog_cc_g=no
2169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2172 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2173 if test "$ac_test_CFLAGS" = set; then
2174 CFLAGS=$ac_save_CFLAGS
2175 elif test $ac_cv_prog_cc_g = yes; then
2176 if test "$GCC" = yes; then
2177 CFLAGS="-g -O2"
2178 else
2179 CFLAGS="-g"
2181 else
2182 if test "$GCC" = yes; then
2183 CFLAGS="-O2"
2184 else
2185 CFLAGS=
2188 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2189 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2190 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 ac_cv_prog_cc_stdc=no
2194 ac_save_CC=$CC
2195 cat >conftest.$ac_ext <<_ACEOF
2196 /* confdefs.h. */
2197 _ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h. */
2201 #include <stdarg.h>
2202 #include <stdio.h>
2203 #include <sys/types.h>
2204 #include <sys/stat.h>
2205 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2206 struct buf { int x; };
2207 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2208 static char *e (p, i)
2209 char **p;
2210 int i;
2212 return p[i];
2214 static char *f (char * (*g) (char **, int), char **p, ...)
2216 char *s;
2217 va_list v;
2218 va_start (v,p);
2219 s = g (p, va_arg (v,int));
2220 va_end (v);
2221 return s;
2224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2225 function prototypes and stuff, but not '\xHH' hex character constants.
2226 These don't provoke an error unfortunately, instead are silently treated
2227 as 'x'. The following induces an error, until -std1 is added to get
2228 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2229 array size at least. It's necessary to write '\x00'==0 to get something
2230 that's true only with -std1. */
2231 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2233 int test (int i, double x);
2234 struct s1 {int (*f) (int a);};
2235 struct s2 {int (*f) (double a);};
2236 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2237 int argc;
2238 char **argv;
2240 main ()
2242 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2244 return 0;
2246 _ACEOF
2247 # Don't try gcc -ansi; that turns off useful extensions and
2248 # breaks some systems' header files.
2249 # AIX -qlanglvl=ansi
2250 # Ultrix and OSF/1 -std1
2251 # HP-UX 10.20 and later -Ae
2252 # HP-UX older versions -Aa -D_HPUX_SOURCE
2253 # SVR4 -Xc -D__EXTENSIONS__
2254 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2256 CC="$ac_save_CC $ac_arg"
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>conftest.er1
2260 ac_status=$?
2261 grep -v '^ *+' conftest.er1 >conftest.err
2262 rm -f conftest.er1
2263 cat conftest.err >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
2266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; } &&
2272 { ac_try='test -s conftest.$ac_objext'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 (eval $ac_try) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; }; then
2278 ac_cv_prog_cc_stdc=$ac_arg
2279 break
2280 else
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2285 rm -f conftest.err conftest.$ac_objext
2286 done
2287 rm -f conftest.$ac_ext conftest.$ac_objext
2288 CC=$ac_save_CC
2292 case "x$ac_cv_prog_cc_stdc" in
2293 x|xno)
2294 echo "$as_me:$LINENO: result: none needed" >&5
2295 echo "${ECHO_T}none needed" >&6 ;;
2297 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2298 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2299 CC="$CC $ac_cv_prog_cc_stdc" ;;
2300 esac
2302 # Some people use a C++ compiler to compile C. Since we use `exit',
2303 # in C++ we need to declare it. In case someone uses the same compiler
2304 # for both compiling C and C++ we need to have the C++ compiler decide
2305 # the declaration of exit, since it's the most demanding environment.
2306 cat >conftest.$ac_ext <<_ACEOF
2307 #ifndef __cplusplus
2308 choke me
2309 #endif
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 for ac_declaration in \
2333 '' \
2334 'extern "C" void std::exit (int) throw (); using std::exit;' \
2335 'extern "C" void std::exit (int); using std::exit;' \
2336 'extern "C" void exit (int) throw ();' \
2337 'extern "C" void exit (int);' \
2338 'void exit (int);'
2340 cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h. */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2346 $ac_declaration
2347 #include <stdlib.h>
2349 main ()
2351 exit (42);
2353 return 0;
2355 _ACEOF
2356 rm -f conftest.$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358 (eval $ac_compile) 2>conftest.er1
2359 ac_status=$?
2360 grep -v '^ *+' conftest.er1 >conftest.err
2361 rm -f conftest.er1
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 (eval $ac_try) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2382 continue
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h. */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2391 $ac_declaration
2393 main ()
2395 exit (42);
2397 return 0;
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 break
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428 done
2429 rm -f conftest*
2430 if test -n "$ac_declaration"; then
2431 echo '#ifdef __cplusplus' >>confdefs.h
2432 echo $ac_declaration >>confdefs.h
2433 echo '#endif' >>confdefs.h
2436 else
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442 ac_ext=c
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448 ac_ext=cc
2449 ac_cpp='$CXXCPP $CPPFLAGS'
2450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2453 if test -n "$ac_tool_prefix"; then
2454 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2458 echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_CXX+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463 if test -n "$CXX"; then
2464 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2477 done
2478 done
2482 CXX=$ac_cv_prog_CXX
2483 if test -n "$CXX"; then
2484 echo "$as_me:$LINENO: result: $CXX" >&5
2485 echo "${ECHO_T}$CXX" >&6
2486 else
2487 echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2491 test -n "$CXX" && break
2492 done
2494 if test -z "$CXX"; then
2495 ac_ct_CXX=$CXX
2496 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2498 # Extract the first word of "$ac_prog", so it can be a program name with args.
2499 set dummy $ac_prog; ac_word=$2
2500 echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2502 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505 if test -n "$ac_ct_CXX"; then
2506 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515 ac_cv_prog_ac_ct_CXX="$ac_prog"
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2519 done
2520 done
2524 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2525 if test -n "$ac_ct_CXX"; then
2526 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2527 echo "${ECHO_T}$ac_ct_CXX" >&6
2528 else
2529 echo "$as_me:$LINENO: result: no" >&5
2530 echo "${ECHO_T}no" >&6
2533 test -n "$ac_ct_CXX" && break
2534 done
2535 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2537 CXX=$ac_ct_CXX
2541 # Provide some information about the compiler.
2542 echo "$as_me:$LINENO:" \
2543 "checking for C++ compiler version" >&5
2544 ac_compiler=`set X $ac_compile; echo $2`
2545 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2546 (eval $ac_compiler --version </dev/null >&5) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }
2550 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2551 (eval $ac_compiler -v </dev/null >&5) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2555 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2556 (eval $ac_compiler -V </dev/null >&5) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }
2561 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2562 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2563 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2574 main ()
2576 #ifndef __GNUC__
2577 choke me
2578 #endif
2581 return 0;
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2587 ac_status=$?
2588 grep -v '^ *+' conftest.er1 >conftest.err
2589 rm -f conftest.er1
2590 cat conftest.err >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2605 ac_compiler_gnu=yes
2606 else
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2610 ac_compiler_gnu=no
2612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2616 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2617 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2618 GXX=`test $ac_compiler_gnu = yes && echo yes`
2619 ac_test_CXXFLAGS=${CXXFLAGS+set}
2620 ac_save_CXXFLAGS=$CXXFLAGS
2621 CXXFLAGS="-g"
2622 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2623 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2624 if test "${ac_cv_prog_cxx_g+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h. */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2635 main ()
2639 return 0;
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644 (eval $ac_compile) 2>conftest.er1
2645 ac_status=$?
2646 grep -v '^ *+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 ac_cv_prog_cxx_g=yes
2664 else
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 ac_cv_prog_cxx_g=no
2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2672 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2673 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2674 if test "$ac_test_CXXFLAGS" = set; then
2675 CXXFLAGS=$ac_save_CXXFLAGS
2676 elif test $ac_cv_prog_cxx_g = yes; then
2677 if test "$GXX" = yes; then
2678 CXXFLAGS="-g -O2"
2679 else
2680 CXXFLAGS="-g"
2682 else
2683 if test "$GXX" = yes; then
2684 CXXFLAGS="-O2"
2685 else
2686 CXXFLAGS=
2689 for ac_declaration in \
2690 '' \
2691 'extern "C" void std::exit (int) throw (); using std::exit;' \
2692 'extern "C" void std::exit (int); using std::exit;' \
2693 'extern "C" void exit (int) throw ();' \
2694 'extern "C" void exit (int);' \
2695 'void exit (int);'
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h. */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2703 $ac_declaration
2704 #include <stdlib.h>
2706 main ()
2708 exit (42);
2710 return 0;
2712 _ACEOF
2713 rm -f conftest.$ac_objext
2714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2715 (eval $ac_compile) 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2739 continue
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742 cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h. */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2748 $ac_declaration
2750 main ()
2752 exit (42);
2754 return 0;
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>conftest.er1
2760 ac_status=$?
2761 grep -v '^ *+' conftest.er1 >conftest.err
2762 rm -f conftest.er1
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 break
2779 else
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 done
2786 rm -f conftest*
2787 if test -n "$ac_declaration"; then
2788 echo '#ifdef __cplusplus' >>confdefs.h
2789 echo $ac_declaration >>confdefs.h
2790 echo '#endif' >>confdefs.h
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 if test -n "$CPPBIN"; then
2808 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2821 done
2822 done
2826 CPPBIN=$ac_cv_prog_CPPBIN
2827 if test -n "$CPPBIN"; then
2828 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2829 echo "${ECHO_T}$CPPBIN" >&6
2830 else
2831 echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2836 if test -z "$ac_cv_prog_CPPBIN"; then
2837 ac_ct_CPPBIN=$CPPBIN
2838 # Extract the first word of "cpp", so it can be a program name with args.
2839 set dummy cpp; ac_word=$2
2840 echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845 if test -n "$ac_ct_CPPBIN"; then
2846 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_ac_ct_CPPBIN="cpp"
2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2859 done
2860 done
2862 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2865 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2866 if test -n "$ac_ct_CPPBIN"; then
2867 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2868 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2869 else
2870 echo "$as_me:$LINENO: result: no" >&5
2871 echo "${ECHO_T}no" >&6
2874 CPPBIN=$ac_ct_CPPBIN
2875 else
2876 CPPBIN="$ac_cv_prog_CPPBIN"
2880 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2881 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2882 if test "${wine_cv_toolsdir+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 if test -z "$with_wine_tools"; then
2886 if test "$cross_compiling" = "yes"; then
2887 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2888 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2889 { (exit 1); exit 1; }; }
2890 else
2891 wine_cv_toolsdir="\$(TOPOBJDIR)"
2893 elif test -d "$with_wine_tools/tools/winebuild"; then
2894 case $with_wine_tools in
2895 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2896 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2897 esac
2898 else
2899 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2900 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2901 { (exit 1); exit 1; }; }
2904 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2905 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2906 TOOLSDIR=$wine_cv_toolsdir
2910 ac_ext=c
2911 ac_cpp='$CPP $CPPFLAGS'
2912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2916 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2917 # On Suns, sometimes $CPP names a directory.
2918 if test -n "$CPP" && test -d "$CPP"; then
2919 CPP=
2921 if test -z "$CPP"; then
2922 if test "${ac_cv_prog_CPP+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925 # Double quotes because CPP needs to be expanded
2926 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2928 ac_preproc_ok=false
2929 for ac_c_preproc_warn_flag in '' yes
2931 # Use a header file that comes with gcc, so configuring glibc
2932 # with a fresh cross-compiler works.
2933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934 # <limits.h> exists even on freestanding compilers.
2935 # On the NeXT, cc -E runs the code through the compiler's parser,
2936 # not just through cpp. "Syntax error" is here to catch this case.
2937 cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h. */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2943 #ifdef __STDC__
2944 # include <limits.h>
2945 #else
2946 # include <assert.h>
2947 #endif
2948 Syntax error
2949 _ACEOF
2950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } >/dev/null; then
2958 if test -s conftest.err; then
2959 ac_cpp_err=$ac_c_preproc_warn_flag
2960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2961 else
2962 ac_cpp_err=
2964 else
2965 ac_cpp_err=yes
2967 if test -z "$ac_cpp_err"; then
2969 else
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2973 # Broken: fails on valid input.
2974 continue
2976 rm -f conftest.err conftest.$ac_ext
2978 # OK, works on sane cases. Now check whether non-existent headers
2979 # can be detected and how.
2980 cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h. */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2986 #include <ac_nonexistent.h>
2987 _ACEOF
2988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } >/dev/null; then
2996 if test -s conftest.err; then
2997 ac_cpp_err=$ac_c_preproc_warn_flag
2998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2999 else
3000 ac_cpp_err=
3002 else
3003 ac_cpp_err=yes
3005 if test -z "$ac_cpp_err"; then
3006 # Broken: success on invalid input.
3007 continue
3008 else
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3012 # Passes both tests.
3013 ac_preproc_ok=:
3014 break
3016 rm -f conftest.err conftest.$ac_ext
3018 done
3019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3020 rm -f conftest.err conftest.$ac_ext
3021 if $ac_preproc_ok; then
3022 break
3025 done
3026 ac_cv_prog_CPP=$CPP
3029 CPP=$ac_cv_prog_CPP
3030 else
3031 ac_cv_prog_CPP=$CPP
3033 echo "$as_me:$LINENO: result: $CPP" >&5
3034 echo "${ECHO_T}$CPP" >&6
3035 ac_preproc_ok=false
3036 for ac_c_preproc_warn_flag in '' yes
3038 # Use a header file that comes with gcc, so configuring glibc
3039 # with a fresh cross-compiler works.
3040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3041 # <limits.h> exists even on freestanding compilers.
3042 # On the NeXT, cc -E runs the code through the compiler's parser,
3043 # not just through cpp. "Syntax error" is here to catch this case.
3044 cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h. */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3050 #ifdef __STDC__
3051 # include <limits.h>
3052 #else
3053 # include <assert.h>
3054 #endif
3055 Syntax error
3056 _ACEOF
3057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059 ac_status=$?
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } >/dev/null; then
3065 if test -s conftest.err; then
3066 ac_cpp_err=$ac_c_preproc_warn_flag
3067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3068 else
3069 ac_cpp_err=
3071 else
3072 ac_cpp_err=yes
3074 if test -z "$ac_cpp_err"; then
3076 else
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 # Broken: fails on valid input.
3081 continue
3083 rm -f conftest.err conftest.$ac_ext
3085 # OK, works on sane cases. Now check whether non-existent headers
3086 # can be detected and how.
3087 cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h. */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3093 #include <ac_nonexistent.h>
3094 _ACEOF
3095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3097 ac_status=$?
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } >/dev/null; then
3103 if test -s conftest.err; then
3104 ac_cpp_err=$ac_c_preproc_warn_flag
3105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3106 else
3107 ac_cpp_err=
3109 else
3110 ac_cpp_err=yes
3112 if test -z "$ac_cpp_err"; then
3113 # Broken: success on invalid input.
3114 continue
3115 else
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 # Passes both tests.
3120 ac_preproc_ok=:
3121 break
3123 rm -f conftest.err conftest.$ac_ext
3125 done
3126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3127 rm -f conftest.err conftest.$ac_ext
3128 if $ac_preproc_ok; then
3130 else
3131 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3132 See \`config.log' for more details." >&5
3133 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3134 See \`config.log' for more details." >&2;}
3135 { (exit 1); exit 1; }; }
3138 ac_ext=c
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146 if test "x$ac_path_x_has_been_run" != xyes; then
3147 echo "$as_me:$LINENO: checking for X" >&5
3148 echo $ECHO_N "checking for X... $ECHO_C" >&6
3150 ac_path_x_has_been_run=yes
3152 # Check whether --with-x or --without-x was given.
3153 if test "${with_x+set}" = set; then
3154 withval="$with_x"
3157 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3158 if test "x$with_x" = xno; then
3159 # The user explicitly disabled X.
3160 have_x=disabled
3161 else
3162 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3163 # Both variables are already set.
3164 have_x=yes
3165 else
3166 if test "${ac_cv_have_x+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169 # One or both of the vars are not set, and there is no cached value.
3170 ac_x_includes=no ac_x_libraries=no
3171 rm -fr conftest.dir
3172 if mkdir conftest.dir; then
3173 cd conftest.dir
3174 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3175 cat >Imakefile <<'_ACEOF'
3176 acfindx:
3177 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3178 _ACEOF
3179 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3181 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3182 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3183 for ac_extension in a so sl; do
3184 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3185 test -f $ac_im_libdir/libX11.$ac_extension; then
3186 ac_im_usrlibdir=$ac_im_libdir; break
3188 done
3189 # Screen out bogus values from the imake configuration. They are
3190 # bogus both because they are the default anyway, and because
3191 # using them would break gcc on systems where it needs fixed includes.
3192 case $ac_im_incroot in
3193 /usr/include) ;;
3194 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3195 esac
3196 case $ac_im_usrlibdir in
3197 /usr/lib | /lib) ;;
3198 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3199 esac
3201 cd ..
3202 rm -fr conftest.dir
3205 # Standard set of common directories for X headers.
3206 # Check X11 before X11Rn because it is often a symlink to the current release.
3207 ac_x_header_dirs='
3208 /usr/X11/include
3209 /usr/X11R6/include
3210 /usr/X11R5/include
3211 /usr/X11R4/include
3213 /usr/include/X11
3214 /usr/include/X11R6
3215 /usr/include/X11R5
3216 /usr/include/X11R4
3218 /usr/local/X11/include
3219 /usr/local/X11R6/include
3220 /usr/local/X11R5/include
3221 /usr/local/X11R4/include
3223 /usr/local/include/X11
3224 /usr/local/include/X11R6
3225 /usr/local/include/X11R5
3226 /usr/local/include/X11R4
3228 /usr/X386/include
3229 /usr/x386/include
3230 /usr/XFree86/include/X11
3232 /usr/include
3233 /usr/local/include
3234 /usr/unsupported/include
3235 /usr/athena/include
3236 /usr/local/x11r5/include
3237 /usr/lpp/Xamples/include
3239 /usr/openwin/include
3240 /usr/openwin/share/include'
3242 if test "$ac_x_includes" = no; then
3243 # Guess where to find include files, by looking for a specified header file.
3244 # First, try using that file with no special directory specified.
3245 cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h. */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3251 #include <X11/Intrinsic.h>
3252 _ACEOF
3253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } >/dev/null; then
3261 if test -s conftest.err; then
3262 ac_cpp_err=$ac_c_preproc_warn_flag
3263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3264 else
3265 ac_cpp_err=
3267 else
3268 ac_cpp_err=yes
3270 if test -z "$ac_cpp_err"; then
3271 # We can compile using X headers with no special include directory.
3272 ac_x_includes=
3273 else
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 for ac_dir in $ac_x_header_dirs; do
3278 if test -r "$ac_dir/X11/Intrinsic.h"; then
3279 ac_x_includes=$ac_dir
3280 break
3282 done
3284 rm -f conftest.err conftest.$ac_ext
3285 fi # $ac_x_includes = no
3287 if test "$ac_x_libraries" = no; then
3288 # Check for the libraries.
3289 # See if we find them without any special options.
3290 # Don't add to $LIBS permanently.
3291 ac_save_LIBS=$LIBS
3292 LIBS="-lXt $LIBS"
3293 cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299 #include <X11/Intrinsic.h>
3301 main ()
3303 XtMalloc (0)
3305 return 0;
3307 _ACEOF
3308 rm -f conftest.$ac_objext conftest$ac_exeext
3309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3310 (eval $ac_link) 2>conftest.er1
3311 ac_status=$?
3312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } &&
3317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest$ac_exeext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 LIBS=$ac_save_LIBS
3330 # We can link X programs with no special library path.
3331 ac_x_libraries=
3332 else
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 LIBS=$ac_save_LIBS
3337 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3339 # Don't even attempt the hair of trying to link an X program!
3340 for ac_extension in a so sl; do
3341 if test -r $ac_dir/libXt.$ac_extension; then
3342 ac_x_libraries=$ac_dir
3343 break 2
3345 done
3346 done
3348 rm -f conftest.err conftest.$ac_objext \
3349 conftest$ac_exeext conftest.$ac_ext
3350 fi # $ac_x_libraries = no
3352 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3353 # Didn't find X anywhere. Cache the known absence of X.
3354 ac_cv_have_x="have_x=no"
3355 else
3356 # Record where we found X for the cache.
3357 ac_cv_have_x="have_x=yes \
3358 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3363 eval "$ac_cv_have_x"
3364 fi # $with_x != no
3366 if test "$have_x" != yes; then
3367 echo "$as_me:$LINENO: result: $have_x" >&5
3368 echo "${ECHO_T}$have_x" >&6
3369 no_x=yes
3370 else
3371 # If each of the values was on the command line, it overrides each guess.
3372 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3373 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3374 # Update the cache value to reflect the command line values.
3375 ac_cv_have_x="have_x=yes \
3376 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3377 # It might be that x_includes is empty (headers are found in the
3378 # standard search path. Then output the corresponding message
3379 ac_out_x_includes=$x_includes
3380 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3381 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3382 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3386 if test "$no_x" = yes; then
3387 # Not all programs may use this symbol, but it does not hurt to define it.
3389 cat >>confdefs.h <<\_ACEOF
3390 #define X_DISPLAY_MISSING 1
3391 _ACEOF
3393 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3394 else
3395 if test -n "$x_includes"; then
3396 X_CFLAGS="$X_CFLAGS -I$x_includes"
3399 # It would also be nice to do this for all -L options, not just this one.
3400 if test -n "$x_libraries"; then
3401 X_LIBS="$X_LIBS -L$x_libraries"
3402 # For Solaris; some versions of Sun CC require a space after -R and
3403 # others require no space. Words are not sufficient . . . .
3404 case `(uname -sr) 2>/dev/null` in
3405 "SunOS 5"*)
3406 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3407 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3408 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3409 cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h. */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3417 main ()
3421 return 0;
3423 _ACEOF
3424 rm -f conftest.$ac_objext conftest$ac_exeext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3426 (eval $ac_link) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; } &&
3439 { ac_try='test -s conftest$ac_exeext'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; }; then
3445 ac_R_nospace=yes
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 ac_R_nospace=no
3452 rm -f conftest.err conftest.$ac_objext \
3453 conftest$ac_exeext conftest.$ac_ext
3454 if test $ac_R_nospace = yes; then
3455 echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6
3457 X_LIBS="$X_LIBS -R$x_libraries"
3458 else
3459 LIBS="$ac_xsave_LIBS -R $x_libraries"
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3468 main ()
3472 return 0;
3474 _ACEOF
3475 rm -f conftest.$ac_objext conftest$ac_exeext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3477 (eval $ac_link) 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try='test -s conftest$ac_exeext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 ac_R_space=yes
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 ac_R_space=no
3503 rm -f conftest.err conftest.$ac_objext \
3504 conftest$ac_exeext conftest.$ac_ext
3505 if test $ac_R_space = yes; then
3506 echo "$as_me:$LINENO: result: yes" >&5
3507 echo "${ECHO_T}yes" >&6
3508 X_LIBS="$X_LIBS -R $x_libraries"
3509 else
3510 echo "$as_me:$LINENO: result: neither works" >&5
3511 echo "${ECHO_T}neither works" >&6
3514 LIBS=$ac_xsave_LIBS
3515 esac
3518 # Check for system-dependent libraries X programs must link with.
3519 # Do this before checking for the system-independent R6 libraries
3520 # (-lICE), since we may need -lsocket or whatever for X linking.
3522 if test "$ISC" = yes; then
3523 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3524 else
3525 # Martyn Johnson says this is needed for Ultrix, if the X
3526 # libraries were built with DECnet support. And Karl Berry says
3527 # the Alpha needs dnet_stub (dnet does not exist).
3528 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3536 /* Override any gcc2 internal prototype to avoid an error. */
3537 #ifdef __cplusplus
3538 extern "C"
3539 #endif
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3542 char XOpenDisplay ();
3544 main ()
3546 XOpenDisplay ();
3548 return 0;
3550 _ACEOF
3551 rm -f conftest.$ac_objext conftest$ac_exeext
3552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3553 (eval $ac_link) 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } &&
3560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 (eval $ac_try) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest$ac_exeext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3578 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3579 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 ac_check_lib_save_LIBS=$LIBS
3583 LIBS="-ldnet $LIBS"
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3591 /* Override any gcc2 internal prototype to avoid an error. */
3592 #ifdef __cplusplus
3593 extern "C"
3594 #endif
3595 /* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3597 char dnet_ntoa ();
3599 main ()
3601 dnet_ntoa ();
3603 return 0;
3605 _ACEOF
3606 rm -f conftest.$ac_objext conftest$ac_exeext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3608 (eval $ac_link) 2>conftest.er1
3609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } &&
3615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; } &&
3621 { ac_try='test -s conftest$ac_exeext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 (eval $ac_try) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_lib_dnet_dnet_ntoa=yes
3628 else
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 ac_cv_lib_dnet_dnet_ntoa=no
3634 rm -f conftest.err conftest.$ac_objext \
3635 conftest$ac_exeext conftest.$ac_ext
3636 LIBS=$ac_check_lib_save_LIBS
3638 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3639 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3640 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3641 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3644 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3645 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3646 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3647 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650 ac_check_lib_save_LIBS=$LIBS
3651 LIBS="-ldnet_stub $LIBS"
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3659 /* Override any gcc2 internal prototype to avoid an error. */
3660 #ifdef __cplusplus
3661 extern "C"
3662 #endif
3663 /* We use char because int might match the return type of a gcc2
3664 builtin and then its argument prototype would still apply. */
3665 char dnet_ntoa ();
3667 main ()
3669 dnet_ntoa ();
3671 return 0;
3673 _ACEOF
3674 rm -f conftest.$ac_objext conftest$ac_exeext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3676 (eval $ac_link) 2>conftest.er1
3677 ac_status=$?
3678 grep -v '^ *+' conftest.er1 >conftest.err
3679 rm -f conftest.er1
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest$ac_exeext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3696 else
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 ac_cv_lib_dnet_stub_dnet_ntoa=no
3702 rm -f conftest.err conftest.$ac_objext \
3703 conftest$ac_exeext conftest.$ac_ext
3704 LIBS=$ac_check_lib_save_LIBS
3706 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3707 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3708 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3709 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3714 rm -f conftest.err conftest.$ac_objext \
3715 conftest$ac_exeext conftest.$ac_ext
3716 LIBS="$ac_xsave_LIBS"
3718 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3719 # to get the SysV transport functions.
3720 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3721 # needs -lnsl.
3722 # The nsl library prevents programs from opening the X display
3723 # on Irix 5.2, according to T.E. Dickey.
3724 # The functions gethostbyname, getservbyname, and inet_addr are
3725 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3726 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3727 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3728 if test "${ac_cv_func_gethostbyname+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3739 #define gethostbyname innocuous_gethostbyname
3741 /* System header to define __stub macros and hopefully few prototypes,
3742 which can conflict with char gethostbyname (); below.
3743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744 <limits.h> exists even on freestanding compilers. */
3746 #ifdef __STDC__
3747 # include <limits.h>
3748 #else
3749 # include <assert.h>
3750 #endif
3752 #undef gethostbyname
3754 /* Override any gcc2 internal prototype to avoid an error. */
3755 #ifdef __cplusplus
3756 extern "C"
3758 #endif
3759 /* We use char because int might match the return type of a gcc2
3760 builtin and then its argument prototype would still apply. */
3761 char gethostbyname ();
3762 /* The GNU C library defines this for functions which it implements
3763 to always fail with ENOSYS. Some functions are actually named
3764 something starting with __ and the normal name is an alias. */
3765 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3766 choke me
3767 #else
3768 char (*f) () = gethostbyname;
3769 #endif
3770 #ifdef __cplusplus
3772 #endif
3775 main ()
3777 return f != gethostbyname;
3779 return 0;
3781 _ACEOF
3782 rm -f conftest.$ac_objext conftest$ac_exeext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3784 (eval $ac_link) 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 (eval $ac_try) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; } &&
3797 { ac_try='test -s conftest$ac_exeext'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 (eval $ac_try) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; }; then
3803 ac_cv_func_gethostbyname=yes
3804 else
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3808 ac_cv_func_gethostbyname=no
3810 rm -f conftest.err conftest.$ac_objext \
3811 conftest$ac_exeext conftest.$ac_ext
3813 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3814 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3816 if test $ac_cv_func_gethostbyname = no; then
3817 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3818 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3819 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 ac_check_lib_save_LIBS=$LIBS
3823 LIBS="-lnsl $LIBS"
3824 cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h. */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3831 /* Override any gcc2 internal prototype to avoid an error. */
3832 #ifdef __cplusplus
3833 extern "C"
3834 #endif
3835 /* We use char because int might match the return type of a gcc2
3836 builtin and then its argument prototype would still apply. */
3837 char gethostbyname ();
3839 main ()
3841 gethostbyname ();
3843 return 0;
3845 _ACEOF
3846 rm -f conftest.$ac_objext conftest$ac_exeext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848 (eval $ac_link) 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } &&
3855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_lib_nsl_gethostbyname=yes
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_lib_nsl_gethostbyname=no
3874 rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3876 LIBS=$ac_check_lib_save_LIBS
3878 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3879 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3880 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3881 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3884 if test $ac_cv_lib_nsl_gethostbyname = no; then
3885 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3886 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3887 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 ac_check_lib_save_LIBS=$LIBS
3891 LIBS="-lbsd $LIBS"
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3899 /* Override any gcc2 internal prototype to avoid an error. */
3900 #ifdef __cplusplus
3901 extern "C"
3902 #endif
3903 /* We use char because int might match the return type of a gcc2
3904 builtin and then its argument prototype would still apply. */
3905 char gethostbyname ();
3907 main ()
3909 gethostbyname ();
3911 return 0;
3913 _ACEOF
3914 rm -f conftest.$ac_objext conftest$ac_exeext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916 (eval $ac_link) 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } &&
3923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; } &&
3929 { ac_try='test -s conftest$ac_exeext'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 (eval $ac_try) 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 ac_cv_lib_bsd_gethostbyname=yes
3936 else
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3940 ac_cv_lib_bsd_gethostbyname=no
3942 rm -f conftest.err conftest.$ac_objext \
3943 conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3946 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3947 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3948 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3949 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3955 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3956 # socket/setsockopt and other routines are undefined under SCO ODT
3957 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3958 # on later versions), says Simon Leinen: it contains gethostby*
3959 # variants that don't use the name server (or something). -lsocket
3960 # must be given before -lnsl if both are needed. We assume that
3961 # if connect needs -lnsl, so does gethostbyname.
3962 echo "$as_me:$LINENO: checking for connect" >&5
3963 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3964 if test "${ac_cv_func_connect+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3975 #define connect innocuous_connect
3977 /* System header to define __stub macros and hopefully few prototypes,
3978 which can conflict with char connect (); below.
3979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3980 <limits.h> exists even on freestanding compilers. */
3982 #ifdef __STDC__
3983 # include <limits.h>
3984 #else
3985 # include <assert.h>
3986 #endif
3988 #undef connect
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 #ifdef __cplusplus
3992 extern "C"
3994 #endif
3995 /* We use char because int might match the return type of a gcc2
3996 builtin and then its argument prototype would still apply. */
3997 char connect ();
3998 /* The GNU C library defines this for functions which it implements
3999 to always fail with ENOSYS. Some functions are actually named
4000 something starting with __ and the normal name is an alias. */
4001 #if defined (__stub_connect) || defined (__stub___connect)
4002 choke me
4003 #else
4004 char (*f) () = connect;
4005 #endif
4006 #ifdef __cplusplus
4008 #endif
4011 main ()
4013 return f != connect;
4015 return 0;
4017 _ACEOF
4018 rm -f conftest.$ac_objext conftest$ac_exeext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4020 (eval $ac_link) 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } &&
4027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest$ac_exeext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 ac_cv_func_connect=yes
4040 else
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 ac_cv_func_connect=no
4046 rm -f conftest.err conftest.$ac_objext \
4047 conftest$ac_exeext conftest.$ac_ext
4049 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4050 echo "${ECHO_T}$ac_cv_func_connect" >&6
4052 if test $ac_cv_func_connect = no; then
4053 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4054 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4055 if test "${ac_cv_lib_socket_connect+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058 ac_check_lib_save_LIBS=$LIBS
4059 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4067 /* Override any gcc2 internal prototype to avoid an error. */
4068 #ifdef __cplusplus
4069 extern "C"
4070 #endif
4071 /* We use char because int might match the return type of a gcc2
4072 builtin and then its argument prototype would still apply. */
4073 char connect ();
4075 main ()
4077 connect ();
4079 return 0;
4081 _ACEOF
4082 rm -f conftest.$ac_objext conftest$ac_exeext
4083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4084 (eval $ac_link) 2>conftest.er1
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 (eval $ac_try) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; } &&
4097 { ac_try='test -s conftest$ac_exeext'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 ac_cv_lib_socket_connect=yes
4104 else
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 ac_cv_lib_socket_connect=no
4110 rm -f conftest.err conftest.$ac_objext \
4111 conftest$ac_exeext conftest.$ac_ext
4112 LIBS=$ac_check_lib_save_LIBS
4114 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4115 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4116 if test $ac_cv_lib_socket_connect = yes; then
4117 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4122 # Guillermo Gomez says -lposix is necessary on A/UX.
4123 echo "$as_me:$LINENO: checking for remove" >&5
4124 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4125 if test "${ac_cv_func_remove+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4136 #define remove innocuous_remove
4138 /* System header to define __stub macros and hopefully few prototypes,
4139 which can conflict with char remove (); below.
4140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141 <limits.h> exists even on freestanding compilers. */
4143 #ifdef __STDC__
4144 # include <limits.h>
4145 #else
4146 # include <assert.h>
4147 #endif
4149 #undef remove
4151 /* Override any gcc2 internal prototype to avoid an error. */
4152 #ifdef __cplusplus
4153 extern "C"
4155 #endif
4156 /* We use char because int might match the return type of a gcc2
4157 builtin and then its argument prototype would still apply. */
4158 char remove ();
4159 /* The GNU C library defines this for functions which it implements
4160 to always fail with ENOSYS. Some functions are actually named
4161 something starting with __ and the normal name is an alias. */
4162 #if defined (__stub_remove) || defined (__stub___remove)
4163 choke me
4164 #else
4165 char (*f) () = remove;
4166 #endif
4167 #ifdef __cplusplus
4169 #endif
4172 main ()
4174 return f != remove;
4176 return 0;
4178 _ACEOF
4179 rm -f conftest.$ac_objext conftest$ac_exeext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4181 (eval $ac_link) 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; } &&
4194 { ac_try='test -s conftest$ac_exeext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 (eval $ac_try) 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_func_remove=yes
4201 else
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_func_remove=no
4207 rm -f conftest.err conftest.$ac_objext \
4208 conftest$ac_exeext conftest.$ac_ext
4210 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4211 echo "${ECHO_T}$ac_cv_func_remove" >&6
4213 if test $ac_cv_func_remove = no; then
4214 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4215 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4216 if test "${ac_cv_lib_posix_remove+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 ac_check_lib_save_LIBS=$LIBS
4220 LIBS="-lposix $LIBS"
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h. */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4228 /* Override any gcc2 internal prototype to avoid an error. */
4229 #ifdef __cplusplus
4230 extern "C"
4231 #endif
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4234 char remove ();
4236 main ()
4238 remove ();
4240 return 0;
4242 _ACEOF
4243 rm -f conftest.$ac_objext conftest$ac_exeext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245 (eval $ac_link) 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; } &&
4258 { ac_try='test -s conftest$ac_exeext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 (eval $ac_try) 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 ac_cv_lib_posix_remove=yes
4265 else
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4269 ac_cv_lib_posix_remove=no
4271 rm -f conftest.err conftest.$ac_objext \
4272 conftest$ac_exeext conftest.$ac_ext
4273 LIBS=$ac_check_lib_save_LIBS
4275 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4276 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4277 if test $ac_cv_lib_posix_remove = yes; then
4278 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4283 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4284 echo "$as_me:$LINENO: checking for shmat" >&5
4285 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4286 if test "${ac_cv_func_shmat+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4297 #define shmat innocuous_shmat
4299 /* System header to define __stub macros and hopefully few prototypes,
4300 which can conflict with char shmat (); below.
4301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302 <limits.h> exists even on freestanding compilers. */
4304 #ifdef __STDC__
4305 # include <limits.h>
4306 #else
4307 # include <assert.h>
4308 #endif
4310 #undef shmat
4312 /* Override any gcc2 internal prototype to avoid an error. */
4313 #ifdef __cplusplus
4314 extern "C"
4316 #endif
4317 /* We use char because int might match the return type of a gcc2
4318 builtin and then its argument prototype would still apply. */
4319 char shmat ();
4320 /* The GNU C library defines this for functions which it implements
4321 to always fail with ENOSYS. Some functions are actually named
4322 something starting with __ and the normal name is an alias. */
4323 #if defined (__stub_shmat) || defined (__stub___shmat)
4324 choke me
4325 #else
4326 char (*f) () = shmat;
4327 #endif
4328 #ifdef __cplusplus
4330 #endif
4333 main ()
4335 return f != shmat;
4337 return 0;
4339 _ACEOF
4340 rm -f conftest.$ac_objext conftest$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342 (eval $ac_link) 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest$ac_exeext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 ac_cv_func_shmat=yes
4362 else
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 ac_cv_func_shmat=no
4368 rm -f conftest.err conftest.$ac_objext \
4369 conftest$ac_exeext conftest.$ac_ext
4371 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4372 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4374 if test $ac_cv_func_shmat = no; then
4375 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4376 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4377 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 ac_check_lib_save_LIBS=$LIBS
4381 LIBS="-lipc $LIBS"
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4389 /* Override any gcc2 internal prototype to avoid an error. */
4390 #ifdef __cplusplus
4391 extern "C"
4392 #endif
4393 /* We use char because int might match the return type of a gcc2
4394 builtin and then its argument prototype would still apply. */
4395 char shmat ();
4397 main ()
4399 shmat ();
4401 return 0;
4403 _ACEOF
4404 rm -f conftest.$ac_objext conftest$ac_exeext
4405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4406 (eval $ac_link) 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; } &&
4419 { ac_try='test -s conftest$ac_exeext'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 (eval $ac_try) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4425 ac_cv_lib_ipc_shmat=yes
4426 else
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 ac_cv_lib_ipc_shmat=no
4432 rm -f conftest.err conftest.$ac_objext \
4433 conftest$ac_exeext conftest.$ac_ext
4434 LIBS=$ac_check_lib_save_LIBS
4436 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4437 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4438 if test $ac_cv_lib_ipc_shmat = yes; then
4439 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4445 # Check for libraries that X11R6 Xt/Xaw programs need.
4446 ac_save_LDFLAGS=$LDFLAGS
4447 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4448 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4449 # check for ICE first), but we must link in the order -lSM -lICE or
4450 # we get undefined symbols. So assume we have SM if we have ICE.
4451 # These have to be linked with before -lX11, unlike the other
4452 # libraries we check for below, so use a different variable.
4453 # John Interrante, Karl Berry
4454 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4455 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4456 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 ac_check_lib_save_LIBS=$LIBS
4460 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4468 /* Override any gcc2 internal prototype to avoid an error. */
4469 #ifdef __cplusplus
4470 extern "C"
4471 #endif
4472 /* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4474 char IceConnectionNumber ();
4476 main ()
4478 IceConnectionNumber ();
4480 return 0;
4482 _ACEOF
4483 rm -f conftest.$ac_objext conftest$ac_exeext
4484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4485 (eval $ac_link) 2>conftest.er1
4486 ac_status=$?
4487 grep -v '^ *+' conftest.er1 >conftest.err
4488 rm -f conftest.er1
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest$ac_exeext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 ac_cv_lib_ICE_IceConnectionNumber=yes
4505 else
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 ac_cv_lib_ICE_IceConnectionNumber=no
4511 rm -f conftest.err conftest.$ac_objext \
4512 conftest$ac_exeext conftest.$ac_ext
4513 LIBS=$ac_check_lib_save_LIBS
4515 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4516 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4517 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4518 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4521 LDFLAGS=$ac_save_LDFLAGS
4525 for ac_prog in flex lex
4527 # Extract the first word of "$ac_prog", so it can be a program name with args.
4528 set dummy $ac_prog; ac_word=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_prog_LEX+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534 if test -n "$LEX"; then
4535 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_LEX="$ac_prog"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4548 done
4549 done
4553 LEX=$ac_cv_prog_LEX
4554 if test -n "$LEX"; then
4555 echo "$as_me:$LINENO: result: $LEX" >&5
4556 echo "${ECHO_T}$LEX" >&6
4557 else
4558 echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4562 test -n "$LEX" && break
4563 done
4564 test -n "$LEX" || LEX=":"
4566 if test -z "$LEXLIB"
4567 then
4568 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4569 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4570 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573 ac_check_lib_save_LIBS=$LIBS
4574 LIBS="-lfl $LIBS"
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4582 /* Override any gcc2 internal prototype to avoid an error. */
4583 #ifdef __cplusplus
4584 extern "C"
4585 #endif
4586 /* We use char because int might match the return type of a gcc2
4587 builtin and then its argument prototype would still apply. */
4588 char yywrap ();
4590 main ()
4592 yywrap ();
4594 return 0;
4596 _ACEOF
4597 rm -f conftest.$ac_objext conftest$ac_exeext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599 (eval $ac_link) 2>conftest.er1
4600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try='test -s conftest$ac_exeext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 (eval $ac_try) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_lib_fl_yywrap=yes
4619 else
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4623 ac_cv_lib_fl_yywrap=no
4625 rm -f conftest.err conftest.$ac_objext \
4626 conftest$ac_exeext conftest.$ac_ext
4627 LIBS=$ac_check_lib_save_LIBS
4629 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4630 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4631 if test $ac_cv_lib_fl_yywrap = yes; then
4632 LEXLIB="-lfl"
4633 else
4634 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4635 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4636 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639 ac_check_lib_save_LIBS=$LIBS
4640 LIBS="-ll $LIBS"
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h. */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4648 /* Override any gcc2 internal prototype to avoid an error. */
4649 #ifdef __cplusplus
4650 extern "C"
4651 #endif
4652 /* We use char because int might match the return type of a gcc2
4653 builtin and then its argument prototype would still apply. */
4654 char yywrap ();
4656 main ()
4658 yywrap ();
4660 return 0;
4662 _ACEOF
4663 rm -f conftest.$ac_objext conftest$ac_exeext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4665 (eval $ac_link) 2>conftest.er1
4666 ac_status=$?
4667 grep -v '^ *+' conftest.er1 >conftest.err
4668 rm -f conftest.er1
4669 cat conftest.err >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; } &&
4678 { ac_try='test -s conftest$ac_exeext'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 (eval $ac_try) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; }; then
4684 ac_cv_lib_l_yywrap=yes
4685 else
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4689 ac_cv_lib_l_yywrap=no
4691 rm -f conftest.err conftest.$ac_objext \
4692 conftest$ac_exeext conftest.$ac_ext
4693 LIBS=$ac_check_lib_save_LIBS
4695 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4696 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4697 if test $ac_cv_lib_l_yywrap = yes; then
4698 LEXLIB="-ll"
4705 if test "x$LEX" != "x:"; then
4706 echo "$as_me:$LINENO: checking lex output file root" >&5
4707 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4708 if test "${ac_cv_prog_lex_root+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 # The minimal lex program is just a single line: %%. But some broken lexes
4712 # (Solaris, I think it was) want two %% lines, so accommodate them.
4713 cat >conftest.l <<_ACEOF
4716 _ACEOF
4717 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4718 (eval $LEX conftest.l) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }
4722 if test -f lex.yy.c; then
4723 ac_cv_prog_lex_root=lex.yy
4724 elif test -f lexyy.c; then
4725 ac_cv_prog_lex_root=lexyy
4726 else
4727 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4728 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4729 { (exit 1); exit 1; }; }
4732 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4733 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4734 rm -f conftest.l
4735 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4737 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4738 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4739 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742 # POSIX says lex can declare yytext either as a pointer or an array; the
4743 # default is implementation-dependent. Figure out which it is, since
4744 # not all implementations provide the %pointer and %array declarations.
4745 ac_cv_prog_lex_yytext_pointer=no
4746 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4747 ac_save_LIBS=$LIBS
4748 LIBS="$LIBS $LEXLIB"
4749 cat >conftest.$ac_ext <<_ACEOF
4750 `cat $LEX_OUTPUT_ROOT.c`
4751 _ACEOF
4752 rm -f conftest.$ac_objext conftest$ac_exeext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4754 (eval $ac_link) 2>conftest.er1
4755 ac_status=$?
4756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 (eval $ac_try) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; } &&
4767 { ac_try='test -s conftest$ac_exeext'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 (eval $ac_try) 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 ac_cv_prog_lex_yytext_pointer=yes
4774 else
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4779 rm -f conftest.err conftest.$ac_objext \
4780 conftest$ac_exeext conftest.$ac_ext
4781 LIBS=$ac_save_LIBS
4782 rm -f "${LEX_OUTPUT_ROOT}.c"
4785 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4786 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4787 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4789 cat >>confdefs.h <<\_ACEOF
4790 #define YYTEXT_POINTER 1
4791 _ACEOF
4797 for ac_prog in $LEX flex lex
4799 # Extract the first word of "$ac_prog", so it can be a program name with args.
4800 set dummy $ac_prog; ac_word=$2
4801 echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803 if test "${ac_cv_prog_XLEX+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806 if test -n "$XLEX"; then
4807 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_XLEX="$ac_prog"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 break 2
4820 done
4821 done
4825 XLEX=$ac_cv_prog_XLEX
4826 if test -n "$XLEX"; then
4827 echo "$as_me:$LINENO: result: $XLEX" >&5
4828 echo "${ECHO_T}$XLEX" >&6
4829 else
4830 echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6
4834 test -n "$XLEX" && break
4835 done
4836 test -n "$XLEX" || XLEX="none"
4838 if test "$XLEX" = "none"
4839 then
4840 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4841 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4842 { (exit 1); exit 1; }; }
4845 for ac_prog in bison
4847 # Extract the first word of "$ac_prog", so it can be a program name with args.
4848 set dummy $ac_prog; ac_word=$2
4849 echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4851 if test "${ac_cv_prog_BISON+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854 if test -n "$BISON"; then
4855 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864 ac_cv_prog_BISON="$ac_prog"
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4868 done
4869 done
4873 BISON=$ac_cv_prog_BISON
4874 if test -n "$BISON"; then
4875 echo "$as_me:$LINENO: result: $BISON" >&5
4876 echo "${ECHO_T}$BISON" >&6
4877 else
4878 echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6
4882 test -n "$BISON" && break
4883 done
4884 test -n "$BISON" || BISON="none"
4886 if test "$BISON" = "none"
4887 then
4888 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4889 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4890 { (exit 1); exit 1; }; }
4893 if test -n "$ac_tool_prefix"; then
4894 for ac_prog in gas as
4896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_AS+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903 if test -n "$AS"; then
4904 ac_cv_prog_AS="$AS" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4922 AS=$ac_cv_prog_AS
4923 if test -n "$AS"; then
4924 echo "$as_me:$LINENO: result: $AS" >&5
4925 echo "${ECHO_T}$AS" >&6
4926 else
4927 echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4931 test -n "$AS" && break
4932 done
4934 if test -z "$AS"; then
4935 ac_ct_AS=$AS
4936 for ac_prog in gas as
4938 # Extract the first word of "$ac_prog", so it can be a program name with args.
4939 set dummy $ac_prog; ac_word=$2
4940 echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4942 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945 if test -n "$ac_ct_AS"; then
4946 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955 ac_cv_prog_ac_ct_AS="$ac_prog"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4959 done
4960 done
4964 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4965 if test -n "$ac_ct_AS"; then
4966 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4967 echo "${ECHO_T}$ac_ct_AS" >&6
4968 else
4969 echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6
4973 test -n "$ac_ct_AS" && break
4974 done
4975 test -n "$ac_ct_AS" || ac_ct_AS="as"
4977 AS=$ac_ct_AS
4980 if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}ld; ac_word=$2
4983 echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985 if test "${ac_cv_prog_LD+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 if test -n "$LD"; then
4989 ac_cv_prog_LD="$LD" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_LD="${ac_tool_prefix}ld"
4999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5002 done
5003 done
5007 LD=$ac_cv_prog_LD
5008 if test -n "$LD"; then
5009 echo "$as_me:$LINENO: result: $LD" >&5
5010 echo "${ECHO_T}$LD" >&6
5011 else
5012 echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5017 if test -z "$ac_cv_prog_LD"; then
5018 ac_ct_LD=$LD
5019 # Extract the first word of "ld", so it can be a program name with args.
5020 set dummy ld; ac_word=$2
5021 echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026 if test -n "$ac_ct_LD"; then
5027 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_prog_ac_ct_LD="ld"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5040 done
5041 done
5043 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5046 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5047 if test -n "$ac_ct_LD"; then
5048 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5049 echo "${ECHO_T}$ac_ct_LD" >&6
5050 else
5051 echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6
5055 LD=$ac_ct_LD
5056 else
5057 LD="$ac_cv_prog_LD"
5060 if test -n "$ac_tool_prefix"; then
5061 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5062 set dummy ${ac_tool_prefix}ar; ac_word=$2
5063 echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065 if test "${ac_cv_prog_AR+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 if test -n "$AR"; then
5069 ac_cv_prog_AR="$AR" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_AR="${ac_tool_prefix}ar"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5082 done
5083 done
5087 AR=$ac_cv_prog_AR
5088 if test -n "$AR"; then
5089 echo "$as_me:$LINENO: result: $AR" >&5
5090 echo "${ECHO_T}$AR" >&6
5091 else
5092 echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5097 if test -z "$ac_cv_prog_AR"; then
5098 ac_ct_AR=$AR
5099 # Extract the first word of "ar", so it can be a program name with args.
5100 set dummy ar; ac_word=$2
5101 echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 if test -n "$ac_ct_AR"; then
5107 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116 ac_cv_prog_ac_ct_AR="ar"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5120 done
5121 done
5123 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5126 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5127 if test -n "$ac_ct_AR"; then
5128 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5129 echo "${ECHO_T}$ac_ct_AR" >&6
5130 else
5131 echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6
5135 AR=$ac_ct_AR
5136 else
5137 AR="$ac_cv_prog_AR"
5140 if test -n "$ac_tool_prefix"; then
5141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5143 echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145 if test "${ac_cv_prog_RANLIB+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148 if test -n "$RANLIB"; then
5149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5162 done
5163 done
5167 RANLIB=$ac_cv_prog_RANLIB
5168 if test -n "$RANLIB"; then
5169 echo "$as_me:$LINENO: result: $RANLIB" >&5
5170 echo "${ECHO_T}$RANLIB" >&6
5171 else
5172 echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6
5177 if test -z "$ac_cv_prog_RANLIB"; then
5178 ac_ct_RANLIB=$RANLIB
5179 # Extract the first word of "ranlib", so it can be a program name with args.
5180 set dummy ranlib; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 if test -n "$ac_ct_RANLIB"; then
5187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_ac_ct_RANLIB="ranlib"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5203 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5207 if test -n "$ac_ct_RANLIB"; then
5208 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5209 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5210 else
5211 echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5215 RANLIB=$ac_ct_RANLIB
5216 else
5217 RANLIB="$ac_cv_prog_RANLIB"
5220 if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}strip; ac_word=$2
5223 echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225 if test "${ac_cv_prog_STRIP+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228 if test -n "$STRIP"; then
5229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5242 done
5243 done
5247 STRIP=$ac_cv_prog_STRIP
5248 if test -n "$STRIP"; then
5249 echo "$as_me:$LINENO: result: $STRIP" >&5
5250 echo "${ECHO_T}$STRIP" >&6
5251 else
5252 echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5257 if test -z "$ac_cv_prog_STRIP"; then
5258 ac_ct_STRIP=$STRIP
5259 # Extract the first word of "strip", so it can be a program name with args.
5260 set dummy strip; ac_word=$2
5261 echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266 if test -n "$ac_ct_STRIP"; then
5267 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_ac_ct_STRIP="strip"
5277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5280 done
5281 done
5283 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5287 if test -n "$ac_ct_STRIP"; then
5288 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5289 echo "${ECHO_T}$ac_ct_STRIP" >&6
5290 else
5291 echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6
5295 STRIP=$ac_ct_STRIP
5296 else
5297 STRIP="$ac_cv_prog_STRIP"
5300 if test -n "$ac_tool_prefix"; then
5301 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5302 set dummy ${ac_tool_prefix}windres; ac_word=$2
5303 echo "$as_me:$LINENO: checking for $ac_word" >&5
5304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5305 if test "${ac_cv_prog_WINDRES+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308 if test -n "$WINDRES"; then
5309 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5310 else
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5322 done
5323 done
5327 WINDRES=$ac_cv_prog_WINDRES
5328 if test -n "$WINDRES"; then
5329 echo "$as_me:$LINENO: result: $WINDRES" >&5
5330 echo "${ECHO_T}$WINDRES" >&6
5331 else
5332 echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6
5337 if test -z "$ac_cv_prog_WINDRES"; then
5338 ac_ct_WINDRES=$WINDRES
5339 # Extract the first word of "windres", so it can be a program name with args.
5340 set dummy windres; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346 if test -n "$ac_ct_WINDRES"; then
5347 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_ac_ct_WINDRES="windres"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5360 done
5361 done
5363 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5366 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5367 if test -n "$ac_ct_WINDRES"; then
5368 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5369 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5370 else
5371 echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6
5375 WINDRES=$ac_ct_WINDRES
5376 else
5377 WINDRES="$ac_cv_prog_WINDRES"
5380 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5381 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5382 LN_S=$as_ln_s
5383 if test "$LN_S" = "ln -s"; then
5384 echo "$as_me:$LINENO: result: yes" >&5
5385 echo "${ECHO_T}yes" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5388 echo "${ECHO_T}no, using $LN_S" >&6
5391 echo "$as_me:$LINENO: checking whether ln works" >&5
5392 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5393 rm -f conf$$ conf$$.file
5394 echo >conf$$.file
5395 if ln conf$$.file conf$$ 2>/dev/null; then
5396 LN=ln
5398 echo "$as_me:$LINENO: result: yes" >&5
5399 echo "${ECHO_T}yes" >&6
5400 else
5401 LN="cp -p"
5403 echo "$as_me:$LINENO: result: no, using $LN" >&5
5404 echo "${ECHO_T}no, using $LN" >&6
5406 rm -f conf$$ conf$$.file
5407 echo "$as_me:$LINENO: checking for egrep" >&5
5408 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5409 if test "${ac_cv_prog_egrep+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5413 then ac_cv_prog_egrep='grep -E'
5414 else ac_cv_prog_egrep='egrep'
5417 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5418 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5419 EGREP=$ac_cv_prog_egrep
5422 # Extract the first word of "ldconfig", so it can be a program name with args.
5423 set dummy ldconfig; ac_word=$2
5424 echo "$as_me:$LINENO: checking for $ac_word" >&5
5425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429 case $LDCONFIG in
5430 [\\/]* | ?:[\\/]*)
5431 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in /sbin /usr/sbin $PATH
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5445 done
5446 done
5448 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5450 esac
5452 LDCONFIG=$ac_cv_path_LDCONFIG
5454 if test -n "$LDCONFIG"; then
5455 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5456 echo "${ECHO_T}$LDCONFIG" >&6
5457 else
5458 echo "$as_me:$LINENO: result: no" >&5
5459 echo "${ECHO_T}no" >&6
5462 # Find a good install program. We prefer a C program (faster),
5463 # so one script is as good as another. But avoid the broken or
5464 # incompatible versions:
5465 # SysV /etc/install, /usr/sbin/install
5466 # SunOS /usr/etc/install
5467 # IRIX /sbin/install
5468 # AIX /bin/install
5469 # AmigaOS /C/install, which installs bootblocks on floppy discs
5470 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5471 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5472 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5473 # OS/2's system install, which has a completely different semantic
5474 # ./install, which can be erroneously created by make from ./install.sh.
5475 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5476 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5477 if test -z "$INSTALL"; then
5478 if test "${ac_cv_path_install+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 # Account for people who put trailing slashes in PATH elements.
5487 case $as_dir/ in
5488 ./ | .// | /cC/* | \
5489 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5490 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5491 /usr/ucb/* ) ;;
5493 # OSF1 and SCO ODT 3.0 have their own names for install.
5494 # Don't use installbsd from OSF since it installs stuff as root
5495 # by default.
5496 for ac_prog in ginstall scoinst install; do
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5499 if test $ac_prog = install &&
5500 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5501 # AIX install. It has an incompatible calling convention.
5503 elif test $ac_prog = install &&
5504 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5505 # program-specific install script used by HP pwplus--don't use.
5507 else
5508 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5509 break 3
5512 done
5513 done
5515 esac
5516 done
5520 if test "${ac_cv_path_install+set}" = set; then
5521 INSTALL=$ac_cv_path_install
5522 else
5523 # As a last resort, use the slow shell script. We don't cache a
5524 # path for INSTALL within a source directory, because that will
5525 # break other packages using the cache if that directory is
5526 # removed, or if the path is relative.
5527 INSTALL=$ac_install_sh
5530 echo "$as_me:$LINENO: result: $INSTALL" >&5
5531 echo "${ECHO_T}$INSTALL" >&6
5533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5534 # It thinks the first close brace ends the variable substitution.
5535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5541 case "$INSTALL" in
5542 [\\/$]* | ?:[\\/]* ) ;;
5543 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5544 esac
5546 for ac_prog in lclint lint
5548 # Extract the first word of "$ac_prog", so it can be a program name with args.
5549 set dummy $ac_prog; ac_word=$2
5550 echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552 if test "${ac_cv_prog_LINT+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555 if test -n "$LINT"; then
5556 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565 ac_cv_prog_LINT="$ac_prog"
5566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5569 done
5570 done
5574 LINT=$ac_cv_prog_LINT
5575 if test -n "$LINT"; then
5576 echo "$as_me:$LINENO: result: $LINT" >&5
5577 echo "${ECHO_T}$LINT" >&6
5578 else
5579 echo "$as_me:$LINENO: result: no" >&5
5580 echo "${ECHO_T}no" >&6
5583 test -n "$LINT" && break
5584 done
5586 if test "$LINT" = "lint"
5587 then
5588 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5593 for ac_prog in docbook2html db2html
5595 # Extract the first word of "$ac_prog", so it can be a program name with args.
5596 set dummy $ac_prog; ac_word=$2
5597 echo "$as_me:$LINENO: checking for $ac_word" >&5
5598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5599 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602 if test -n "$DB2HTML"; then
5603 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5604 else
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612 ac_cv_prog_DB2HTML="$ac_prog"
5613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 break 2
5616 done
5617 done
5621 DB2HTML=$ac_cv_prog_DB2HTML
5622 if test -n "$DB2HTML"; then
5623 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5624 echo "${ECHO_T}$DB2HTML" >&6
5625 else
5626 echo "$as_me:$LINENO: result: no" >&5
5627 echo "${ECHO_T}no" >&6
5630 test -n "$DB2HTML" && break
5631 done
5632 test -n "$DB2HTML" || DB2HTML="false"
5634 for ac_prog in docbook2pdf db2pdf
5636 # Extract the first word of "$ac_prog", so it can be a program name with args.
5637 set dummy $ac_prog; ac_word=$2
5638 echo "$as_me:$LINENO: checking for $ac_word" >&5
5639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5640 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 if test -n "$DB2PDF"; then
5644 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_prog_DB2PDF="$ac_prog"
5654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5657 done
5658 done
5662 DB2PDF=$ac_cv_prog_DB2PDF
5663 if test -n "$DB2PDF"; then
5664 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5665 echo "${ECHO_T}$DB2PDF" >&6
5666 else
5667 echo "$as_me:$LINENO: result: no" >&5
5668 echo "${ECHO_T}no" >&6
5671 test -n "$DB2PDF" && break
5672 done
5673 test -n "$DB2PDF" || DB2PDF="false"
5675 for ac_prog in docbook2ps db2ps
5677 # Extract the first word of "$ac_prog", so it can be a program name with args.
5678 set dummy $ac_prog; ac_word=$2
5679 echo "$as_me:$LINENO: checking for $ac_word" >&5
5680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5681 if test "${ac_cv_prog_DB2PS+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 if test -n "$DB2PS"; then
5685 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_DB2PS="$ac_prog"
5695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5698 done
5699 done
5703 DB2PS=$ac_cv_prog_DB2PS
5704 if test -n "$DB2PS"; then
5705 echo "$as_me:$LINENO: result: $DB2PS" >&5
5706 echo "${ECHO_T}$DB2PS" >&6
5707 else
5708 echo "$as_me:$LINENO: result: no" >&5
5709 echo "${ECHO_T}no" >&6
5712 test -n "$DB2PS" && break
5713 done
5714 test -n "$DB2PS" || DB2PS="false"
5716 for ac_prog in docbook2txt db2txt
5718 # Extract the first word of "$ac_prog", so it can be a program name with args.
5719 set dummy $ac_prog; ac_word=$2
5720 echo "$as_me:$LINENO: checking for $ac_word" >&5
5721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5722 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 else
5725 if test -n "$DB2TXT"; then
5726 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5727 else
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735 ac_cv_prog_DB2TXT="$ac_prog"
5736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5739 done
5740 done
5744 DB2TXT=$ac_cv_prog_DB2TXT
5745 if test -n "$DB2TXT"; then
5746 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5747 echo "${ECHO_T}$DB2TXT" >&6
5748 else
5749 echo "$as_me:$LINENO: result: no" >&5
5750 echo "${ECHO_T}no" >&6
5753 test -n "$DB2TXT" && break
5754 done
5755 test -n "$DB2TXT" || DB2TXT="false"
5757 for ac_prog in fontforge
5759 # Extract the first word of "$ac_prog", so it can be a program name with args.
5760 set dummy $ac_prog; ac_word=$2
5761 echo "$as_me:$LINENO: checking for $ac_word" >&5
5762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766 if test -n "$FONTFORGE"; then
5767 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_FONTFORGE="$ac_prog"
5777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5780 done
5781 done
5785 FONTFORGE=$ac_cv_prog_FONTFORGE
5786 if test -n "$FONTFORGE"; then
5787 echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5788 echo "${ECHO_T}$FONTFORGE" >&6
5789 else
5790 echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6
5794 test -n "$FONTFORGE" && break
5795 done
5796 test -n "$FONTFORGE" || FONTFORGE="false"
5801 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5802 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5803 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806 ac_check_lib_save_LIBS=$LIBS
5807 LIBS="-li386 $LIBS"
5808 cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h. */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5815 /* Override any gcc2 internal prototype to avoid an error. */
5816 #ifdef __cplusplus
5817 extern "C"
5818 #endif
5819 /* We use char because int might match the return type of a gcc2
5820 builtin and then its argument prototype would still apply. */
5821 char i386_set_ldt ();
5823 main ()
5825 i386_set_ldt ();
5827 return 0;
5829 _ACEOF
5830 rm -f conftest.$ac_objext conftest$ac_exeext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5832 (eval $ac_link) 2>conftest.er1
5833 ac_status=$?
5834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest$ac_exeext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_lib_i386_i386_set_ldt=yes
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5856 ac_cv_lib_i386_i386_set_ldt=no
5858 rm -f conftest.err conftest.$ac_objext \
5859 conftest$ac_exeext conftest.$ac_ext
5860 LIBS=$ac_check_lib_save_LIBS
5862 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5863 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5864 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5865 cat >>confdefs.h <<_ACEOF
5866 #define HAVE_LIBI386 1
5867 _ACEOF
5869 LIBS="-li386 $LIBS"
5874 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5875 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5876 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879 ac_check_lib_save_LIBS=$LIBS
5880 LIBS="-lossaudio $LIBS"
5881 cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h. */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5888 /* Override any gcc2 internal prototype to avoid an error. */
5889 #ifdef __cplusplus
5890 extern "C"
5891 #endif
5892 /* We use char because int might match the return type of a gcc2
5893 builtin and then its argument prototype would still apply. */
5894 char _oss_ioctl ();
5896 main ()
5898 _oss_ioctl ();
5900 return 0;
5902 _ACEOF
5903 rm -f conftest.$ac_objext conftest$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } &&
5918 { ac_try='test -s conftest$ac_exeext'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 ac_cv_lib_ossaudio__oss_ioctl=yes
5925 else
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5929 ac_cv_lib_ossaudio__oss_ioctl=no
5931 rm -f conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
5933 LIBS=$ac_check_lib_save_LIBS
5935 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5936 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5937 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5938 cat >>confdefs.h <<_ACEOF
5939 #define HAVE_LIBOSSAUDIO 1
5940 _ACEOF
5942 LIBS="-lossaudio $LIBS"
5947 for ac_func in iswalnum
5949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5950 echo "$as_me:$LINENO: checking for $ac_func" >&5
5951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_var+set}\" = set"; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5963 #define $ac_func innocuous_$ac_func
5965 /* System header to define __stub macros and hopefully few prototypes,
5966 which can conflict with char $ac_func (); below.
5967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5968 <limits.h> exists even on freestanding compilers. */
5970 #ifdef __STDC__
5971 # include <limits.h>
5972 #else
5973 # include <assert.h>
5974 #endif
5976 #undef $ac_func
5978 /* Override any gcc2 internal prototype to avoid an error. */
5979 #ifdef __cplusplus
5980 extern "C"
5982 #endif
5983 /* We use char because int might match the return type of a gcc2
5984 builtin and then its argument prototype would still apply. */
5985 char $ac_func ();
5986 /* The GNU C library defines this for functions which it implements
5987 to always fail with ENOSYS. Some functions are actually named
5988 something starting with __ and the normal name is an alias. */
5989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5990 choke me
5991 #else
5992 char (*f) () = $ac_func;
5993 #endif
5994 #ifdef __cplusplus
5996 #endif
5999 main ()
6001 return f != $ac_func;
6003 return 0;
6005 _ACEOF
6006 rm -f conftest.$ac_objext conftest$ac_exeext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6008 (eval $ac_link) 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; } &&
6021 { ac_try='test -s conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 eval "$as_ac_var=yes"
6028 else
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6032 eval "$as_ac_var=no"
6034 rm -f conftest.err conftest.$ac_objext \
6035 conftest$ac_exeext conftest.$ac_ext
6037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6039 if test `eval echo '${'$as_ac_var'}'` = yes; then
6040 cat >>confdefs.h <<_ACEOF
6041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6042 _ACEOF
6044 else
6046 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
6047 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6048 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051 ac_check_lib_save_LIBS=$LIBS
6052 LIBS="-lw $LIBS"
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h. */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6060 /* Override any gcc2 internal prototype to avoid an error. */
6061 #ifdef __cplusplus
6062 extern "C"
6063 #endif
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6066 char iswalnum ();
6068 main ()
6070 iswalnum ();
6072 return 0;
6074 _ACEOF
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest$ac_exeext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_lib_w_iswalnum=yes
6097 else
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 ac_cv_lib_w_iswalnum=no
6103 rm -f conftest.err conftest.$ac_objext \
6104 conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_check_lib_save_LIBS
6107 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6108 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6109 if test $ac_cv_lib_w_iswalnum = yes; then
6110 cat >>confdefs.h <<_ACEOF
6111 #define HAVE_LIBW 1
6112 _ACEOF
6114 LIBS="-lw $LIBS"
6119 done
6122 for ac_func in gethostbyname
6124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6125 echo "$as_me:$LINENO: checking for $ac_func" >&5
6126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6127 if eval "test \"\${$as_ac_var+set}\" = set"; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130 cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6138 #define $ac_func innocuous_$ac_func
6140 /* System header to define __stub macros and hopefully few prototypes,
6141 which can conflict with char $ac_func (); below.
6142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6143 <limits.h> exists even on freestanding compilers. */
6145 #ifdef __STDC__
6146 # include <limits.h>
6147 #else
6148 # include <assert.h>
6149 #endif
6151 #undef $ac_func
6153 /* Override any gcc2 internal prototype to avoid an error. */
6154 #ifdef __cplusplus
6155 extern "C"
6157 #endif
6158 /* We use char because int might match the return type of a gcc2
6159 builtin and then its argument prototype would still apply. */
6160 char $ac_func ();
6161 /* The GNU C library defines this for functions which it implements
6162 to always fail with ENOSYS. Some functions are actually named
6163 something starting with __ and the normal name is an alias. */
6164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6165 choke me
6166 #else
6167 char (*f) () = $ac_func;
6168 #endif
6169 #ifdef __cplusplus
6171 #endif
6174 main ()
6176 return f != $ac_func;
6178 return 0;
6180 _ACEOF
6181 rm -f conftest.$ac_objext conftest$ac_exeext
6182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6183 (eval $ac_link) 2>conftest.er1
6184 ac_status=$?
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; } &&
6196 { ac_try='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 eval "$as_ac_var=yes"
6203 else
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 eval "$as_ac_var=no"
6209 rm -f conftest.err conftest.$ac_objext \
6210 conftest$ac_exeext conftest.$ac_ext
6212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6214 if test `eval echo '${'$as_ac_var'}'` = yes; then
6215 cat >>confdefs.h <<_ACEOF
6216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6217 _ACEOF
6219 else
6221 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6222 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6223 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 ac_check_lib_save_LIBS=$LIBS
6227 LIBS="-lnsl $LIBS"
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6235 /* Override any gcc2 internal prototype to avoid an error. */
6236 #ifdef __cplusplus
6237 extern "C"
6238 #endif
6239 /* We use char because int might match the return type of a gcc2
6240 builtin and then its argument prototype would still apply. */
6241 char gethostbyname ();
6243 main ()
6245 gethostbyname ();
6247 return 0;
6249 _ACEOF
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252 (eval $ac_link) 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest$ac_exeext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 (eval $ac_try) 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 ac_cv_lib_nsl_gethostbyname=yes
6272 else
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6276 ac_cv_lib_nsl_gethostbyname=no
6278 rm -f conftest.err conftest.$ac_objext \
6279 conftest$ac_exeext conftest.$ac_ext
6280 LIBS=$ac_check_lib_save_LIBS
6282 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6283 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6284 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6285 cat >>confdefs.h <<_ACEOF
6286 #define HAVE_LIBNSL 1
6287 _ACEOF
6289 LIBS="-lnsl $LIBS"
6294 done
6297 for ac_func in connect
6299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6300 echo "$as_me:$LINENO: checking for $ac_func" >&5
6301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6302 if eval "test \"\${$as_ac_var+set}\" = set"; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6313 #define $ac_func innocuous_$ac_func
6315 /* System header to define __stub macros and hopefully few prototypes,
6316 which can conflict with char $ac_func (); below.
6317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6318 <limits.h> exists even on freestanding compilers. */
6320 #ifdef __STDC__
6321 # include <limits.h>
6322 #else
6323 # include <assert.h>
6324 #endif
6326 #undef $ac_func
6328 /* Override any gcc2 internal prototype to avoid an error. */
6329 #ifdef __cplusplus
6330 extern "C"
6332 #endif
6333 /* We use char because int might match the return type of a gcc2
6334 builtin and then its argument prototype would still apply. */
6335 char $ac_func ();
6336 /* The GNU C library defines this for functions which it implements
6337 to always fail with ENOSYS. Some functions are actually named
6338 something starting with __ and the normal name is an alias. */
6339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6340 choke me
6341 #else
6342 char (*f) () = $ac_func;
6343 #endif
6344 #ifdef __cplusplus
6346 #endif
6349 main ()
6351 return f != $ac_func;
6353 return 0;
6355 _ACEOF
6356 rm -f conftest.$ac_objext conftest$ac_exeext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358 (eval $ac_link) 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest$ac_exeext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 (eval $ac_try) 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 eval "$as_ac_var=yes"
6378 else
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 eval "$as_ac_var=no"
6384 rm -f conftest.err conftest.$ac_objext \
6385 conftest$ac_exeext conftest.$ac_ext
6387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6389 if test `eval echo '${'$as_ac_var'}'` = yes; then
6390 cat >>confdefs.h <<_ACEOF
6391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6392 _ACEOF
6394 else
6396 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6397 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6398 if test "${ac_cv_lib_socket_connect+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 ac_check_lib_save_LIBS=$LIBS
6402 LIBS="-lsocket $LIBS"
6403 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h. */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6410 /* Override any gcc2 internal prototype to avoid an error. */
6411 #ifdef __cplusplus
6412 extern "C"
6413 #endif
6414 /* We use char because int might match the return type of a gcc2
6415 builtin and then its argument prototype would still apply. */
6416 char connect ();
6418 main ()
6420 connect ();
6422 return 0;
6424 _ACEOF
6425 rm -f conftest.$ac_objext conftest$ac_exeext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6427 (eval $ac_link) 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; } &&
6440 { ac_try='test -s conftest$ac_exeext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 (eval $ac_try) 2>&5
6443 ac_status=$?
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 ac_cv_lib_socket_connect=yes
6447 else
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6451 ac_cv_lib_socket_connect=no
6453 rm -f conftest.err conftest.$ac_objext \
6454 conftest$ac_exeext conftest.$ac_ext
6455 LIBS=$ac_check_lib_save_LIBS
6457 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6458 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6459 if test $ac_cv_lib_socket_connect = yes; then
6460 cat >>confdefs.h <<_ACEOF
6461 #define HAVE_LIBSOCKET 1
6462 _ACEOF
6464 LIBS="-lsocket $LIBS"
6469 done
6472 for ac_func in inet_aton
6474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6475 echo "$as_me:$LINENO: checking for $ac_func" >&5
6476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6477 if eval "test \"\${$as_ac_var+set}\" = set"; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480 cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h. */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6488 #define $ac_func innocuous_$ac_func
6490 /* System header to define __stub macros and hopefully few prototypes,
6491 which can conflict with char $ac_func (); below.
6492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6493 <limits.h> exists even on freestanding compilers. */
6495 #ifdef __STDC__
6496 # include <limits.h>
6497 #else
6498 # include <assert.h>
6499 #endif
6501 #undef $ac_func
6503 /* Override any gcc2 internal prototype to avoid an error. */
6504 #ifdef __cplusplus
6505 extern "C"
6507 #endif
6508 /* We use char because int might match the return type of a gcc2
6509 builtin and then its argument prototype would still apply. */
6510 char $ac_func ();
6511 /* The GNU C library defines this for functions which it implements
6512 to always fail with ENOSYS. Some functions are actually named
6513 something starting with __ and the normal name is an alias. */
6514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6515 choke me
6516 #else
6517 char (*f) () = $ac_func;
6518 #endif
6519 #ifdef __cplusplus
6521 #endif
6524 main ()
6526 return f != $ac_func;
6528 return 0;
6530 _ACEOF
6531 rm -f conftest.$ac_objext conftest$ac_exeext
6532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6533 (eval $ac_link) 2>conftest.er1
6534 ac_status=$?
6535 grep -v '^ *+' conftest.er1 >conftest.err
6536 rm -f conftest.er1
6537 cat conftest.err >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 (eval $ac_try) 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; } &&
6546 { ac_try='test -s conftest$ac_exeext'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6552 eval "$as_ac_var=yes"
6553 else
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6557 eval "$as_ac_var=no"
6559 rm -f conftest.err conftest.$ac_objext \
6560 conftest$ac_exeext conftest.$ac_ext
6562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6564 if test `eval echo '${'$as_ac_var'}'` = yes; then
6565 cat >>confdefs.h <<_ACEOF
6566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6567 _ACEOF
6569 else
6571 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6572 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6573 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576 ac_check_lib_save_LIBS=$LIBS
6577 LIBS="-lresolv $LIBS"
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h. */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6585 /* Override any gcc2 internal prototype to avoid an error. */
6586 #ifdef __cplusplus
6587 extern "C"
6588 #endif
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6591 char inet_aton ();
6593 main ()
6595 inet_aton ();
6597 return 0;
6599 _ACEOF
6600 rm -f conftest.$ac_objext conftest$ac_exeext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602 (eval $ac_link) 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; } &&
6615 { ac_try='test -s conftest$ac_exeext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_cv_lib_resolv_inet_aton=yes
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 ac_cv_lib_resolv_inet_aton=no
6628 rm -f conftest.err conftest.$ac_objext \
6629 conftest$ac_exeext conftest.$ac_ext
6630 LIBS=$ac_check_lib_save_LIBS
6632 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6633 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6634 if test $ac_cv_lib_resolv_inet_aton = yes; then
6635 cat >>confdefs.h <<_ACEOF
6636 #define HAVE_LIBRESOLV 1
6637 _ACEOF
6639 LIBS="-lresolv $LIBS"
6644 done
6647 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6648 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6649 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652 ac_check_lib_save_LIBS=$LIBS
6653 LIBS="-lxpg4 $LIBS"
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6661 /* Override any gcc2 internal prototype to avoid an error. */
6662 #ifdef __cplusplus
6663 extern "C"
6664 #endif
6665 /* We use char because int might match the return type of a gcc2
6666 builtin and then its argument prototype would still apply. */
6667 char _xpg4_setrunelocale ();
6669 main ()
6671 _xpg4_setrunelocale ();
6673 return 0;
6675 _ACEOF
6676 rm -f conftest.$ac_objext conftest$ac_exeext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6678 (eval $ac_link) 2>conftest.er1
6679 ac_status=$?
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
6685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; } &&
6691 { ac_try='test -s conftest$ac_exeext'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6697 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6698 else
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6702 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6704 rm -f conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6706 LIBS=$ac_check_lib_save_LIBS
6708 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6709 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6710 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6711 cat >>confdefs.h <<_ACEOF
6712 #define HAVE_LIBXPG4 1
6713 _ACEOF
6715 LIBS="-lxpg4 $LIBS"
6720 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6721 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6722 if test "${ac_cv_lib_poll_poll+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 ac_check_lib_save_LIBS=$LIBS
6726 LIBS="-lpoll $LIBS"
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6734 /* Override any gcc2 internal prototype to avoid an error. */
6735 #ifdef __cplusplus
6736 extern "C"
6737 #endif
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6740 char poll ();
6742 main ()
6744 poll ();
6746 return 0;
6748 _ACEOF
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751 (eval $ac_link) 2>conftest.er1
6752 ac_status=$?
6753 grep -v '^ *+' conftest.er1 >conftest.err
6754 rm -f conftest.er1
6755 cat conftest.err >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest$ac_exeext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_cv_lib_poll_poll=yes
6771 else
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 ac_cv_lib_poll_poll=no
6777 rm -f conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6779 LIBS=$ac_check_lib_save_LIBS
6781 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6782 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6783 if test $ac_cv_lib_poll_poll = yes; then
6784 cat >>confdefs.h <<_ACEOF
6785 #define HAVE_LIBPOLL 1
6786 _ACEOF
6788 LIBS="-lpoll $LIBS"
6793 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6794 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6795 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798 ac_check_lib_save_LIBS=$LIBS
6799 LIBS="-lresolv $LIBS"
6800 cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h. */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6807 /* Override any gcc2 internal prototype to avoid an error. */
6808 #ifdef __cplusplus
6809 extern "C"
6810 #endif
6811 /* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */
6813 char res_9_init ();
6815 main ()
6817 res_9_init ();
6819 return 0;
6821 _ACEOF
6822 rm -f conftest.$ac_objext conftest$ac_exeext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824 (eval $ac_link) 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest$ac_exeext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_cv_lib_resolv_res_9_init=yes
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6848 ac_cv_lib_resolv_res_9_init=no
6850 rm -f conftest.err conftest.$ac_objext \
6851 conftest$ac_exeext conftest.$ac_ext
6852 LIBS=$ac_check_lib_save_LIBS
6854 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6855 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6856 if test $ac_cv_lib_resolv_res_9_init = yes; then
6857 cat >>confdefs.h <<_ACEOF
6858 #define HAVE_LIBRESOLV 1
6859 _ACEOF
6861 LIBS="-lresolv $LIBS"
6865 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6866 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6867 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870 ac_check_lib_save_LIBS=$LIBS
6871 LIBS="-lpthread $LIBS"
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h. */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6879 /* Override any gcc2 internal prototype to avoid an error. */
6880 #ifdef __cplusplus
6881 extern "C"
6882 #endif
6883 /* We use char because int might match the return type of a gcc2
6884 builtin and then its argument prototype would still apply. */
6885 char pthread_create ();
6887 main ()
6889 pthread_create ();
6891 return 0;
6893 _ACEOF
6894 rm -f conftest.$ac_objext conftest$ac_exeext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6896 (eval $ac_link) 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try='test -s conftest$ac_exeext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 ac_cv_lib_pthread_pthread_create=yes
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_cv_lib_pthread_pthread_create=no
6922 rm -f conftest.err conftest.$ac_objext \
6923 conftest$ac_exeext conftest.$ac_ext
6924 LIBS=$ac_check_lib_save_LIBS
6926 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6927 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6928 if test $ac_cv_lib_pthread_pthread_create = yes; then
6929 LIBPTHREAD="-lpthread"
6936 XFILES=""
6938 OPENGLFILES=""
6940 GLU32FILES=""
6942 OPENGL_LIBS=""
6945 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6946 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6947 if test "${ac_cv_header_stdc+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950 cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h. */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 #include <stdlib.h>
6957 #include <stdarg.h>
6958 #include <string.h>
6959 #include <float.h>
6962 main ()
6966 return 0;
6968 _ACEOF
6969 rm -f conftest.$ac_objext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971 (eval $ac_compile) 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; } &&
6984 { ac_try='test -s conftest.$ac_objext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 ac_cv_header_stdc=yes
6991 else
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6995 ac_cv_header_stdc=no
6997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6999 if test $ac_cv_header_stdc = yes; then
7000 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h. */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 #include <string.h>
7009 _ACEOF
7010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7011 $EGREP "memchr" >/dev/null 2>&1; then
7013 else
7014 ac_cv_header_stdc=no
7016 rm -f conftest*
7020 if test $ac_cv_header_stdc = yes; then
7021 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #include <stdlib.h>
7030 _ACEOF
7031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7032 $EGREP "free" >/dev/null 2>&1; then
7034 else
7035 ac_cv_header_stdc=no
7037 rm -f conftest*
7041 if test $ac_cv_header_stdc = yes; then
7042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7043 if test "$cross_compiling" = yes; then
7045 else
7046 cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 #include <ctype.h>
7053 #if ((' ' & 0x0FF) == 0x020)
7054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7056 #else
7057 # define ISLOWER(c) \
7058 (('a' <= (c) && (c) <= 'i') \
7059 || ('j' <= (c) && (c) <= 'r') \
7060 || ('s' <= (c) && (c) <= 'z'))
7061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7062 #endif
7064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7066 main ()
7068 int i;
7069 for (i = 0; i < 256; i++)
7070 if (XOR (islower (i), ISLOWER (i))
7071 || toupper (i) != TOUPPER (i))
7072 exit(2);
7073 exit (0);
7075 _ACEOF
7076 rm -f conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7088 else
7089 echo "$as_me: program exited with status $ac_status" >&5
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7093 ( exit $ac_status )
7094 ac_cv_header_stdc=no
7096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7100 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7101 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7102 if test $ac_cv_header_stdc = yes; then
7104 cat >>confdefs.h <<\_ACEOF
7105 #define STDC_HEADERS 1
7106 _ACEOF
7110 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7120 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7121 inttypes.h stdint.h unistd.h
7123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124 echo "$as_me:$LINENO: checking for $ac_header" >&5
7125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h. */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 $ac_includes_default
7137 #include <$ac_header>
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 (eval $ac_try) 2>&5
7151 ac_status=$?
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; } &&
7154 { ac_try='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 eval "$as_ac_Header=yes"
7161 else
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 eval "$as_ac_Header=no"
7167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7172 cat >>confdefs.h <<_ACEOF
7173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7174 _ACEOF
7178 done
7266 for ac_header in \
7267 arpa/inet.h \
7268 arpa/nameser.h \
7269 asm/types.h \
7270 cups/cups.h \
7271 direct.h \
7272 elf.h \
7273 float.h \
7274 fontconfig/fontconfig.h \
7275 getopt.h \
7276 gif_lib.h \
7277 ieeefp.h \
7278 io.h \
7279 jack/jack.h \
7280 jpeglib.h \
7281 lcms/lcms.h \
7282 lcms.h \
7283 link.h \
7284 linux/cdrom.h \
7285 linux/compiler.h \
7286 linux/hdreg.h \
7287 linux/input.h \
7288 linux/ioctl.h \
7289 linux/joystick.h \
7290 linux/major.h \
7291 linux/param.h \
7292 linux/serial.h \
7293 linux/ucdrom.h \
7294 machine/cpu.h \
7295 mntent.h \
7296 netdb.h \
7297 netinet/in.h \
7298 netinet/in_systm.h \
7299 netinet/tcp.h \
7300 netinet/tcp_fsm.h \
7301 openssl/ssl.h \
7302 poll.h \
7303 process.h \
7304 pthread.h \
7305 pwd.h \
7306 regex.h \
7307 sched.h \
7308 scsi/sg.h \
7309 scsi/scsi.h \
7310 scsi/scsi_ioctl.h \
7311 stdint.h \
7312 strings.h \
7313 sys/cdio.h \
7314 sys/elf32.h \
7315 sys/errno.h \
7316 sys/epoll.h \
7317 sys/exec_elf.h \
7318 sys/filio.h \
7319 sys/ioctl.h \
7320 sys/ipc.h \
7321 sys/link.h \
7322 sys/lwp.h \
7323 sys/mman.h \
7324 sys/modem.h \
7325 sys/msg.h \
7326 sys/param.h \
7327 sys/poll.h \
7328 sys/ptrace.h \
7329 sys/reg.h \
7330 sys/scsiio.h \
7331 sys/shm.h \
7332 sys/signal.h \
7333 sys/socket.h \
7334 sys/sockio.h \
7335 sys/statfs.h \
7336 sys/statvfs.h \
7337 sys/strtio.h \
7338 sys/syscall.h \
7339 sys/sysctl.h \
7340 sys/time.h \
7341 sys/times.h \
7342 sys/uio.h \
7343 sys/un.h \
7344 sys/vfs.h \
7345 sys/vm86.h \
7346 sys/wait.h \
7347 syscall.h \
7348 termios.h \
7349 unistd.h \
7350 utime.h \
7351 valgrind/memcheck.h
7354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7356 echo "$as_me:$LINENO: checking for $ac_header" >&5
7357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7363 else
7364 # Is the header compilable?
7365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7367 cat >conftest.$ac_ext <<_ACEOF
7368 /* confdefs.h. */
7369 _ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7374 #include <$ac_header>
7375 _ACEOF
7376 rm -f conftest.$ac_objext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378 (eval $ac_compile) 2>conftest.er1
7379 ac_status=$?
7380 grep -v '^ *+' conftest.er1 >conftest.err
7381 rm -f conftest.er1
7382 cat conftest.err >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } &&
7385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_header_compiler=yes
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 ac_header_compiler=no
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7406 echo "${ECHO_T}$ac_header_compiler" >&6
7408 # Is the header present?
7409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7411 cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h. */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7417 #include <$ac_header>
7418 _ACEOF
7419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } >/dev/null; then
7427 if test -s conftest.err; then
7428 ac_cpp_err=$ac_c_preproc_warn_flag
7429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7430 else
7431 ac_cpp_err=
7433 else
7434 ac_cpp_err=yes
7436 if test -z "$ac_cpp_err"; then
7437 ac_header_preproc=yes
7438 else
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 ac_header_preproc=no
7444 rm -f conftest.err conftest.$ac_ext
7445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7446 echo "${ECHO_T}$ac_header_preproc" >&6
7448 # So? What about this header?
7449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7450 yes:no: )
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7455 ac_header_preproc=yes
7457 no:yes:* )
7458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7471 cat <<\_ASBOX
7472 ## ------------------------------------ ##
7473 ## Report this to wine-devel@winehq.org ##
7474 ## ------------------------------------ ##
7475 _ASBOX
7477 sed "s/^/$as_me: WARNING: /" >&2
7479 esac
7480 echo "$as_me:$LINENO: checking for $ac_header" >&5
7481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 eval "$as_ac_Header=\$ac_header_preproc"
7487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7492 cat >>confdefs.h <<_ACEOF
7493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7494 _ACEOF
7498 done
7500 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7501 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7502 if test "${ac_cv_header_stat_broken+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505 cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h. */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 #include <sys/types.h>
7512 #include <sys/stat.h>
7514 #if defined(S_ISBLK) && defined(S_IFDIR)
7515 # if S_ISBLK (S_IFDIR)
7516 You lose.
7517 # endif
7518 #endif
7520 #if defined(S_ISBLK) && defined(S_IFCHR)
7521 # if S_ISBLK (S_IFCHR)
7522 You lose.
7523 # endif
7524 #endif
7526 #if defined(S_ISLNK) && defined(S_IFREG)
7527 # if S_ISLNK (S_IFREG)
7528 You lose.
7529 # endif
7530 #endif
7532 #if defined(S_ISSOCK) && defined(S_IFREG)
7533 # if S_ISSOCK (S_IFREG)
7534 You lose.
7535 # endif
7536 #endif
7538 _ACEOF
7539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7540 $EGREP "You lose" >/dev/null 2>&1; then
7541 ac_cv_header_stat_broken=yes
7542 else
7543 ac_cv_header_stat_broken=no
7545 rm -f conftest*
7548 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7549 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7550 if test $ac_cv_header_stat_broken = yes; then
7552 cat >>confdefs.h <<\_ACEOF
7553 #define STAT_MACROS_BROKEN 1
7554 _ACEOF
7560 if test "$have_x" = "yes"
7561 then
7562 XLIB="-lXext -lX11"
7563 ac_save_CPPFLAGS="$CPPFLAGS"
7564 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7567 for ac_header in X11/Xlib.h
7569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7571 echo "$as_me:$LINENO: checking for $ac_header" >&5
7572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7578 else
7579 # Is the header compilable?
7580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7582 cat >conftest.$ac_ext <<_ACEOF
7583 /* confdefs.h. */
7584 _ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7588 $ac_includes_default
7589 #include <$ac_header>
7590 _ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>conftest.er1
7594 ac_status=$?
7595 grep -v '^ *+' conftest.er1 >conftest.err
7596 rm -f conftest.er1
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; } &&
7606 { ac_try='test -s conftest.$ac_objext'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; }; then
7612 ac_header_compiler=yes
7613 else
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7617 ac_header_compiler=no
7619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7621 echo "${ECHO_T}$ac_header_compiler" >&6
7623 # Is the header present?
7624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7626 cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h. */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 #include <$ac_header>
7633 _ACEOF
7634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } >/dev/null; then
7642 if test -s conftest.err; then
7643 ac_cpp_err=$ac_c_preproc_warn_flag
7644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7645 else
7646 ac_cpp_err=
7648 else
7649 ac_cpp_err=yes
7651 if test -z "$ac_cpp_err"; then
7652 ac_header_preproc=yes
7653 else
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 ac_header_preproc=no
7659 rm -f conftest.err conftest.$ac_ext
7660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7661 echo "${ECHO_T}$ac_header_preproc" >&6
7663 # So? What about this header?
7664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7665 yes:no: )
7666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7670 ac_header_preproc=yes
7672 no:yes:* )
7673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7686 cat <<\_ASBOX
7687 ## ------------------------------------ ##
7688 ## Report this to wine-devel@winehq.org ##
7689 ## ------------------------------------ ##
7690 _ASBOX
7692 sed "s/^/$as_me: WARNING: /" >&2
7694 esac
7695 echo "$as_me:$LINENO: checking for $ac_header" >&5
7696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700 eval "$as_ac_Header=\$ac_header_preproc"
7702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7707 cat >>confdefs.h <<_ACEOF
7708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7709 _ACEOF
7720 for ac_header in X11/XKBlib.h \
7721 X11/Xutil.h \
7722 X11/extensions/shape.h \
7723 X11/extensions/XInput.h \
7724 X11/extensions/XShm.h \
7725 X11/extensions/Xrandr.h \
7726 X11/extensions/Xrender.h \
7727 X11/extensions/xf86dga.h \
7728 X11/extensions/xf86vmode.h
7730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7731 echo "$as_me:$LINENO: checking for $ac_header" >&5
7732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736 cat >conftest.$ac_ext <<_ACEOF
7737 /* confdefs.h. */
7738 _ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 #include <X11/Xlib.h>
7743 #ifdef HAVE_X11_XUTIL_H
7744 # include <X11/Xutil.h>
7745 #endif
7747 #include <$ac_header>
7748 _ACEOF
7749 rm -f conftest.$ac_objext
7750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7751 (eval $ac_compile) 2>conftest.er1
7752 ac_status=$?
7753 grep -v '^ *+' conftest.er1 >conftest.err
7754 rm -f conftest.er1
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } &&
7758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 eval "$as_ac_Header=yes"
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7775 eval "$as_ac_Header=no"
7777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7782 cat >>confdefs.h <<_ACEOF
7783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7784 _ACEOF
7788 done
7791 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7792 then
7793 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7794 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7795 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798 ac_check_lib_save_LIBS=$LIBS
7799 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7800 cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h. */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7807 /* Override any gcc2 internal prototype to avoid an error. */
7808 #ifdef __cplusplus
7809 extern "C"
7810 #endif
7811 /* We use char because int might match the return type of a gcc2
7812 builtin and then its argument prototype would still apply. */
7813 char XkbQueryExtension ();
7815 main ()
7817 XkbQueryExtension ();
7819 return 0;
7821 _ACEOF
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7824 (eval $ac_link) 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 (eval $ac_try) 2>&5
7834 ac_status=$?
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; } &&
7837 { ac_try='test -s conftest$ac_exeext'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; }; then
7843 ac_cv_lib_X11_XkbQueryExtension=yes
7844 else
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7848 ac_cv_lib_X11_XkbQueryExtension=no
7850 rm -f conftest.err conftest.$ac_objext \
7851 conftest$ac_exeext conftest.$ac_ext
7852 LIBS=$ac_check_lib_save_LIBS
7854 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7855 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7856 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7858 cat >>confdefs.h <<\_ACEOF
7859 #define HAVE_XKB 1
7860 _ACEOF
7866 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7867 then
7868 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7869 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7870 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 ac_check_lib_save_LIBS=$LIBS
7874 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7875 cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h. */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7882 /* Override any gcc2 internal prototype to avoid an error. */
7883 #ifdef __cplusplus
7884 extern "C"
7885 #endif
7886 /* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7888 char XShmQueryExtension ();
7890 main ()
7892 XShmQueryExtension ();
7894 return 0;
7896 _ACEOF
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899 (eval $ac_link) 2>conftest.er1
7900 ac_status=$?
7901 grep -v '^ *+' conftest.er1 >conftest.err
7902 rm -f conftest.er1
7903 cat conftest.err >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } &&
7906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest$ac_exeext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914 (eval $ac_try) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 ac_cv_lib_Xext_XShmQueryExtension=yes
7919 else
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 ac_cv_lib_Xext_XShmQueryExtension=no
7925 rm -f conftest.err conftest.$ac_objext \
7926 conftest$ac_exeext conftest.$ac_ext
7927 LIBS=$ac_check_lib_save_LIBS
7929 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7930 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7931 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7933 cat >>confdefs.h <<\_ACEOF
7934 #define HAVE_LIBXXSHM 1
7935 _ACEOF
7941 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7942 then
7943 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7944 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7945 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948 ac_check_lib_save_LIBS=$LIBS
7949 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7957 /* Override any gcc2 internal prototype to avoid an error. */
7958 #ifdef __cplusplus
7959 extern "C"
7960 #endif
7961 /* We use char because int might match the return type of a gcc2
7962 builtin and then its argument prototype would still apply. */
7963 char XShapeQueryExtension ();
7965 main ()
7967 XShapeQueryExtension ();
7969 return 0;
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974 (eval $ac_link) 2>conftest.er1
7975 ac_status=$?
7976 grep -v '^ *+' conftest.er1 >conftest.err
7977 rm -f conftest.er1
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; } &&
7987 { ac_try='test -s conftest$ac_exeext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 (eval $ac_try) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 ac_cv_lib_Xext_XShapeQueryExtension=yes
7994 else
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7998 ac_cv_lib_Xext_XShapeQueryExtension=no
8000 rm -f conftest.err conftest.$ac_objext \
8001 conftest$ac_exeext conftest.$ac_ext
8002 LIBS=$ac_check_lib_save_LIBS
8004 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8005 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8006 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8008 cat >>confdefs.h <<\_ACEOF
8009 #define HAVE_LIBXSHAPE 1
8010 _ACEOF
8016 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8017 then
8018 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8019 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8020 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023 ac_check_lib_save_LIBS=$LIBS
8024 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8025 cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h. */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8032 /* Override any gcc2 internal prototype to avoid an error. */
8033 #ifdef __cplusplus
8034 extern "C"
8035 #endif
8036 /* We use char because int might match the return type of a gcc2
8037 builtin and then its argument prototype would still apply. */
8038 char XDGAQueryExtension ();
8040 main ()
8042 XDGAQueryExtension ();
8044 return 0;
8046 _ACEOF
8047 rm -f conftest.$ac_objext conftest$ac_exeext
8048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8049 (eval $ac_link) 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; } &&
8062 { ac_try='test -s conftest$ac_exeext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8069 else
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8073 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8075 rm -f conftest.err conftest.$ac_objext \
8076 conftest$ac_exeext conftest.$ac_ext
8077 LIBS=$ac_check_lib_save_LIBS
8079 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8080 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8081 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8083 cat >>confdefs.h <<\_ACEOF
8084 #define HAVE_LIBXXF86DGA2 1
8085 _ACEOF
8087 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8093 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8094 then
8095 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8096 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8097 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 ac_check_lib_save_LIBS=$LIBS
8101 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8102 cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h. */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8109 /* Override any gcc2 internal prototype to avoid an error. */
8110 #ifdef __cplusplus
8111 extern "C"
8112 #endif
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8115 char XF86VidModeQueryExtension ();
8117 main ()
8119 XF86VidModeQueryExtension ();
8121 return 0;
8123 _ACEOF
8124 rm -f conftest.$ac_objext conftest$ac_exeext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8126 (eval $ac_link) 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 (eval $ac_try) 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest$ac_exeext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 (eval $ac_try) 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8146 else
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8152 rm -f conftest.err conftest.$ac_objext \
8153 conftest$ac_exeext conftest.$ac_ext
8154 LIBS=$ac_check_lib_save_LIBS
8156 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8157 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8158 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8160 cat >>confdefs.h <<\_ACEOF
8161 #define HAVE_LIBXXF86VM 1
8162 _ACEOF
8164 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8170 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8171 then
8172 cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h. */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8178 #include <X11/Xlib.h>
8179 #include <X11/extensions/Xrandr.h>
8181 main ()
8183 static typeof(XRRSetScreenConfigAndRate) * func;
8185 return 0;
8187 _ACEOF
8188 rm -f conftest.$ac_objext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 (eval $ac_try) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; } &&
8203 { ac_try='test -s conftest.$ac_objext'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 (eval $ac_try) 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8210 cat >>confdefs.h <<\_ACEOF
8211 #define HAVE_LIBXRANDR 1
8212 _ACEOF
8214 else
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8222 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8223 then
8224 echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8225 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
8226 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 ac_check_lib_save_LIBS=$LIBS
8230 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8238 /* Override any gcc2 internal prototype to avoid an error. */
8239 #ifdef __cplusplus
8240 extern "C"
8241 #endif
8242 /* We use char because int might match the return type of a gcc2
8243 builtin and then its argument prototype would still apply. */
8244 char XRenderSetPictureTransform ();
8246 main ()
8248 XRenderSetPictureTransform ();
8250 return 0;
8252 _ACEOF
8253 rm -f conftest.$ac_objext conftest$ac_exeext
8254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8255 (eval $ac_link) 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; } &&
8268 { ac_try='test -s conftest$ac_exeext'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 (eval $ac_try) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8275 else
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8281 rm -f conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8283 LIBS=$ac_check_lib_save_LIBS
8285 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8286 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8287 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8289 cat >>confdefs.h <<\_ACEOF
8290 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8291 _ACEOF
8300 done
8302 if test "x$with_opengl" != "xno"
8303 then
8304 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8305 then
8306 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8307 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8308 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8309 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8310 { (exit 1); exit 1; }; }
8315 for ac_header in GL/gl.h GL/glx.h
8317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8319 echo "$as_me:$LINENO: checking for $ac_header" >&5
8320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8326 else
8327 # Is the header compilable?
8328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8330 cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h. */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 $ac_includes_default
8337 #include <$ac_header>
8338 _ACEOF
8339 rm -f conftest.$ac_objext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8341 (eval $ac_compile) 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest.$ac_objext'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 (eval $ac_try) 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 ac_header_compiler=yes
8361 else
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 ac_header_compiler=no
8367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8369 echo "${ECHO_T}$ac_header_compiler" >&6
8371 # Is the header present?
8372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8374 cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h. */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 #include <$ac_header>
8381 _ACEOF
8382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } >/dev/null; then
8390 if test -s conftest.err; then
8391 ac_cpp_err=$ac_c_preproc_warn_flag
8392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8393 else
8394 ac_cpp_err=
8396 else
8397 ac_cpp_err=yes
8399 if test -z "$ac_cpp_err"; then
8400 ac_header_preproc=yes
8401 else
8402 echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8405 ac_header_preproc=no
8407 rm -f conftest.err conftest.$ac_ext
8408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8409 echo "${ECHO_T}$ac_header_preproc" >&6
8411 # So? What about this header?
8412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8413 yes:no: )
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8418 ac_header_preproc=yes
8420 no:yes:* )
8421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8434 cat <<\_ASBOX
8435 ## ------------------------------------ ##
8436 ## Report this to wine-devel@winehq.org ##
8437 ## ------------------------------------ ##
8438 _ASBOX
8440 sed "s/^/$as_me: WARNING: /" >&2
8442 esac
8443 echo "$as_me:$LINENO: checking for $ac_header" >&5
8444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 eval "$as_ac_Header=\$ac_header_preproc"
8450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8455 cat >>confdefs.h <<_ACEOF
8456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8457 _ACEOF
8461 done
8463 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8464 then
8466 for ac_header in GL/glext.h
8468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8469 echo "$as_me:$LINENO: checking for $ac_header" >&5
8470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474 cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h. */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 #include <GL/glx.h>
8482 #include <$ac_header>
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8486 (eval $ac_compile) 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 (eval $ac_try) 2>&5
8496 ac_status=$?
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; } &&
8499 { ac_try='test -s conftest.$ac_objext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 eval "$as_ac_Header=yes"
8506 else
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 eval "$as_ac_Header=no"
8512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8517 cat >>confdefs.h <<_ACEOF
8518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8519 _ACEOF
8523 done
8525 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8526 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8527 if test "${wine_cv_opengl_version_OK+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530 cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h. */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 #include <GL/gl.h>
8538 main ()
8540 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8542 return 0;
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 wine_cv_opengl_version_OK="yes"
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 wine_cv_opengl_version_OK="no"
8574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8577 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8578 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8580 if test "$wine_cv_opengl_version_OK" = "yes"
8581 then
8582 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8583 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8584 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587 ac_check_lib_save_LIBS=$LIBS
8588 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h. */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8596 /* Override any gcc2 internal prototype to avoid an error. */
8597 #ifdef __cplusplus
8598 extern "C"
8599 #endif
8600 /* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */
8602 char glXCreateContext ();
8604 main ()
8606 glXCreateContext ();
8608 return 0;
8610 _ACEOF
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>conftest.er1
8614 ac_status=$?
8615 grep -v '^ *+' conftest.er1 >conftest.err
8616 rm -f conftest.er1
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 (eval $ac_try) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try='test -s conftest$ac_exeext'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 (eval $ac_try) 2>&5
8629 ac_status=$?
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 ac_cv_lib_GL_glXCreateContext=yes
8633 else
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8637 ac_cv_lib_GL_glXCreateContext=no
8639 rm -f conftest.err conftest.$ac_objext \
8640 conftest$ac_exeext conftest.$ac_ext
8641 LIBS=$ac_check_lib_save_LIBS
8643 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8644 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8645 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8646 OPENGL_LIBS="-lGL"
8651 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8652 then
8653 OPENGLFILES='$(OPENGLFILES)'
8655 cat >>confdefs.h <<\_ACEOF
8656 #define HAVE_OPENGL 1
8657 _ACEOF
8660 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8661 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8662 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 ac_check_lib_save_LIBS=$LIBS
8666 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8667 $LIBS"
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8675 /* Override any gcc2 internal prototype to avoid an error. */
8676 #ifdef __cplusplus
8677 extern "C"
8678 #endif
8679 /* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8681 char gluLookAt ();
8683 main ()
8685 gluLookAt ();
8687 return 0;
8689 _ACEOF
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>conftest.er1
8693 ac_status=$?
8694 grep -v '^ *+' conftest.er1 >conftest.err
8695 rm -f conftest.er1
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_lib_GLU_gluLookAt=yes
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_cv_lib_GLU_gluLookAt=no
8718 rm -f conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8722 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8723 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8724 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8725 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8726 GLU32FILES='$(GLU32FILES)'
8732 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8733 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8734 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737 ac_check_lib_save_LIBS=$LIBS
8738 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8739 cat >conftest.$ac_ext <<_ACEOF
8740 /* confdefs.h. */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8746 /* Override any gcc2 internal prototype to avoid an error. */
8747 #ifdef __cplusplus
8748 extern "C"
8749 #endif
8750 /* We use char because int might match the return type of a gcc2
8751 builtin and then its argument prototype would still apply. */
8752 char glutMainLoop ();
8754 main ()
8756 glutMainLoop ();
8758 return 0;
8760 _ACEOF
8761 rm -f conftest.$ac_objext conftest$ac_exeext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8763 (eval $ac_link) 2>conftest.er1
8764 ac_status=$?
8765 grep -v '^ *+' conftest.er1 >conftest.err
8766 rm -f conftest.er1
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } &&
8770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 (eval $ac_try) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_cv_lib_glut_glutMainLoop=yes
8783 else
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8787 ac_cv_lib_glut_glutMainLoop=no
8789 rm -f conftest.err conftest.$ac_objext \
8790 conftest$ac_exeext conftest.$ac_ext
8791 LIBS=$ac_check_lib_save_LIBS
8793 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8794 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8795 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8796 GLUT_LIBS="-lglut -lXmu -lXi"
8798 GLUT32FILES='$(GLUT32FILES)'
8805 NASLIBS=""
8808 for ac_header in audio/audiolib.h
8810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8812 echo "$as_me:$LINENO: checking for $ac_header" >&5
8813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8819 else
8820 # Is the header compilable?
8821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 $ac_includes_default
8830 #include <$ac_header>
8831 _ACEOF
8832 rm -f conftest.$ac_objext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8834 (eval $ac_compile) 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 (eval $ac_try) 2>&5
8844 ac_status=$?
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; } &&
8847 { ac_try='test -s conftest.$ac_objext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 ac_header_compiler=yes
8854 else
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8858 ac_header_compiler=no
8860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8862 echo "${ECHO_T}$ac_header_compiler" >&6
8864 # Is the header present?
8865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 #include <$ac_header>
8874 _ACEOF
8875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8877 ac_status=$?
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } >/dev/null; then
8883 if test -s conftest.err; then
8884 ac_cpp_err=$ac_c_preproc_warn_flag
8885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8886 else
8887 ac_cpp_err=
8889 else
8890 ac_cpp_err=yes
8892 if test -z "$ac_cpp_err"; then
8893 ac_header_preproc=yes
8894 else
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 ac_header_preproc=no
8900 rm -f conftest.err conftest.$ac_ext
8901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8902 echo "${ECHO_T}$ac_header_preproc" >&6
8904 # So? What about this header?
8905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8906 yes:no: )
8907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8911 ac_header_preproc=yes
8913 no:yes:* )
8914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8927 cat <<\_ASBOX
8928 ## ------------------------------------ ##
8929 ## Report this to wine-devel@winehq.org ##
8930 ## ------------------------------------ ##
8931 _ASBOX
8933 sed "s/^/$as_me: WARNING: /" >&2
8935 esac
8936 echo "$as_me:$LINENO: checking for $ac_header" >&5
8937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 eval "$as_ac_Header=\$ac_header_preproc"
8943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8948 cat >>confdefs.h <<_ACEOF
8949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8950 _ACEOF
8952 for ac_header in audio/soundlib.h
8954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8955 echo "$as_me:$LINENO: checking for $ac_header" >&5
8956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960 cat >conftest.$ac_ext <<_ACEOF
8961 /* confdefs.h. */
8962 _ACEOF
8963 cat confdefs.h >>conftest.$ac_ext
8964 cat >>conftest.$ac_ext <<_ACEOF
8965 /* end confdefs.h. */
8966 #include <audio/audiolib.h>
8968 #include <$ac_header>
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972 (eval $ac_compile) 2>conftest.er1
8973 ac_status=$?
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try='test -s conftest.$ac_objext'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 (eval $ac_try) 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 eval "$as_ac_Header=yes"
8992 else
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 eval "$as_ac_Header=no"
8998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9003 cat >>confdefs.h <<_ACEOF
9004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9005 _ACEOF
9009 done
9011 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9012 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9013 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016 ac_check_lib_save_LIBS=$LIBS
9017 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9018 cat >conftest.$ac_ext <<_ACEOF
9019 /* confdefs.h. */
9020 _ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9025 /* Override any gcc2 internal prototype to avoid an error. */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 /* We use char because int might match the return type of a gcc2
9030 builtin and then its argument prototype would still apply. */
9031 char AuCreateFlow ();
9033 main ()
9035 AuCreateFlow ();
9037 return 0;
9039 _ACEOF
9040 rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042 (eval $ac_link) 2>conftest.er1
9043 ac_status=$?
9044 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } &&
9049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 (eval $ac_try) 2>&5
9052 ac_status=$?
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; } &&
9055 { ac_try='test -s conftest$ac_exeext'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 (eval $ac_try) 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 ac_cv_lib_audio_AuCreateFlow=yes
9062 else
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9066 ac_cv_lib_audio_AuCreateFlow=no
9068 rm -f conftest.err conftest.$ac_objext \
9069 conftest$ac_exeext conftest.$ac_ext
9070 LIBS=$ac_check_lib_save_LIBS
9072 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9073 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9074 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9076 cat >>confdefs.h <<\_ACEOF
9077 #define HAVE_NAS 1
9078 _ACEOF
9080 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9085 done
9088 CPPFLAGS="$ac_save_CPPFLAGS"
9089 XFILES='$(XFILES)'
9090 else
9091 XLIB=""
9092 X_CFLAGS=""
9093 X_LIBS=""
9096 CURSESLIBS=""
9097 if test "x$with_curses" != "xno"
9098 then
9100 for ac_header in ncurses.h
9102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9104 echo "$as_me:$LINENO: checking for $ac_header" >&5
9105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9111 else
9112 # Is the header compilable?
9113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9115 cat >conftest.$ac_ext <<_ACEOF
9116 /* confdefs.h. */
9117 _ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h. */
9121 $ac_includes_default
9122 #include <$ac_header>
9123 _ACEOF
9124 rm -f conftest.$ac_objext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9126 (eval $ac_compile) 2>conftest.er1
9127 ac_status=$?
9128 grep -v '^ *+' conftest.er1 >conftest.err
9129 rm -f conftest.er1
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135 (eval $ac_try) 2>&5
9136 ac_status=$?
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest.$ac_objext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 (eval $ac_try) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 ac_header_compiler=yes
9146 else
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 ac_header_compiler=no
9152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9154 echo "${ECHO_T}$ac_header_compiler" >&6
9156 # Is the header present?
9157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h. */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 #include <$ac_header>
9166 _ACEOF
9167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } >/dev/null; then
9175 if test -s conftest.err; then
9176 ac_cpp_err=$ac_c_preproc_warn_flag
9177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9178 else
9179 ac_cpp_err=
9181 else
9182 ac_cpp_err=yes
9184 if test -z "$ac_cpp_err"; then
9185 ac_header_preproc=yes
9186 else
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 ac_header_preproc=no
9192 rm -f conftest.err conftest.$ac_ext
9193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9194 echo "${ECHO_T}$ac_header_preproc" >&6
9196 # So? What about this header?
9197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9198 yes:no: )
9199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9203 ac_header_preproc=yes
9205 no:yes:* )
9206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9219 cat <<\_ASBOX
9220 ## ------------------------------------ ##
9221 ## Report this to wine-devel@winehq.org ##
9222 ## ------------------------------------ ##
9223 _ASBOX
9225 sed "s/^/$as_me: WARNING: /" >&2
9227 esac
9228 echo "$as_me:$LINENO: checking for $ac_header" >&5
9229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233 eval "$as_ac_Header=\$ac_header_preproc"
9235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9240 cat >>confdefs.h <<_ACEOF
9241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9242 _ACEOF
9243 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9244 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9245 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248 ac_check_lib_save_LIBS=$LIBS
9249 LIBS="-lncurses $LIBS"
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h. */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9257 /* Override any gcc2 internal prototype to avoid an error. */
9258 #ifdef __cplusplus
9259 extern "C"
9260 #endif
9261 /* We use char because int might match the return type of a gcc2
9262 builtin and then its argument prototype would still apply. */
9263 char waddch ();
9265 main ()
9267 waddch ();
9269 return 0;
9271 _ACEOF
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274 (eval $ac_link) 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283 (eval $ac_try) 2>&5
9284 ac_status=$?
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); }; } &&
9287 { ac_try='test -s conftest$ac_exeext'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 (eval $ac_try) 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; }; then
9293 ac_cv_lib_ncurses_waddch=yes
9294 else
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 ac_cv_lib_ncurses_waddch=no
9300 rm -f conftest.err conftest.$ac_objext \
9301 conftest$ac_exeext conftest.$ac_ext
9302 LIBS=$ac_check_lib_save_LIBS
9304 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9305 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9306 if test $ac_cv_lib_ncurses_waddch = yes; then
9308 cat >>confdefs.h <<\_ACEOF
9309 #define HAVE_LIBNCURSES 1
9310 _ACEOF
9312 CURSESLIBS="-lncurses"
9313 else
9315 for ac_header in curses.h
9317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9319 echo "$as_me:$LINENO: checking for $ac_header" >&5
9320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9326 else
9327 # Is the header compilable?
9328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 $ac_includes_default
9337 #include <$ac_header>
9338 _ACEOF
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341 (eval $ac_compile) 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try='test -s conftest.$ac_objext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 (eval $ac_try) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_header_compiler=yes
9361 else
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9365 ac_header_compiler=no
9367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9369 echo "${ECHO_T}$ac_header_compiler" >&6
9371 # Is the header present?
9372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h. */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 #include <$ac_header>
9381 _ACEOF
9382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } >/dev/null; then
9390 if test -s conftest.err; then
9391 ac_cpp_err=$ac_c_preproc_warn_flag
9392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9393 else
9394 ac_cpp_err=
9396 else
9397 ac_cpp_err=yes
9399 if test -z "$ac_cpp_err"; then
9400 ac_header_preproc=yes
9401 else
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_header_preproc=no
9407 rm -f conftest.err conftest.$ac_ext
9408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9409 echo "${ECHO_T}$ac_header_preproc" >&6
9411 # So? What about this header?
9412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9413 yes:no: )
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9418 ac_header_preproc=yes
9420 no:yes:* )
9421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9434 cat <<\_ASBOX
9435 ## ------------------------------------ ##
9436 ## Report this to wine-devel@winehq.org ##
9437 ## ------------------------------------ ##
9438 _ASBOX
9440 sed "s/^/$as_me: WARNING: /" >&2
9442 esac
9443 echo "$as_me:$LINENO: checking for $ac_header" >&5
9444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448 eval "$as_ac_Header=\$ac_header_preproc"
9450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9455 cat >>confdefs.h <<_ACEOF
9456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9457 _ACEOF
9458 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9459 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9460 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463 ac_check_lib_save_LIBS=$LIBS
9464 LIBS="-lcurses $LIBS"
9465 cat >conftest.$ac_ext <<_ACEOF
9466 /* confdefs.h. */
9467 _ACEOF
9468 cat confdefs.h >>conftest.$ac_ext
9469 cat >>conftest.$ac_ext <<_ACEOF
9470 /* end confdefs.h. */
9472 /* Override any gcc2 internal prototype to avoid an error. */
9473 #ifdef __cplusplus
9474 extern "C"
9475 #endif
9476 /* We use char because int might match the return type of a gcc2
9477 builtin and then its argument prototype would still apply. */
9478 char waddch ();
9480 main ()
9482 waddch ();
9484 return 0;
9486 _ACEOF
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } &&
9496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_cv_lib_curses_waddch=yes
9509 else
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ac_cv_lib_curses_waddch=no
9515 rm -f conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 LIBS=$ac_check_lib_save_LIBS
9519 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9520 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9521 if test $ac_cv_lib_curses_waddch = yes; then
9523 cat >>confdefs.h <<\_ACEOF
9524 #define HAVE_LIBCURSES 1
9525 _ACEOF
9527 CURSESLIBS="-lcurses"
9532 done
9538 done
9543 # Extract the first word of "sane-config", so it can be a program name with args.
9544 set dummy sane-config; ac_word=$2
9545 echo "$as_me:$LINENO: checking for $ac_word" >&5
9546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9547 if test "${ac_cv_prog_sane_devel+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550 if test -n "$sane_devel"; then
9551 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9552 else
9553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9554 for as_dir in $PATH
9556 IFS=$as_save_IFS
9557 test -z "$as_dir" && as_dir=.
9558 for ac_exec_ext in '' $ac_executable_extensions; do
9559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9560 ac_cv_prog_sane_devel="sane-config"
9561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9562 break 2
9564 done
9565 done
9567 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9570 sane_devel=$ac_cv_prog_sane_devel
9571 if test -n "$sane_devel"; then
9572 echo "$as_me:$LINENO: result: $sane_devel" >&5
9573 echo "${ECHO_T}$sane_devel" >&6
9574 else
9575 echo "$as_me:$LINENO: result: no" >&5
9576 echo "${ECHO_T}no" >&6
9579 if test "$sane_devel" = "no"
9580 then
9581 SANELIBS=""
9582 SANEINCL=""
9583 else
9584 SANELIBS="`$sane_devel --libs`"
9585 SANEINCL="`$sane_devel --cflags`"
9586 ac_save_CPPFLAGS="$CPPFLAGS"
9587 ac_save_LIBS="$LIBS"
9588 CPPFLAGS="$CPPFLAGS $SANEINCL"
9589 LIBS="$LIBS $SANELIBS"
9590 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9591 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9592 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9593 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9597 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9598 else
9599 # Is the header compilable?
9600 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9601 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9602 cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h. */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 $ac_includes_default
9609 #include <sane/sane.h>
9610 _ACEOF
9611 rm -f conftest.$ac_objext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9613 (eval $ac_compile) 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } &&
9620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try='test -s conftest.$ac_objext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 (eval $ac_try) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 ac_header_compiler=yes
9633 else
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9637 ac_header_compiler=no
9639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9641 echo "${ECHO_T}$ac_header_compiler" >&6
9643 # Is the header present?
9644 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9645 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h. */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 #include <sane/sane.h>
9653 _ACEOF
9654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9656 ac_status=$?
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } >/dev/null; then
9662 if test -s conftest.err; then
9663 ac_cpp_err=$ac_c_preproc_warn_flag
9664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9665 else
9666 ac_cpp_err=
9668 else
9669 ac_cpp_err=yes
9671 if test -z "$ac_cpp_err"; then
9672 ac_header_preproc=yes
9673 else
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 ac_header_preproc=no
9679 rm -f conftest.err conftest.$ac_ext
9680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9681 echo "${ECHO_T}$ac_header_preproc" >&6
9683 # So? What about this header?
9684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9685 yes:no: )
9686 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9687 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9689 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9690 ac_header_preproc=yes
9692 no:yes:* )
9693 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9694 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9696 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9698 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
9700 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9702 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9704 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9706 cat <<\_ASBOX
9707 ## ------------------------------------ ##
9708 ## Report this to wine-devel@winehq.org ##
9709 ## ------------------------------------ ##
9710 _ASBOX
9712 sed "s/^/$as_me: WARNING: /" >&2
9714 esac
9715 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9716 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9717 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 else
9720 ac_cv_header_sane_sane_h=$ac_header_preproc
9722 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9723 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9726 if test $ac_cv_header_sane_sane_h = yes; then
9727 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9728 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9729 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 ac_check_lib_save_LIBS=$LIBS
9733 LIBS="-lsane $LIBS"
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9741 /* Override any gcc2 internal prototype to avoid an error. */
9742 #ifdef __cplusplus
9743 extern "C"
9744 #endif
9745 /* We use char because int might match the return type of a gcc2
9746 builtin and then its argument prototype would still apply. */
9747 char sane_open ();
9749 main ()
9751 sane_open ();
9753 return 0;
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 (eval $ac_try) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; } &&
9771 { ac_try='test -s conftest$ac_exeext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 ac_cv_lib_sane_sane_open=yes
9778 else
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 ac_cv_lib_sane_sane_open=no
9784 rm -f conftest.err conftest.$ac_objext \
9785 conftest$ac_exeext conftest.$ac_ext
9786 LIBS=$ac_check_lib_save_LIBS
9788 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9789 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9790 if test $ac_cv_lib_sane_sane_open = yes; then
9792 cat >>confdefs.h <<\_ACEOF
9793 #define HAVE_SANE 1
9794 _ACEOF
9796 else
9797 SANELIBS=""
9798 SANEINCL=""
9801 else
9802 SANELIBS=""
9803 SANEINCL=""
9807 LIBS="$ac_save_LIBS"
9808 CPPFLAGS="$ac_save_CPPFLAGS"
9814 for ac_header in unicode/ubidi.h
9816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9818 echo "$as_me:$LINENO: checking for $ac_header" >&5
9819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9825 else
9826 # Is the header compilable?
9827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 $ac_includes_default
9836 #include <$ac_header>
9837 _ACEOF
9838 rm -f conftest.$ac_objext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9840 (eval $ac_compile) 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } &&
9847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest.$ac_objext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 ac_header_compiler=yes
9860 else
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 ac_header_compiler=no
9866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9867 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9868 echo "${ECHO_T}$ac_header_compiler" >&6
9870 # Is the header present?
9871 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h. */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 #include <$ac_header>
9880 _ACEOF
9881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } >/dev/null; then
9889 if test -s conftest.err; then
9890 ac_cpp_err=$ac_c_preproc_warn_flag
9891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9892 else
9893 ac_cpp_err=
9895 else
9896 ac_cpp_err=yes
9898 if test -z "$ac_cpp_err"; then
9899 ac_header_preproc=yes
9900 else
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_header_preproc=no
9906 rm -f conftest.err conftest.$ac_ext
9907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9908 echo "${ECHO_T}$ac_header_preproc" >&6
9910 # So? What about this header?
9911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9912 yes:no: )
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9917 ac_header_preproc=yes
9919 no:yes:* )
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9933 cat <<\_ASBOX
9934 ## ------------------------------------ ##
9935 ## Report this to wine-devel@winehq.org ##
9936 ## ------------------------------------ ##
9937 _ASBOX
9939 sed "s/^/$as_me: WARNING: /" >&2
9941 esac
9942 echo "$as_me:$LINENO: checking for $ac_header" >&5
9943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947 eval "$as_ac_Header=\$ac_header_preproc"
9949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9954 cat >>confdefs.h <<_ACEOF
9955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9956 _ACEOF
9960 done
9962 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9963 then
9964 saved_libs="$LIBS"
9965 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9966 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9967 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9968 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9969 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
9970 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9971 cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h. */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9977 #include <unicode/ubidi.h>
9979 main ()
9981 ubidi_open()
9983 return 0;
9985 _ACEOF
9986 rm -f conftest.$ac_objext conftest$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988 (eval $ac_link) 2>conftest.er1
9989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 (eval $ac_try) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10008 cat >>confdefs.h <<\_ACEOF
10009 #define HAVE_ICU 1
10010 _ACEOF
10012 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10014 echo "$as_me:$LINENO: result: yes" >&5
10015 echo "${ECHO_T}yes" >&6
10016 else
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020 echo "$as_me:$LINENO: result: no" >&5
10021 echo "${ECHO_T}no" >&6
10023 rm -f conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025 LIBS="$saved_libs"
10028 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10029 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10030 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033 ac_check_lib_save_LIBS=$LIBS
10034 LIBS="-lfreetype $X_LIBS $LIBS"
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h. */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10042 /* Override any gcc2 internal prototype to avoid an error. */
10043 #ifdef __cplusplus
10044 extern "C"
10045 #endif
10046 /* We use char because int might match the return type of a gcc2
10047 builtin and then its argument prototype would still apply. */
10048 char FT_Init_FreeType ();
10050 main ()
10052 FT_Init_FreeType ();
10054 return 0;
10056 _ACEOF
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10059 (eval $ac_link) 2>conftest.er1
10060 ac_status=$?
10061 grep -v '^ *+' conftest.er1 >conftest.err
10062 rm -f conftest.er1
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } &&
10066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; } &&
10072 { ac_try='test -s conftest$ac_exeext'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 ac_cv_lib_freetype_FT_Init_FreeType=yes
10079 else
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 ac_cv_lib_freetype_FT_Init_FreeType=no
10085 rm -f conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10087 LIBS=$ac_check_lib_save_LIBS
10089 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10090 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10091 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10092 ft_lib=yes
10093 else
10094 ft_lib=no
10097 if test "$ft_lib" = "no"
10098 then
10099 FREETYPELIBS=""
10100 FREETYPEINCL=""
10101 wine_cv_msg_freetype=no
10102 else
10103 # Extract the first word of "freetype-config", so it can be a program name with args.
10104 set dummy freetype-config; ac_word=$2
10105 echo "$as_me:$LINENO: checking for $ac_word" >&5
10106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10107 if test "${ac_cv_prog_ft_devel+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110 if test -n "$ft_devel"; then
10111 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10112 else
10113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in $PATH
10116 IFS=$as_save_IFS
10117 test -z "$as_dir" && as_dir=.
10118 for ac_exec_ext in '' $ac_executable_extensions; do
10119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10120 ac_cv_prog_ft_devel="freetype-config"
10121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 break 2
10124 done
10125 done
10127 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10130 ft_devel=$ac_cv_prog_ft_devel
10131 if test -n "$ft_devel"; then
10132 echo "$as_me:$LINENO: result: $ft_devel" >&5
10133 echo "${ECHO_T}$ft_devel" >&6
10134 else
10135 echo "$as_me:$LINENO: result: no" >&5
10136 echo "${ECHO_T}no" >&6
10139 if test "$ft_devel" = "no"
10140 then
10141 # Extract the first word of "freetype2-config", so it can be a program name with args.
10142 set dummy freetype2-config; ac_word=$2
10143 echo "$as_me:$LINENO: checking for $ac_word" >&5
10144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10145 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148 if test -n "$ft_devel2"; then
10149 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10150 else
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10158 ac_cv_prog_ft_devel2="freetype2-config"
10159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10162 done
10163 done
10165 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10168 ft_devel2=$ac_cv_prog_ft_devel2
10169 if test -n "$ft_devel2"; then
10170 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10171 echo "${ECHO_T}$ft_devel2" >&6
10172 else
10173 echo "$as_me:$LINENO: result: no" >&5
10174 echo "${ECHO_T}no" >&6
10177 if test "$ft_devel2" = "freetype2-config"
10178 then
10179 ft_devel=$ft_devel2
10182 if test "$ft_devel" = "no"
10183 then
10184 FREETYPELIBS=""
10185 FREETYPEINCL=""
10186 wine_cv_msg_freetype=yes
10187 else
10188 FREETYPELIBS=`$ft_devel --libs`
10189 FREETYPEINCL=`$ft_devel --cflags`
10190 ac_save_CPPFLAGS="$CPPFLAGS"
10191 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10202 for ac_header in ft2build.h \
10203 freetype/freetype.h \
10204 freetype/ftglyph.h \
10205 freetype/tttables.h \
10206 freetype/ftnames.h \
10207 freetype/ftsnames.h \
10208 freetype/ttnameid.h \
10209 freetype/ftoutln.h \
10210 freetype/ftwinfnt.h \
10211 freetype/internal/sfnt.h
10213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10214 echo "$as_me:$LINENO: checking for $ac_header" >&5
10215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 #if HAVE_FT2BUILD_H
10226 #include <ft2build.h>
10227 #endif
10229 #include <$ac_header>
10230 _ACEOF
10231 rm -f conftest.$ac_objext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10233 (eval $ac_compile) 2>conftest.er1
10234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } &&
10240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; } &&
10246 { ac_try='test -s conftest.$ac_objext'
10247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10252 eval "$as_ac_Header=yes"
10253 else
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 eval "$as_ac_Header=no"
10259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10264 cat >>confdefs.h <<_ACEOF
10265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10266 _ACEOF
10270 done
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 #include <ft2build.h>
10279 #include <freetype/fttrigon.h>
10280 _ACEOF
10281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10283 ac_status=$?
10284 grep -v '^ *+' conftest.er1 >conftest.err
10285 rm -f conftest.er1
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } >/dev/null; then
10289 if test -s conftest.err; then
10290 ac_cpp_err=$ac_c_preproc_warn_flag
10291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10292 else
10293 ac_cpp_err=
10295 else
10296 ac_cpp_err=yes
10298 if test -z "$ac_cpp_err"; then
10300 cat >>confdefs.h <<\_ACEOF
10301 #define HAVE_FREETYPE_FTTRIGON_H 1
10302 _ACEOF
10304 wine_cv_fttrigon=yes
10305 else
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 wine_cv_fttrigon=no
10311 rm -f conftest.err conftest.$ac_ext
10312 CPPFLAGS="$ac_save_CPPFLAGS"
10313 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10314 then
10316 cat >>confdefs.h <<\_ACEOF
10317 #define HAVE_FREETYPE 1
10318 _ACEOF
10320 wine_cv_msg_freetype=no
10321 else
10322 FREETYPELIBS=""
10323 FREETYPEINCL=""
10324 wine_cv_msg_freetype=yes
10331 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10332 then
10333 FONTSSUBDIRS="fonts"
10337 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10338 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10339 if test "${ac_cv_c_ppdev+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 else
10342 cat >conftest.$ac_ext <<_ACEOF
10343 /* confdefs.h. */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348 #include <linux/ppdev.h>
10350 main ()
10352 ioctl (1,PPCLAIM,0)
10354 return 0;
10356 _ACEOF
10357 rm -f conftest.$ac_objext
10358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10359 (eval $ac_compile) 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } &&
10366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; } &&
10372 { ac_try='test -s conftest.$ac_objext'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10378 ac_cv_c_ppdev="yes"
10379 else
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 ac_cv_c_ppdev="no"
10385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10388 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10389 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10390 if test "$ac_cv_c_ppdev" = "yes"
10391 then
10393 cat >>confdefs.h <<\_ACEOF
10394 #define HAVE_PPDEV 1
10395 _ACEOF
10399 echo "$as_me:$LINENO: checking for va_copy" >&5
10400 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10401 if test "${ac_cv_c_va_copy+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h. */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 #include <stdarg.h>
10412 main ()
10414 va_list ap1, ap2;
10415 va_copy(ap1,ap2);
10418 return 0;
10420 _ACEOF
10421 rm -f conftest.$ac_objext conftest$ac_exeext
10422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423 (eval $ac_link) 2>conftest.er1
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
10430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; } &&
10436 { ac_try='test -s conftest$ac_exeext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 ac_cv_c_va_copy="yes"
10443 else
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10447 ac_cv_c_va_copy="no"
10449 rm -f conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10453 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10454 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10455 if test "$ac_cv_c_va_copy" = "yes"
10456 then
10458 cat >>confdefs.h <<\_ACEOF
10459 #define HAVE_VA_COPY 1
10460 _ACEOF
10463 echo "$as_me:$LINENO: checking for __va_copy" >&5
10464 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10465 if test "${ac_cv_c___va_copy+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h. */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10474 #include <stdarg.h>
10476 main ()
10478 va_list ap1, ap2;
10479 __va_copy(ap1,ap2);
10482 return 0;
10484 _ACEOF
10485 rm -f conftest.$ac_objext conftest$ac_exeext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487 (eval $ac_link) 2>conftest.er1
10488 ac_status=$?
10489 grep -v '^ *+' conftest.er1 >conftest.err
10490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } &&
10494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10500 { ac_try='test -s conftest$ac_exeext'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10506 ac_cv_c___va_copy="yes"
10507 else
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 ac_cv_c___va_copy="no"
10513 rm -f conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10517 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10518 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10519 if test "$ac_cv_c___va_copy" = "yes"
10520 then
10522 cat >>confdefs.h <<\_ACEOF
10523 #define HAVE___VA_COPY 1
10524 _ACEOF
10528 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10529 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10530 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h. */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10539 #include <setjmp.h>
10541 main ()
10543 sigjmp_buf buf;
10544 sigsetjmp( buf, 1 );
10545 siglongjmp( buf, 1 );
10547 return 0;
10549 _ACEOF
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552 (eval $ac_link) 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10562 ac_status=$?
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; } &&
10565 { ac_try='test -s conftest$ac_exeext'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; }; then
10571 ac_cv_c_sigsetjmp="yes"
10572 else
10573 echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 ac_cv_c_sigsetjmp="no"
10578 rm -f conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10582 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10583 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10584 if test "$ac_cv_c_sigsetjmp" = "yes"
10585 then
10587 cat >>confdefs.h <<\_ACEOF
10588 #define HAVE_SIGSETJMP 1
10589 _ACEOF
10593 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10594 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10595 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598 cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h. */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 #define _GNU_SOURCE
10605 #include <pthread.h>
10608 main ()
10610 if ((pthread_rwlock_t *) 0)
10611 return 0;
10612 if (sizeof (pthread_rwlock_t))
10613 return 0;
10615 return 0;
10617 _ACEOF
10618 rm -f conftest.$ac_objext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10620 (eval $ac_compile) 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest.$ac_objext'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10639 ac_cv_type_pthread_rwlock_t=yes
10640 else
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10644 ac_cv_type_pthread_rwlock_t=no
10646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10648 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10649 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10650 if test $ac_cv_type_pthread_rwlock_t = yes; then
10652 cat >>confdefs.h <<_ACEOF
10653 #define HAVE_PTHREAD_RWLOCK_T 1
10654 _ACEOF
10658 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10659 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10660 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 #define _GNU_SOURCE
10670 #include <pthread.h>
10673 main ()
10675 if ((pthread_rwlockattr_t *) 0)
10676 return 0;
10677 if (sizeof (pthread_rwlockattr_t))
10678 return 0;
10680 return 0;
10682 _ACEOF
10683 rm -f conftest.$ac_objext
10684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10685 (eval $ac_compile) 2>conftest.er1
10686 ac_status=$?
10687 grep -v '^ *+' conftest.er1 >conftest.err
10688 rm -f conftest.er1
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; } &&
10698 { ac_try='test -s conftest.$ac_objext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 ac_cv_type_pthread_rwlockattr_t=yes
10705 else
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10709 ac_cv_type_pthread_rwlockattr_t=no
10711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10713 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10714 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10715 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10717 cat >>confdefs.h <<_ACEOF
10718 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10719 _ACEOF
10725 ac_save_LIBS="$LIBS"
10726 LIBS="$LIBS $LIBPTHREAD"
10730 for ac_func in \
10731 pthread_getattr_np \
10732 pthread_get_stackaddr_np \
10733 pthread_get_stacksize_np \
10736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10737 echo "$as_me:$LINENO: checking for $ac_func" >&5
10738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10739 if eval "test \"\${$as_ac_var+set}\" = set"; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10750 #define $ac_func innocuous_$ac_func
10752 /* System header to define __stub macros and hopefully few prototypes,
10753 which can conflict with char $ac_func (); below.
10754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10755 <limits.h> exists even on freestanding compilers. */
10757 #ifdef __STDC__
10758 # include <limits.h>
10759 #else
10760 # include <assert.h>
10761 #endif
10763 #undef $ac_func
10765 /* Override any gcc2 internal prototype to avoid an error. */
10766 #ifdef __cplusplus
10767 extern "C"
10769 #endif
10770 /* We use char because int might match the return type of a gcc2
10771 builtin and then its argument prototype would still apply. */
10772 char $ac_func ();
10773 /* The GNU C library defines this for functions which it implements
10774 to always fail with ENOSYS. Some functions are actually named
10775 something starting with __ and the normal name is an alias. */
10776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10777 choke me
10778 #else
10779 char (*f) () = $ac_func;
10780 #endif
10781 #ifdef __cplusplus
10783 #endif
10786 main ()
10788 return f != $ac_func;
10790 return 0;
10792 _ACEOF
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795 (eval $ac_link) 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest$ac_exeext'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 eval "$as_ac_var=yes"
10815 else
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10819 eval "$as_ac_var=no"
10821 rm -f conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
10824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10826 if test `eval echo '${'$as_ac_var'}'` = yes; then
10827 cat >>confdefs.h <<_ACEOF
10828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10829 _ACEOF
10832 done
10834 LIBS="$ac_save_LIBS"
10839 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10843 echo "$as_me:$LINENO: checking for $ac_header" >&5
10844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10850 else
10851 # Is the header compilable?
10852 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10854 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h. */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 $ac_includes_default
10861 #include <$ac_header>
10862 _ACEOF
10863 rm -f conftest.$ac_objext
10864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10865 (eval $ac_compile) 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
10872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest.$ac_objext'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_header_compiler=yes
10885 else
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ac_header_compiler=no
10891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10893 echo "${ECHO_T}$ac_header_compiler" >&6
10895 # Is the header present?
10896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10898 cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h. */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 #include <$ac_header>
10905 _ACEOF
10906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10908 ac_status=$?
10909 grep -v '^ *+' conftest.er1 >conftest.err
10910 rm -f conftest.er1
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } >/dev/null; then
10914 if test -s conftest.err; then
10915 ac_cpp_err=$ac_c_preproc_warn_flag
10916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10917 else
10918 ac_cpp_err=
10920 else
10921 ac_cpp_err=yes
10923 if test -z "$ac_cpp_err"; then
10924 ac_header_preproc=yes
10925 else
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ac_header_preproc=no
10931 rm -f conftest.err conftest.$ac_ext
10932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10933 echo "${ECHO_T}$ac_header_preproc" >&6
10935 # So? What about this header?
10936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10937 yes:no: )
10938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10942 ac_header_preproc=yes
10944 no:yes:* )
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10958 cat <<\_ASBOX
10959 ## ------------------------------------ ##
10960 ## Report this to wine-devel@winehq.org ##
10961 ## ------------------------------------ ##
10962 _ASBOX
10964 sed "s/^/$as_me: WARNING: /" >&2
10966 esac
10967 echo "$as_me:$LINENO: checking for $ac_header" >&5
10968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 else
10972 eval "$as_ac_Header=\$ac_header_preproc"
10974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10979 cat >>confdefs.h <<_ACEOF
10980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10981 _ACEOF
10982 break
10985 done
10988 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10989 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10990 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h. */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
11000 #if defined(HAVE_SYS_SOUNDCARD_H)
11001 #include <sys/soundcard.h>
11002 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11003 #include <machine/soundcard.h>
11004 #elif defined(HAVE_SOUNDCARD_H)
11005 #include <soundcard.h>
11006 #endif
11009 main ()
11013 /* check for one of the Open Sound System specific SNDCTL_ defines */
11014 #if !defined(SNDCTL_DSP_STEREO)
11015 #error No open sound system
11016 #endif
11019 return 0;
11021 _ACEOF
11022 rm -f conftest.$ac_objext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11024 (eval $ac_compile) 2>conftest.er1
11025 ac_status=$?
11026 grep -v '^ *+' conftest.er1 >conftest.err
11027 rm -f conftest.er1
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
11031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; } &&
11037 { ac_try='test -s conftest.$ac_objext'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 ac_cv_c_opensoundsystem="yes"
11044 else
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 ac_cv_c_opensoundsystem="no"
11050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11052 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11053 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11055 if test "$ac_cv_c_opensoundsystem" = "yes"
11056 then
11058 cat >>confdefs.h <<\_ACEOF
11059 #define HAVE_OSS 1
11060 _ACEOF
11064 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11065 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11066 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068 else
11069 cat >conftest.$ac_ext <<_ACEOF
11070 /* confdefs.h. */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11076 #if defined(HAVE_SYS_SOUNDCARD_H)
11077 #include <sys/soundcard.h>
11078 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11079 #include <machine/soundcard.h>
11080 #elif defined(HAVE_SOUNDCARD_H)
11081 #include <soundcard.h>
11082 #endif
11085 main ()
11089 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11090 #if !defined(SNDCTL_SEQ_SYNC)
11091 #error No open sound system MIDI interface
11092 #endif
11095 return 0;
11097 _ACEOF
11098 rm -f conftest.$ac_objext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100 (eval $ac_compile) 2>conftest.er1
11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } &&
11107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; } &&
11113 { ac_try='test -s conftest.$ac_objext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_c_opensoundsystem_midi="yes"
11120 else
11121 echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11124 ac_cv_c_opensoundsystem_midi="no"
11126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11128 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11129 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11131 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11132 then
11134 cat >>confdefs.h <<\_ACEOF
11135 #define HAVE_OSS_MIDI 1
11136 _ACEOF
11140 # Extract the first word of "artsc-config", so it can be a program name with args.
11141 set dummy artsc-config; ac_word=$2
11142 echo "$as_me:$LINENO: checking for $ac_word" >&5
11143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11144 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 else
11147 case $ARTSCCONFIG in
11148 [\\/]* | ?:[\\/]*)
11149 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $PATH
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11159 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 break 2
11163 done
11164 done
11167 esac
11169 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11171 if test -n "$ARTSCCONFIG"; then
11172 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11173 echo "${ECHO_T}$ARTSCCONFIG" >&6
11174 else
11175 echo "$as_me:$LINENO: result: no" >&5
11176 echo "${ECHO_T}no" >&6
11179 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11180 then
11181 ARTSC_CFLAGS=""
11182 for i in `$ARTSCCONFIG --cflags`
11184 case "$i" in
11185 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11186 esac
11187 done
11188 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11189 save_CFLAGS="$CFLAGS"
11190 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11191 echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
11192 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6
11193 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196 ac_check_lib_save_LIBS=$LIBS
11197 LIBS="-lartsc $LIBS"
11198 cat >conftest.$ac_ext <<_ACEOF
11199 /* confdefs.h. */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11205 /* Override any gcc2 internal prototype to avoid an error. */
11206 #ifdef __cplusplus
11207 extern "C"
11208 #endif
11209 /* We use char because int might match the return type of a gcc2
11210 builtin and then its argument prototype would still apply. */
11211 char arts_init ();
11213 main ()
11215 arts_init ();
11217 return 0;
11219 _ACEOF
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11222 (eval $ac_link) 2>conftest.er1
11223 ac_status=$?
11224 grep -v '^ *+' conftest.er1 >conftest.err
11225 rm -f conftest.er1
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try='test -s conftest$ac_exeext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 ac_cv_lib_artsc_arts_init=yes
11242 else
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11246 ac_cv_lib_artsc_arts_init=no
11248 rm -f conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11252 echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
11253 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6
11254 if test $ac_cv_lib_artsc_arts_init = yes; then
11255 cat >conftest.$ac_ext <<_ACEOF
11256 /* confdefs.h. */
11257 _ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11261 #include <artsc.h>
11263 main ()
11265 arts_stream_t stream;
11267 return 0;
11269 _ACEOF
11270 rm -f conftest.$ac_objext
11271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11272 (eval $ac_compile) 2>conftest.er1
11273 ac_status=$?
11274 grep -v '^ *+' conftest.er1 >conftest.err
11275 rm -f conftest.er1
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; } &&
11285 { ac_try='test -s conftest.$ac_objext'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 ARTSLIBS=$ARTSC_LIBS
11293 ARTSINCL=$ARTSC_CFLAGS
11296 cat >>confdefs.h <<\_ACEOF
11297 #define HAVE_ARTS 1
11298 _ACEOF
11300 else
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11308 CFLAGS="$save_CFLAGS"
11311 ALSALIBS=""
11315 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11319 echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11326 else
11327 # Is the header compilable?
11328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11337 #include <$ac_header>
11338 _ACEOF
11339 rm -f conftest.$ac_objext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11341 (eval $ac_compile) 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; } &&
11354 { ac_try='test -s conftest.$ac_objext'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; }; then
11360 ac_header_compiler=yes
11361 else
11362 echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11365 ac_header_compiler=no
11367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11369 echo "${ECHO_T}$ac_header_compiler" >&6
11371 # Is the header present?
11372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11374 cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h. */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 #include <$ac_header>
11381 _ACEOF
11382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11384 ac_status=$?
11385 grep -v '^ *+' conftest.er1 >conftest.err
11386 rm -f conftest.er1
11387 cat conftest.err >&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } >/dev/null; then
11390 if test -s conftest.err; then
11391 ac_cpp_err=$ac_c_preproc_warn_flag
11392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11393 else
11394 ac_cpp_err=
11396 else
11397 ac_cpp_err=yes
11399 if test -z "$ac_cpp_err"; then
11400 ac_header_preproc=yes
11401 else
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11405 ac_header_preproc=no
11407 rm -f conftest.err conftest.$ac_ext
11408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11409 echo "${ECHO_T}$ac_header_preproc" >&6
11411 # So? What about this header?
11412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11413 yes:no: )
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11418 ac_header_preproc=yes
11420 no:yes:* )
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11434 cat <<\_ASBOX
11435 ## ------------------------------------ ##
11436 ## Report this to wine-devel@winehq.org ##
11437 ## ------------------------------------ ##
11438 _ASBOX
11440 sed "s/^/$as_me: WARNING: /" >&2
11442 esac
11443 echo "$as_me:$LINENO: checking for $ac_header" >&5
11444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 else
11448 eval "$as_ac_Header=\$ac_header_preproc"
11450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11455 cat >>confdefs.h <<_ACEOF
11456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11457 _ACEOF
11458 break
11461 done
11463 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11464 then
11465 echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
11466 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6
11467 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470 ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-lasound $LIBS"
11472 cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h. */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11479 /* Override any gcc2 internal prototype to avoid an error. */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 /* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11485 char snd_pcm_hw_params_get_access ();
11487 main ()
11489 snd_pcm_hw_params_get_access ();
11491 return 0;
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; } &&
11509 { ac_try='test -s conftest$ac_exeext'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11512 ac_status=$?
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
11515 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
11516 else
11517 echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11520 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
11522 rm -f conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
11527 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6
11528 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
11529 cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h. */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 #ifdef HAVE_ALSA_ASOUNDLIB_H
11536 #include <alsa/asoundlib.h>
11537 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11538 #include <sys/asoundlib.h>
11539 #endif
11541 main ()
11543 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
11545 return 0;
11547 _ACEOF
11548 rm -f conftest.$ac_objext
11549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11550 (eval $ac_compile) 2>conftest.er1
11551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } &&
11557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; } &&
11563 { ac_try='test -s conftest.$ac_objext'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11570 cat >>confdefs.h <<\_ACEOF
11571 #define HAVE_ALSA 1
11572 _ACEOF
11574 ALSALIBS="-lasound"
11575 else
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11586 AUDIOIOLIBS=""
11589 for ac_header in libaudioio.h
11591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11593 echo "$as_me:$LINENO: checking for $ac_header" >&5
11594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11600 else
11601 # Is the header compilable?
11602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h. */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 $ac_includes_default
11611 #include <$ac_header>
11612 _ACEOF
11613 rm -f conftest.$ac_objext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615 (eval $ac_compile) 2>conftest.er1
11616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
11622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11625 ac_status=$?
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; } &&
11628 { ac_try='test -s conftest.$ac_objext'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }; then
11634 ac_header_compiler=yes
11635 else
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11639 ac_header_compiler=no
11641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11643 echo "${ECHO_T}$ac_header_compiler" >&6
11645 # Is the header present?
11646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11648 cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h. */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 #include <$ac_header>
11655 _ACEOF
11656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } >/dev/null; then
11664 if test -s conftest.err; then
11665 ac_cpp_err=$ac_c_preproc_warn_flag
11666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11667 else
11668 ac_cpp_err=
11670 else
11671 ac_cpp_err=yes
11673 if test -z "$ac_cpp_err"; then
11674 ac_header_preproc=yes
11675 else
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11679 ac_header_preproc=no
11681 rm -f conftest.err conftest.$ac_ext
11682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11683 echo "${ECHO_T}$ac_header_preproc" >&6
11685 # So? What about this header?
11686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11687 yes:no: )
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11692 ac_header_preproc=yes
11694 no:yes:* )
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11708 cat <<\_ASBOX
11709 ## ------------------------------------ ##
11710 ## Report this to wine-devel@winehq.org ##
11711 ## ------------------------------------ ##
11712 _ASBOX
11714 sed "s/^/$as_me: WARNING: /" >&2
11716 esac
11717 echo "$as_me:$LINENO: checking for $ac_header" >&5
11718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722 eval "$as_ac_Header=\$ac_header_preproc"
11724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11729 cat >>confdefs.h <<_ACEOF
11730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11731 _ACEOF
11732 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11733 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11734 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737 ac_check_lib_save_LIBS=$LIBS
11738 LIBS="-laudioio $LIBS"
11739 cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h. */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11746 /* Override any gcc2 internal prototype to avoid an error. */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 /* We use char because int might match the return type of a gcc2
11751 builtin and then its argument prototype would still apply. */
11752 char AudioIOGetVersion ();
11754 main ()
11756 AudioIOGetVersion ();
11758 return 0;
11760 _ACEOF
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763 (eval $ac_link) 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; } &&
11776 { ac_try='test -s conftest$ac_exeext'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 ac_cv_lib_audioio_AudioIOGetVersion=yes
11783 else
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 ac_cv_lib_audioio_AudioIOGetVersion=no
11789 rm -f conftest.err conftest.$ac_objext \
11790 conftest$ac_exeext conftest.$ac_ext
11791 LIBS=$ac_check_lib_save_LIBS
11793 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11794 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11795 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11796 AUDIOIOLIBS="-laudioio"
11798 cat >>confdefs.h <<\_ACEOF
11799 #define HAVE_LIBAUDIOIO 1
11800 _ACEOF
11806 done
11811 for ac_header in capi20.h
11813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11815 echo "$as_me:$LINENO: checking for $ac_header" >&5
11816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11822 else
11823 # Is the header compilable?
11824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11826 cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h. */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 $ac_includes_default
11833 #include <$ac_header>
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11837 (eval $ac_compile) 2>conftest.er1
11838 ac_status=$?
11839 grep -v '^ *+' conftest.er1 >conftest.err
11840 rm -f conftest.er1
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } &&
11844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; } &&
11850 { ac_try='test -s conftest.$ac_objext'
11851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; }; then
11856 ac_header_compiler=yes
11857 else
11858 echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11861 ac_header_compiler=no
11863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11865 echo "${ECHO_T}$ac_header_compiler" >&6
11867 # Is the header present?
11868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11870 cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h. */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 #include <$ac_header>
11877 _ACEOF
11878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } >/dev/null; then
11886 if test -s conftest.err; then
11887 ac_cpp_err=$ac_c_preproc_warn_flag
11888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11889 else
11890 ac_cpp_err=
11892 else
11893 ac_cpp_err=yes
11895 if test -z "$ac_cpp_err"; then
11896 ac_header_preproc=yes
11897 else
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11901 ac_header_preproc=no
11903 rm -f conftest.err conftest.$ac_ext
11904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11905 echo "${ECHO_T}$ac_header_preproc" >&6
11907 # So? What about this header?
11908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11909 yes:no: )
11910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11914 ac_header_preproc=yes
11916 no:yes:* )
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11930 cat <<\_ASBOX
11931 ## ------------------------------------ ##
11932 ## Report this to wine-devel@winehq.org ##
11933 ## ------------------------------------ ##
11934 _ASBOX
11936 sed "s/^/$as_me: WARNING: /" >&2
11938 esac
11939 echo "$as_me:$LINENO: checking for $ac_header" >&5
11940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944 eval "$as_ac_Header=\$ac_header_preproc"
11946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11951 cat >>confdefs.h <<_ACEOF
11952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11953 _ACEOF
11956 for ac_header in linux/capi.h
11958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11960 echo "$as_me:$LINENO: checking for $ac_header" >&5
11961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11967 else
11968 # Is the header compilable?
11969 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11971 cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h. */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11977 $ac_includes_default
11978 #include <$ac_header>
11979 _ACEOF
11980 rm -f conftest.$ac_objext
11981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11982 (eval $ac_compile) 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_header_compiler=yes
12002 else
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 ac_header_compiler=no
12008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12010 echo "${ECHO_T}$ac_header_compiler" >&6
12012 # Is the header present?
12013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12015 cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h. */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12021 #include <$ac_header>
12022 _ACEOF
12023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12025 ac_status=$?
12026 grep -v '^ *+' conftest.er1 >conftest.err
12027 rm -f conftest.er1
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } >/dev/null; then
12031 if test -s conftest.err; then
12032 ac_cpp_err=$ac_c_preproc_warn_flag
12033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12034 else
12035 ac_cpp_err=
12037 else
12038 ac_cpp_err=yes
12040 if test -z "$ac_cpp_err"; then
12041 ac_header_preproc=yes
12042 else
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12046 ac_header_preproc=no
12048 rm -f conftest.err conftest.$ac_ext
12049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12050 echo "${ECHO_T}$ac_header_preproc" >&6
12052 # So? What about this header?
12053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12054 yes:no: )
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12059 ac_header_preproc=yes
12061 no:yes:* )
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12075 cat <<\_ASBOX
12076 ## ------------------------------------ ##
12077 ## Report this to wine-devel@winehq.org ##
12078 ## ------------------------------------ ##
12079 _ASBOX
12081 sed "s/^/$as_me: WARNING: /" >&2
12083 esac
12084 echo "$as_me:$LINENO: checking for $ac_header" >&5
12085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 else
12089 eval "$as_ac_Header=\$ac_header_preproc"
12091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12096 cat >>confdefs.h <<_ACEOF
12097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12098 _ACEOF
12100 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12101 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12102 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105 ac_check_lib_save_LIBS=$LIBS
12106 LIBS="-lcapi20 $LIBS"
12107 cat >conftest.$ac_ext <<_ACEOF
12108 /* confdefs.h. */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12114 /* Override any gcc2 internal prototype to avoid an error. */
12115 #ifdef __cplusplus
12116 extern "C"
12117 #endif
12118 /* We use char because int might match the return type of a gcc2
12119 builtin and then its argument prototype would still apply. */
12120 char capi20_register ();
12122 main ()
12124 capi20_register ();
12126 return 0;
12128 _ACEOF
12129 rm -f conftest.$ac_objext conftest$ac_exeext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131 (eval $ac_link) 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest$ac_exeext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_cv_lib_capi20_capi20_register=yes
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 ac_cv_lib_capi20_capi20_register=no
12157 rm -f conftest.err conftest.$ac_objext \
12158 conftest$ac_exeext conftest.$ac_ext
12159 LIBS=$ac_check_lib_save_LIBS
12161 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12162 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12163 if test $ac_cv_lib_capi20_capi20_register = yes; then
12166 cat >>confdefs.h <<\_ACEOF
12167 #define HAVE_CAPI4LINUX 1
12168 _ACEOF
12176 done
12181 done
12185 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12186 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12187 if test "${ac_cv_mmap64_works+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190 if test "$cross_compiling" = yes; then
12191 ac_cv_mmap64_works="no"
12192 else
12193 cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h. */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12200 #define _FILE_OFFSET_BITS 64
12201 #include <stdio.h>
12202 #include <unistd.h>
12203 #include <fcntl.h>
12204 #include <sys/mman.h>
12205 #include <errno.h>
12207 int main(int argc,char **argv) {
12208 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12209 if (fd == -1) exit(1);
12211 unlink("conftest.map");
12213 write(fd,"test",4);
12215 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12216 (errno == EINVAL)
12218 exit(1);
12220 close(fd);
12221 fprintf(stderr,"success!\n");
12222 exit(0);
12226 _ACEOF
12227 rm -f conftest$ac_exeext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12229 (eval $ac_link) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_mmap64_works="yes"
12239 else
12240 echo "$as_me: program exited with status $ac_status" >&5
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 ( exit $ac_status )
12245 ac_cv_mmap64_works="no"
12247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12250 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12251 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12253 if test "$ac_cv_mmap64_works" = "yes"
12254 then
12256 cat >>confdefs.h <<\_ACEOF
12257 #define _FILE_OFFSET_BITS 64
12258 _ACEOF
12263 EXTRACFLAGS=""
12265 if test "x${GCC}" = "xyes"
12266 then
12267 EXTRACFLAGS="-Wall -pipe"
12269 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12270 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12271 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274 if test "$cross_compiling" = yes; then
12275 ac_cv_c_gcc_strength_bug="yes"
12276 else
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h. */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12284 int L[4] = {0,1,2,3};
12285 int main(void) {
12286 static int Array[3];
12287 unsigned int B = 3;
12288 int i;
12289 for(i=0; i<B; i++) Array[i] = i - 3;
12290 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12291 L[i] = 4;
12293 exit( Array[1] != -2 || L[2] != 3);
12295 _ACEOF
12296 rm -f conftest$ac_exeext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12298 (eval $ac_link) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_c_gcc_strength_bug="no"
12308 else
12309 echo "$as_me: program exited with status $ac_status" >&5
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ( exit $ac_status )
12314 ac_cv_c_gcc_strength_bug="yes"
12316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12319 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12320 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12321 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12322 then
12323 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12326 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12327 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12328 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331 ac_wine_try_cflags_saved=$CFLAGS
12332 CFLAGS="$CFLAGS -fshort-wchar"
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h. */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12341 main ()
12345 return 0;
12347 _ACEOF
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350 (eval $ac_link) 2>conftest.er1
12351 ac_status=$?
12352 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; } &&
12363 { ac_try='test -s conftest$ac_exeext'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
12369 ac_cv_c_gcc_fshort_wchar="yes"
12370 else
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 ac_cv_c_gcc_fshort_wchar="no"
12376 rm -f conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378 CFLAGS=$ac_wine_try_cflags_saved
12380 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12381 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12382 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12383 then
12385 cat >>confdefs.h <<\_ACEOF
12386 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12387 _ACEOF
12391 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12392 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12393 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396 ac_wine_try_cflags_saved=$CFLAGS
12397 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12398 cat >conftest.$ac_ext <<_ACEOF
12399 /* confdefs.h. */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12406 main ()
12410 return 0;
12412 _ACEOF
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12415 (eval $ac_link) 2>conftest.er1
12416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest$ac_exeext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 ac_cv_c_gcc_stack_boundary="yes"
12435 else
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12439 ac_cv_c_gcc_stack_boundary="no"
12441 rm -f conftest.err conftest.$ac_objext \
12442 conftest$ac_exeext conftest.$ac_ext
12443 CFLAGS=$ac_wine_try_cflags_saved
12445 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12446 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12447 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12448 then
12449 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12452 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12453 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12454 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457 ac_wine_try_cflags_saved=$CFLAGS
12458 CFLAGS="$CFLAGS -fno-strict-aliasing"
12459 cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h. */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12467 main ()
12471 return 0;
12473 _ACEOF
12474 rm -f conftest.$ac_objext conftest$ac_exeext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12476 (eval $ac_link) 2>conftest.er1
12477 ac_status=$?
12478 grep -v '^ *+' conftest.er1 >conftest.err
12479 rm -f conftest.er1
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; } &&
12489 { ac_try='test -s conftest$ac_exeext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_c_gcc_no_strict_aliasing="yes"
12496 else
12497 echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12500 ac_cv_c_gcc_no_strict_aliasing="no"
12502 rm -f conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
12504 CFLAGS=$ac_wine_try_cflags_saved
12506 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12507 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12508 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12509 then
12510 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12513 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12514 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12515 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518 ac_wine_try_cflags_saved=$CFLAGS
12519 CFLAGS="$CFLAGS -gstabs+"
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12528 main ()
12532 return 0;
12534 _ACEOF
12535 rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537 (eval $ac_link) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12550 { ac_try='test -s conftest$ac_exeext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_cv_c_gcc_gstabs="yes"
12557 else
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12561 ac_cv_c_gcc_gstabs="no"
12563 rm -f conftest.err conftest.$ac_objext \
12564 conftest$ac_exeext conftest.$ac_ext
12565 CFLAGS=$ac_wine_try_cflags_saved
12567 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12568 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12569 if test "$ac_cv_c_gcc_gstabs" = "yes"
12570 then
12571 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12574 saved_CFLAGS="$CFLAGS"
12575 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12576 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12577 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12578 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 else
12581 cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h. */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 #include <string.h>
12589 main ()
12593 return 0;
12595 _ACEOF
12596 rm -f conftest.$ac_objext
12597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12598 (eval $ac_compile) 2>conftest.er1
12599 ac_status=$?
12600 grep -v '^ *+' conftest.er1 >conftest.err
12601 rm -f conftest.er1
12602 cat conftest.err >&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } &&
12605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest.$ac_objext'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12617 ac_cv_c_string_h_warnings=no
12618 else
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12622 ac_cv_c_string_h_warnings=yes
12624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12626 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12627 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12628 CFLAGS="$saved_CFLAGS"
12629 if test "$ac_cv_c_string_h_warnings" = "no"
12630 then
12631 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12636 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12637 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12638 if test "${ac_cv_asm_func_def+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641 cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h. */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
12650 main ()
12654 return 0;
12656 _ACEOF
12657 rm -f conftest.$ac_objext conftest$ac_exeext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12659 (eval $ac_link) 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest$ac_exeext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_cv_asm_func_def=".def"
12679 else
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h. */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12692 main ()
12696 return 0;
12698 _ACEOF
12699 rm -f conftest.$ac_objext conftest$ac_exeext
12700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12701 (eval $ac_link) 2>conftest.er1
12702 ac_status=$?
12703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } &&
12714 { ac_try='test -s conftest$ac_exeext'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
12720 ac_cv_asm_func_def=".type @function"
12721 else
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12725 cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h. */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12731 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12734 main ()
12738 return 0;
12740 _ACEOF
12741 rm -f conftest.$ac_objext conftest$ac_exeext
12742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12743 (eval $ac_link) 2>conftest.er1
12744 ac_status=$?
12745 grep -v '^ *+' conftest.er1 >conftest.err
12746 rm -f conftest.er1
12747 cat conftest.err >&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; } &&
12756 { ac_try='test -s conftest$ac_exeext'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 ac_cv_asm_func_def=".type 2"
12763 else
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12767 ac_cv_asm_func_def="unknown"
12769 rm -f conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext
12772 rm -f conftest.err conftest.$ac_objext \
12773 conftest$ac_exeext conftest.$ac_ext
12775 rm -f conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
12778 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12779 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12783 case "$ac_cv_asm_func_def" in
12784 ".def")
12785 cat >>confdefs.h <<\_ACEOF
12786 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12787 _ACEOF
12789 ".type @function")
12790 cat >>confdefs.h <<\_ACEOF
12791 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12792 _ACEOF
12794 ".type 2")
12795 cat >>confdefs.h <<\_ACEOF
12796 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12797 _ACEOF
12800 cat >>confdefs.h <<\_ACEOF
12801 #define __ASM_FUNC(name) ""
12802 _ACEOF
12804 esac
12807 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12808 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12809 if test "${ac_cv_c_extern_prefix+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812 cat >conftest.$ac_ext <<_ACEOF
12813 /* confdefs.h. */
12814 _ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h. */
12818 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12819 extern int ac_test;
12821 main ()
12823 if (ac_test) return 1
12825 return 0;
12827 _ACEOF
12828 rm -f conftest.$ac_objext conftest$ac_exeext
12829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12830 (eval $ac_link) 2>conftest.er1
12831 ac_status=$?
12832 grep -v '^ *+' conftest.er1 >conftest.err
12833 rm -f conftest.er1
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; } &&
12843 { ac_try='test -s conftest$ac_exeext'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12849 ac_cv_c_extern_prefix="yes"
12850 else
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 ac_cv_c_extern_prefix="no"
12856 rm -f conftest.err conftest.$ac_objext \
12857 conftest$ac_exeext conftest.$ac_ext
12859 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12860 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12864 if test "$ac_cv_c_extern_prefix" = "yes"
12865 then
12866 cat >>confdefs.h <<\_ACEOF
12867 #define __ASM_NAME(name) "_" name
12868 _ACEOF
12870 else
12871 cat >>confdefs.h <<\_ACEOF
12872 #define __ASM_NAME(name) name
12873 _ACEOF
12878 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12879 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
12880 if test "${ac_cv_c_asm_string+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
12892 main ()
12896 return 0;
12898 _ACEOF
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901 (eval $ac_link) 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } &&
12914 { ac_try='test -s conftest$ac_exeext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 ac_cv_c_asm_string=".string"
12921 else
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h. */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12934 main ()
12938 return 0;
12940 _ACEOF
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943 (eval $ac_link) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest$ac_exeext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_c_asm_string=".asciz"
12963 else
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12967 cat >conftest.$ac_ext <<_ACEOF
12968 /* confdefs.h. */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12973 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12976 main ()
12980 return 0;
12982 _ACEOF
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12985 (eval $ac_link) 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try='test -s conftest$ac_exeext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 ac_cv_c_asm_string=".ascii"
13005 else
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13010 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13011 { (exit 1); exit 1; }; }
13013 rm -f conftest.err conftest.$ac_objext \
13014 conftest$ac_exeext conftest.$ac_ext
13016 rm -f conftest.err conftest.$ac_objext \
13017 conftest$ac_exeext conftest.$ac_ext
13019 rm -f conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13022 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
13023 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
13026 cat >>confdefs.h <<_ACEOF
13027 #define __ASM_STRING "$ac_cv_c_asm_string"
13028 _ACEOF
13032 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13033 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
13034 if test "${ac_cv_c_asm_short+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 else
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(".data\\n\\t.short 1\\n\\t.text"); }
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_c_asm_short=".short"
13075 else
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13079 cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h. */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13088 main ()
13092 return 0;
13094 _ACEOF
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13097 (eval $ac_link) 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; } &&
13110 { ac_try='test -s conftest$ac_exeext'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; }; then
13116 ac_cv_c_asm_short=".half"
13117 else
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13122 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13123 { (exit 1); exit 1; }; }
13125 rm -f conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext conftest.$ac_ext
13128 rm -f conftest.err conftest.$ac_objext \
13129 conftest$ac_exeext conftest.$ac_ext
13131 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13132 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13135 cat >>confdefs.h <<_ACEOF
13136 #define __ASM_SHORT "$ac_cv_c_asm_short"
13137 _ACEOF
13141 echo "$as_me:$LINENO: checking for .size in assembler" >&5
13142 echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
13143 if test "${ac_cv_c_asm_size+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146 cat >conftest.$ac_ext <<_ACEOF
13147 /* confdefs.h. */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h. */
13152 void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
13155 main ()
13159 return 0;
13161 _ACEOF
13162 rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13164 (eval $ac_link) 2>conftest.er1
13165 ac_status=$?
13166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; } &&
13177 { ac_try='test -s conftest$ac_exeext'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13180 ac_status=$?
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13183 ac_cv_c_asm_size="yes"
13184 else
13185 echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13188 ac_cv_c_asm_size="no"
13190 rm -f conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13193 echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13194 echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13196 if test "$ac_cv_c_asm_size" = "yes"
13197 then
13199 cat >>confdefs.h <<\_ACEOF
13200 #define HAVE_ASM_DOT_SIZE 1
13201 _ACEOF
13206 DLLEXT=""
13208 DLLFLAGS="-D_REENTRANT"
13210 DLLIBS=""
13212 LDSHARED=""
13214 LDDLLFLAGS=""
13216 LIBEXT="so"
13218 IMPLIBEXT="def"
13221 case $host_os in
13222 cygwin*|mingw32*)
13223 if test -n "$ac_tool_prefix"; then
13224 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13225 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13226 echo "$as_me:$LINENO: checking for $ac_word" >&5
13227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13228 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13230 else
13231 if test -n "$DLLTOOL"; then
13232 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13233 else
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13241 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13245 done
13246 done
13250 DLLTOOL=$ac_cv_prog_DLLTOOL
13251 if test -n "$DLLTOOL"; then
13252 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13253 echo "${ECHO_T}$DLLTOOL" >&6
13254 else
13255 echo "$as_me:$LINENO: result: no" >&5
13256 echo "${ECHO_T}no" >&6
13260 if test -z "$ac_cv_prog_DLLTOOL"; then
13261 ac_ct_DLLTOOL=$DLLTOOL
13262 # Extract the first word of "dlltool", so it can be a program name with args.
13263 set dummy dlltool; ac_word=$2
13264 echo "$as_me:$LINENO: checking for $ac_word" >&5
13265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13266 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 else
13269 if test -n "$ac_ct_DLLTOOL"; then
13270 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13271 else
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13279 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13283 done
13284 done
13286 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13289 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13290 if test -n "$ac_ct_DLLTOOL"; then
13291 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13292 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13293 else
13294 echo "$as_me:$LINENO: result: no" >&5
13295 echo "${ECHO_T}no" >&6
13298 DLLTOOL=$ac_ct_DLLTOOL
13299 else
13300 DLLTOOL="$ac_cv_prog_DLLTOOL"
13303 if test -n "$ac_tool_prefix"; then
13304 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13305 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13306 echo "$as_me:$LINENO: checking for $ac_word" >&5
13307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13308 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 else
13311 if test -n "$DLLWRAP"; then
13312 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13313 else
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13317 IFS=$as_save_IFS
13318 test -z "$as_dir" && as_dir=.
13319 for ac_exec_ext in '' $ac_executable_extensions; do
13320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13321 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13323 break 2
13325 done
13326 done
13330 DLLWRAP=$ac_cv_prog_DLLWRAP
13331 if test -n "$DLLWRAP"; then
13332 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13333 echo "${ECHO_T}$DLLWRAP" >&6
13334 else
13335 echo "$as_me:$LINENO: result: no" >&5
13336 echo "${ECHO_T}no" >&6
13340 if test -z "$ac_cv_prog_DLLWRAP"; then
13341 ac_ct_DLLWRAP=$DLLWRAP
13342 # Extract the first word of "dllwrap", so it can be a program name with args.
13343 set dummy dllwrap; ac_word=$2
13344 echo "$as_me:$LINENO: checking for $ac_word" >&5
13345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13346 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 else
13349 if test -n "$ac_ct_DLLWRAP"; then
13350 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13351 else
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13355 IFS=$as_save_IFS
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
13358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13359 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 break 2
13363 done
13364 done
13366 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13369 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13370 if test -n "$ac_ct_DLLWRAP"; then
13371 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13372 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13373 else
13374 echo "$as_me:$LINENO: result: no" >&5
13375 echo "${ECHO_T}no" >&6
13378 DLLWRAP=$ac_ct_DLLWRAP
13379 else
13380 DLLWRAP="$ac_cv_prog_DLLWRAP"
13383 if test "$DLLWRAP" = "false"; then
13384 LIBEXT="a"
13385 else
13386 LIBEXT="dll"
13388 IMPLIBEXT="a"
13389 WIN16_FILES=""
13390 WIN16_INSTALL=""
13394 for ac_header in dlfcn.h
13396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13398 echo "$as_me:$LINENO: checking for $ac_header" >&5
13399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13405 else
13406 # Is the header compilable?
13407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13409 cat >conftest.$ac_ext <<_ACEOF
13410 /* confdefs.h. */
13411 _ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13415 $ac_includes_default
13416 #include <$ac_header>
13417 _ACEOF
13418 rm -f conftest.$ac_objext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420 (eval $ac_compile) 2>conftest.er1
13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429 (eval $ac_try) 2>&5
13430 ac_status=$?
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; } &&
13433 { ac_try='test -s conftest.$ac_objext'
13434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435 (eval $ac_try) 2>&5
13436 ac_status=$?
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
13439 ac_header_compiler=yes
13440 else
13441 echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13444 ac_header_compiler=no
13446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13448 echo "${ECHO_T}$ac_header_compiler" >&6
13450 # Is the header present?
13451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13453 cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h. */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13459 #include <$ac_header>
13460 _ACEOF
13461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13463 ac_status=$?
13464 grep -v '^ *+' conftest.er1 >conftest.err
13465 rm -f conftest.er1
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } >/dev/null; then
13469 if test -s conftest.err; then
13470 ac_cpp_err=$ac_c_preproc_warn_flag
13471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13472 else
13473 ac_cpp_err=
13475 else
13476 ac_cpp_err=yes
13478 if test -z "$ac_cpp_err"; then
13479 ac_header_preproc=yes
13480 else
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13484 ac_header_preproc=no
13486 rm -f conftest.err conftest.$ac_ext
13487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13488 echo "${ECHO_T}$ac_header_preproc" >&6
13490 # So? What about this header?
13491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13492 yes:no: )
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13497 ac_header_preproc=yes
13499 no:yes:* )
13500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13513 cat <<\_ASBOX
13514 ## ------------------------------------ ##
13515 ## Report this to wine-devel@winehq.org ##
13516 ## ------------------------------------ ##
13517 _ASBOX
13519 sed "s/^/$as_me: WARNING: /" >&2
13521 esac
13522 echo "$as_me:$LINENO: checking for $ac_header" >&5
13523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527 eval "$as_ac_Header=\$ac_header_preproc"
13529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13534 cat >>confdefs.h <<_ACEOF
13535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13536 _ACEOF
13538 for ac_func in dlopen
13540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13541 echo "$as_me:$LINENO: checking for $ac_func" >&5
13542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13543 if eval "test \"\${$as_ac_var+set}\" = set"; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13545 else
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h. */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13554 #define $ac_func innocuous_$ac_func
13556 /* System header to define __stub macros and hopefully few prototypes,
13557 which can conflict with char $ac_func (); below.
13558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13559 <limits.h> exists even on freestanding compilers. */
13561 #ifdef __STDC__
13562 # include <limits.h>
13563 #else
13564 # include <assert.h>
13565 #endif
13567 #undef $ac_func
13569 /* Override any gcc2 internal prototype to avoid an error. */
13570 #ifdef __cplusplus
13571 extern "C"
13573 #endif
13574 /* We use char because int might match the return type of a gcc2
13575 builtin and then its argument prototype would still apply. */
13576 char $ac_func ();
13577 /* The GNU C library defines this for functions which it implements
13578 to always fail with ENOSYS. Some functions are actually named
13579 something starting with __ and the normal name is an alias. */
13580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13581 choke me
13582 #else
13583 char (*f) () = $ac_func;
13584 #endif
13585 #ifdef __cplusplus
13587 #endif
13590 main ()
13592 return f != $ac_func;
13594 return 0;
13596 _ACEOF
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>conftest.er1
13600 ac_status=$?
13601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13609 ac_status=$?
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; } &&
13612 { ac_try='test -s conftest$ac_exeext'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 eval "$as_ac_var=yes"
13619 else
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13623 eval "$as_ac_var=no"
13625 rm -f conftest.err conftest.$ac_objext \
13626 conftest$ac_exeext conftest.$ac_ext
13628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13630 if test `eval echo '${'$as_ac_var'}'` = yes; then
13631 cat >>confdefs.h <<_ACEOF
13632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13633 _ACEOF
13635 else
13636 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13637 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641 ac_check_lib_save_LIBS=$LIBS
13642 LIBS="-ldl $LIBS"
13643 cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h. */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13650 /* Override any gcc2 internal prototype to avoid an error. */
13651 #ifdef __cplusplus
13652 extern "C"
13653 #endif
13654 /* We use char because int might match the return type of a gcc2
13655 builtin and then its argument prototype would still apply. */
13656 char dlopen ();
13658 main ()
13660 dlopen ();
13662 return 0;
13664 _ACEOF
13665 rm -f conftest.$ac_objext conftest$ac_exeext
13666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13667 (eval $ac_link) 2>conftest.er1
13668 ac_status=$?
13669 grep -v '^ *+' conftest.er1 >conftest.err
13670 rm -f conftest.er1
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; } &&
13680 { ac_try='test -s conftest$ac_exeext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13683 ac_status=$?
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13686 ac_cv_lib_dl_dlopen=yes
13687 else
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 ac_cv_lib_dl_dlopen=no
13693 rm -f conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695 LIBS=$ac_check_lib_save_LIBS
13697 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13698 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13699 if test $ac_cv_lib_dl_dlopen = yes; then
13701 cat >>confdefs.h <<\_ACEOF
13702 #define HAVE_DLOPEN 1
13703 _ACEOF
13705 DLLIBS="-ldl"
13706 else
13707 LIBEXT="a"
13711 done
13713 else
13714 LIBEXT="a"
13717 done
13720 if test "$LIBEXT" = "so"
13721 then
13722 DLLFLAGS="$DLLFLAGS -fPIC"
13723 DLLEXT=".so"
13724 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13725 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13726 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728 else
13729 ac_wine_try_cflags_saved=$CFLAGS
13730 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13731 cat >conftest.$ac_ext <<_ACEOF
13732 void myfunc() {}
13733 _ACEOF
13734 rm -f conftest.$ac_objext conftest$ac_exeext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13736 (eval $ac_link) 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
13743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest$ac_exeext'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 ac_cv_c_dll_gnuelf="yes"
13756 else
13757 echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13760 ac_cv_c_dll_gnuelf="no"
13762 rm -f conftest.err conftest.$ac_objext \
13763 conftest$ac_exeext conftest.$ac_ext
13764 CFLAGS=$ac_wine_try_cflags_saved
13766 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13767 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13768 if test "$ac_cv_c_dll_gnuelf" = "yes"
13769 then
13770 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13771 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13772 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13773 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13774 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777 ac_wine_try_cflags_saved=$CFLAGS
13778 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13779 cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h. */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13787 main ()
13791 return 0;
13793 _ACEOF
13794 rm -f conftest.$ac_objext conftest$ac_exeext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13796 (eval $ac_link) 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13806 ac_status=$?
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest$ac_exeext'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 ac_cv_c_dll_zdefs="yes"
13816 else
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 ac_cv_c_dll_zdefs="no"
13822 rm -f conftest.err conftest.$ac_objext \
13823 conftest$ac_exeext conftest.$ac_ext
13824 CFLAGS=$ac_wine_try_cflags_saved
13826 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13827 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13828 if test "$ac_cv_c_dll_zdefs" = "yes"
13829 then
13830 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13833 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13834 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13835 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838 ac_wine_try_cflags_saved=$CFLAGS
13839 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13840 cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h. */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13848 main ()
13852 return 0;
13854 _ACEOF
13855 rm -f conftest.$ac_objext conftest$ac_exeext
13856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13857 (eval $ac_link) 2>conftest.er1
13858 ac_status=$?
13859 grep -v '^ *+' conftest.er1 >conftest.err
13860 rm -f conftest.er1
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } &&
13864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; } &&
13870 { ac_try='test -s conftest$ac_exeext'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }; then
13876 ac_cv_c_dll_init_fini="yes"
13877 else
13878 echo "$as_me: failed program was:" >&5
13879 sed 's/^/| /' conftest.$ac_ext >&5
13881 ac_cv_c_dll_init_fini="no"
13883 rm -f conftest.err conftest.$ac_objext \
13884 conftest$ac_exeext conftest.$ac_ext
13885 CFLAGS=$ac_wine_try_cflags_saved
13887 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13888 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13889 if test "$ac_cv_c_dll_init_fini" = "yes"
13890 then
13891 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13894 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13895 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13896 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899 echo '{ global: *; };' >conftest.map
13900 ac_wine_try_cflags_saved=$CFLAGS
13901 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13902 cat >conftest.$ac_ext <<_ACEOF
13903 /* confdefs.h. */
13904 _ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13910 main ()
13914 return 0;
13916 _ACEOF
13917 rm -f conftest.$ac_objext conftest$ac_exeext
13918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13919 (eval $ac_link) 2>conftest.er1
13920 ac_status=$?
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
13926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; } &&
13932 { ac_try='test -s conftest$ac_exeext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_cv_c_ld_version_scripts="yes"
13939 else
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13943 ac_cv_c_ld_version_scripts="no"
13945 rm -f conftest.err conftest.$ac_objext \
13946 conftest$ac_exeext conftest.$ac_ext
13947 CFLAGS=$ac_wine_try_cflags_saved
13948 rm -f conftest.map
13950 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13951 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13952 if test "$ac_cv_c_ld_version_scripts" = "yes"
13953 then
13954 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13957 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13958 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13959 if test "${ac_cv_c_export_dynamic+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962 ac_wine_try_cflags_saved=$CFLAGS
13963 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13972 main ()
13976 return 0;
13978 _ACEOF
13979 rm -f conftest.$ac_objext conftest$ac_exeext
13980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13981 (eval $ac_link) 2>conftest.er1
13982 ac_status=$?
13983 grep -v '^ *+' conftest.er1 >conftest.err
13984 rm -f conftest.er1
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } &&
13988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; } &&
13994 { ac_try='test -s conftest$ac_exeext'
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13997 ac_status=$?
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_cv_c_export_dynamic="yes"
14001 else
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_cv_c_export_dynamic="no"
14007 rm -f conftest.err conftest.$ac_objext \
14008 conftest$ac_exeext conftest.$ac_ext
14009 CFLAGS=$ac_wine_try_cflags_saved
14011 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14012 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14013 if test "$ac_cv_c_export_dynamic" = "yes"
14014 then
14015 LDEXECFLAGS="-Wl,--export-dynamic"
14019 case $host_cpu in
14020 *i[3456789]86*)
14021 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
14022 echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
14023 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 else
14026 ac_wine_try_cflags_saved=$CFLAGS
14027 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
14028 cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h. */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14036 main ()
14040 return 0;
14042 _ACEOF
14043 rm -f conftest.$ac_objext conftest$ac_exeext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14045 (eval $ac_link) 2>conftest.er1
14046 ac_status=$?
14047 grep -v '^ *+' conftest.er1 >conftest.err
14048 rm -f conftest.er1
14049 cat conftest.err >&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } &&
14052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try='test -s conftest$ac_exeext'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_ld_reloc_exec="yes"
14065 else
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14069 ac_cv_ld_reloc_exec="no"
14071 rm -f conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
14073 CFLAGS=$ac_wine_try_cflags_saved
14075 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14076 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14077 if test "$ac_cv_ld_reloc_exec" = "yes"
14078 then
14079 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
14082 esac
14084 else
14085 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14086 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14087 if test "${ac_cv_c_dll_unixware+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 else
14090 ac_wine_try_cflags_saved=$CFLAGS
14091 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14092 cat >conftest.$ac_ext <<_ACEOF
14093 void myfunc() {}
14094 _ACEOF
14095 rm -f conftest.$ac_objext conftest$ac_exeext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14097 (eval $ac_link) 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
14104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest$ac_exeext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_cv_c_dll_unixware="yes"
14117 else
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14121 ac_cv_c_dll_unixware="no"
14123 rm -f conftest.err conftest.$ac_objext \
14124 conftest$ac_exeext conftest.$ac_ext
14125 CFLAGS=$ac_wine_try_cflags_saved
14127 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14128 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14129 if test "$ac_cv_c_dll_unixware" = "yes"
14130 then
14131 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14132 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14134 else
14135 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14136 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14137 if test "${ac_cv_c_dll_macho+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140 ac_wine_try_cflags_saved=$CFLAGS
14141 CFLAGS="$CFLAGS -bundle"
14142 cat >conftest.$ac_ext <<_ACEOF
14143 void myfunc() {}
14144 _ACEOF
14145 rm -f conftest.$ac_objext conftest$ac_exeext
14146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14147 (eval $ac_link) 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } &&
14154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; } &&
14160 { ac_try='test -s conftest$ac_exeext'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14163 ac_status=$?
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; }; then
14166 ac_cv_c_dll_macho="yes"
14167 else
14168 echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14171 ac_cv_c_dll_macho="no"
14173 rm -f conftest.err conftest.$ac_objext \
14174 conftest$ac_exeext conftest.$ac_ext
14175 CFLAGS=$ac_wine_try_cflags_saved
14177 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14178 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14179 if test "$ac_cv_c_dll_macho" = "yes"
14180 then
14181 LIBEXT="dylib"
14182 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress -read_only_relocs warning"
14183 LDSHARED="\$(CC) -dynamiclib"
14184 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14185 STRIP="$STRIP -u -r"
14186 LDEXECFLAGS="-seg1addr 0x120000"
14188 LDLIBWINEFLAGS="-seg1addr 0x140000"
14190 COREFOUNDATIONLIB="-framework CoreFoundation"
14192 IOKITLIB="-framework IOKit"
14194 IOKITLIB="$IOKITLIB $COREFOUNDATIONLIB"
14195 else
14196 echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14197 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
14198 if test "${ac_cv_c_dll_hpux+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201 ac_wine_try_cflags_saved=$CFLAGS
14202 CFLAGS="$CFLAGS -shared"
14203 cat >conftest.$ac_ext <<_ACEOF
14204 void myfunc() {}
14205 _ACEOF
14206 rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14208 (eval $ac_link) 2>conftest.er1
14209 ac_status=$?
14210 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest$ac_exeext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_cv_c_dll_hpux="yes"
14228 else
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 ac_cv_c_dll_hpux="no"
14234 rm -f conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
14236 CFLAGS=$ac_wine_try_cflags_saved
14238 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14239 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
14240 if test "$ac_cv_c_dll_hpux" = "yes"
14241 then
14242 LIBEXT="sl"
14243 DLLEXT=".sl"
14244 LDDLLFLAGS="-shared -fPIC"
14245 LDSHARED="\$(CC) -shared"
14252 CROSSTEST=""
14254 if test "$cross_compiling" = "no"
14255 then
14256 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14258 # Extract the first word of "$ac_prog", so it can be a program name with args.
14259 set dummy $ac_prog; ac_word=$2
14260 echo "$as_me:$LINENO: checking for $ac_word" >&5
14261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14262 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265 if test -n "$CROSSCC"; then
14266 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14267 else
14268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269 for as_dir in $PATH
14271 IFS=$as_save_IFS
14272 test -z "$as_dir" && as_dir=.
14273 for ac_exec_ext in '' $ac_executable_extensions; do
14274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14275 ac_cv_prog_CROSSCC="$ac_prog"
14276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14277 break 2
14279 done
14280 done
14284 CROSSCC=$ac_cv_prog_CROSSCC
14285 if test -n "$CROSSCC"; then
14286 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14287 echo "${ECHO_T}$CROSSCC" >&6
14288 else
14289 echo "$as_me:$LINENO: result: no" >&5
14290 echo "${ECHO_T}no" >&6
14293 test -n "$CROSSCC" && break
14294 done
14295 test -n "$CROSSCC" || CROSSCC="false"
14297 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14299 # Extract the first word of "$ac_prog", so it can be a program name with args.
14300 set dummy $ac_prog; ac_word=$2
14301 echo "$as_me:$LINENO: checking for $ac_word" >&5
14302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14303 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306 if test -n "$DLLTOOL"; then
14307 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14308 else
14309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14310 for as_dir in $PATH
14312 IFS=$as_save_IFS
14313 test -z "$as_dir" && as_dir=.
14314 for ac_exec_ext in '' $ac_executable_extensions; do
14315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14316 ac_cv_prog_DLLTOOL="$ac_prog"
14317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14318 break 2
14320 done
14321 done
14325 DLLTOOL=$ac_cv_prog_DLLTOOL
14326 if test -n "$DLLTOOL"; then
14327 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14328 echo "${ECHO_T}$DLLTOOL" >&6
14329 else
14330 echo "$as_me:$LINENO: result: no" >&5
14331 echo "${ECHO_T}no" >&6
14334 test -n "$DLLTOOL" && break
14335 done
14336 test -n "$DLLTOOL" || DLLTOOL="false"
14338 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14340 # Extract the first word of "$ac_prog", so it can be a program name with args.
14341 set dummy $ac_prog; ac_word=$2
14342 echo "$as_me:$LINENO: checking for $ac_word" >&5
14343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14344 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347 if test -n "$CROSSWINDRES"; then
14348 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14349 else
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14353 IFS=$as_save_IFS
14354 test -z "$as_dir" && as_dir=.
14355 for ac_exec_ext in '' $ac_executable_extensions; do
14356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14357 ac_cv_prog_CROSSWINDRES="$ac_prog"
14358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14359 break 2
14361 done
14362 done
14366 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14367 if test -n "$CROSSWINDRES"; then
14368 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14369 echo "${ECHO_T}$CROSSWINDRES" >&6
14370 else
14371 echo "$as_me:$LINENO: result: no" >&5
14372 echo "${ECHO_T}no" >&6
14375 test -n "$CROSSWINDRES" && break
14376 done
14377 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14379 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14382 esac
14384 if test "$LIBEXT" = "a"; then
14385 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14386 It is currently not possible to build Wine without shared library
14387 (.so) support to allow transparent switch between .so and .dll files.
14388 If you are using Linux, you will need a newer binutils.
14389 " >&5
14390 echo "$as_me: error: could not find a way to build shared libraries.
14391 It is currently not possible to build Wine without shared library
14392 (.so) support to allow transparent switch between .so and .dll files.
14393 If you are using Linux, you will need a newer binutils.
14394 " >&2;}
14395 { (exit 1); exit 1; }; }
14398 case $build_os in
14399 cygwin*|mingw32*)
14400 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14402 darwin*|macosx*)
14403 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14406 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14408 esac
14410 case $host_os in
14411 mingw32*)
14412 CRTLIBS="-lmsvcrt"
14414 SOCKETLIBS="-lws2_32"
14417 esac
14419 case $host_os in
14420 linux*)
14421 case $host_cpu in
14422 *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14424 *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14426 esac
14427 MAIN_BINARY="wine-glibc"
14430 darwin*)
14431 WINE_BINARIES="wine-pthread"
14433 MAIN_BINARY="wine-pthread"
14437 WINE_BINARIES="wine-kthread"
14439 MAIN_BINARY="wine-kthread"
14442 esac
14445 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14446 then
14447 # Extract the first word of "ldd", so it can be a program name with args.
14448 set dummy ldd; ac_word=$2
14449 echo "$as_me:$LINENO: checking for $ac_word" >&5
14450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14451 if test "${ac_cv_path_LDD+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454 case $LDD in
14455 [\\/]* | ?:[\\/]*)
14456 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14460 as_dummy="/sbin:/usr/sbin:$PATH"
14461 for as_dir in $as_dummy
14463 IFS=$as_save_IFS
14464 test -z "$as_dir" && as_dir=.
14465 for ac_exec_ext in '' $ac_executable_extensions; do
14466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14467 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14469 break 2
14471 done
14472 done
14474 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14476 esac
14478 LDD=$ac_cv_path_LDD
14480 if test -n "$LDD"; then
14481 echo "$as_me:$LINENO: result: $LDD" >&5
14482 echo "${ECHO_T}$LDD" >&6
14483 else
14484 echo "$as_me:$LINENO: result: no" >&5
14485 echo "${ECHO_T}no" >&6
14489 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14490 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14491 if test "${ac_cv_lib_soname_X11+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494 ac_get_soname_save_LIBS=$LIBS
14495 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14496 cat >conftest.$ac_ext <<_ACEOF
14497 /* confdefs.h. */
14498 _ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14503 /* Override any gcc2 internal prototype to avoid an error. */
14504 #ifdef __cplusplus
14505 extern "C"
14506 #endif
14507 /* We use char because int might match the return type of a gcc2
14508 builtin and then its argument prototype would still apply. */
14509 char XCreateWindow ();
14511 main ()
14513 XCreateWindow ();
14515 return 0;
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_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"`
14540 if test "x$ac_cv_lib_soname_X11" = "x"
14541 then
14542 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14544 else
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14548 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14550 rm -f conftest.err conftest.$ac_objext \
14551 conftest$ac_exeext conftest.$ac_ext
14552 LIBS=$ac_get_soname_save_LIBS
14554 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14555 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14556 if test "x$ac_cv_lib_soname_X11" != xNONE
14557 then
14558 cat >>confdefs.h <<_ACEOF
14559 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14560 _ACEOF
14563 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14564 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14565 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568 ac_get_soname_save_LIBS=$LIBS
14569 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14570 cat >conftest.$ac_ext <<_ACEOF
14571 /* confdefs.h. */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14577 /* Override any gcc2 internal prototype to avoid an error. */
14578 #ifdef __cplusplus
14579 extern "C"
14580 #endif
14581 /* We use char because int might match the return type of a gcc2
14582 builtin and then its argument prototype would still apply. */
14583 char XextCreateExtension ();
14585 main ()
14587 XextCreateExtension ();
14589 return 0;
14591 _ACEOF
14592 rm -f conftest.$ac_objext conftest$ac_exeext
14593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14594 (eval $ac_link) 2>conftest.er1
14595 ac_status=$?
14596 grep -v '^ *+' conftest.er1 >conftest.err
14597 rm -f conftest.er1
14598 cat conftest.err >&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } &&
14601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; } &&
14607 { ac_try='test -s conftest$ac_exeext'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; }; then
14613 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"`
14614 if test "x$ac_cv_lib_soname_Xext" = "x"
14615 then
14616 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14618 else
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14624 rm -f conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14626 LIBS=$ac_get_soname_save_LIBS
14628 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14629 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14630 if test "x$ac_cv_lib_soname_Xext" != xNONE
14631 then
14632 cat >>confdefs.h <<_ACEOF
14633 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14634 _ACEOF
14637 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14638 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14639 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642 ac_get_soname_save_LIBS=$LIBS
14643 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14644 cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h. */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14651 /* Override any gcc2 internal prototype to avoid an error. */
14652 #ifdef __cplusplus
14653 extern "C"
14654 #endif
14655 /* We use char because int might match the return type of a gcc2
14656 builtin and then its argument prototype would still apply. */
14657 char XOpenDevice ();
14659 main ()
14661 XOpenDevice ();
14663 return 0;
14665 _ACEOF
14666 rm -f conftest.$ac_objext conftest$ac_exeext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14668 (eval $ac_link) 2>conftest.er1
14669 ac_status=$?
14670 grep -v '^ *+' conftest.er1 >conftest.err
14671 rm -f conftest.er1
14672 cat conftest.err >&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } &&
14675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; } &&
14681 { ac_try='test -s conftest$ac_exeext'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"`
14688 if test "x$ac_cv_lib_soname_Xi" = "x"
14689 then
14690 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14692 else
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14696 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14698 rm -f conftest.err conftest.$ac_objext \
14699 conftest$ac_exeext conftest.$ac_ext
14700 LIBS=$ac_get_soname_save_LIBS
14702 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14703 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14704 if test "x$ac_cv_lib_soname_Xi" != xNONE
14705 then
14706 cat >>confdefs.h <<_ACEOF
14707 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14708 _ACEOF
14711 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14712 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14713 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716 ac_get_soname_save_LIBS=$LIBS
14717 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14718 cat >conftest.$ac_ext <<_ACEOF
14719 /* confdefs.h. */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14725 /* Override any gcc2 internal prototype to avoid an error. */
14726 #ifdef __cplusplus
14727 extern "C"
14728 #endif
14729 /* We use char because int might match the return type of a gcc2
14730 builtin and then its argument prototype would still apply. */
14731 char XRenderQueryExtension ();
14733 main ()
14735 XRenderQueryExtension ();
14737 return 0;
14739 _ACEOF
14740 rm -f conftest.$ac_objext conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742 (eval $ac_link) 2>conftest.er1
14743 ac_status=$?
14744 grep -v '^ *+' conftest.er1 >conftest.err
14745 rm -f conftest.er1
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14752 ac_status=$?
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; } &&
14755 { ac_try='test -s conftest$ac_exeext'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"`
14762 if test "x$ac_cv_lib_soname_Xrender" = "x"
14763 then
14764 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14766 else
14767 echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14770 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14772 rm -f conftest.err conftest.$ac_objext \
14773 conftest$ac_exeext conftest.$ac_ext
14774 LIBS=$ac_get_soname_save_LIBS
14776 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14777 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14778 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14779 then
14780 cat >>confdefs.h <<_ACEOF
14781 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14782 _ACEOF
14785 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14786 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14787 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 else
14790 ac_get_soname_save_LIBS=$LIBS
14791 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14792 cat >conftest.$ac_ext <<_ACEOF
14793 /* confdefs.h. */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14799 /* Override any gcc2 internal prototype to avoid an error. */
14800 #ifdef __cplusplus
14801 extern "C"
14802 #endif
14803 /* We use char because int might match the return type of a gcc2
14804 builtin and then its argument prototype would still apply. */
14805 char XRRQueryExtension ();
14807 main ()
14809 XRRQueryExtension ();
14811 return 0;
14813 _ACEOF
14814 rm -f conftest.$ac_objext conftest$ac_exeext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14816 (eval $ac_link) 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14826 ac_status=$?
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; } &&
14829 { ac_try='test -s conftest$ac_exeext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"`
14836 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14837 then
14838 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14840 else
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14844 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14846 rm -f conftest.err conftest.$ac_objext \
14847 conftest$ac_exeext conftest.$ac_ext
14848 LIBS=$ac_get_soname_save_LIBS
14850 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14851 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14852 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
14853 then
14854 cat >>confdefs.h <<_ACEOF
14855 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14856 _ACEOF
14859 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14860 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14861 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 else
14864 ac_get_soname_save_LIBS=$LIBS
14865 LIBS="-lfreetype $X_LIBS $LIBS"
14866 cat >conftest.$ac_ext <<_ACEOF
14867 /* confdefs.h. */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14873 /* Override any gcc2 internal prototype to avoid an error. */
14874 #ifdef __cplusplus
14875 extern "C"
14876 #endif
14877 /* We use char because int might match the return type of a gcc2
14878 builtin and then its argument prototype would still apply. */
14879 char FT_Init_FreeType ();
14881 main ()
14883 FT_Init_FreeType ();
14885 return 0;
14887 _ACEOF
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890 (eval $ac_link) 2>conftest.er1
14891 ac_status=$?
14892 grep -v '^ *+' conftest.er1 >conftest.err
14893 rm -f conftest.er1
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try='test -s conftest$ac_exeext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"`
14910 if test "x$ac_cv_lib_soname_freetype" = "x"
14911 then
14912 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14914 else
14915 echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14918 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14920 rm -f conftest.err conftest.$ac_objext \
14921 conftest$ac_exeext conftest.$ac_ext
14922 LIBS=$ac_get_soname_save_LIBS
14924 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14925 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14926 if test "x$ac_cv_lib_soname_freetype" != xNONE
14927 then
14928 cat >>confdefs.h <<_ACEOF
14929 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14930 _ACEOF
14933 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14934 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14935 if test "${ac_cv_lib_soname_GL+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938 ac_get_soname_save_LIBS=$LIBS
14939 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14940 cat >conftest.$ac_ext <<_ACEOF
14941 /* confdefs.h. */
14942 _ACEOF
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14947 /* Override any gcc2 internal prototype to avoid an error. */
14948 #ifdef __cplusplus
14949 extern "C"
14950 #endif
14951 /* We use char because int might match the return type of a gcc2
14952 builtin and then its argument prototype would still apply. */
14953 char glXQueryExtension ();
14955 main ()
14957 glXQueryExtension ();
14959 return 0;
14961 _ACEOF
14962 rm -f conftest.$ac_objext conftest$ac_exeext
14963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14964 (eval $ac_link) 2>conftest.er1
14965 ac_status=$?
14966 grep -v '^ *+' conftest.er1 >conftest.err
14967 rm -f conftest.er1
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } &&
14977 { ac_try='test -s conftest$ac_exeext'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"`
14984 if test "x$ac_cv_lib_soname_GL" = "x"
14985 then
14986 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14988 else
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14992 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14994 rm -f conftest.err conftest.$ac_objext \
14995 conftest$ac_exeext conftest.$ac_ext
14996 LIBS=$ac_get_soname_save_LIBS
14998 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14999 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15000 if test "x$ac_cv_lib_soname_GL" != xNONE
15001 then
15002 cat >>confdefs.h <<_ACEOF
15003 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15004 _ACEOF
15007 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
15008 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
15009 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012 ac_get_soname_save_LIBS=$LIBS
15013 LIBS="-ltxc_dxtn $LIBS"
15014 cat >conftest.$ac_ext <<_ACEOF
15015 /* confdefs.h. */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15021 /* Override any gcc2 internal prototype to avoid an error. */
15022 #ifdef __cplusplus
15023 extern "C"
15024 #endif
15025 /* We use char because int might match the return type of a gcc2
15026 builtin and then its argument prototype would still apply. */
15027 char fetch_2d_texel_rgba_dxt1 ();
15029 main ()
15031 fetch_2d_texel_rgba_dxt1 ();
15033 return 0;
15035 _ACEOF
15036 rm -f conftest.$ac_objext conftest$ac_exeext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15038 (eval $ac_link) 2>conftest.er1
15039 ac_status=$?
15040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; } &&
15051 { ac_try='test -s conftest$ac_exeext'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15057 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"`
15058 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
15059 then
15060 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15062 else
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15068 rm -f conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15070 LIBS=$ac_get_soname_save_LIBS
15072 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15073 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
15074 if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
15075 then
15076 cat >>confdefs.h <<_ACEOF
15077 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15078 _ACEOF
15081 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15082 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15083 if test "${ac_cv_lib_soname_cups+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 else
15086 ac_get_soname_save_LIBS=$LIBS
15087 LIBS="-lcups $LIBS"
15088 cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h. */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15095 /* Override any gcc2 internal prototype to avoid an error. */
15096 #ifdef __cplusplus
15097 extern "C"
15098 #endif
15099 /* We use char because int might match the return type of a gcc2
15100 builtin and then its argument prototype would still apply. */
15101 char cupsGetDefault ();
15103 main ()
15105 cupsGetDefault ();
15107 return 0;
15109 _ACEOF
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>conftest.er1
15113 ac_status=$?
15114 grep -v '^ *+' conftest.er1 >conftest.err
15115 rm -f conftest.er1
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15122 ac_status=$?
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; } &&
15125 { ac_try='test -s conftest$ac_exeext'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; }; then
15131 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"`
15132 if test "x$ac_cv_lib_soname_cups" = "x"
15133 then
15134 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15136 else
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15142 rm -f conftest.err conftest.$ac_objext \
15143 conftest$ac_exeext conftest.$ac_ext
15144 LIBS=$ac_get_soname_save_LIBS
15146 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15147 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15148 if test "x$ac_cv_lib_soname_cups" != xNONE
15149 then
15150 cat >>confdefs.h <<_ACEOF
15151 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15152 _ACEOF
15155 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15156 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15157 if test "${ac_cv_lib_soname_jack+set}" = set; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160 ac_get_soname_save_LIBS=$LIBS
15161 LIBS="-ljack $LIBS"
15162 cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h. */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15169 /* Override any gcc2 internal prototype to avoid an error. */
15170 #ifdef __cplusplus
15171 extern "C"
15172 #endif
15173 /* We use char because int might match the return type of a gcc2
15174 builtin and then its argument prototype would still apply. */
15175 char jack_client_new ();
15177 main ()
15179 jack_client_new ();
15181 return 0;
15183 _ACEOF
15184 rm -f conftest.$ac_objext conftest$ac_exeext
15185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15186 (eval $ac_link) 2>conftest.er1
15187 ac_status=$?
15188 grep -v '^ *+' conftest.er1 >conftest.err
15189 rm -f conftest.er1
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } &&
15193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; } &&
15199 { ac_try='test -s conftest$ac_exeext'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"`
15206 if test "x$ac_cv_lib_soname_jack" = "x"
15207 then
15208 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15210 else
15211 echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15214 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15216 rm -f conftest.err conftest.$ac_objext \
15217 conftest$ac_exeext conftest.$ac_ext
15218 LIBS=$ac_get_soname_save_LIBS
15220 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15221 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15222 if test "x$ac_cv_lib_soname_jack" != xNONE
15223 then
15224 cat >>confdefs.h <<_ACEOF
15225 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15226 _ACEOF
15229 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15230 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15231 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15233 else
15234 ac_get_soname_save_LIBS=$LIBS
15235 LIBS="-lfontconfig $LIBS"
15236 cat >conftest.$ac_ext <<_ACEOF
15237 /* confdefs.h. */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15243 /* Override any gcc2 internal prototype to avoid an error. */
15244 #ifdef __cplusplus
15245 extern "C"
15246 #endif
15247 /* We use char because int might match the return type of a gcc2
15248 builtin and then its argument prototype would still apply. */
15249 char FcInit ();
15251 main ()
15253 FcInit ();
15255 return 0;
15257 _ACEOF
15258 rm -f conftest.$ac_objext conftest$ac_exeext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15260 (eval $ac_link) 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } &&
15267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest$ac_exeext'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15279 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"`
15280 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15281 then
15282 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15284 else
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15290 rm -f conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext conftest.$ac_ext
15292 LIBS=$ac_get_soname_save_LIBS
15294 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15295 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15296 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15297 then
15298 cat >>confdefs.h <<_ACEOF
15299 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15300 _ACEOF
15303 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15304 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15305 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308 ac_get_soname_save_LIBS=$LIBS
15309 LIBS="-lssl $LIBS"
15310 cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h. */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15317 /* Override any gcc2 internal prototype to avoid an error. */
15318 #ifdef __cplusplus
15319 extern "C"
15320 #endif
15321 /* We use char because int might match the return type of a gcc2
15322 builtin and then its argument prototype would still apply. */
15323 char SSL_library_init ();
15325 main ()
15327 SSL_library_init ();
15329 return 0;
15331 _ACEOF
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334 (eval $ac_link) 2>conftest.er1
15335 ac_status=$?
15336 grep -v '^ *+' conftest.er1 >conftest.err
15337 rm -f conftest.er1
15338 cat conftest.err >&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } &&
15347 { ac_try='test -s conftest$ac_exeext'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
15353 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"`
15354 if test "x$ac_cv_lib_soname_ssl" = "x"
15355 then
15356 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15358 else
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15364 rm -f conftest.err conftest.$ac_objext \
15365 conftest$ac_exeext conftest.$ac_ext
15366 LIBS=$ac_get_soname_save_LIBS
15368 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15369 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15370 if test "x$ac_cv_lib_soname_ssl" != xNONE
15371 then
15372 cat >>confdefs.h <<_ACEOF
15373 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15374 _ACEOF
15377 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15378 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15379 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382 ac_get_soname_save_LIBS=$LIBS
15383 LIBS="-lcrypto $LIBS"
15384 cat >conftest.$ac_ext <<_ACEOF
15385 /* confdefs.h. */
15386 _ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h. */
15391 /* Override any gcc2 internal prototype to avoid an error. */
15392 #ifdef __cplusplus
15393 extern "C"
15394 #endif
15395 /* We use char because int might match the return type of a gcc2
15396 builtin and then its argument prototype would still apply. */
15397 char BIO_new_socket ();
15399 main ()
15401 BIO_new_socket ();
15403 return 0;
15405 _ACEOF
15406 rm -f conftest.$ac_objext conftest$ac_exeext
15407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15408 (eval $ac_link) 2>conftest.er1
15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15418 ac_status=$?
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; } &&
15421 { ac_try='test -s conftest$ac_exeext'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15424 ac_status=$?
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; }; then
15427 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"`
15428 if test "x$ac_cv_lib_soname_crypto" = "x"
15429 then
15430 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15432 else
15433 echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15436 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15438 rm -f conftest.err conftest.$ac_objext \
15439 conftest$ac_exeext conftest.$ac_ext
15440 LIBS=$ac_get_soname_save_LIBS
15442 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15443 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15444 if test "x$ac_cv_lib_soname_crypto" != xNONE
15445 then
15446 cat >>confdefs.h <<_ACEOF
15447 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15448 _ACEOF
15451 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15452 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15453 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 else
15456 ac_get_soname_save_LIBS=$LIBS
15457 LIBS="-lncurses $LIBS"
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15465 /* Override any gcc2 internal prototype to avoid an error. */
15466 #ifdef __cplusplus
15467 extern "C"
15468 #endif
15469 /* We use char because int might match the return type of a gcc2
15470 builtin and then its argument prototype would still apply. */
15471 char waddch ();
15473 main ()
15475 waddch ();
15477 return 0;
15479 _ACEOF
15480 rm -f conftest.$ac_objext conftest$ac_exeext
15481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15482 (eval $ac_link) 2>conftest.er1
15483 ac_status=$?
15484 grep -v '^ *+' conftest.er1 >conftest.err
15485 rm -f conftest.er1
15486 cat conftest.err >&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } &&
15489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; } &&
15495 { ac_try='test -s conftest$ac_exeext'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
15501 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"`
15502 if test "x$ac_cv_lib_soname_ncurses" = "x"
15503 then
15504 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15506 else
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15510 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15512 rm -f conftest.err conftest.$ac_objext \
15513 conftest$ac_exeext conftest.$ac_ext
15514 LIBS=$ac_get_soname_save_LIBS
15516 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15517 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15518 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15519 then
15520 cat >>confdefs.h <<_ACEOF
15521 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15522 _ACEOF
15525 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15526 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15527 if test "${ac_cv_lib_soname_curses+set}" = set; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 else
15530 ac_get_soname_save_LIBS=$LIBS
15531 LIBS="-lcurses $LIBS"
15532 cat >conftest.$ac_ext <<_ACEOF
15533 /* confdefs.h. */
15534 _ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h. */
15539 /* Override any gcc2 internal prototype to avoid an error. */
15540 #ifdef __cplusplus
15541 extern "C"
15542 #endif
15543 /* We use char because int might match the return type of a gcc2
15544 builtin and then its argument prototype would still apply. */
15545 char waddch ();
15547 main ()
15549 waddch ();
15551 return 0;
15553 _ACEOF
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15556 (eval $ac_link) 2>conftest.er1
15557 ac_status=$?
15558 grep -v '^ *+' conftest.er1 >conftest.err
15559 rm -f conftest.er1
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } &&
15563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15566 ac_status=$?
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; } &&
15569 { ac_try='test -s conftest$ac_exeext'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
15575 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"`
15576 if test "x$ac_cv_lib_soname_curses" = "x"
15577 then
15578 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15580 else
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15586 rm -f conftest.err conftest.$ac_objext \
15587 conftest$ac_exeext conftest.$ac_ext
15588 LIBS=$ac_get_soname_save_LIBS
15590 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15591 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15592 if test "x$ac_cv_lib_soname_curses" != xNONE
15593 then
15594 cat >>confdefs.h <<_ACEOF
15595 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15596 _ACEOF
15599 echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15600 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15601 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 else
15604 ac_get_soname_save_LIBS=$LIBS
15605 LIBS="-ljpeg $LIBS"
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h. */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15613 /* Override any gcc2 internal prototype to avoid an error. */
15614 #ifdef __cplusplus
15615 extern "C"
15616 #endif
15617 /* We use char because int might match the return type of a gcc2
15618 builtin and then its argument prototype would still apply. */
15619 char jpeg_start_decompress ();
15621 main ()
15623 jpeg_start_decompress ();
15625 return 0;
15627 _ACEOF
15628 rm -f conftest.$ac_objext conftest$ac_exeext
15629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15630 (eval $ac_link) 2>conftest.er1
15631 ac_status=$?
15632 grep -v '^ *+' conftest.er1 >conftest.err
15633 rm -f conftest.er1
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest$ac_exeext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"`
15650 if test "x$ac_cv_lib_soname_jpeg" = "x"
15651 then
15652 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15654 else
15655 echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15658 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15660 rm -f conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15662 LIBS=$ac_get_soname_save_LIBS
15664 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15665 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15666 if test "x$ac_cv_lib_soname_jpeg" != xNONE
15667 then
15668 cat >>confdefs.h <<_ACEOF
15669 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15670 _ACEOF
15673 echo "$as_me:$LINENO: checking for -lungif soname" >&5
15674 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15675 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 else
15678 ac_get_soname_save_LIBS=$LIBS
15679 LIBS="-lungif $LIBS"
15680 cat >conftest.$ac_ext <<_ACEOF
15681 /* confdefs.h. */
15682 _ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15687 /* Override any gcc2 internal prototype to avoid an error. */
15688 #ifdef __cplusplus
15689 extern "C"
15690 #endif
15691 /* We use char because int might match the return type of a gcc2
15692 builtin and then its argument prototype would still apply. */
15693 char DGifOpen ();
15695 main ()
15697 DGifOpen ();
15699 return 0;
15701 _ACEOF
15702 rm -f conftest.$ac_objext conftest$ac_exeext
15703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15704 (eval $ac_link) 2>conftest.er1
15705 ac_status=$?
15706 grep -v '^ *+' conftest.er1 >conftest.err
15707 rm -f conftest.er1
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } &&
15711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; } &&
15717 { ac_try='test -s conftest$ac_exeext'
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; }; then
15723 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"`
15724 if test "x$ac_cv_lib_soname_ungif" = "x"
15725 then
15726 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15728 else
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15732 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15734 rm -f conftest.err conftest.$ac_objext \
15735 conftest$ac_exeext conftest.$ac_ext
15736 LIBS=$ac_get_soname_save_LIBS
15738 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15739 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15740 if test "x$ac_cv_lib_soname_ungif" != xNONE
15741 then
15742 cat >>confdefs.h <<_ACEOF
15743 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15744 _ACEOF
15747 echo "$as_me:$LINENO: checking for -lgif soname" >&5
15748 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15749 if test "${ac_cv_lib_soname_gif+set}" = set; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 else
15752 ac_get_soname_save_LIBS=$LIBS
15753 LIBS="-lgif $LIBS"
15754 cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h. */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15761 /* Override any gcc2 internal prototype to avoid an error. */
15762 #ifdef __cplusplus
15763 extern "C"
15764 #endif
15765 /* We use char because int might match the return type of a gcc2
15766 builtin and then its argument prototype would still apply. */
15767 char DGifOpen ();
15769 main ()
15771 DGifOpen ();
15773 return 0;
15775 _ACEOF
15776 rm -f conftest.$ac_objext conftest$ac_exeext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15778 (eval $ac_link) 2>conftest.er1
15779 ac_status=$?
15780 grep -v '^ *+' conftest.er1 >conftest.err
15781 rm -f conftest.er1
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; } &&
15791 { ac_try='test -s conftest$ac_exeext'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; }; then
15797 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"`
15798 if test "x$ac_cv_lib_soname_gif" = "x"
15799 then
15800 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15802 else
15803 echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15806 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15808 rm -f conftest.err conftest.$ac_objext \
15809 conftest$ac_exeext conftest.$ac_ext
15810 LIBS=$ac_get_soname_save_LIBS
15812 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15813 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15814 if test "x$ac_cv_lib_soname_gif" != xNONE
15815 then
15816 cat >>confdefs.h <<_ACEOF
15817 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15818 _ACEOF
15821 echo "$as_me:$LINENO: checking for -llcms soname" >&5
15822 echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6
15823 if test "${ac_cv_lib_soname_lcms+set}" = set; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 else
15826 ac_get_soname_save_LIBS=$LIBS
15827 LIBS="-llcms $LIBS"
15828 cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h. */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15835 /* Override any gcc2 internal prototype to avoid an error. */
15836 #ifdef __cplusplus
15837 extern "C"
15838 #endif
15839 /* We use char because int might match the return type of a gcc2
15840 builtin and then its argument prototype would still apply. */
15841 char cmsOpenProfileFromFile ();
15843 main ()
15845 cmsOpenProfileFromFile ();
15847 return 0;
15849 _ACEOF
15850 rm -f conftest.$ac_objext conftest$ac_exeext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15852 (eval $ac_link) 2>conftest.er1
15853 ac_status=$?
15854 grep -v '^ *+' conftest.er1 >conftest.err
15855 rm -f conftest.er1
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
15859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; } &&
15865 { ac_try='test -s conftest$ac_exeext'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; }; then
15871 ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^ ]*\).*$/\1/"`
15872 if test "x$ac_cv_lib_soname_lcms" = "x"
15873 then
15874 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15876 else
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15882 rm -f conftest.err conftest.$ac_objext \
15883 conftest$ac_exeext conftest.$ac_ext
15884 LIBS=$ac_get_soname_save_LIBS
15886 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5
15887 echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6
15888 if test "x$ac_cv_lib_soname_lcms" != xNONE
15889 then
15890 cat >>confdefs.h <<_ACEOF
15891 #define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms"
15892 _ACEOF
15895 echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15896 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6
15897 if test "${ac_cv_lib_soname_capi20+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15899 else
15900 ac_get_soname_save_LIBS=$LIBS
15901 LIBS="-lcapi20 $LIBS"
15902 cat >conftest.$ac_ext <<_ACEOF
15903 /* confdefs.h. */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15909 /* Override any gcc2 internal prototype to avoid an error. */
15910 #ifdef __cplusplus
15911 extern "C"
15912 #endif
15913 /* We use char because int might match the return type of a gcc2
15914 builtin and then its argument prototype would still apply. */
15915 char capi20_isinstalled ();
15917 main ()
15919 capi20_isinstalled ();
15921 return 0;
15923 _ACEOF
15924 rm -f conftest.$ac_objext conftest$ac_exeext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15926 (eval $ac_link) 2>conftest.er1
15927 ac_status=$?
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
15933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; } &&
15939 { ac_try='test -s conftest$ac_exeext'
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15942 ac_status=$?
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }; then
15945 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"`
15946 if test "x$ac_cv_lib_soname_capi20" = "x"
15947 then
15948 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15950 else
15951 echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15954 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15956 rm -f conftest.err conftest.$ac_objext \
15957 conftest$ac_exeext conftest.$ac_ext
15958 LIBS=$ac_get_soname_save_LIBS
15960 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15961 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6
15962 if test "x$ac_cv_lib_soname_capi20" != xNONE
15963 then
15964 cat >>confdefs.h <<_ACEOF
15965 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15966 _ACEOF
15972 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15973 # for constant arguments. Useless!
15974 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15975 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15976 if test "${ac_cv_working_alloca_h+set}" = set; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15978 else
15979 cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h. */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985 #include <alloca.h>
15987 main ()
15989 char *p = (char *) alloca (2 * sizeof (int));
15991 return 0;
15993 _ACEOF
15994 rm -f conftest.$ac_objext conftest$ac_exeext
15995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15996 (eval $ac_link) 2>conftest.er1
15997 ac_status=$?
15998 grep -v '^ *+' conftest.er1 >conftest.err
15999 rm -f conftest.er1
16000 cat conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } &&
16003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; } &&
16009 { ac_try='test -s conftest$ac_exeext'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 ac_cv_working_alloca_h=yes
16016 else
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ac_cv_working_alloca_h=no
16022 rm -f conftest.err conftest.$ac_objext \
16023 conftest$ac_exeext conftest.$ac_ext
16025 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16026 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16027 if test $ac_cv_working_alloca_h = yes; then
16029 cat >>confdefs.h <<\_ACEOF
16030 #define HAVE_ALLOCA_H 1
16031 _ACEOF
16035 echo "$as_me:$LINENO: checking for alloca" >&5
16036 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16037 if test "${ac_cv_func_alloca_works+set}" = set; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 else
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h. */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 #ifdef __GNUC__
16047 # define alloca __builtin_alloca
16048 #else
16049 # ifdef _MSC_VER
16050 # include <malloc.h>
16051 # define alloca _alloca
16052 # else
16053 # if HAVE_ALLOCA_H
16054 # include <alloca.h>
16055 # else
16056 # ifdef _AIX
16057 #pragma alloca
16058 # else
16059 # ifndef alloca /* predefined by HP cc +Olibcalls */
16060 char *alloca ();
16061 # endif
16062 # endif
16063 # endif
16064 # endif
16065 #endif
16068 main ()
16070 char *p = (char *) alloca (1);
16072 return 0;
16074 _ACEOF
16075 rm -f conftest.$ac_objext conftest$ac_exeext
16076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16077 (eval $ac_link) 2>conftest.er1
16078 ac_status=$?
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
16084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest$ac_exeext'
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 ac_cv_func_alloca_works=yes
16097 else
16098 echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16101 ac_cv_func_alloca_works=no
16103 rm -f conftest.err conftest.$ac_objext \
16104 conftest$ac_exeext conftest.$ac_ext
16106 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16107 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16109 if test $ac_cv_func_alloca_works = yes; then
16111 cat >>confdefs.h <<\_ACEOF
16112 #define HAVE_ALLOCA 1
16113 _ACEOF
16115 else
16116 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16117 # that cause trouble. Some versions do not even contain alloca or
16118 # contain a buggy version. If you still want to use their alloca,
16119 # use ar to extract alloca.o from them instead of compiling alloca.c.
16121 ALLOCA=alloca.$ac_objext
16123 cat >>confdefs.h <<\_ACEOF
16124 #define C_ALLOCA 1
16125 _ACEOF
16128 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16129 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16130 if test "${ac_cv_os_cray+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16132 else
16133 cat >conftest.$ac_ext <<_ACEOF
16134 /* confdefs.h. */
16135 _ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h. */
16139 #if defined(CRAY) && ! defined(CRAY2)
16140 webecray
16141 #else
16142 wenotbecray
16143 #endif
16145 _ACEOF
16146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16147 $EGREP "webecray" >/dev/null 2>&1; then
16148 ac_cv_os_cray=yes
16149 else
16150 ac_cv_os_cray=no
16152 rm -f conftest*
16155 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16156 echo "${ECHO_T}$ac_cv_os_cray" >&6
16157 if test $ac_cv_os_cray = yes; then
16158 for ac_func in _getb67 GETB67 getb67; do
16159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16160 echo "$as_me:$LINENO: checking for $ac_func" >&5
16161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16162 if eval "test \"\${$as_ac_var+set}\" = set"; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 else
16165 cat >conftest.$ac_ext <<_ACEOF
16166 /* confdefs.h. */
16167 _ACEOF
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h. */
16171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16173 #define $ac_func innocuous_$ac_func
16175 /* System header to define __stub macros and hopefully few prototypes,
16176 which can conflict with char $ac_func (); below.
16177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16178 <limits.h> exists even on freestanding compilers. */
16180 #ifdef __STDC__
16181 # include <limits.h>
16182 #else
16183 # include <assert.h>
16184 #endif
16186 #undef $ac_func
16188 /* Override any gcc2 internal prototype to avoid an error. */
16189 #ifdef __cplusplus
16190 extern "C"
16192 #endif
16193 /* We use char because int might match the return type of a gcc2
16194 builtin and then its argument prototype would still apply. */
16195 char $ac_func ();
16196 /* The GNU C library defines this for functions which it implements
16197 to always fail with ENOSYS. Some functions are actually named
16198 something starting with __ and the normal name is an alias. */
16199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16200 choke me
16201 #else
16202 char (*f) () = $ac_func;
16203 #endif
16204 #ifdef __cplusplus
16206 #endif
16209 main ()
16211 return f != $ac_func;
16213 return 0;
16215 _ACEOF
16216 rm -f conftest.$ac_objext conftest$ac_exeext
16217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16218 (eval $ac_link) 2>conftest.er1
16219 ac_status=$?
16220 grep -v '^ *+' conftest.er1 >conftest.err
16221 rm -f conftest.er1
16222 cat conftest.err >&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } &&
16225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16228 ac_status=$?
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; } &&
16231 { ac_try='test -s conftest$ac_exeext'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 eval "$as_ac_var=yes"
16238 else
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 eval "$as_ac_var=no"
16244 rm -f conftest.err conftest.$ac_objext \
16245 conftest$ac_exeext conftest.$ac_ext
16247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16249 if test `eval echo '${'$as_ac_var'}'` = yes; then
16251 cat >>confdefs.h <<_ACEOF
16252 #define CRAY_STACKSEG_END $ac_func
16253 _ACEOF
16255 break
16258 done
16261 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16262 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16263 if test "${ac_cv_c_stack_direction+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16265 else
16266 if test "$cross_compiling" = yes; then
16267 ac_cv_c_stack_direction=0
16268 else
16269 cat >conftest.$ac_ext <<_ACEOF
16270 /* confdefs.h. */
16271 _ACEOF
16272 cat confdefs.h >>conftest.$ac_ext
16273 cat >>conftest.$ac_ext <<_ACEOF
16274 /* end confdefs.h. */
16276 find_stack_direction ()
16278 static char *addr = 0;
16279 auto char dummy;
16280 if (addr == 0)
16282 addr = &dummy;
16283 return find_stack_direction ();
16285 else
16286 return (&dummy > addr) ? 1 : -1;
16290 main ()
16292 exit (find_stack_direction () < 0);
16294 _ACEOF
16295 rm -f conftest$ac_exeext
16296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16297 (eval $ac_link) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16303 ac_status=$?
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16306 ac_cv_c_stack_direction=1
16307 else
16308 echo "$as_me: program exited with status $ac_status" >&5
16309 echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16312 ( exit $ac_status )
16313 ac_cv_c_stack_direction=-1
16315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16318 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16319 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16321 cat >>confdefs.h <<_ACEOF
16322 #define STACK_DIRECTION $ac_cv_c_stack_direction
16323 _ACEOF
16388 for ac_func in \
16389 _lwp_create \
16390 _lwp_self \
16391 _pclose \
16392 _popen \
16393 _snprintf \
16394 _spawnvp \
16395 _stricmp \
16396 _strnicmp \
16397 _vsnprintf \
16398 chsize \
16399 clone \
16400 epoll_create \
16401 ffs \
16402 finite \
16403 fork \
16404 fpclass \
16405 fstatfs \
16406 fstatvfs \
16407 ftruncate \
16408 futimes \
16409 futimesat \
16410 getnetbyname \
16411 getopt_long \
16412 getpagesize \
16413 getprotobyname \
16414 getprotobynumber \
16415 getpwuid \
16416 getservbyport \
16417 gettid \
16418 gettimeofday \
16419 getuid \
16420 inet_network \
16421 lstat \
16422 memmove \
16423 mmap \
16424 pclose \
16425 popen \
16426 pread \
16427 pwrite \
16428 readlink \
16429 rfork \
16430 sched_yield \
16431 select \
16432 sendmsg \
16433 settimeofday \
16434 sigaltstack \
16435 sigprocmask \
16436 snprintf \
16437 spawnvp \
16438 statfs \
16439 statvfs \
16440 strcasecmp \
16441 strerror \
16442 strncasecmp \
16443 tcgetattr \
16444 timegm \
16445 usleep \
16446 vsnprintf \
16447 wait4 \
16448 waitpid \
16451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16452 echo "$as_me:$LINENO: checking for $ac_func" >&5
16453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16454 if eval "test \"\${$as_ac_var+set}\" = set"; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16456 else
16457 cat >conftest.$ac_ext <<_ACEOF
16458 /* confdefs.h. */
16459 _ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16465 #define $ac_func innocuous_$ac_func
16467 /* System header to define __stub macros and hopefully few prototypes,
16468 which can conflict with char $ac_func (); below.
16469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16470 <limits.h> exists even on freestanding compilers. */
16472 #ifdef __STDC__
16473 # include <limits.h>
16474 #else
16475 # include <assert.h>
16476 #endif
16478 #undef $ac_func
16480 /* Override any gcc2 internal prototype to avoid an error. */
16481 #ifdef __cplusplus
16482 extern "C"
16484 #endif
16485 /* We use char because int might match the return type of a gcc2
16486 builtin and then its argument prototype would still apply. */
16487 char $ac_func ();
16488 /* The GNU C library defines this for functions which it implements
16489 to always fail with ENOSYS. Some functions are actually named
16490 something starting with __ and the normal name is an alias. */
16491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16492 choke me
16493 #else
16494 char (*f) () = $ac_func;
16495 #endif
16496 #ifdef __cplusplus
16498 #endif
16501 main ()
16503 return f != $ac_func;
16505 return 0;
16507 _ACEOF
16508 rm -f conftest.$ac_objext conftest$ac_exeext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16510 (eval $ac_link) 2>conftest.er1
16511 ac_status=$?
16512 grep -v '^ *+' conftest.er1 >conftest.err
16513 rm -f conftest.er1
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; } &&
16523 { ac_try='test -s conftest$ac_exeext'
16524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525 (eval $ac_try) 2>&5
16526 ac_status=$?
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; }; then
16529 eval "$as_ac_var=yes"
16530 else
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16534 eval "$as_ac_var=no"
16536 rm -f conftest.err conftest.$ac_objext \
16537 conftest$ac_exeext conftest.$ac_ext
16539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16541 if test `eval echo '${'$as_ac_var'}'` = yes; then
16542 cat >>confdefs.h <<_ACEOF
16543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16544 _ACEOF
16547 done
16553 for ac_header in sys/mount.h sys/user.h
16555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16556 echo "$as_me:$LINENO: checking for $ac_header" >&5
16557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 else
16561 cat >conftest.$ac_ext <<_ACEOF
16562 /* confdefs.h. */
16563 _ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16567 #include <sys/types.h>
16568 #if HAVE_SYS_PARAM_H
16569 # include <sys/param.h>
16570 #endif
16572 #include <$ac_header>
16573 _ACEOF
16574 rm -f conftest.$ac_objext
16575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16576 (eval $ac_compile) 2>conftest.er1
16577 ac_status=$?
16578 grep -v '^ *+' conftest.er1 >conftest.err
16579 rm -f conftest.er1
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } &&
16583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; } &&
16589 { ac_try='test -s conftest.$ac_objext'
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 eval "$as_ac_Header=yes"
16596 else
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 eval "$as_ac_Header=no"
16602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16607 cat >>confdefs.h <<_ACEOF
16608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16609 _ACEOF
16613 done
16621 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16624 echo "$as_me:$LINENO: checking for $ac_header" >&5
16625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 else
16629 cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h. */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 #include <sys/types.h>
16636 #if HAVE_SYS_SOCKET_H
16637 # include <sys/socket.h>
16638 #endif
16640 #include <$ac_header>
16641 _ACEOF
16642 rm -f conftest.$ac_objext
16643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16644 (eval $ac_compile) 2>conftest.er1
16645 ac_status=$?
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest.$ac_objext'
16658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659 (eval $ac_try) 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16663 eval "$as_ac_Header=yes"
16664 else
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 eval "$as_ac_Header=no"
16670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16675 cat >>confdefs.h <<_ACEOF
16676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16677 _ACEOF
16681 done
16685 for ac_header in resolv.h
16687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16688 echo "$as_me:$LINENO: checking for $ac_header" >&5
16689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 else
16693 cat >conftest.$ac_ext <<_ACEOF
16694 /* confdefs.h. */
16695 _ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16699 #include <sys/types.h>
16700 #if HAVE_SYS_SOCKET_H
16701 # include <sys/socket.h>
16702 #endif
16703 #if HAVE_NETINET_IN_H
16704 # include <netinet/in.h>
16705 #endif
16706 #if HAVE_ARPA_NAMESER_H
16707 # include <arpa/nameser.h>
16708 #endif
16710 #include <$ac_header>
16711 _ACEOF
16712 rm -f conftest.$ac_objext
16713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16714 (eval $ac_compile) 2>conftest.er1
16715 ac_status=$?
16716 grep -v '^ *+' conftest.er1 >conftest.err
16717 rm -f conftest.er1
16718 cat conftest.err >&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; } &&
16727 { ac_try='test -s conftest.$ac_objext'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 eval "$as_ac_Header=yes"
16734 else
16735 echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16738 eval "$as_ac_Header=no"
16740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16745 cat >>confdefs.h <<_ACEOF
16746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16747 _ACEOF
16751 done
16755 for ac_header in ucontext.h
16757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16758 echo "$as_me:$LINENO: checking for $ac_header" >&5
16759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16762 else
16763 cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h. */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #include <signal.h>
16771 #include <$ac_header>
16772 _ACEOF
16773 rm -f conftest.$ac_objext
16774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16775 (eval $ac_compile) 2>conftest.er1
16776 ac_status=$?
16777 grep -v '^ *+' conftest.er1 >conftest.err
16778 rm -f conftest.er1
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
16782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; } &&
16788 { ac_try='test -s conftest.$ac_objext'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16794 eval "$as_ac_Header=yes"
16795 else
16796 echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16799 eval "$as_ac_Header=no"
16801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16806 cat >>confdefs.h <<_ACEOF
16807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16808 _ACEOF
16812 done
16817 for ac_header in linux/videodev.h
16819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16820 echo "$as_me:$LINENO: checking for $ac_header" >&5
16821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825 cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h. */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 #ifdef HAVE_SYS_TIME_H
16832 #include <sys/time.h>
16833 #endif
16834 #ifdef HAVE_ASM_TYPES_H
16835 #include <asm/types.h>
16836 #endif
16838 #include <$ac_header>
16839 _ACEOF
16840 rm -f conftest.$ac_objext
16841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16842 (eval $ac_compile) 2>conftest.er1
16843 ac_status=$?
16844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } &&
16849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; } &&
16855 { ac_try='test -s conftest.$ac_objext'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 eval "$as_ac_Header=yes"
16862 else
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 eval "$as_ac_Header=no"
16868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16873 cat >>confdefs.h <<_ACEOF
16874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16875 _ACEOF
16879 done
16883 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16884 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16885 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 else
16888 cat >conftest.$ac_ext <<_ACEOF
16889 /* confdefs.h. */
16890 _ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16894 #include <sys/types.h>
16895 #ifdef HAVE_SYS_SOCKET_H
16896 # include <sys/socket.h>
16897 #endif
16898 #include <netipx/ipx.h>
16900 main ()
16902 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16904 return 0;
16906 _ACEOF
16907 rm -f conftest.$ac_objext
16908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16909 (eval $ac_compile) 2>conftest.er1
16910 ac_status=$?
16911 grep -v '^ *+' conftest.er1 >conftest.err
16912 rm -f conftest.er1
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
16916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; } &&
16922 { ac_try='test -s conftest.$ac_objext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_cv_c_ipx_gnu="yes"
16929 else
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16933 ac_cv_c_ipx_gnu="no"
16935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16938 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16939 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16940 if test "$ac_cv_c_ipx_gnu" = "yes"
16941 then
16943 cat >>confdefs.h <<\_ACEOF
16944 #define HAVE_IPX_GNU 1
16945 _ACEOF
16949 if test "$ac_cv_c_ipx_gnu" = "no"
16950 then
16951 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16952 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16953 if test "${ac_cv_c_ipx_linux+set}" = set; then
16954 echo $ECHO_N "(cached) $ECHO_C" >&6
16955 else
16956 cat >conftest.$ac_ext <<_ACEOF
16957 /* confdefs.h. */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16962 #include <sys/types.h>
16963 #ifdef HAVE_SYS_SOCKET_H
16964 # include <sys/socket.h>
16965 #endif
16966 #include <asm/types.h>
16967 #include <linux/ipx.h>
16969 main ()
16971 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16973 return 0;
16975 _ACEOF
16976 rm -f conftest.$ac_objext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16978 (eval $ac_compile) 2>conftest.er1
16979 ac_status=$?
16980 grep -v '^ *+' conftest.er1 >conftest.err
16981 rm -f conftest.er1
16982 cat conftest.err >&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } &&
16985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; } &&
16991 { ac_try='test -s conftest.$ac_objext'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 ac_cv_c_ipx_linux="yes"
16998 else
16999 echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17002 ac_cv_c_ipx_linux="no"
17004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17007 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17008 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17009 if test "$ac_cv_c_ipx_linux" = "yes"
17010 then
17012 cat >>confdefs.h <<\_ACEOF
17013 #define HAVE_IPX_LINUX 1
17014 _ACEOF
17020 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17021 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17022 if test "${ac_cv_c_const+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025 cat >conftest.$ac_ext <<_ACEOF
17026 /* confdefs.h. */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17033 main ()
17035 /* FIXME: Include the comments suggested by Paul. */
17036 #ifndef __cplusplus
17037 /* Ultrix mips cc rejects this. */
17038 typedef int charset[2];
17039 const charset x;
17040 /* SunOS 4.1.1 cc rejects this. */
17041 char const *const *ccp;
17042 char **p;
17043 /* NEC SVR4.0.2 mips cc rejects this. */
17044 struct point {int x, y;};
17045 static struct point const zero = {0,0};
17046 /* AIX XL C 1.02.0.0 rejects this.
17047 It does not let you subtract one const X* pointer from another in
17048 an arm of an if-expression whose if-part is not a constant
17049 expression */
17050 const char *g = "string";
17051 ccp = &g + (g ? g-g : 0);
17052 /* HPUX 7.0 cc rejects these. */
17053 ++ccp;
17054 p = (char**) ccp;
17055 ccp = (char const *const *) p;
17056 { /* SCO 3.2v4 cc rejects this. */
17057 char *t;
17058 char const *s = 0 ? (char *) 0 : (char const *) 0;
17060 *t++ = 0;
17062 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17063 int x[] = {25, 17};
17064 const int *foo = &x[0];
17065 ++foo;
17067 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17068 typedef const int *iptr;
17069 iptr p = 0;
17070 ++p;
17072 { /* AIX XL C 1.02.0.0 rejects this saying
17073 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17074 struct s { int j; const int *ap[3]; };
17075 struct s *b; b->j = 5;
17077 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17078 const int foo = 10;
17080 #endif
17083 return 0;
17085 _ACEOF
17086 rm -f conftest.$ac_objext
17087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17088 (eval $ac_compile) 2>conftest.er1
17089 ac_status=$?
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
17095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest.$ac_objext'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; }; then
17107 ac_cv_c_const=yes
17108 else
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 ac_cv_c_const=no
17114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17116 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17117 echo "${ECHO_T}$ac_cv_c_const" >&6
17118 if test $ac_cv_c_const = no; then
17120 cat >>confdefs.h <<\_ACEOF
17121 #define const
17122 _ACEOF
17126 echo "$as_me:$LINENO: checking for inline" >&5
17127 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17128 if test "${ac_cv_c_inline+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 else
17131 ac_cv_c_inline=no
17132 for ac_kw in inline __inline__ __inline; do
17133 cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h. */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 #ifndef __cplusplus
17140 typedef int foo_t;
17141 static $ac_kw foo_t static_foo () {return 0; }
17142 $ac_kw foo_t foo () {return 0; }
17143 #endif
17145 _ACEOF
17146 rm -f conftest.$ac_objext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17148 (eval $ac_compile) 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; } &&
17161 { ac_try='test -s conftest.$ac_objext'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 ac_cv_c_inline=$ac_kw; break
17168 else
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17174 done
17177 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17178 echo "${ECHO_T}$ac_cv_c_inline" >&6
17181 case $ac_cv_c_inline in
17182 inline | yes) ;;
17184 case $ac_cv_c_inline in
17185 no) ac_val=;;
17186 *) ac_val=$ac_cv_c_inline;;
17187 esac
17188 cat >>confdefs.h <<_ACEOF
17189 #ifndef __cplusplus
17190 #define inline $ac_val
17191 #endif
17192 _ACEOF
17194 esac
17196 echo "$as_me:$LINENO: checking for mode_t" >&5
17197 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17198 if test "${ac_cv_type_mode_t+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201 cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h. */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17207 $ac_includes_default
17209 main ()
17211 if ((mode_t *) 0)
17212 return 0;
17213 if (sizeof (mode_t))
17214 return 0;
17216 return 0;
17218 _ACEOF
17219 rm -f conftest.$ac_objext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17221 (eval $ac_compile) 2>conftest.er1
17222 ac_status=$?
17223 grep -v '^ *+' conftest.er1 >conftest.err
17224 rm -f conftest.er1
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; } &&
17234 { ac_try='test -s conftest.$ac_objext'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17237 ac_status=$?
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17240 ac_cv_type_mode_t=yes
17241 else
17242 echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17245 ac_cv_type_mode_t=no
17247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17249 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17250 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17251 if test $ac_cv_type_mode_t = yes; then
17253 cat >>confdefs.h <<_ACEOF
17254 #define HAVE_MODE_T 1
17255 _ACEOF
17259 echo "$as_me:$LINENO: checking for off_t" >&5
17260 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17261 if test "${ac_cv_type_off_t+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 else
17264 cat >conftest.$ac_ext <<_ACEOF
17265 /* confdefs.h. */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 $ac_includes_default
17272 main ()
17274 if ((off_t *) 0)
17275 return 0;
17276 if (sizeof (off_t))
17277 return 0;
17279 return 0;
17281 _ACEOF
17282 rm -f conftest.$ac_objext
17283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17284 (eval $ac_compile) 2>conftest.er1
17285 ac_status=$?
17286 grep -v '^ *+' conftest.er1 >conftest.err
17287 rm -f conftest.er1
17288 cat conftest.err >&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } &&
17291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; } &&
17297 { ac_try='test -s conftest.$ac_objext'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 ac_cv_type_off_t=yes
17304 else
17305 echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 ac_cv_type_off_t=no
17310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17312 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17313 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17314 if test $ac_cv_type_off_t = yes; then
17316 cat >>confdefs.h <<_ACEOF
17317 #define HAVE_OFF_T 1
17318 _ACEOF
17322 echo "$as_me:$LINENO: checking for pid_t" >&5
17323 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17324 if test "${ac_cv_type_pid_t+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 else
17327 cat >conftest.$ac_ext <<_ACEOF
17328 /* confdefs.h. */
17329 _ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333 $ac_includes_default
17335 main ()
17337 if ((pid_t *) 0)
17338 return 0;
17339 if (sizeof (pid_t))
17340 return 0;
17342 return 0;
17344 _ACEOF
17345 rm -f conftest.$ac_objext
17346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17347 (eval $ac_compile) 2>conftest.er1
17348 ac_status=$?
17349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
17354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; } &&
17360 { ac_try='test -s conftest.$ac_objext'
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; }; then
17366 ac_cv_type_pid_t=yes
17367 else
17368 echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17371 ac_cv_type_pid_t=no
17373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17375 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17376 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17377 if test $ac_cv_type_pid_t = yes; then
17379 cat >>confdefs.h <<_ACEOF
17380 #define HAVE_PID_T 1
17381 _ACEOF
17385 echo "$as_me:$LINENO: checking for size_t" >&5
17386 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17387 if test "${ac_cv_type_size_t+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 else
17390 cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h. */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 $ac_includes_default
17398 main ()
17400 if ((size_t *) 0)
17401 return 0;
17402 if (sizeof (size_t))
17403 return 0;
17405 return 0;
17407 _ACEOF
17408 rm -f conftest.$ac_objext
17409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17410 (eval $ac_compile) 2>conftest.er1
17411 ac_status=$?
17412 grep -v '^ *+' conftest.er1 >conftest.err
17413 rm -f conftest.er1
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; } &&
17423 { ac_try='test -s conftest.$ac_objext'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429 ac_cv_type_size_t=yes
17430 else
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 ac_cv_type_size_t=no
17436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17438 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17439 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17440 if test $ac_cv_type_size_t = yes; then
17442 cat >>confdefs.h <<_ACEOF
17443 #define HAVE_SIZE_T 1
17444 _ACEOF
17448 echo "$as_me:$LINENO: checking for ssize_t" >&5
17449 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17450 if test "${ac_cv_type_ssize_t+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17452 else
17453 cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h. */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 $ac_includes_default
17461 main ()
17463 if ((ssize_t *) 0)
17464 return 0;
17465 if (sizeof (ssize_t))
17466 return 0;
17468 return 0;
17470 _ACEOF
17471 rm -f conftest.$ac_objext
17472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17473 (eval $ac_compile) 2>conftest.er1
17474 ac_status=$?
17475 grep -v '^ *+' conftest.er1 >conftest.err
17476 rm -f conftest.er1
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482 (eval $ac_try) 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; } &&
17486 { ac_try='test -s conftest.$ac_objext'
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 ac_cv_type_ssize_t=yes
17493 else
17494 echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17497 ac_cv_type_ssize_t=no
17499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17501 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17502 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17503 if test $ac_cv_type_ssize_t = yes; then
17505 cat >>confdefs.h <<_ACEOF
17506 #define HAVE_SSIZE_T 1
17507 _ACEOF
17511 echo "$as_me:$LINENO: checking for long long" >&5
17512 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17513 if test "${ac_cv_type_long_long+set}" = set; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
17515 else
17516 cat >conftest.$ac_ext <<_ACEOF
17517 /* confdefs.h. */
17518 _ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h. */
17522 $ac_includes_default
17524 main ()
17526 if ((long long *) 0)
17527 return 0;
17528 if (sizeof (long long))
17529 return 0;
17531 return 0;
17533 _ACEOF
17534 rm -f conftest.$ac_objext
17535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17536 (eval $ac_compile) 2>conftest.er1
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
17543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest.$ac_objext'
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555 ac_cv_type_long_long=yes
17556 else
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ac_cv_type_long_long=no
17562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17564 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17565 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17566 if test $ac_cv_type_long_long = yes; then
17568 cat >>confdefs.h <<_ACEOF
17569 #define HAVE_LONG_LONG 1
17570 _ACEOF
17574 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17575 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17576 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17578 else
17579 cat >conftest.$ac_ext <<_ACEOF
17580 /* confdefs.h. */
17581 _ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17585 $ac_includes_default
17587 main ()
17589 if ((fsblkcnt_t *) 0)
17590 return 0;
17591 if (sizeof (fsblkcnt_t))
17592 return 0;
17594 return 0;
17596 _ACEOF
17597 rm -f conftest.$ac_objext
17598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17599 (eval $ac_compile) 2>conftest.er1
17600 ac_status=$?
17601 grep -v '^ *+' conftest.er1 >conftest.err
17602 rm -f conftest.er1
17603 cat conftest.err >&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } &&
17606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try='test -s conftest.$ac_objext'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ac_cv_type_fsblkcnt_t=yes
17619 else
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 ac_cv_type_fsblkcnt_t=no
17625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17627 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17628 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17629 if test $ac_cv_type_fsblkcnt_t = yes; then
17631 cat >>confdefs.h <<_ACEOF
17632 #define HAVE_FSBLKCNT_T 1
17633 _ACEOF
17637 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17638 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17639 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17641 else
17642 cat >conftest.$ac_ext <<_ACEOF
17643 /* confdefs.h. */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17648 $ac_includes_default
17650 main ()
17652 if ((fsfilcnt_t *) 0)
17653 return 0;
17654 if (sizeof (fsfilcnt_t))
17655 return 0;
17657 return 0;
17659 _ACEOF
17660 rm -f conftest.$ac_objext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17662 (eval $ac_compile) 2>conftest.er1
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
17669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; } &&
17675 { ac_try='test -s conftest.$ac_objext'
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 ac_cv_type_fsfilcnt_t=yes
17682 else
17683 echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 ac_cv_type_fsfilcnt_t=no
17688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17690 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17691 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17692 if test $ac_cv_type_fsfilcnt_t = yes; then
17694 cat >>confdefs.h <<_ACEOF
17695 #define HAVE_FSFILCNT_T 1
17696 _ACEOF
17701 echo "$as_me:$LINENO: checking for sigset_t" >&5
17702 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
17703 if test "${ac_cv_type_sigset_t+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h. */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 #include <signal.h>
17715 main ()
17717 if ((sigset_t *) 0)
17718 return 0;
17719 if (sizeof (sigset_t))
17720 return 0;
17722 return 0;
17724 _ACEOF
17725 rm -f conftest.$ac_objext
17726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17727 (eval $ac_compile) 2>conftest.er1
17728 ac_status=$?
17729 grep -v '^ *+' conftest.er1 >conftest.err
17730 rm -f conftest.er1
17731 cat conftest.err >&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } &&
17734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; } &&
17740 { ac_try='test -s conftest.$ac_objext'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; }; then
17746 ac_cv_type_sigset_t=yes
17747 else
17748 echo "$as_me: failed program was:" >&5
17749 sed 's/^/| /' conftest.$ac_ext >&5
17751 ac_cv_type_sigset_t=no
17753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17755 echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17756 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
17757 if test $ac_cv_type_sigset_t = yes; then
17759 cat >>confdefs.h <<_ACEOF
17760 #define HAVE_SIGSET_T 1
17761 _ACEOF
17767 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17768 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17769 if test "${wine_cv_linux_input_h+set}" = set; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772 cat >conftest.$ac_ext <<_ACEOF
17773 /* confdefs.h. */
17774 _ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17779 #include <linux/input.h>
17782 main ()
17785 int foo = EVIOCGBIT(EV_ABS,42);
17786 int bar = BTN_PINKIE;
17787 int fortytwo = 42;
17790 return 0;
17792 _ACEOF
17793 rm -f conftest.$ac_objext
17794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17795 (eval $ac_compile) 2>conftest.er1
17796 ac_status=$?
17797 grep -v '^ *+' conftest.er1 >conftest.err
17798 rm -f conftest.er1
17799 cat conftest.err >&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
17802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; } &&
17808 { ac_try='test -s conftest.$ac_objext'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 wine_cv_linux_input_h=yes
17815 else
17816 echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17819 wine_cv_linux_input_h=no
17821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17824 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17825 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17826 if test "$wine_cv_linux_input_h" = "yes"
17827 then
17829 cat >>confdefs.h <<\_ACEOF
17830 #define HAVE_CORRECT_LINUXINPUT_H 1
17831 _ACEOF
17835 echo "$as_me:$LINENO: checking for sigaddset" >&5
17836 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6
17837 if test "${wine_cv_have_sigaddset+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17839 else
17840 cat >conftest.$ac_ext <<_ACEOF
17841 /* confdefs.h. */
17842 _ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17846 #include <signal.h>
17848 main ()
17850 sigset_t set; sigaddset(&set,SIGTERM);
17852 return 0;
17854 _ACEOF
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17857 (eval $ac_link) 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest$ac_exeext'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 wine_cv_have_sigaddset=yes
17877 else
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 wine_cv_have_sigaddset=no
17883 rm -f conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17886 echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17887 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6
17888 if test "$wine_cv_have_sigaddset" = "yes"
17889 then
17891 cat >>confdefs.h <<\_ACEOF
17892 #define HAVE_SIGADDSET 1
17893 _ACEOF
17898 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17899 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17900 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903 cat >conftest.$ac_ext <<_ACEOF
17904 /* confdefs.h. */
17905 _ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h. */
17910 #include <netdb.h>
17913 main ()
17916 char *name=NULL;
17917 struct hostent he;
17918 struct hostent *result;
17919 char *buf=NULL;
17920 int bufsize=0;
17921 int res,errnr;
17922 char *addr=NULL;
17923 int addrlen=0;
17924 int addrtype=0;
17925 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17926 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17929 return 0;
17931 _ACEOF
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17934 (eval $ac_link) 2>conftest.er1
17935 ac_status=$?
17936 grep -v '^ *+' conftest.er1 >conftest.err
17937 rm -f conftest.er1
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943 (eval $ac_try) 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; } &&
17947 { ac_try='test -s conftest$ac_exeext'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17953 wine_cv_linux_gethostbyname_r_6=yes
17954 else
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17958 wine_cv_linux_gethostbyname_r_6=no
17961 rm -f conftest.err conftest.$ac_objext \
17962 conftest$ac_exeext conftest.$ac_ext
17965 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17966 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17967 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17968 then
17970 cat >>confdefs.h <<\_ACEOF
17971 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17972 _ACEOF
17976 if test "$ac_cv_header_linux_joystick_h" = "yes"
17977 then
17978 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17979 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17980 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17983 cat >conftest.$ac_ext <<_ACEOF
17984 /* confdefs.h. */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17990 #include <sys/ioctl.h>
17991 #include <linux/joystick.h>
17993 struct js_event blub;
17994 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17995 #error "no 2.2 header"
17996 #endif
17999 main ()
18001 /*empty*/
18003 return 0;
18005 _ACEOF
18006 rm -f conftest.$ac_objext
18007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18008 (eval $ac_compile) 2>conftest.er1
18009 ac_status=$?
18010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
18015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; } &&
18021 { ac_try='test -s conftest.$ac_objext'
18022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; }; then
18027 wine_cv_linux_joystick_22_api=yes
18028 else
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 wine_cv_linux_joystick_22_api=no
18034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18037 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18038 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
18039 if test "$wine_cv_linux_joystick_22_api" = "yes"
18040 then
18042 cat >>confdefs.h <<\_ACEOF
18043 #define HAVE_LINUX_22_JOYSTICK_API 1
18044 _ACEOF
18050 if test "$ac_cv_header_sys_vfs_h" = "yes"
18051 then
18052 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
18053 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18054 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 else
18057 cat >conftest.$ac_ext <<_ACEOF
18058 /* confdefs.h. */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18064 #include <sys/types.h>
18065 #ifdef HAVE_SYS_PARAM_H
18066 # include <sys/param.h>
18067 #endif
18068 #include <sys/vfs.h>
18071 main ()
18074 struct statfs stfs;
18076 memset(&stfs,0,sizeof(stfs));
18079 return 0;
18081 _ACEOF
18082 rm -f conftest.$ac_objext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18084 (eval $ac_compile) 2>conftest.er1
18085 ac_status=$?
18086 grep -v '^ *+' conftest.er1 >conftest.err
18087 rm -f conftest.er1
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try='test -s conftest.$ac_objext'
18098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 wine_cv_sys_vfs_has_statfs=yes
18104 else
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 wine_cv_sys_vfs_has_statfs=no
18111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18114 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18115 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18116 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18117 then
18119 cat >>confdefs.h <<\_ACEOF
18120 #define STATFS_DEFINED_BY_SYS_VFS 1
18121 _ACEOF
18126 if test "$ac_cv_header_sys_statfs_h" = "yes"
18127 then
18128 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18129 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18130 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133 cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h. */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18140 #include <sys/types.h>
18141 #ifdef HAVE_SYS_PARAM_H
18142 # include <sys/param.h>
18143 #endif
18144 #include <sys/statfs.h>
18147 main ()
18150 struct statfs stfs;
18153 return 0;
18155 _ACEOF
18156 rm -f conftest.$ac_objext
18157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18158 (eval $ac_compile) 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest.$ac_objext'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 wine_cv_sys_statfs_has_statfs=yes
18178 else
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18182 wine_cv_sys_statfs_has_statfs=no
18185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18188 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18189 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18190 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18191 then
18193 cat >>confdefs.h <<\_ACEOF
18194 #define STATFS_DEFINED_BY_SYS_STATFS 1
18195 _ACEOF
18200 if test "$ac_cv_header_sys_mount_h" = "yes"
18201 then
18202 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18203 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18204 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18205 echo $ECHO_N "(cached) $ECHO_C" >&6
18206 else
18207 cat >conftest.$ac_ext <<_ACEOF
18208 /* confdefs.h. */
18209 _ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h. */
18214 #include <sys/types.h>
18215 #ifdef HAVE_SYS_PARAM_H
18216 # include <sys/param.h>
18217 #endif
18218 #include <sys/mount.h>
18221 main ()
18224 struct statfs stfs;
18227 return 0;
18229 _ACEOF
18230 rm -f conftest.$ac_objext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18232 (eval $ac_compile) 2>conftest.er1
18233 ac_status=$?
18234 grep -v '^ *+' conftest.er1 >conftest.err
18235 rm -f conftest.er1
18236 cat conftest.err >&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } &&
18239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try='test -s conftest.$ac_objext'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 wine_cv_sys_mount_has_statfs=yes
18252 else
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 wine_cv_sys_mount_has_statfs=no
18259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18262 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18263 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18264 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18265 then
18267 cat >>confdefs.h <<\_ACEOF
18268 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18269 _ACEOF
18275 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18276 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18277 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280 cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h. */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h. */
18286 #include <sys/types.h>
18287 #ifdef HAVE_SYS_PARAM_H
18288 # include <sys/param.h>
18289 #endif
18290 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18291 # include <sys/mount.h>
18292 #else
18293 # ifdef STATFS_DEFINED_BY_SYS_VFS
18294 # include <sys/vfs.h>
18295 # else
18296 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18297 # include <sys/statfs.h>
18298 # endif
18299 # endif
18300 #endif
18303 main ()
18305 static struct statfs ac_aggr;
18306 if (ac_aggr.f_bfree)
18307 return 0;
18309 return 0;
18311 _ACEOF
18312 rm -f conftest.$ac_objext
18313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18314 (eval $ac_compile) 2>conftest.er1
18315 ac_status=$?
18316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
18321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; } &&
18327 { ac_try='test -s conftest.$ac_objext'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_cv_member_struct_statfs_f_bfree=yes
18334 else
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h. */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18344 #include <sys/types.h>
18345 #ifdef HAVE_SYS_PARAM_H
18346 # include <sys/param.h>
18347 #endif
18348 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18349 # include <sys/mount.h>
18350 #else
18351 # ifdef STATFS_DEFINED_BY_SYS_VFS
18352 # include <sys/vfs.h>
18353 # else
18354 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18355 # include <sys/statfs.h>
18356 # endif
18357 # endif
18358 #endif
18361 main ()
18363 static struct statfs ac_aggr;
18364 if (sizeof ac_aggr.f_bfree)
18365 return 0;
18367 return 0;
18369 _ACEOF
18370 rm -f conftest.$ac_objext
18371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18372 (eval $ac_compile) 2>conftest.er1
18373 ac_status=$?
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
18379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest.$ac_objext'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_cv_member_struct_statfs_f_bfree=yes
18392 else
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18396 ac_cv_member_struct_statfs_f_bfree=no
18398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18402 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18403 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18404 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18406 cat >>confdefs.h <<_ACEOF
18407 #define HAVE_STRUCT_STATFS_F_BFREE 1
18408 _ACEOF
18412 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18413 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18414 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18416 else
18417 cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h. */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 #include <sys/types.h>
18424 #ifdef HAVE_SYS_PARAM_H
18425 # include <sys/param.h>
18426 #endif
18427 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18428 # include <sys/mount.h>
18429 #else
18430 # ifdef STATFS_DEFINED_BY_SYS_VFS
18431 # include <sys/vfs.h>
18432 # else
18433 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18434 # include <sys/statfs.h>
18435 # endif
18436 # endif
18437 #endif
18440 main ()
18442 static struct statfs ac_aggr;
18443 if (ac_aggr.f_bavail)
18444 return 0;
18446 return 0;
18448 _ACEOF
18449 rm -f conftest.$ac_objext
18450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18451 (eval $ac_compile) 2>conftest.er1
18452 ac_status=$?
18453 grep -v '^ *+' conftest.er1 >conftest.err
18454 rm -f conftest.er1
18455 cat conftest.err >&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } &&
18458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 ac_cv_member_struct_statfs_f_bavail=yes
18471 else
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18475 cat >conftest.$ac_ext <<_ACEOF
18476 /* confdefs.h. */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 #include <sys/types.h>
18482 #ifdef HAVE_SYS_PARAM_H
18483 # include <sys/param.h>
18484 #endif
18485 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18486 # include <sys/mount.h>
18487 #else
18488 # ifdef STATFS_DEFINED_BY_SYS_VFS
18489 # include <sys/vfs.h>
18490 # else
18491 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18492 # include <sys/statfs.h>
18493 # endif
18494 # endif
18495 #endif
18498 main ()
18500 static struct statfs ac_aggr;
18501 if (sizeof ac_aggr.f_bavail)
18502 return 0;
18504 return 0;
18506 _ACEOF
18507 rm -f conftest.$ac_objext
18508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18509 (eval $ac_compile) 2>conftest.er1
18510 ac_status=$?
18511 grep -v '^ *+' conftest.er1 >conftest.err
18512 rm -f conftest.er1
18513 cat conftest.err >&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } &&
18516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest.$ac_objext'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 ac_cv_member_struct_statfs_f_bavail=yes
18529 else
18530 echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18533 ac_cv_member_struct_statfs_f_bavail=no
18535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18539 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18540 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18541 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18543 cat >>confdefs.h <<_ACEOF
18544 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18545 _ACEOF
18549 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18550 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18551 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554 cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h. */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 #include <sys/types.h>
18561 #ifdef HAVE_SYS_PARAM_H
18562 # include <sys/param.h>
18563 #endif
18564 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18565 # include <sys/mount.h>
18566 #else
18567 # ifdef STATFS_DEFINED_BY_SYS_VFS
18568 # include <sys/vfs.h>
18569 # else
18570 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18571 # include <sys/statfs.h>
18572 # endif
18573 # endif
18574 #endif
18577 main ()
18579 static struct statfs ac_aggr;
18580 if (ac_aggr.f_frsize)
18581 return 0;
18583 return 0;
18585 _ACEOF
18586 rm -f conftest.$ac_objext
18587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18588 (eval $ac_compile) 2>conftest.er1
18589 ac_status=$?
18590 grep -v '^ *+' conftest.er1 >conftest.err
18591 rm -f conftest.er1
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; } &&
18601 { ac_try='test -s conftest.$ac_objext'
18602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18603 (eval $ac_try) 2>&5
18604 ac_status=$?
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; }; then
18607 ac_cv_member_struct_statfs_f_frsize=yes
18608 else
18609 echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18612 cat >conftest.$ac_ext <<_ACEOF
18613 /* confdefs.h. */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18618 #include <sys/types.h>
18619 #ifdef HAVE_SYS_PARAM_H
18620 # include <sys/param.h>
18621 #endif
18622 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18623 # include <sys/mount.h>
18624 #else
18625 # ifdef STATFS_DEFINED_BY_SYS_VFS
18626 # include <sys/vfs.h>
18627 # else
18628 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18629 # include <sys/statfs.h>
18630 # endif
18631 # endif
18632 #endif
18635 main ()
18637 static struct statfs ac_aggr;
18638 if (sizeof ac_aggr.f_frsize)
18639 return 0;
18641 return 0;
18643 _ACEOF
18644 rm -f conftest.$ac_objext
18645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18646 (eval $ac_compile) 2>conftest.er1
18647 ac_status=$?
18648 grep -v '^ *+' conftest.er1 >conftest.err
18649 rm -f conftest.er1
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
18653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; } &&
18659 { ac_try='test -s conftest.$ac_objext'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_cv_member_struct_statfs_f_frsize=yes
18666 else
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 ac_cv_member_struct_statfs_f_frsize=no
18672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18676 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18677 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18678 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18680 cat >>confdefs.h <<_ACEOF
18681 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18682 _ACEOF
18686 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18687 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18688 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18690 else
18691 cat >conftest.$ac_ext <<_ACEOF
18692 /* confdefs.h. */
18693 _ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18697 #include <sys/types.h>
18698 #ifdef HAVE_SYS_PARAM_H
18699 # include <sys/param.h>
18700 #endif
18701 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18702 # include <sys/mount.h>
18703 #else
18704 # ifdef STATFS_DEFINED_BY_SYS_VFS
18705 # include <sys/vfs.h>
18706 # else
18707 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18708 # include <sys/statfs.h>
18709 # endif
18710 # endif
18711 #endif
18714 main ()
18716 static struct statfs ac_aggr;
18717 if (ac_aggr.f_ffree)
18718 return 0;
18720 return 0;
18722 _ACEOF
18723 rm -f conftest.$ac_objext
18724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18725 (eval $ac_compile) 2>conftest.er1
18726 ac_status=$?
18727 grep -v '^ *+' conftest.er1 >conftest.err
18728 rm -f conftest.er1
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } &&
18732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } &&
18738 { ac_try='test -s conftest.$ac_objext'
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 ac_cv_member_struct_statfs_f_ffree=yes
18745 else
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18749 cat >conftest.$ac_ext <<_ACEOF
18750 /* confdefs.h. */
18751 _ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18755 #include <sys/types.h>
18756 #ifdef HAVE_SYS_PARAM_H
18757 # include <sys/param.h>
18758 #endif
18759 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18760 # include <sys/mount.h>
18761 #else
18762 # ifdef STATFS_DEFINED_BY_SYS_VFS
18763 # include <sys/vfs.h>
18764 # else
18765 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18766 # include <sys/statfs.h>
18767 # endif
18768 # endif
18769 #endif
18772 main ()
18774 static struct statfs ac_aggr;
18775 if (sizeof ac_aggr.f_ffree)
18776 return 0;
18778 return 0;
18780 _ACEOF
18781 rm -f conftest.$ac_objext
18782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18783 (eval $ac_compile) 2>conftest.er1
18784 ac_status=$?
18785 grep -v '^ *+' conftest.er1 >conftest.err
18786 rm -f conftest.er1
18787 cat conftest.err >&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
18790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try='test -s conftest.$ac_objext'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_cv_member_struct_statfs_f_ffree=yes
18803 else
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 ac_cv_member_struct_statfs_f_ffree=no
18809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18813 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18814 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18815 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18817 cat >>confdefs.h <<_ACEOF
18818 #define HAVE_STRUCT_STATFS_F_FFREE 1
18819 _ACEOF
18823 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18824 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18825 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828 cat >conftest.$ac_ext <<_ACEOF
18829 /* confdefs.h. */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18834 #include <sys/types.h>
18835 #ifdef HAVE_SYS_PARAM_H
18836 # include <sys/param.h>
18837 #endif
18838 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18839 # include <sys/mount.h>
18840 #else
18841 # ifdef STATFS_DEFINED_BY_SYS_VFS
18842 # include <sys/vfs.h>
18843 # else
18844 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18845 # include <sys/statfs.h>
18846 # endif
18847 # endif
18848 #endif
18851 main ()
18853 static struct statfs ac_aggr;
18854 if (ac_aggr.f_favail)
18855 return 0;
18857 return 0;
18859 _ACEOF
18860 rm -f conftest.$ac_objext
18861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18862 (eval $ac_compile) 2>conftest.er1
18863 ac_status=$?
18864 grep -v '^ *+' conftest.er1 >conftest.err
18865 rm -f conftest.er1
18866 cat conftest.err >&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } &&
18869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try='test -s conftest.$ac_objext'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 ac_cv_member_struct_statfs_f_favail=yes
18882 else
18883 echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18886 cat >conftest.$ac_ext <<_ACEOF
18887 /* confdefs.h. */
18888 _ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18892 #include <sys/types.h>
18893 #ifdef HAVE_SYS_PARAM_H
18894 # include <sys/param.h>
18895 #endif
18896 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18897 # include <sys/mount.h>
18898 #else
18899 # ifdef STATFS_DEFINED_BY_SYS_VFS
18900 # include <sys/vfs.h>
18901 # else
18902 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18903 # include <sys/statfs.h>
18904 # endif
18905 # endif
18906 #endif
18909 main ()
18911 static struct statfs ac_aggr;
18912 if (sizeof ac_aggr.f_favail)
18913 return 0;
18915 return 0;
18917 _ACEOF
18918 rm -f conftest.$ac_objext
18919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18920 (eval $ac_compile) 2>conftest.er1
18921 ac_status=$?
18922 grep -v '^ *+' conftest.er1 >conftest.err
18923 rm -f conftest.er1
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } &&
18927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } &&
18933 { ac_try='test -s conftest.$ac_objext'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_member_struct_statfs_f_favail=yes
18940 else
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ac_cv_member_struct_statfs_f_favail=no
18946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18951 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18952 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18954 cat >>confdefs.h <<_ACEOF
18955 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18956 _ACEOF
18960 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18961 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18962 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h. */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971 #include <sys/types.h>
18972 #ifdef HAVE_SYS_PARAM_H
18973 # include <sys/param.h>
18974 #endif
18975 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18976 # include <sys/mount.h>
18977 #else
18978 # ifdef STATFS_DEFINED_BY_SYS_VFS
18979 # include <sys/vfs.h>
18980 # else
18981 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18982 # include <sys/statfs.h>
18983 # endif
18984 # endif
18985 #endif
18988 main ()
18990 static struct statfs ac_aggr;
18991 if (ac_aggr.f_namelen)
18992 return 0;
18994 return 0;
18996 _ACEOF
18997 rm -f conftest.$ac_objext
18998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18999 (eval $ac_compile) 2>conftest.er1
19000 ac_status=$?
19001 grep -v '^ *+' conftest.er1 >conftest.err
19002 rm -f conftest.er1
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19009 ac_status=$?
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; } &&
19012 { ac_try='test -s conftest.$ac_objext'
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; }; then
19018 ac_cv_member_struct_statfs_f_namelen=yes
19019 else
19020 echo "$as_me: failed program was:" >&5
19021 sed 's/^/| /' conftest.$ac_ext >&5
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 #include <sys/types.h>
19030 #ifdef HAVE_SYS_PARAM_H
19031 # include <sys/param.h>
19032 #endif
19033 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19034 # include <sys/mount.h>
19035 #else
19036 # ifdef STATFS_DEFINED_BY_SYS_VFS
19037 # include <sys/vfs.h>
19038 # else
19039 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19040 # include <sys/statfs.h>
19041 # endif
19042 # endif
19043 #endif
19046 main ()
19048 static struct statfs ac_aggr;
19049 if (sizeof ac_aggr.f_namelen)
19050 return 0;
19052 return 0;
19054 _ACEOF
19055 rm -f conftest.$ac_objext
19056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19057 (eval $ac_compile) 2>conftest.er1
19058 ac_status=$?
19059 grep -v '^ *+' conftest.er1 >conftest.err
19060 rm -f conftest.er1
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } &&
19064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_cv_member_struct_statfs_f_namelen=yes
19077 else
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_cv_member_struct_statfs_f_namelen=no
19083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19087 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19088 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19089 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19091 cat >>confdefs.h <<_ACEOF
19092 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19093 _ACEOF
19099 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19100 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19101 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19102 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 else
19104 cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h. */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19110 #ifdef HAVE_SYS_STATVFS_H
19111 #include <sys/statvfs.h>
19112 #endif
19115 main ()
19117 static struct statvfs ac_aggr;
19118 if (ac_aggr.f_blocks)
19119 return 0;
19121 return 0;
19123 _ACEOF
19124 rm -f conftest.$ac_objext
19125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19126 (eval $ac_compile) 2>conftest.er1
19127 ac_status=$?
19128 grep -v '^ *+' conftest.er1 >conftest.err
19129 rm -f conftest.er1
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try='test -s conftest.$ac_objext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 ac_cv_member_struct_statvfs_f_blocks=yes
19146 else
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 cat >conftest.$ac_ext <<_ACEOF
19151 /* confdefs.h. */
19152 _ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19156 #ifdef HAVE_SYS_STATVFS_H
19157 #include <sys/statvfs.h>
19158 #endif
19161 main ()
19163 static struct statvfs ac_aggr;
19164 if (sizeof ac_aggr.f_blocks)
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_statvfs_f_blocks=yes
19192 else
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ac_cv_member_struct_statvfs_f_blocks=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_statvfs_f_blocks" >&5
19203 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19204 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19206 cat >>confdefs.h <<_ACEOF
19207 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19208 _ACEOF
19214 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19215 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19216 if test "${ac_cv_member_struct_msghdr_msg_accrights+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 #include <sys/types.h>
19226 #ifdef HAVE_SYS_SOCKET_H
19227 # include <sys/socket.h>
19228 #endif
19229 #ifdef HAVE_SYS_UN_H
19230 # include <sys/un.h>
19231 #endif
19234 main ()
19236 static struct msghdr ac_aggr;
19237 if (ac_aggr.msg_accrights)
19238 return 0;
19240 return 0;
19242 _ACEOF
19243 rm -f conftest.$ac_objext
19244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19245 (eval $ac_compile) 2>conftest.er1
19246 ac_status=$?
19247 grep -v '^ *+' conftest.er1 >conftest.err
19248 rm -f conftest.er1
19249 cat conftest.err >&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } &&
19252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; } &&
19258 { ac_try='test -s conftest.$ac_objext'
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19264 ac_cv_member_struct_msghdr_msg_accrights=yes
19265 else
19266 echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19269 cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h. */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19275 #include <sys/types.h>
19276 #ifdef HAVE_SYS_SOCKET_H
19277 # include <sys/socket.h>
19278 #endif
19279 #ifdef HAVE_SYS_UN_H
19280 # include <sys/un.h>
19281 #endif
19284 main ()
19286 static struct msghdr ac_aggr;
19287 if (sizeof ac_aggr.msg_accrights)
19288 return 0;
19290 return 0;
19292 _ACEOF
19293 rm -f conftest.$ac_objext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19295 (eval $ac_compile) 2>conftest.er1
19296 ac_status=$?
19297 grep -v '^ *+' conftest.er1 >conftest.err
19298 rm -f conftest.er1
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } &&
19302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; } &&
19308 { ac_try='test -s conftest.$ac_objext'
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19311 ac_status=$?
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; }; then
19314 ac_cv_member_struct_msghdr_msg_accrights=yes
19315 else
19316 echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19319 ac_cv_member_struct_msghdr_msg_accrights=no
19321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19325 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19326 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19327 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19329 cat >>confdefs.h <<_ACEOF
19330 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19331 _ACEOF
19335 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19336 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19337 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 else
19340 cat >conftest.$ac_ext <<_ACEOF
19341 /* confdefs.h. */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19346 #include <sys/types.h>
19347 #ifdef HAVE_SYS_SOCKET_H
19348 # include <sys/socket.h>
19349 #endif
19350 #ifdef HAVE_SYS_UN_H
19351 # include <sys/un.h>
19352 #endif
19355 main ()
19357 static struct sockaddr ac_aggr;
19358 if (ac_aggr.sa_len)
19359 return 0;
19361 return 0;
19363 _ACEOF
19364 rm -f conftest.$ac_objext
19365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19366 (eval $ac_compile) 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19379 { ac_try='test -s conftest.$ac_objext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 ac_cv_member_struct_sockaddr_sa_len=yes
19386 else
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19390 cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h. */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 #include <sys/types.h>
19397 #ifdef HAVE_SYS_SOCKET_H
19398 # include <sys/socket.h>
19399 #endif
19400 #ifdef HAVE_SYS_UN_H
19401 # include <sys/un.h>
19402 #endif
19405 main ()
19407 static struct sockaddr ac_aggr;
19408 if (sizeof ac_aggr.sa_len)
19409 return 0;
19411 return 0;
19413 _ACEOF
19414 rm -f conftest.$ac_objext
19415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19416 (eval $ac_compile) 2>conftest.er1
19417 ac_status=$?
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
19423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19429 { ac_try='test -s conftest.$ac_objext'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19435 ac_cv_member_struct_sockaddr_sa_len=yes
19436 else
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 ac_cv_member_struct_sockaddr_sa_len=no
19442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19446 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19447 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19448 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19450 cat >>confdefs.h <<_ACEOF
19451 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19452 _ACEOF
19456 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19457 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19458 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461 cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h. */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 #include <sys/types.h>
19468 #ifdef HAVE_SYS_SOCKET_H
19469 # include <sys/socket.h>
19470 #endif
19471 #ifdef HAVE_SYS_UN_H
19472 # include <sys/un.h>
19473 #endif
19476 main ()
19478 static struct sockaddr_un ac_aggr;
19479 if (ac_aggr.sun_len)
19480 return 0;
19482 return 0;
19484 _ACEOF
19485 rm -f conftest.$ac_objext
19486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19487 (eval $ac_compile) 2>conftest.er1
19488 ac_status=$?
19489 grep -v '^ *+' conftest.er1 >conftest.err
19490 rm -f conftest.er1
19491 cat conftest.err >&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } &&
19494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19500 { ac_try='test -s conftest.$ac_objext'
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; }; then
19506 ac_cv_member_struct_sockaddr_un_sun_len=yes
19507 else
19508 echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h. */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19517 #include <sys/types.h>
19518 #ifdef HAVE_SYS_SOCKET_H
19519 # include <sys/socket.h>
19520 #endif
19521 #ifdef HAVE_SYS_UN_H
19522 # include <sys/un.h>
19523 #endif
19526 main ()
19528 static struct sockaddr_un ac_aggr;
19529 if (sizeof ac_aggr.sun_len)
19530 return 0;
19532 return 0;
19534 _ACEOF
19535 rm -f conftest.$ac_objext
19536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19537 (eval $ac_compile) 2>conftest.er1
19538 ac_status=$?
19539 grep -v '^ *+' conftest.er1 >conftest.err
19540 rm -f conftest.er1
19541 cat conftest.err >&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } &&
19544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19550 { ac_try='test -s conftest.$ac_objext'
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; }; then
19556 ac_cv_member_struct_sockaddr_un_sun_len=yes
19557 else
19558 echo "$as_me: failed program was:" >&5
19559 sed 's/^/| /' conftest.$ac_ext >&5
19561 ac_cv_member_struct_sockaddr_un_sun_len=no
19563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19567 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19568 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19569 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19571 cat >>confdefs.h <<_ACEOF
19572 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19573 _ACEOF
19579 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19580 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19581 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19582 echo $ECHO_N "(cached) $ECHO_C" >&6
19583 else
19584 cat >conftest.$ac_ext <<_ACEOF
19585 /* confdefs.h. */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19590 #include <signal.h>
19593 main ()
19595 static siginfo_t ac_aggr;
19596 if (ac_aggr.si_fd)
19597 return 0;
19599 return 0;
19601 _ACEOF
19602 rm -f conftest.$ac_objext
19603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19604 (eval $ac_compile) 2>conftest.er1
19605 ac_status=$?
19606 grep -v '^ *+' conftest.er1 >conftest.err
19607 rm -f conftest.er1
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } &&
19611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; } &&
19617 { ac_try='test -s conftest.$ac_objext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19623 ac_cv_member_siginfo_t_si_fd=yes
19624 else
19625 echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h. */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19634 #include <signal.h>
19637 main ()
19639 static siginfo_t ac_aggr;
19640 if (sizeof ac_aggr.si_fd)
19641 return 0;
19643 return 0;
19645 _ACEOF
19646 rm -f conftest.$ac_objext
19647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19648 (eval $ac_compile) 2>conftest.er1
19649 ac_status=$?
19650 grep -v '^ *+' conftest.er1 >conftest.err
19651 rm -f conftest.er1
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } &&
19655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; } &&
19661 { ac_try='test -s conftest.$ac_objext'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 ac_cv_member_siginfo_t_si_fd=yes
19668 else
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19672 ac_cv_member_siginfo_t_si_fd=no
19674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19678 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19679 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19680 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19682 cat >>confdefs.h <<_ACEOF
19683 #define HAVE_SIGINFO_T_SI_FD 1
19684 _ACEOF
19690 echo "$as_me:$LINENO: checking for struct option.name" >&5
19691 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19692 if test "${ac_cv_member_struct_option_name+set}" = set; then
19693 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 else
19695 cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h. */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19701 #ifdef HAVE_GETOPT_H
19702 #include <getopt.h>
19703 #endif
19706 main ()
19708 static struct option ac_aggr;
19709 if (ac_aggr.name)
19710 return 0;
19712 return 0;
19714 _ACEOF
19715 rm -f conftest.$ac_objext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19717 (eval $ac_compile) 2>conftest.er1
19718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest.$ac_objext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_member_struct_option_name=yes
19737 else
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h. */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19747 #ifdef HAVE_GETOPT_H
19748 #include <getopt.h>
19749 #endif
19752 main ()
19754 static struct option ac_aggr;
19755 if (sizeof ac_aggr.name)
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_struct_option_name=yes
19783 else
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_cv_member_struct_option_name=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_struct_option_name" >&5
19794 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19795 if test $ac_cv_member_struct_option_name = yes; then
19797 cat >>confdefs.h <<_ACEOF
19798 #define HAVE_STRUCT_OPTION_NAME 1
19799 _ACEOF
19805 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19806 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19807 if test "${ac_cv_member_struct_stat_st_blocks+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 $ac_includes_default
19818 main ()
19820 static struct stat ac_aggr;
19821 if (ac_aggr.st_blocks)
19822 return 0;
19824 return 0;
19826 _ACEOF
19827 rm -f conftest.$ac_objext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19829 (eval $ac_compile) 2>conftest.er1
19830 ac_status=$?
19831 grep -v '^ *+' conftest.er1 >conftest.err
19832 rm -f conftest.er1
19833 cat conftest.err >&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
19836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest.$ac_objext'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
19848 ac_cv_member_struct_stat_st_blocks=yes
19849 else
19850 echo "$as_me: failed program was:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h. */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 $ac_includes_default
19861 main ()
19863 static struct stat ac_aggr;
19864 if (sizeof ac_aggr.st_blocks)
19865 return 0;
19867 return 0;
19869 _ACEOF
19870 rm -f conftest.$ac_objext
19871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19872 (eval $ac_compile) 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
19879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19891 ac_cv_member_struct_stat_st_blocks=yes
19892 else
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 ac_cv_member_struct_stat_st_blocks=no
19898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19902 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19903 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19904 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19906 cat >>confdefs.h <<_ACEOF
19907 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19908 _ACEOF
19915 case $host_cpu in
19916 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19917 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19918 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19920 else
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h. */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 #ifndef __i386__
19929 #endif
19930 _ACEOF
19931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19932 $EGREP "yes" >/dev/null 2>&1; then
19933 ac_cv_cpp_def___i386__=yes
19934 else
19935 ac_cv_cpp_def___i386__=no
19937 rm -f conftest*
19940 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19941 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19942 if test $ac_cv_cpp_def___i386__ = yes; then
19943 CFLAGS="$CFLAGS -D__i386__"
19944 LINTFLAGS="$LINTFLAGS -D__i386__"
19947 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19948 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19949 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 else
19952 cat >conftest.$ac_ext <<_ACEOF
19953 /* confdefs.h. */
19954 _ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958 #ifndef __ALPHA__
19960 #endif
19961 _ACEOF
19962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19963 $EGREP "yes" >/dev/null 2>&1; then
19964 ac_cv_cpp_def___ALPHA__=yes
19965 else
19966 ac_cv_cpp_def___ALPHA__=no
19968 rm -f conftest*
19971 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19972 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19973 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19974 CFLAGS="$CFLAGS -D__ALPHA__"
19975 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19978 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19979 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19980 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 else
19983 cat >conftest.$ac_ext <<_ACEOF
19984 /* confdefs.h. */
19985 _ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 #ifndef __sparc__
19991 #endif
19992 _ACEOF
19993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19994 $EGREP "yes" >/dev/null 2>&1; then
19995 ac_cv_cpp_def___sparc__=yes
19996 else
19997 ac_cv_cpp_def___sparc__=no
19999 rm -f conftest*
20002 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20003 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20004 if test $ac_cv_cpp_def___sparc__ = yes; then
20005 CFLAGS="$CFLAGS -D__sparc__"
20006 LINTFLAGS="$LINTFLAGS -D__sparc__"
20009 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20010 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20011 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014 cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h. */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 #ifndef __powerpc__
20022 #endif
20023 _ACEOF
20024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20025 $EGREP "yes" >/dev/null 2>&1; then
20026 ac_cv_cpp_def___powerpc__=yes
20027 else
20028 ac_cv_cpp_def___powerpc__=no
20030 rm -f conftest*
20033 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20034 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20035 if test $ac_cv_cpp_def___powerpc__ = yes; then
20036 CFLAGS="$CFLAGS -D__powerpc__"
20037 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20040 esac
20042 case $host_vendor in
20043 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20044 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
20045 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20047 else
20048 cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h. */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 #ifndef __sun__
20056 #endif
20057 _ACEOF
20058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20059 $EGREP "yes" >/dev/null 2>&1; then
20060 ac_cv_cpp_def___sun__=yes
20061 else
20062 ac_cv_cpp_def___sun__=no
20064 rm -f conftest*
20067 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20068 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20069 if test $ac_cv_cpp_def___sun__ = yes; then
20070 CFLAGS="$CFLAGS -D__sun__"
20071 LINTFLAGS="$LINTFLAGS -D__sun__"
20074 esac
20080 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
20082 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
20084 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
20086 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
20088 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
20090 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
20092 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
20094 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
20096 ac_config_commands="$ac_config_commands dlls/kernel/messages"
20098 ac_config_commands="$ac_config_commands dlls/user/dde"
20100 ac_config_commands="$ac_config_commands dlls/user/resources"
20102 ac_config_commands="$ac_config_commands dlls/wineps/data"
20104 ac_config_commands="$ac_config_commands include/wine"
20106 ac_config_commands="$ac_config_commands programs/regedit/tests"
20108 ac_config_commands="$ac_config_commands windows"
20111 MAKE_RULES=Make.rules
20114 MAKE_DLL_RULES=dlls/Makedll.rules
20117 MAKE_TEST_RULES=dlls/Maketest.rules
20120 MAKE_LIB_RULES=libs/Makelib.rules
20123 MAKE_PROG_RULES=programs/Makeprog.rules
20126 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/advpack/tests/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/cryptdll/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/lzexpand/tests/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/msi/tests/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/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/riched20/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/sensapi/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/stdole32.tlb/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/wtsapi32/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"
20129 cat >confcache <<\_ACEOF
20130 # This file is a shell script that caches the results of configure
20131 # tests run on this system so they can be shared between configure
20132 # scripts and configure runs, see configure's option --config-cache.
20133 # It is not useful on other systems. If it contains results you don't
20134 # want to keep, you may remove or edit it.
20136 # config.status only pays attention to the cache file if you give it
20137 # the --recheck option to rerun configure.
20139 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20140 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20141 # following values.
20143 _ACEOF
20145 # The following way of writing the cache mishandles newlines in values,
20146 # but we know of no workaround that is simple, portable, and efficient.
20147 # So, don't put newlines in cache variables' values.
20148 # Ultrix sh set writes to stderr and can't be redirected directly,
20149 # and sets the high bit in the cache file unless we assign to the vars.
20151 (set) 2>&1 |
20152 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20153 *ac_space=\ *)
20154 # `set' does not quote correctly, so add quotes (double-quote
20155 # substitution turns \\\\ into \\, and sed turns \\ into \).
20156 sed -n \
20157 "s/'/'\\\\''/g;
20158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20161 # `set' quotes correctly as required by POSIX, so do not add quotes.
20162 sed -n \
20163 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20165 esac;
20167 sed '
20168 t clear
20169 : clear
20170 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20171 t end
20172 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20173 : end' >>confcache
20174 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20175 if test -w $cache_file; then
20176 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20177 cat confcache >$cache_file
20178 else
20179 echo "not updating unwritable cache $cache_file"
20182 rm -f confcache
20184 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20185 # Let make expand exec_prefix.
20186 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20188 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20189 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20190 # trailing colons and then remove the whole line if VPATH becomes empty
20191 # (actually we leave an empty line to preserve line numbers).
20192 if test "x$srcdir" = x.; then
20193 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20194 s/:*\$(srcdir):*/:/;
20195 s/:*\${srcdir}:*/:/;
20196 s/:*@srcdir@:*/:/;
20197 s/^\([^=]*=[ ]*\):*/\1/;
20198 s/:*$//;
20199 s/^[^=]*=[ ]*$//;
20203 DEFS=-DHAVE_CONFIG_H
20205 ac_libobjs=
20206 ac_ltlibobjs=
20207 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20208 # 1. Remove the extension, and $U if already installed.
20209 ac_i=`echo "$ac_i" |
20210 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20211 # 2. Add them.
20212 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20213 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20214 done
20215 LIBOBJS=$ac_libobjs
20217 LTLIBOBJS=$ac_ltlibobjs
20221 : ${CONFIG_STATUS=./config.status}
20222 ac_clean_files_save=$ac_clean_files
20223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20224 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20225 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20226 cat >$CONFIG_STATUS <<_ACEOF
20227 #! $SHELL
20228 # Generated by $as_me.
20229 # Run this file to recreate the current configuration.
20230 # Compiler output produced by configure, useful for debugging
20231 # configure, is in config.log if it exists.
20233 debug=false
20234 ac_cs_recheck=false
20235 ac_cs_silent=false
20236 SHELL=\${CONFIG_SHELL-$SHELL}
20237 _ACEOF
20239 cat >>$CONFIG_STATUS <<\_ACEOF
20240 ## --------------------- ##
20241 ## M4sh Initialization. ##
20242 ## --------------------- ##
20244 # Be Bourne compatible
20245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20246 emulate sh
20247 NULLCMD=:
20248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20249 # is contrary to our usage. Disable this feature.
20250 alias -g '${1+"$@"}'='"$@"'
20251 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20252 set -o posix
20254 DUALCASE=1; export DUALCASE # for MKS sh
20256 # Support unset when possible.
20257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20258 as_unset=unset
20259 else
20260 as_unset=false
20264 # Work around bugs in pre-3.0 UWIN ksh.
20265 $as_unset ENV MAIL MAILPATH
20266 PS1='$ '
20267 PS2='> '
20268 PS4='+ '
20270 # NLS nuisances.
20271 for as_var in \
20272 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20273 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20274 LC_TELEPHONE LC_TIME
20276 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20277 eval $as_var=C; export $as_var
20278 else
20279 $as_unset $as_var
20281 done
20283 # Required to use basename.
20284 if expr a : '\(a\)' >/dev/null 2>&1; then
20285 as_expr=expr
20286 else
20287 as_expr=false
20290 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20291 as_basename=basename
20292 else
20293 as_basename=false
20297 # Name of the executable.
20298 as_me=`$as_basename "$0" ||
20299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20300 X"$0" : 'X\(//\)$' \| \
20301 X"$0" : 'X\(/\)$' \| \
20302 . : '\(.\)' 2>/dev/null ||
20303 echo X/"$0" |
20304 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20305 /^X\/\(\/\/\)$/{ s//\1/; q; }
20306 /^X\/\(\/\).*/{ s//\1/; q; }
20307 s/.*/./; q'`
20310 # PATH needs CR, and LINENO needs CR and PATH.
20311 # Avoid depending upon Character Ranges.
20312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20315 as_cr_digits='0123456789'
20316 as_cr_alnum=$as_cr_Letters$as_cr_digits
20318 # The user is always right.
20319 if test "${PATH_SEPARATOR+set}" != set; then
20320 echo "#! /bin/sh" >conf$$.sh
20321 echo "exit 0" >>conf$$.sh
20322 chmod +x conf$$.sh
20323 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20324 PATH_SEPARATOR=';'
20325 else
20326 PATH_SEPARATOR=:
20328 rm -f conf$$.sh
20332 as_lineno_1=$LINENO
20333 as_lineno_2=$LINENO
20334 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20335 test "x$as_lineno_1" != "x$as_lineno_2" &&
20336 test "x$as_lineno_3" = "x$as_lineno_2" || {
20337 # Find who we are. Look in the path if we contain no path at all
20338 # relative or not.
20339 case $0 in
20340 *[\\/]* ) as_myself=$0 ;;
20341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20342 for as_dir in $PATH
20344 IFS=$as_save_IFS
20345 test -z "$as_dir" && as_dir=.
20346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20347 done
20350 esac
20351 # We did not find ourselves, most probably we were run as `sh COMMAND'
20352 # in which case we are not to be found in the path.
20353 if test "x$as_myself" = x; then
20354 as_myself=$0
20356 if test ! -f "$as_myself"; then
20357 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20358 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20359 { (exit 1); exit 1; }; }
20361 case $CONFIG_SHELL in
20363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20364 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20366 IFS=$as_save_IFS
20367 test -z "$as_dir" && as_dir=.
20368 for as_base in sh bash ksh sh5; do
20369 case $as_dir in
20371 if ("$as_dir/$as_base" -c '
20372 as_lineno_1=$LINENO
20373 as_lineno_2=$LINENO
20374 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20375 test "x$as_lineno_1" != "x$as_lineno_2" &&
20376 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20377 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20378 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20379 CONFIG_SHELL=$as_dir/$as_base
20380 export CONFIG_SHELL
20381 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20382 fi;;
20383 esac
20384 done
20385 done
20387 esac
20389 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20390 # uniformly replaced by the line number. The first 'sed' inserts a
20391 # line-number line before each line; the second 'sed' does the real
20392 # work. The second script uses 'N' to pair each line-number line
20393 # with the numbered line, and appends trailing '-' during
20394 # substitution so that $LINENO is not a special case at line end.
20395 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20396 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20397 sed '=' <$as_myself |
20398 sed '
20400 s,$,-,
20401 : loop
20402 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20403 t loop
20404 s,-$,,
20405 s,^['$as_cr_digits']*\n,,
20406 ' >$as_me.lineno &&
20407 chmod +x $as_me.lineno ||
20408 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20409 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20410 { (exit 1); exit 1; }; }
20412 # Don't try to exec as it changes $[0], causing all sort of problems
20413 # (the dirname of $[0] is not the place where we might find the
20414 # original and so on. Autoconf is especially sensible to this).
20415 . ./$as_me.lineno
20416 # Exit status is that of the last command.
20417 exit
20421 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20422 *c*,-n*) ECHO_N= ECHO_C='
20423 ' ECHO_T=' ' ;;
20424 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20425 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20426 esac
20428 if expr a : '\(a\)' >/dev/null 2>&1; then
20429 as_expr=expr
20430 else
20431 as_expr=false
20434 rm -f conf$$ conf$$.exe conf$$.file
20435 echo >conf$$.file
20436 if ln -s conf$$.file conf$$ 2>/dev/null; then
20437 # We could just check for DJGPP; but this test a) works b) is more generic
20438 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20439 if test -f conf$$.exe; then
20440 # Don't use ln at all; we don't have any links
20441 as_ln_s='cp -p'
20442 else
20443 as_ln_s='ln -s'
20445 elif ln conf$$.file conf$$ 2>/dev/null; then
20446 as_ln_s=ln
20447 else
20448 as_ln_s='cp -p'
20450 rm -f conf$$ conf$$.exe conf$$.file
20452 if mkdir -p . 2>/dev/null; then
20453 as_mkdir_p=:
20454 else
20455 test -d ./-p && rmdir ./-p
20456 as_mkdir_p=false
20459 as_executable_p="test -f"
20461 # Sed expression to map a string onto a valid CPP name.
20462 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20464 # Sed expression to map a string onto a valid variable name.
20465 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20468 # IFS
20469 # We need space, tab and new line, in precisely that order.
20470 as_nl='
20472 IFS=" $as_nl"
20474 # CDPATH.
20475 $as_unset CDPATH
20477 exec 6>&1
20479 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20480 # report actual input values of CONFIG_FILES etc. instead of their
20481 # values after options handling. Logging --version etc. is OK.
20482 exec 5>>config.log
20484 echo
20485 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20486 ## Running $as_me. ##
20487 _ASBOX
20488 } >&5
20489 cat >&5 <<_CSEOF
20491 This file was extended by Wine $as_me 20050419, which was
20492 generated by GNU Autoconf 2.59. Invocation command line was
20494 CONFIG_FILES = $CONFIG_FILES
20495 CONFIG_HEADERS = $CONFIG_HEADERS
20496 CONFIG_LINKS = $CONFIG_LINKS
20497 CONFIG_COMMANDS = $CONFIG_COMMANDS
20498 $ $0 $@
20500 _CSEOF
20501 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20502 echo >&5
20503 _ACEOF
20505 # Files that config.status was made for.
20506 if test -n "$ac_config_files"; then
20507 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20510 if test -n "$ac_config_headers"; then
20511 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20514 if test -n "$ac_config_links"; then
20515 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20518 if test -n "$ac_config_commands"; then
20519 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20522 cat >>$CONFIG_STATUS <<\_ACEOF
20524 ac_cs_usage="\
20525 \`$as_me' instantiates files from templates according to the
20526 current configuration.
20528 Usage: $0 [OPTIONS] [FILE]...
20530 -h, --help print this help, then exit
20531 -V, --version print version number, then exit
20532 -q, --quiet do not print progress messages
20533 -d, --debug don't remove temporary files
20534 --recheck update $as_me by reconfiguring in the same conditions
20535 --file=FILE[:TEMPLATE]
20536 instantiate the configuration file FILE
20537 --header=FILE[:TEMPLATE]
20538 instantiate the configuration header FILE
20540 Configuration files:
20541 $config_files
20543 Configuration headers:
20544 $config_headers
20546 Configuration commands:
20547 $config_commands
20549 Report bugs to <bug-autoconf@gnu.org>."
20550 _ACEOF
20552 cat >>$CONFIG_STATUS <<_ACEOF
20553 ac_cs_version="\\
20554 Wine config.status 20050419
20555 configured by $0, generated by GNU Autoconf 2.59,
20556 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20558 Copyright (C) 2003 Free Software Foundation, Inc.
20559 This config.status script is free software; the Free Software Foundation
20560 gives unlimited permission to copy, distribute and modify it."
20561 srcdir=$srcdir
20562 INSTALL="$INSTALL"
20563 _ACEOF
20565 cat >>$CONFIG_STATUS <<\_ACEOF
20566 # If no file are specified by the user, then we need to provide default
20567 # value. By we need to know if files were specified by the user.
20568 ac_need_defaults=:
20569 while test $# != 0
20571 case $1 in
20572 --*=*)
20573 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20574 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20575 ac_shift=:
20578 ac_option=$1
20579 ac_optarg=$2
20580 ac_shift=shift
20582 *) # This is not an option, so the user has probably given explicit
20583 # arguments.
20584 ac_option=$1
20585 ac_need_defaults=false;;
20586 esac
20588 case $ac_option in
20589 # Handling of the options.
20590 _ACEOF
20591 cat >>$CONFIG_STATUS <<\_ACEOF
20592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20593 ac_cs_recheck=: ;;
20594 --version | --vers* | -V )
20595 echo "$ac_cs_version"; exit 0 ;;
20596 --he | --h)
20597 # Conflict between --help and --header
20598 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20599 Try \`$0 --help' for more information." >&5
20600 echo "$as_me: error: ambiguous option: $1
20601 Try \`$0 --help' for more information." >&2;}
20602 { (exit 1); exit 1; }; };;
20603 --help | --hel | -h )
20604 echo "$ac_cs_usage"; exit 0 ;;
20605 --debug | --d* | -d )
20606 debug=: ;;
20607 --file | --fil | --fi | --f )
20608 $ac_shift
20609 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20610 ac_need_defaults=false;;
20611 --header | --heade | --head | --hea )
20612 $ac_shift
20613 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20614 ac_need_defaults=false;;
20615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20617 ac_cs_silent=: ;;
20619 # This is an error.
20620 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20621 Try \`$0 --help' for more information." >&5
20622 echo "$as_me: error: unrecognized option: $1
20623 Try \`$0 --help' for more information." >&2;}
20624 { (exit 1); exit 1; }; } ;;
20626 *) ac_config_targets="$ac_config_targets $1" ;;
20628 esac
20629 shift
20630 done
20632 ac_configure_extra_args=
20634 if $ac_cs_silent; then
20635 exec 6>/dev/null
20636 ac_configure_extra_args="$ac_configure_extra_args --silent"
20639 _ACEOF
20640 cat >>$CONFIG_STATUS <<_ACEOF
20641 if \$ac_cs_recheck; then
20642 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20643 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20646 _ACEOF
20652 cat >>$CONFIG_STATUS <<\_ACEOF
20653 for ac_config_target in $ac_config_targets
20655 case "$ac_config_target" in
20656 # Handling of arguments.
20657 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20658 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20659 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20660 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20661 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20662 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20663 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20664 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20665 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20666 "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20667 "dlls/advpack/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
20668 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20669 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20670 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20671 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20672 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20673 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20674 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20675 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20676 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20677 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20678 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20679 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20680 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20681 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20682 "dlls/cryptdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
20683 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20684 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20685 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20686 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20687 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20688 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20689 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20690 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20691 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20692 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20693 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20694 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20695 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20696 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20697 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20698 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20699 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20700 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20701 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20702 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20703 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20704 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20705 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20706 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20707 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20708 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20709 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20710 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20711 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20712 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20713 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20714 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20715 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20716 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20717 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20718 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20719 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20720 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20721 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20722 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20723 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20724 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20725 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20726 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20727 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20728 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20729 "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20730 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20731 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20732 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20733 "dlls/lzexpand/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/tests/Makefile" ;;
20734 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20735 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20736 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20737 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20738 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20739 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20740 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20741 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20742 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20743 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20744 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20745 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20746 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20747 "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20748 "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20749 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20750 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20751 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20752 "dlls/msi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
20753 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20754 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20755 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20756 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20757 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20758 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20759 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20760 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20761 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20762 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20763 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20764 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20765 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20766 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20767 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20768 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20769 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20770 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20771 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20772 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20773 "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20774 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20775 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20776 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20777 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20778 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20779 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20780 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20781 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20782 "dlls/powrprof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
20783 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20784 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20785 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20786 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20787 "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20788 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20789 "dlls/riched20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
20790 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20791 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20792 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20793 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20794 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20795 "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20796 "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
20797 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20798 "dlls/sensapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
20799 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20800 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20801 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20802 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20803 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20804 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20805 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20806 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20807 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20808 "dlls/stdole32.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
20809 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20810 "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20811 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20812 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20813 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20814 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20815 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20816 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20817 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20818 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20819 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20820 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20821 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20822 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20823 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20824 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20825 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20826 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20827 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20828 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20829 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20830 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20831 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20832 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20833 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20834 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20835 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20836 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20837 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20838 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20839 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20840 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20841 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20842 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20843 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20844 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20845 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20846 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20847 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20848 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20849 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20850 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20851 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20852 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20853 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20854 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20855 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20856 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20857 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20858 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20859 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20860 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20861 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20862 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20863 "dlls/wtsapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
20864 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20865 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20866 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20867 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20868 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20869 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20870 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20871 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20872 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20873 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20874 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20875 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20876 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20877 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20878 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20879 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20880 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20881 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20882 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20883 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20884 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20885 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20886 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20887 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20888 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20889 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20890 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20891 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20892 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20893 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20894 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20895 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20896 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20897 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20898 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20899 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20900 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20901 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20902 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20903 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20904 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20905 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20906 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20907 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20908 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20909 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20910 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20911 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20912 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20913 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20914 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20915 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20916 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20917 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20918 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20919 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20920 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20921 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20922 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20923 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20924 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20925 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20926 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20927 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20928 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20929 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20930 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20931 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20932 { (exit 1); exit 1; }; };;
20933 esac
20934 done
20936 # If the user did not use the arguments to specify the items to instantiate,
20937 # then the envvar interface is used. Set only those that are not.
20938 # We use the long form for the default assignment because of an extremely
20939 # bizarre bug on SunOS 4.1.3.
20940 if $ac_need_defaults; then
20941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20943 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20946 # Have a temporary directory for convenience. Make it in the build tree
20947 # simply because there is no reason to put it here, and in addition,
20948 # creating and moving files from /tmp can sometimes cause problems.
20949 # Create a temporary directory, and hook for its removal unless debugging.
20950 $debug ||
20952 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20953 trap '{ (exit 1); exit 1; }' 1 2 13 15
20956 # Create a (secure) tmp directory for tmp files.
20959 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20960 test -n "$tmp" && test -d "$tmp"
20961 } ||
20963 tmp=./confstat$$-$RANDOM
20964 (umask 077 && mkdir $tmp)
20965 } ||
20967 echo "$me: cannot create a temporary directory in ." >&2
20968 { (exit 1); exit 1; }
20971 _ACEOF
20973 cat >>$CONFIG_STATUS <<_ACEOF
20976 # CONFIG_FILES section.
20979 # No need to generate the scripts if there are no CONFIG_FILES.
20980 # This happens for instance when ./config.status config.h
20981 if test -n "\$CONFIG_FILES"; then
20982 # Protect against being on the right side of a sed subst in config.status.
20983 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20984 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20985 s,@SHELL@,$SHELL,;t t
20986 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20987 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20988 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20989 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20990 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20991 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20992 s,@exec_prefix@,$exec_prefix,;t t
20993 s,@prefix@,$prefix,;t t
20994 s,@program_transform_name@,$program_transform_name,;t t
20995 s,@bindir@,$bindir,;t t
20996 s,@sbindir@,$sbindir,;t t
20997 s,@libexecdir@,$libexecdir,;t t
20998 s,@datadir@,$datadir,;t t
20999 s,@sysconfdir@,$sysconfdir,;t t
21000 s,@sharedstatedir@,$sharedstatedir,;t t
21001 s,@localstatedir@,$localstatedir,;t t
21002 s,@libdir@,$libdir,;t t
21003 s,@includedir@,$includedir,;t t
21004 s,@oldincludedir@,$oldincludedir,;t t
21005 s,@infodir@,$infodir,;t t
21006 s,@mandir@,$mandir,;t t
21007 s,@build_alias@,$build_alias,;t t
21008 s,@host_alias@,$host_alias,;t t
21009 s,@target_alias@,$target_alias,;t t
21010 s,@DEFS@,$DEFS,;t t
21011 s,@ECHO_C@,$ECHO_C,;t t
21012 s,@ECHO_N@,$ECHO_N,;t t
21013 s,@ECHO_T@,$ECHO_T,;t t
21014 s,@LIBS@,$LIBS,;t t
21015 s,@WIN16_FILES@,$WIN16_FILES,;t t
21016 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
21017 s,@DLLDEFS@,$DLLDEFS,;t t
21018 s,@build@,$build,;t t
21019 s,@build_cpu@,$build_cpu,;t t
21020 s,@build_vendor@,$build_vendor,;t t
21021 s,@build_os@,$build_os,;t t
21022 s,@host@,$host,;t t
21023 s,@host_cpu@,$host_cpu,;t t
21024 s,@host_vendor@,$host_vendor,;t t
21025 s,@host_os@,$host_os,;t t
21026 s,@SET_MAKE@,$SET_MAKE,;t t
21027 s,@CC@,$CC,;t t
21028 s,@CFLAGS@,$CFLAGS,;t t
21029 s,@LDFLAGS@,$LDFLAGS,;t t
21030 s,@CPPFLAGS@,$CPPFLAGS,;t t
21031 s,@ac_ct_CC@,$ac_ct_CC,;t t
21032 s,@EXEEXT@,$EXEEXT,;t t
21033 s,@OBJEXT@,$OBJEXT,;t t
21034 s,@CXX@,$CXX,;t t
21035 s,@CXXFLAGS@,$CXXFLAGS,;t t
21036 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21037 s,@CPPBIN@,$CPPBIN,;t t
21038 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
21039 s,@TOOLSDIR@,$TOOLSDIR,;t t
21040 s,@CPP@,$CPP,;t t
21041 s,@X_CFLAGS@,$X_CFLAGS,;t t
21042 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21043 s,@X_LIBS@,$X_LIBS,;t t
21044 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21045 s,@LEX@,$LEX,;t t
21046 s,@LEXLIB@,$LEXLIB,;t t
21047 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
21048 s,@XLEX@,$XLEX,;t t
21049 s,@BISON@,$BISON,;t t
21050 s,@AS@,$AS,;t t
21051 s,@ac_ct_AS@,$ac_ct_AS,;t t
21052 s,@LD@,$LD,;t t
21053 s,@ac_ct_LD@,$ac_ct_LD,;t t
21054 s,@AR@,$AR,;t t
21055 s,@ac_ct_AR@,$ac_ct_AR,;t t
21056 s,@RANLIB@,$RANLIB,;t t
21057 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21058 s,@STRIP@,$STRIP,;t t
21059 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21060 s,@WINDRES@,$WINDRES,;t t
21061 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21062 s,@LN_S@,$LN_S,;t t
21063 s,@LN@,$LN,;t t
21064 s,@EGREP@,$EGREP,;t t
21065 s,@LDCONFIG@,$LDCONFIG,;t t
21066 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21067 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21068 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21069 s,@LINT@,$LINT,;t t
21070 s,@LINTFLAGS@,$LINTFLAGS,;t t
21071 s,@DB2HTML@,$DB2HTML,;t t
21072 s,@DB2PDF@,$DB2PDF,;t t
21073 s,@DB2PS@,$DB2PS,;t t
21074 s,@DB2TXT@,$DB2TXT,;t t
21075 s,@FONTFORGE@,$FONTFORGE,;t t
21076 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
21077 s,@XLIB@,$XLIB,;t t
21078 s,@XFILES@,$XFILES,;t t
21079 s,@OPENGLFILES@,$OPENGLFILES,;t t
21080 s,@GLU32FILES@,$GLU32FILES,;t t
21081 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
21082 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21083 s,@GLUT32FILES@,$GLUT32FILES,;t t
21084 s,@NASLIBS@,$NASLIBS,;t t
21085 s,@CURSESLIBS@,$CURSESLIBS,;t t
21086 s,@sane_devel@,$sane_devel,;t t
21087 s,@SANELIBS@,$SANELIBS,;t t
21088 s,@SANEINCL@,$SANEINCL,;t t
21089 s,@ICULIBS@,$ICULIBS,;t t
21090 s,@ft_devel@,$ft_devel,;t t
21091 s,@ft_devel2@,$ft_devel2,;t t
21092 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
21093 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
21094 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
21095 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21096 s,@ARTSLIBS@,$ARTSLIBS,;t t
21097 s,@ARTSINCL@,$ARTSINCL,;t t
21098 s,@ALSALIBS@,$ALSALIBS,;t t
21099 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
21100 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
21101 s,@DLLEXT@,$DLLEXT,;t t
21102 s,@DLLFLAGS@,$DLLFLAGS,;t t
21103 s,@DLLIBS@,$DLLIBS,;t t
21104 s,@LDSHARED@,$LDSHARED,;t t
21105 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
21106 s,@LIBEXT@,$LIBEXT,;t t
21107 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21108 s,@DLLTOOL@,$DLLTOOL,;t t
21109 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21110 s,@DLLWRAP@,$DLLWRAP,;t t
21111 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
21112 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
21113 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
21114 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
21115 s,@IOKITLIB@,$IOKITLIB,;t t
21116 s,@CROSSTEST@,$CROSSTEST,;t t
21117 s,@CROSSCC@,$CROSSCC,;t t
21118 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
21119 s,@LDPATH@,$LDPATH,;t t
21120 s,@CRTLIBS@,$CRTLIBS,;t t
21121 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
21122 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21123 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
21124 s,@LDD@,$LDD,;t t
21125 s,@ALLOCA@,$ALLOCA,;t t
21126 s,@LIBOBJS@,$LIBOBJS,;t t
21127 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21128 /@MAKE_RULES@/r $MAKE_RULES
21129 s,@MAKE_RULES@,,;t t
21130 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21131 s,@MAKE_DLL_RULES@,,;t t
21132 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21133 s,@MAKE_TEST_RULES@,,;t t
21134 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21135 s,@MAKE_LIB_RULES@,,;t t
21136 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21137 s,@MAKE_PROG_RULES@,,;t t
21138 CEOF
21140 _ACEOF
21142 cat >>$CONFIG_STATUS <<\_ACEOF
21143 # Split the substitutions into bite-sized pieces for seds with
21144 # small command number limits, like on Digital OSF/1 and HP-UX.
21145 ac_max_sed_lines=48
21146 ac_sed_frag=1 # Number of current file.
21147 ac_beg=1 # First line for current file.
21148 ac_end=$ac_max_sed_lines # Line after last line for current file.
21149 ac_more_lines=:
21150 ac_sed_cmds=
21151 while $ac_more_lines; do
21152 if test $ac_beg -gt 1; then
21153 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21154 else
21155 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21157 if test ! -s $tmp/subs.frag; then
21158 ac_more_lines=false
21159 else
21160 # The purpose of the label and of the branching condition is to
21161 # speed up the sed processing (if there are no `@' at all, there
21162 # is no need to browse any of the substitutions).
21163 # These are the two extra sed commands mentioned above.
21164 (echo ':t
21165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21166 if test -z "$ac_sed_cmds"; then
21167 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21168 else
21169 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21171 ac_sed_frag=`expr $ac_sed_frag + 1`
21172 ac_beg=$ac_end
21173 ac_end=`expr $ac_end + $ac_max_sed_lines`
21175 done
21176 if test -z "$ac_sed_cmds"; then
21177 ac_sed_cmds=cat
21179 fi # test -n "$CONFIG_FILES"
21181 _ACEOF
21182 cat >>$CONFIG_STATUS <<\_ACEOF
21183 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21184 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21185 case $ac_file in
21186 - | *:- | *:-:* ) # input from stdin
21187 cat >$tmp/stdin
21188 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21189 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21190 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21191 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21192 * ) ac_file_in=$ac_file.in ;;
21193 esac
21195 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21196 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21198 X"$ac_file" : 'X\(//\)[^/]' \| \
21199 X"$ac_file" : 'X\(//\)$' \| \
21200 X"$ac_file" : 'X\(/\)' \| \
21201 . : '\(.\)' 2>/dev/null ||
21202 echo X"$ac_file" |
21203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21205 /^X\(\/\/\)$/{ s//\1/; q; }
21206 /^X\(\/\).*/{ s//\1/; q; }
21207 s/.*/./; q'`
21208 { if $as_mkdir_p; then
21209 mkdir -p "$ac_dir"
21210 else
21211 as_dir="$ac_dir"
21212 as_dirs=
21213 while test ! -d "$as_dir"; do
21214 as_dirs="$as_dir $as_dirs"
21215 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21217 X"$as_dir" : 'X\(//\)[^/]' \| \
21218 X"$as_dir" : 'X\(//\)$' \| \
21219 X"$as_dir" : 'X\(/\)' \| \
21220 . : '\(.\)' 2>/dev/null ||
21221 echo X"$as_dir" |
21222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21224 /^X\(\/\/\)$/{ s//\1/; q; }
21225 /^X\(\/\).*/{ s//\1/; q; }
21226 s/.*/./; q'`
21227 done
21228 test ! -n "$as_dirs" || mkdir $as_dirs
21229 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21230 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21231 { (exit 1); exit 1; }; }; }
21233 ac_builddir=.
21235 if test "$ac_dir" != .; then
21236 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21237 # A "../" for each directory in $ac_dir_suffix.
21238 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21239 else
21240 ac_dir_suffix= ac_top_builddir=
21243 case $srcdir in
21244 .) # No --srcdir option. We are building in place.
21245 ac_srcdir=.
21246 if test -z "$ac_top_builddir"; then
21247 ac_top_srcdir=.
21248 else
21249 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21250 fi ;;
21251 [\\/]* | ?:[\\/]* ) # Absolute path.
21252 ac_srcdir=$srcdir$ac_dir_suffix;
21253 ac_top_srcdir=$srcdir ;;
21254 *) # Relative path.
21255 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21256 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21257 esac
21259 # Do not use `cd foo && pwd` to compute absolute paths, because
21260 # the directories may not exist.
21261 case `pwd` in
21262 .) ac_abs_builddir="$ac_dir";;
21264 case "$ac_dir" in
21265 .) ac_abs_builddir=`pwd`;;
21266 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21267 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21268 esac;;
21269 esac
21270 case $ac_abs_builddir in
21271 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21273 case ${ac_top_builddir}. in
21274 .) ac_abs_top_builddir=$ac_abs_builddir;;
21275 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21276 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21277 esac;;
21278 esac
21279 case $ac_abs_builddir in
21280 .) ac_abs_srcdir=$ac_srcdir;;
21282 case $ac_srcdir in
21283 .) ac_abs_srcdir=$ac_abs_builddir;;
21284 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21285 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21286 esac;;
21287 esac
21288 case $ac_abs_builddir in
21289 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21291 case $ac_top_srcdir in
21292 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21293 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21294 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21295 esac;;
21296 esac
21299 case $INSTALL in
21300 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21301 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21302 esac
21304 # Let's still pretend it is `configure' which instantiates (i.e., don't
21305 # use $as_me), people would be surprised to read:
21306 # /* config.h. Generated by config.status. */
21307 if test x"$ac_file" = x-; then
21308 configure_input=
21309 else
21310 configure_input="$ac_file. "
21312 configure_input=$configure_input"Generated from `echo $ac_file_in |
21313 sed 's,.*/,,'` by configure."
21315 # First look for the input files in the build tree, otherwise in the
21316 # src tree.
21317 ac_file_inputs=`IFS=:
21318 for f in $ac_file_in; do
21319 case $f in
21320 -) echo $tmp/stdin ;;
21321 [\\/$]*)
21322 # Absolute (can't be DOS-style, as IFS=:)
21323 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21324 echo "$as_me: error: cannot find input file: $f" >&2;}
21325 { (exit 1); exit 1; }; }
21326 echo "$f";;
21327 *) # Relative
21328 if test -f "$f"; then
21329 # Build tree
21330 echo "$f"
21331 elif test -f "$srcdir/$f"; then
21332 # Source tree
21333 echo "$srcdir/$f"
21334 else
21335 # /dev/null tree
21336 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21337 echo "$as_me: error: cannot find input file: $f" >&2;}
21338 { (exit 1); exit 1; }; }
21339 fi;;
21340 esac
21341 done` || { (exit 1); exit 1; }
21343 if test x"$ac_file" != x-; then
21344 { echo "$as_me:$LINENO: creating $ac_file" >&5
21345 echo "$as_me: creating $ac_file" >&6;}
21346 rm -f "$ac_file"
21348 _ACEOF
21349 cat >>$CONFIG_STATUS <<_ACEOF
21350 sed "$ac_vpsub
21351 $extrasub
21352 _ACEOF
21353 cat >>$CONFIG_STATUS <<\_ACEOF
21355 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21356 s,@configure_input@,$configure_input,;t t
21357 s,@srcdir@,$ac_srcdir,;t t
21358 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21359 s,@top_srcdir@,$ac_top_srcdir,;t t
21360 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21361 s,@builddir@,$ac_builddir,;t t
21362 s,@abs_builddir@,$ac_abs_builddir,;t t
21363 s,@top_builddir@,$ac_top_builddir,;t t
21364 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21365 s,@INSTALL@,$ac_INSTALL,;t t
21366 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21367 rm -f $tmp/stdin
21368 if test x"$ac_file" != x-; then
21369 mv $tmp/out $ac_file
21370 else
21371 cat $tmp/out
21372 rm -f $tmp/out
21375 done
21376 _ACEOF
21377 cat >>$CONFIG_STATUS <<\_ACEOF
21380 # CONFIG_HEADER section.
21383 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21384 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21386 # ac_d sets the value in "#define NAME VALUE" lines.
21387 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21388 ac_dB='[ ].*$,\1#\2'
21389 ac_dC=' '
21390 ac_dD=',;t'
21391 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21392 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21393 ac_uB='$,\1#\2define\3'
21394 ac_uC=' '
21395 ac_uD=',;t'
21397 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21398 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21399 case $ac_file in
21400 - | *:- | *:-:* ) # input from stdin
21401 cat >$tmp/stdin
21402 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21404 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21405 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21406 * ) ac_file_in=$ac_file.in ;;
21407 esac
21409 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21410 echo "$as_me: creating $ac_file" >&6;}
21412 # First look for the input files in the build tree, otherwise in the
21413 # src tree.
21414 ac_file_inputs=`IFS=:
21415 for f in $ac_file_in; do
21416 case $f in
21417 -) echo $tmp/stdin ;;
21418 [\\/$]*)
21419 # Absolute (can't be DOS-style, as IFS=:)
21420 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21421 echo "$as_me: error: cannot find input file: $f" >&2;}
21422 { (exit 1); exit 1; }; }
21423 # Do quote $f, to prevent DOS paths from being IFS'd.
21424 echo "$f";;
21425 *) # Relative
21426 if test -f "$f"; then
21427 # Build tree
21428 echo "$f"
21429 elif test -f "$srcdir/$f"; then
21430 # Source tree
21431 echo "$srcdir/$f"
21432 else
21433 # /dev/null tree
21434 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21435 echo "$as_me: error: cannot find input file: $f" >&2;}
21436 { (exit 1); exit 1; }; }
21437 fi;;
21438 esac
21439 done` || { (exit 1); exit 1; }
21440 # Remove the trailing spaces.
21441 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21443 _ACEOF
21445 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21446 # `conftest.undefs', that substitutes the proper values into
21447 # config.h.in to produce config.h. The first handles `#define'
21448 # templates, and the second `#undef' templates.
21449 # And first: Protect against being on the right side of a sed subst in
21450 # config.status. Protect against being in an unquoted here document
21451 # in config.status.
21452 rm -f conftest.defines conftest.undefs
21453 # Using a here document instead of a string reduces the quoting nightmare.
21454 # Putting comments in sed scripts is not portable.
21456 # `end' is used to avoid that the second main sed command (meant for
21457 # 0-ary CPP macros) applies to n-ary macro definitions.
21458 # See the Autoconf documentation for `clear'.
21459 cat >confdef2sed.sed <<\_ACEOF
21460 s/[\\&,]/\\&/g
21461 s,[\\$`],\\&,g
21462 t clear
21463 : clear
21464 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21465 t end
21466 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21467 : end
21468 _ACEOF
21469 # If some macros were called several times there might be several times
21470 # the same #defines, which is useless. Nevertheless, we may not want to
21471 # sort them, since we want the *last* AC-DEFINE to be honored.
21472 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21473 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21474 rm -f confdef2sed.sed
21476 # This sed command replaces #undef with comments. This is necessary, for
21477 # example, in the case of _POSIX_SOURCE, which is predefined and required
21478 # on some systems where configure will not decide to define it.
21479 cat >>conftest.undefs <<\_ACEOF
21480 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21481 _ACEOF
21483 # Break up conftest.defines because some shells have a limit on the size
21484 # of here documents, and old seds have small limits too (100 cmds).
21485 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21486 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21487 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21488 echo ' :' >>$CONFIG_STATUS
21489 rm -f conftest.tail
21490 while grep . conftest.defines >/dev/null
21492 # Write a limited-size here document to $tmp/defines.sed.
21493 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21494 # Speed up: don't consider the non `#define' lines.
21495 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21496 # Work around the forget-to-reset-the-flag bug.
21497 echo 't clr' >>$CONFIG_STATUS
21498 echo ': clr' >>$CONFIG_STATUS
21499 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21500 echo 'CEOF
21501 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21502 rm -f $tmp/in
21503 mv $tmp/out $tmp/in
21504 ' >>$CONFIG_STATUS
21505 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21506 rm -f conftest.defines
21507 mv conftest.tail conftest.defines
21508 done
21509 rm -f conftest.defines
21510 echo ' fi # grep' >>$CONFIG_STATUS
21511 echo >>$CONFIG_STATUS
21513 # Break up conftest.undefs because some shells have a limit on the size
21514 # of here documents, and old seds have small limits too (100 cmds).
21515 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21516 rm -f conftest.tail
21517 while grep . conftest.undefs >/dev/null
21519 # Write a limited-size here document to $tmp/undefs.sed.
21520 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21521 # Speed up: don't consider the non `#undef'
21522 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21523 # Work around the forget-to-reset-the-flag bug.
21524 echo 't clr' >>$CONFIG_STATUS
21525 echo ': clr' >>$CONFIG_STATUS
21526 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21527 echo 'CEOF
21528 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21529 rm -f $tmp/in
21530 mv $tmp/out $tmp/in
21531 ' >>$CONFIG_STATUS
21532 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21533 rm -f conftest.undefs
21534 mv conftest.tail conftest.undefs
21535 done
21536 rm -f conftest.undefs
21538 cat >>$CONFIG_STATUS <<\_ACEOF
21539 # Let's still pretend it is `configure' which instantiates (i.e., don't
21540 # use $as_me), people would be surprised to read:
21541 # /* config.h. Generated by config.status. */
21542 if test x"$ac_file" = x-; then
21543 echo "/* Generated by configure. */" >$tmp/config.h
21544 else
21545 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21547 cat $tmp/in >>$tmp/config.h
21548 rm -f $tmp/in
21549 if test x"$ac_file" != x-; then
21550 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21551 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21552 echo "$as_me: $ac_file is unchanged" >&6;}
21553 else
21554 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21555 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21556 X"$ac_file" : 'X\(//\)[^/]' \| \
21557 X"$ac_file" : 'X\(//\)$' \| \
21558 X"$ac_file" : 'X\(/\)' \| \
21559 . : '\(.\)' 2>/dev/null ||
21560 echo X"$ac_file" |
21561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21562 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21563 /^X\(\/\/\)$/{ s//\1/; q; }
21564 /^X\(\/\).*/{ s//\1/; q; }
21565 s/.*/./; q'`
21566 { if $as_mkdir_p; then
21567 mkdir -p "$ac_dir"
21568 else
21569 as_dir="$ac_dir"
21570 as_dirs=
21571 while test ! -d "$as_dir"; do
21572 as_dirs="$as_dir $as_dirs"
21573 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21575 X"$as_dir" : 'X\(//\)[^/]' \| \
21576 X"$as_dir" : 'X\(//\)$' \| \
21577 X"$as_dir" : 'X\(/\)' \| \
21578 . : '\(.\)' 2>/dev/null ||
21579 echo X"$as_dir" |
21580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21582 /^X\(\/\/\)$/{ s//\1/; q; }
21583 /^X\(\/\).*/{ s//\1/; q; }
21584 s/.*/./; q'`
21585 done
21586 test ! -n "$as_dirs" || mkdir $as_dirs
21587 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21588 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21589 { (exit 1); exit 1; }; }; }
21591 rm -f $ac_file
21592 mv $tmp/config.h $ac_file
21594 else
21595 cat $tmp/config.h
21596 rm -f $tmp/config.h
21598 done
21599 _ACEOF
21600 cat >>$CONFIG_STATUS <<\_ACEOF
21603 # CONFIG_COMMANDS section.
21605 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21606 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21607 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21608 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21609 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21610 X"$ac_dest" : 'X\(//\)[^/]' \| \
21611 X"$ac_dest" : 'X\(//\)$' \| \
21612 X"$ac_dest" : 'X\(/\)' \| \
21613 . : '\(.\)' 2>/dev/null ||
21614 echo X"$ac_dest" |
21615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21617 /^X\(\/\/\)$/{ s//\1/; q; }
21618 /^X\(\/\).*/{ s//\1/; q; }
21619 s/.*/./; q'`
21620 { if $as_mkdir_p; then
21621 mkdir -p "$ac_dir"
21622 else
21623 as_dir="$ac_dir"
21624 as_dirs=
21625 while test ! -d "$as_dir"; do
21626 as_dirs="$as_dir $as_dirs"
21627 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21629 X"$as_dir" : 'X\(//\)[^/]' \| \
21630 X"$as_dir" : 'X\(//\)$' \| \
21631 X"$as_dir" : 'X\(/\)' \| \
21632 . : '\(.\)' 2>/dev/null ||
21633 echo X"$as_dir" |
21634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21636 /^X\(\/\/\)$/{ s//\1/; q; }
21637 /^X\(\/\).*/{ s//\1/; q; }
21638 s/.*/./; q'`
21639 done
21640 test ! -n "$as_dirs" || mkdir $as_dirs
21641 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21642 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21643 { (exit 1); exit 1; }; }; }
21645 ac_builddir=.
21647 if test "$ac_dir" != .; then
21648 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21649 # A "../" for each directory in $ac_dir_suffix.
21650 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21651 else
21652 ac_dir_suffix= ac_top_builddir=
21655 case $srcdir in
21656 .) # No --srcdir option. We are building in place.
21657 ac_srcdir=.
21658 if test -z "$ac_top_builddir"; then
21659 ac_top_srcdir=.
21660 else
21661 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21662 fi ;;
21663 [\\/]* | ?:[\\/]* ) # Absolute path.
21664 ac_srcdir=$srcdir$ac_dir_suffix;
21665 ac_top_srcdir=$srcdir ;;
21666 *) # Relative path.
21667 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21668 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21669 esac
21671 # Do not use `cd foo && pwd` to compute absolute paths, because
21672 # the directories may not exist.
21673 case `pwd` in
21674 .) ac_abs_builddir="$ac_dir";;
21676 case "$ac_dir" in
21677 .) ac_abs_builddir=`pwd`;;
21678 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21679 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21680 esac;;
21681 esac
21682 case $ac_abs_builddir in
21683 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21685 case ${ac_top_builddir}. in
21686 .) ac_abs_top_builddir=$ac_abs_builddir;;
21687 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21688 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21689 esac;;
21690 esac
21691 case $ac_abs_builddir in
21692 .) ac_abs_srcdir=$ac_srcdir;;
21694 case $ac_srcdir in
21695 .) ac_abs_srcdir=$ac_abs_builddir;;
21696 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21697 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21698 esac;;
21699 esac
21700 case $ac_abs_builddir in
21701 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21703 case $ac_top_srcdir in
21704 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21705 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21706 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21707 esac;;
21708 esac
21711 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21712 echo "$as_me: executing $ac_dest commands" >&6;}
21713 case $ac_dest in
21714 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21715 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21716 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21717 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21718 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21719 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21720 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21721 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21722 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21723 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21724 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21725 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21726 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21727 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21728 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21729 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21730 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21731 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21732 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21733 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21734 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21735 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21736 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21737 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21738 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21739 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21740 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21741 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21742 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21743 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21744 esac
21745 done
21746 _ACEOF
21748 cat >>$CONFIG_STATUS <<\_ACEOF
21750 { (exit 0); exit 0; }
21751 _ACEOF
21752 chmod +x $CONFIG_STATUS
21753 ac_clean_files=$ac_clean_files_save
21756 # configure is writing to config.log, and then calls config.status.
21757 # config.status does its own redirection, appending to config.log.
21758 # Unfortunately, on DOS this fails, as config.log is still kept open
21759 # by configure, so config.status won't be able to write to it; its
21760 # output is simply discarded. So we exec the FD to /dev/null,
21761 # effectively closing config.log, so it can be properly (re)opened and
21762 # appended to by config.status. When coming back to configure, we
21763 # need to make the FD available again.
21764 if test "$no_create" != yes; then
21765 ac_cs_success=:
21766 ac_config_status_args=
21767 test "$silent" = yes &&
21768 ac_config_status_args="$ac_config_status_args --quiet"
21769 exec 5>/dev/null
21770 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21771 exec 5>>config.log
21772 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21773 # would make configure fail if this is the last instruction.
21774 $ac_cs_success || { (exit 1); exit 1; }
21778 if test "$have_x" = "no"
21779 then
21780 echo
21781 echo "*** Warning: X development files not found. Wine will be built without"
21782 echo "*** X support, which currently does not work, and would probably not be"
21783 echo "*** what you want anyway. You will need to install devel packages of"
21784 echo "*** Xlib/Xfree86 at the very least."
21787 if test "$wine_cv_opengl_version_OK" = "no"
21788 then
21789 echo
21790 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21791 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21794 if test "$wine_cv_msg_freetype" = "yes"
21795 then
21796 echo
21797 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21798 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21799 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21800 echo "*** enable Wine to use TrueType fonts."
21803 if test -z "$ALSALIBS" -a -z "$ARTSC_LIBS" -a -z "$AUDIOIOLIBS" -a \
21804 -z "$ac_cv_lib_soname_jack" -a -z "$NASLIBS" -a \
21805 "$ac_cv_c_opensoundsystem" = "no"
21806 then
21807 echo "*** No sound system was found. Windows applications will be silent."
21808 echo "*** The currently supported sound systems are:"
21809 echo "*** ALSA, ARTS, AudioIO, Jack, NAS and OSS"
21812 echo
21813 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
21814 echo