Add stretching support to AlphaBlend.
[wine/multimedia.git] / configure
blob723fa2dd660aab9b25b6c2586d5676bb55703b6b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20041019.
5 # Report bugs to <wine-devel@winehq.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='Wine'
271 PACKAGE_TARNAME='wine'
272 PACKAGE_VERSION='20041019'
273 PACKAGE_STRING='Wine 20041019'
274 PACKAGE_BUGREPORT='wine-devel@winehq.org'
276 ac_unique_file="server/atom.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL DLLDEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT FONTFORGE LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPELIBS FREETYPEINCL FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
790 cat <<_ACEOF
791 \`configure' configures Wine 20041019 to adapt to many kinds of systems.
793 Usage: $0 [OPTION]... [VAR=VALUE]...
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
798 Defaults for the options are specified in brackets.
800 Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 _ACEOF
813 cat <<_ACEOF
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
816 [$ac_default_prefix]
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 [PREFIX]
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
825 For better control, use the options below.
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
840 _ACEOF
842 cat <<\_ACEOF
844 X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
848 System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 _ACEOF
854 if test -n "$ac_init_help"; then
855 case $ac_init_help in
856 short | recursive ) echo "Configuration of Wine 20041019:";;
857 esac
858 cat <<\_ACEOF
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --disable-win16 do not include Win16 support
864 --disable-debug compile out all debugging messages
865 --disable-trace compile out TRACE messages
866 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
867 binaries)
869 Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
872 --without-opengl do not use OpenGL
873 --without-curses do not use curses
874 --with-wine-tools=<dir> use Wine tools from directory <dir>
875 --with-x use the X Window System
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CXX C++ compiler command
885 CXXFLAGS C++ compiler flags
886 CPP C preprocessor
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
891 Report bugs to <wine-devel@winehq.org>.
892 _ACEOF
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
902 if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907 ac_dir_suffix= ac_top_builddir=
910 case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963 esac
965 cd $ac_dir
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
968 echo
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
971 echo
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
975 echo
976 $ac_configure --help
977 else
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 cd "$ac_popdir"
981 done
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986 cat <<\_ACEOF
987 Wine configure 20041019
988 generated by GNU Autoconf 2.59
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994 exit 0
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1001 It was created by Wine $as_me 20041019, which was
1002 generated by GNU Autoconf 2.59. Invocation command line was
1004 $ $0 $@
1006 _ACEOF
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030 _ASUNAME
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1035 IFS=$as_save_IFS
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1038 done
1040 } >&5
1042 cat >&5 <<_ACEOF
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1049 _ACEOF
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1064 for ac_arg
1066 case $ac_arg in
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 continue ;;
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073 esac
1074 case $ac_pass in
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
1079 ac_must_keep_next=false # Got value, back to normal.
1080 else
1081 case $ac_arg in
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088 esac
1090 -* ) ac_must_keep_next=true ;;
1091 esac
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1095 ac_sep=" "
1097 esac
1098 done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log. We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
1111 echo
1113 cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118 echo
1119 # The following way of writing the cache mishandles newlines in values,
1121 (set) 2>&1 |
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123 *ac_space=\ *)
1124 sed -n \
1125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 sed -n \
1130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 esac;
1134 echo
1136 cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141 echo
1142 for ac_var in $ac_subst_vars
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1149 if test -n "$ac_subst_files"; then
1150 cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155 echo
1156 for ac_var in $ac_subst_files
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1160 done | sort
1161 echo
1164 if test -s confdefs.h; then
1165 cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170 echo
1171 sed "/^$/d" confdefs.h | sort
1172 echo
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1177 } >&5
1178 rm -f core *.core &&
1179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180 exit $exit_status
1182 for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1192 # Predefined preprocessor variables.
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 else
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
1230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232 sed 's/^/| /' "$ac_site_file" >&5
1233 . "$ac_site_file"
1235 done
1237 if test -r "$cache_file"; then
1238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
1241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243 case $cache_file in
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1246 esac
1248 else
1249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251 >$cache_file
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1264 set,)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,set)
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1272 ,);;
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
1275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1278 echo "$as_me: former value: $ac_old_val" >&2;}
1279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1280 echo "$as_me: current value: $ac_new_val" >&2;}
1281 ac_cache_corrupted=:
1282 fi;;
1283 esac
1284 # Pass precious variables to config.status.
1285 if test "$ac_new_set" = set; then
1286 case $ac_new_val in
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1290 esac
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294 esac
1296 done
1297 if $ac_cache_corrupted; then
1298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers include/config.h"
1340 ac_aux_dir=
1341 for ac_dir in tools $srcdir/tools; do
1342 if test -f $ac_dir/install-sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install-sh -c"
1345 break
1346 elif test -f $ac_dir/install.sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install.sh -c"
1349 break
1350 elif test -f $ac_dir/shtool; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 break
1355 done
1356 if test -z "$ac_aux_dir"; then
1357 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1358 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1359 { (exit 1); exit 1; }; }
1361 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1367 # Check whether --enable-win16 or --disable-win16 was given.
1368 if test "${enable_win16+set}" = set; then
1369 enableval="$enable_win16"
1372 # Check whether --enable-debug or --disable-debug was given.
1373 if test "${enable_debug+set}" = set; then
1374 enableval="$enable_debug"
1377 # Check whether --enable-trace or --disable-trace was given.
1378 if test "${enable_trace+set}" = set; then
1379 enableval="$enable_trace"
1382 # Check whether --enable-win64 or --disable-win64 was given.
1383 if test "${enable_win64+set}" = set; then
1384 enableval="$enable_win64"
1389 # Check whether --with-opengl or --without-opengl was given.
1390 if test "${with_opengl+set}" = set; then
1391 withval="$with_opengl"
1395 # Check whether --with-curses or --without-curses was given.
1396 if test "${with_curses+set}" = set; then
1397 withval="$with_curses"
1401 # Check whether --with-wine-tools or --without-wine-tools was given.
1402 if test "${with_wine_tools+set}" = set; then
1403 withval="$with_wine_tools"
1407 WIN16_FILES="\$(WIN16_FILES)"
1409 WIN16_INSTALL="\$(WIN16_INSTALL)"
1411 if test "x$enable_win16" = "xno"
1412 then
1413 WIN16_FILES=""
1414 WIN16_INSTALL=""
1417 DLLDEFS=""
1419 if test "x$enable_debug" = "xno"
1420 then
1421 DLLDEFS="$DLLDEFS -DWINE_NO_DEBUG_MSGS"
1423 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1424 then
1425 DLLDEFS="$DLLDEFS -DWINE_NO_TRACE_MSGS"
1429 # Make sure we can run config.sub.
1430 $ac_config_sub sun4 >/dev/null 2>&1 ||
1431 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1432 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1433 { (exit 1); exit 1; }; }
1435 echo "$as_me:$LINENO: checking build system type" >&5
1436 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1437 if test "${ac_cv_build+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440 ac_cv_build_alias=$build_alias
1441 test -z "$ac_cv_build_alias" &&
1442 ac_cv_build_alias=`$ac_config_guess`
1443 test -z "$ac_cv_build_alias" &&
1444 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1445 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1446 { (exit 1); exit 1; }; }
1447 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1448 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1449 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1450 { (exit 1); exit 1; }; }
1453 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1454 echo "${ECHO_T}$ac_cv_build" >&6
1455 build=$ac_cv_build
1456 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1457 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1458 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1461 echo "$as_me:$LINENO: checking host system type" >&5
1462 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1463 if test "${ac_cv_host+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 else
1466 ac_cv_host_alias=$host_alias
1467 test -z "$ac_cv_host_alias" &&
1468 ac_cv_host_alias=$ac_cv_build_alias
1469 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1470 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1471 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1472 { (exit 1); exit 1; }; }
1475 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1476 echo "${ECHO_T}$ac_cv_host" >&6
1477 host=$ac_cv_host
1478 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1479 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1480 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1483 case $host in
1484 x86_64*linux*)
1485 if test "x$enable_win64" != "xyes"
1486 then
1487 test -n "$CC" || CC="gcc -m32"
1488 test -n "$LD" || LD="ld -m elf_i386"
1489 test -n "$AS" || AS="as --32"
1492 esac
1494 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1495 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1496 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1497 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500 cat >conftest.make <<\_ACEOF
1501 all:
1502 @echo 'ac_maketemp="$(MAKE)"'
1503 _ACEOF
1504 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1505 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1506 if test -n "$ac_maketemp"; then
1507 eval ac_cv_prog_make_${ac_make}_set=yes
1508 else
1509 eval ac_cv_prog_make_${ac_make}_set=no
1511 rm -f conftest.make
1513 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1514 echo "$as_me:$LINENO: result: yes" >&5
1515 echo "${ECHO_T}yes" >&6
1516 SET_MAKE=
1517 else
1518 echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1520 SET_MAKE="MAKE=${MAKE-make}"
1523 ac_ext=c
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536 if test -n "$CC"; then
1537 ac_cv_prog_CC="$CC" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1542 IFS=$as_save_IFS
1543 test -z "$as_dir" && as_dir=.
1544 for ac_exec_ext in '' $ac_executable_extensions; do
1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548 break 2
1550 done
1551 done
1555 CC=$ac_cv_prog_CC
1556 if test -n "$CC"; then
1557 echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1559 else
1560 echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1565 if test -z "$ac_cv_prog_CC"; then
1566 ac_ct_CC=$CC
1567 # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574 if test -n "$ac_ct_CC"; then
1575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1580 IFS=$as_save_IFS
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_ac_ct_CC="gcc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 break 2
1588 done
1589 done
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1597 else
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1602 CC=$ac_ct_CC
1603 else
1604 CC="$ac_cv_prog_CC"
1607 if test -z "$CC"; then
1608 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_CC="${ac_tool_prefix}cc"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628 break 2
1630 done
1631 done
1635 CC=$ac_cv_prog_CC
1636 if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1639 else
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1645 if test -z "$ac_cv_prog_CC"; then
1646 ac_ct_CC=$CC
1647 # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 if test -n "$ac_ct_CC"; then
1655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_CC="cc"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 break 2
1668 done
1669 done
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1677 else
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1682 CC=$ac_ct_CC
1683 else
1684 CC="$ac_cv_prog_CC"
1688 if test -z "$CC"; then
1689 # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699 ac_prog_rejected=no
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708 ac_prog_rejected=yes
1709 continue
1711 ac_cv_prog_CC="cc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1715 done
1716 done
1718 if test $ac_prog_rejected = yes; then
1719 # We found a bogon in the path, so make sure we never use it.
1720 set dummy $ac_cv_prog_CC
1721 shift
1722 if test $# != 0; then
1723 # We chose a different compiler from the bogus one.
1724 # However, it has the same basename, so the bogon will be chosen
1725 # first if we set CC to just the basename; use the full file name.
1726 shift
1727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1732 CC=$ac_cv_prog_CC
1733 if test -n "$CC"; then
1734 echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1736 else
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1742 if test -z "$CC"; then
1743 if test -n "$ac_tool_prefix"; then
1744 for ac_prog in cl
1746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1767 done
1768 done
1772 CC=$ac_cv_prog_CC
1773 if test -n "$CC"; then
1774 echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1776 else
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$CC" && break
1782 done
1784 if test -z "$CC"; then
1785 ac_ct_CC=$CC
1786 for ac_prog in cl
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795 if test -n "$ac_ct_CC"; then
1796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_ac_ct_CC="$ac_prog"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 break 2
1809 done
1810 done
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1818 else
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1823 test -n "$ac_ct_CC" && break
1824 done
1826 CC=$ac_ct_CC
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840 "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843 (eval $ac_compiler --version </dev/null >&5) 2>&5
1844 ac_status=$?
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848 (eval $ac_compiler -v </dev/null >&5) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853 (eval $ac_compiler -V </dev/null >&5) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }
1858 cat >conftest.$ac_ext <<_ACEOF
1859 /* confdefs.h. */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1866 main ()
1870 return 0;
1872 _ACEOF
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1877 # of exeext.
1878 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882 (eval $ac_link_default) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # Find the output, starting from the most likely. This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # resort.
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1892 ac_cv_exeext=
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896 test -f "$ac_file" || continue
1897 case $ac_file in
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1900 conftest.$ac_ext )
1901 # This is the source file.
1903 [ab].out )
1904 # We found the default executable, but exeext='' is most
1905 # certainly right.
1906 break;;
1907 *.* )
1908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909 # FIXME: I believe we export ac_cv_exeext for Libtool,
1910 # but it would be cool to find out if it's true. Does anybody
1911 # maintain Libtool? --akim.
1912 export ac_cv_exeext
1913 break;;
1915 break;;
1916 esac
1917 done
1918 else
1919 echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926 { (exit 77); exit 77; }; }
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1933 # Check the compiler produces executables we can run. If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940 if { ac_try='./$ac_file'
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 (eval $ac_try) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1946 cross_compiling=no
1947 else
1948 if test "$cross_compiling" = maybe; then
1949 cross_compiling=yes
1950 else
1951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run. If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976 (eval $ac_link) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1983 # `rm'.
1984 for ac_file in conftest.exe conftest conftest.*; do
1985 test -f "$ac_file" || continue
1986 case $ac_file in
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989 export ac_cv_exeext
1990 break;;
1991 * ) break;;
1992 esac
1993 done
1994 else
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2008 ac_exeext=$EXEEXT
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h. */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2022 main ()
2026 return 0;
2028 _ACEOF
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; then
2035 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2036 case $ac_file in
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039 break;;
2040 esac
2041 done
2042 else
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }
2053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056 echo "${ECHO_T}$ac_cv_objext" >&6
2057 OBJEXT=$ac_cv_objext
2058 ac_objext=$OBJEXT
2059 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064 cat >conftest.$ac_ext <<_ACEOF
2065 /* confdefs.h. */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2072 main ()
2074 #ifndef __GNUC__
2075 choke me
2076 #endif
2079 return 0;
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>conftest.er1
2085 ac_status=$?
2086 grep -v '^ *+' conftest.er1 >conftest.err
2087 rm -f conftest.er1
2088 cat conftest.err >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); } &&
2091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093 (eval $ac_try) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; } &&
2097 { ac_try='test -s conftest.$ac_objext'
2098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 (eval $ac_try) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; }; then
2103 ac_compiler_gnu=yes
2104 else
2105 echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2108 ac_compiler_gnu=no
2110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2114 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2115 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2116 GCC=`test $ac_compiler_gnu = yes && echo yes`
2117 ac_test_CFLAGS=${CFLAGS+set}
2118 ac_save_CFLAGS=$CFLAGS
2119 CFLAGS="-g"
2120 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2121 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2122 if test "${ac_cv_prog_cc_g+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125 cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h. */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2133 main ()
2137 return 0;
2139 _ACEOF
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>conftest.er1
2143 ac_status=$?
2144 grep -v '^ *+' conftest.er1 >conftest.err
2145 rm -f conftest.er1
2146 cat conftest.err >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 ac_cv_prog_cc_g=yes
2162 else
2163 echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2166 ac_cv_prog_cc_g=no
2168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2172 if test "$ac_test_CFLAGS" = set; then
2173 CFLAGS=$ac_save_CFLAGS
2174 elif test $ac_cv_prog_cc_g = yes; then
2175 if test "$GCC" = yes; then
2176 CFLAGS="-g -O2"
2177 else
2178 CFLAGS="-g"
2180 else
2181 if test "$GCC" = yes; then
2182 CFLAGS="-O2"
2183 else
2184 CFLAGS=
2187 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192 ac_cv_prog_cc_stdc=no
2193 ac_save_CC=$CC
2194 cat >conftest.$ac_ext <<_ACEOF
2195 /* confdefs.h. */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2200 #include <stdarg.h>
2201 #include <stdio.h>
2202 #include <sys/types.h>
2203 #include <sys/stat.h>
2204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2205 struct buf { int x; };
2206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207 static char *e (p, i)
2208 char **p;
2209 int i;
2211 return p[i];
2213 static char *f (char * (*g) (char **, int), char **p, ...)
2215 char *s;
2216 va_list v;
2217 va_start (v,p);
2218 s = g (p, va_arg (v,int));
2219 va_end (v);
2220 return s;
2223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2224 function prototypes and stuff, but not '\xHH' hex character constants.
2225 These don't provoke an error unfortunately, instead are silently treated
2226 as 'x'. The following induces an error, until -std1 is added to get
2227 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2228 array size at least. It's necessary to write '\x00'==0 to get something
2229 that's true only with -std1. */
2230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2232 int test (int i, double x);
2233 struct s1 {int (*f) (int a);};
2234 struct s2 {int (*f) (double a);};
2235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236 int argc;
2237 char **argv;
2239 main ()
2241 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2243 return 0;
2245 _ACEOF
2246 # Don't try gcc -ansi; that turns off useful extensions and
2247 # breaks some systems' header files.
2248 # AIX -qlanglvl=ansi
2249 # Ultrix and OSF/1 -std1
2250 # HP-UX 10.20 and later -Ae
2251 # HP-UX older versions -Aa -D_HPUX_SOURCE
2252 # SVR4 -Xc -D__EXTENSIONS__
2253 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2255 CC="$ac_save_CC $ac_arg"
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>conftest.er1
2259 ac_status=$?
2260 grep -v '^ *+' conftest.er1 >conftest.err
2261 rm -f conftest.er1
2262 cat conftest.err >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 (eval $ac_try) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 ac_cv_prog_cc_stdc=$ac_arg
2278 break
2279 else
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2284 rm -f conftest.err conftest.$ac_objext
2285 done
2286 rm -f conftest.$ac_ext conftest.$ac_objext
2287 CC=$ac_save_CC
2291 case "x$ac_cv_prog_cc_stdc" in
2292 x|xno)
2293 echo "$as_me:$LINENO: result: none needed" >&5
2294 echo "${ECHO_T}none needed" >&6 ;;
2296 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2297 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2298 CC="$CC $ac_cv_prog_cc_stdc" ;;
2299 esac
2301 # Some people use a C++ compiler to compile C. Since we use `exit',
2302 # in C++ we need to declare it. In case someone uses the same compiler
2303 # for both compiling C and C++ we need to have the C++ compiler decide
2304 # the declaration of exit, since it's the most demanding environment.
2305 cat >conftest.$ac_ext <<_ACEOF
2306 #ifndef __cplusplus
2307 choke me
2308 #endif
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 for ac_declaration in \
2332 '' \
2333 'extern "C" void std::exit (int) throw (); using std::exit;' \
2334 'extern "C" void std::exit (int); using std::exit;' \
2335 'extern "C" void exit (int) throw ();' \
2336 'extern "C" void exit (int);' \
2337 'void exit (int);'
2339 cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h. */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2345 $ac_declaration
2346 #include <stdlib.h>
2348 main ()
2350 exit (42);
2352 return 0;
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2358 ac_status=$?
2359 grep -v '^ *+' conftest.er1 >conftest.err
2360 rm -f conftest.er1
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 continue
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384 cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h. */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h. */
2390 $ac_declaration
2392 main ()
2394 exit (42);
2396 return 0;
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2402 ac_status=$?
2403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 break
2421 else
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427 done
2428 rm -f conftest*
2429 if test -n "$ac_declaration"; then
2430 echo '#ifdef __cplusplus' >>confdefs.h
2431 echo $ac_declaration >>confdefs.h
2432 echo '#endif' >>confdefs.h
2435 else
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441 ac_ext=c
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447 ac_ext=cc
2448 ac_cpp='$CXXCPP $CPPFLAGS'
2449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2452 if test -n "$ac_tool_prefix"; then
2453 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2457 echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2459 if test "${ac_cv_prog_CXX+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462 if test -n "$CXX"; then
2463 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2476 done
2477 done
2481 CXX=$ac_cv_prog_CXX
2482 if test -n "$CXX"; then
2483 echo "$as_me:$LINENO: result: $CXX" >&5
2484 echo "${ECHO_T}$CXX" >&6
2485 else
2486 echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6
2490 test -n "$CXX" && break
2491 done
2493 if test -z "$CXX"; then
2494 ac_ct_CXX=$CXX
2495 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498 set dummy $ac_prog; ac_word=$2
2499 echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2501 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 if test -n "$ac_ct_CXX"; then
2505 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2514 ac_cv_prog_ac_ct_CXX="$ac_prog"
2515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2518 done
2519 done
2523 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2524 if test -n "$ac_ct_CXX"; then
2525 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2526 echo "${ECHO_T}$ac_ct_CXX" >&6
2527 else
2528 echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6
2532 test -n "$ac_ct_CXX" && break
2533 done
2534 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2536 CXX=$ac_ct_CXX
2540 # Provide some information about the compiler.
2541 echo "$as_me:$LINENO:" \
2542 "checking for C++ compiler version" >&5
2543 ac_compiler=`set X $ac_compile; echo $2`
2544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2545 (eval $ac_compiler --version </dev/null >&5) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }
2549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2550 (eval $ac_compiler -v </dev/null >&5) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2555 (eval $ac_compiler -V </dev/null >&5) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }
2560 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2561 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2562 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565 cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h. */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2573 main ()
2575 #ifndef __GNUC__
2576 choke me
2577 #endif
2580 return 0;
2582 _ACEOF
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>conftest.er1
2586 ac_status=$?
2587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 (eval $ac_try) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 ac_compiler_gnu=yes
2605 else
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2609 ac_compiler_gnu=no
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2615 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2616 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2617 GXX=`test $ac_compiler_gnu = yes && echo yes`
2618 ac_test_CXXFLAGS=${CXXFLAGS+set}
2619 ac_save_CXXFLAGS=$CXXFLAGS
2620 CXXFLAGS="-g"
2621 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2622 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2623 if test "${ac_cv_prog_cxx_g+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h. */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2634 main ()
2638 return 0;
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 ac_cv_prog_cxx_g=yes
2663 else
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 ac_cv_prog_cxx_g=no
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2673 if test "$ac_test_CXXFLAGS" = set; then
2674 CXXFLAGS=$ac_save_CXXFLAGS
2675 elif test $ac_cv_prog_cxx_g = yes; then
2676 if test "$GXX" = yes; then
2677 CXXFLAGS="-g -O2"
2678 else
2679 CXXFLAGS="-g"
2681 else
2682 if test "$GXX" = yes; then
2683 CXXFLAGS="-O2"
2684 else
2685 CXXFLAGS=
2688 for ac_declaration in \
2689 '' \
2690 'extern "C" void std::exit (int) throw (); using std::exit;' \
2691 'extern "C" void std::exit (int); using std::exit;' \
2692 'extern "C" void exit (int) throw ();' \
2693 'extern "C" void exit (int);' \
2694 'void exit (int);'
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h. */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2702 $ac_declaration
2703 #include <stdlib.h>
2705 main ()
2707 exit (42);
2709 return 0;
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2734 else
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2738 continue
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h. */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2747 $ac_declaration
2749 main ()
2751 exit (42);
2753 return 0;
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2759 ac_status=$?
2760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 break
2778 else
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 done
2785 rm -f conftest*
2786 if test -n "$ac_declaration"; then
2787 echo '#ifdef __cplusplus' >>confdefs.h
2788 echo $ac_declaration >>confdefs.h
2789 echo '#endif' >>confdefs.h
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806 if test -n "$CPPBIN"; then
2807 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2820 done
2821 done
2825 CPPBIN=$ac_cv_prog_CPPBIN
2826 if test -n "$CPPBIN"; then
2827 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2828 echo "${ECHO_T}$CPPBIN" >&6
2829 else
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2835 if test -z "$ac_cv_prog_CPPBIN"; then
2836 ac_ct_CPPBIN=$CPPBIN
2837 # Extract the first word of "cpp", so it can be a program name with args.
2838 set dummy cpp; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 if test -n "$ac_ct_CPPBIN"; then
2845 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CPPBIN="cpp"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2858 done
2859 done
2861 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2864 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2865 if test -n "$ac_ct_CPPBIN"; then
2866 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2867 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2868 else
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2873 CPPBIN=$ac_ct_CPPBIN
2874 else
2875 CPPBIN="$ac_cv_prog_CPPBIN"
2879 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2880 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2881 if test "${wine_cv_toolsdir+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 if test -z "$with_wine_tools"; then
2885 if test "$cross_compiling" = "yes"; then
2886 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2887 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2888 { (exit 1); exit 1; }; }
2889 else
2890 wine_cv_toolsdir="\$(TOPOBJDIR)"
2892 elif test -d "$with_wine_tools/tools/winebuild"; then
2893 case $with_wine_tools in
2894 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2895 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2896 esac
2897 else
2898 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2899 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2900 { (exit 1); exit 1; }; }
2903 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2904 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2905 TOOLSDIR=$wine_cv_toolsdir
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2918 CPP=
2920 if test -z "$CPP"; then
2921 if test "${ac_cv_prog_CPP+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924 # Double quotes because CPP needs to be expanded
2925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2927 ac_preproc_ok=false
2928 for ac_c_preproc_warn_flag in '' yes
2930 # Use a header file that comes with gcc, so configuring glibc
2931 # with a fresh cross-compiler works.
2932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933 # <limits.h> exists even on freestanding compilers.
2934 # On the NeXT, cc -E runs the code through the compiler's parser,
2935 # not just through cpp. "Syntax error" is here to catch this case.
2936 cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h. */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947 Syntax error
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960 else
2961 ac_cpp_err=
2963 else
2964 ac_cpp_err=yes
2966 if test -z "$ac_cpp_err"; then
2968 else
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 # Broken: fails on valid input.
2973 continue
2975 rm -f conftest.err conftest.$ac_ext
2977 # OK, works on sane cases. Now check whether non-existent headers
2978 # can be detected and how.
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null; then
2995 if test -s conftest.err; then
2996 ac_cpp_err=$ac_c_preproc_warn_flag
2997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2998 else
2999 ac_cpp_err=
3001 else
3002 ac_cpp_err=yes
3004 if test -z "$ac_cpp_err"; then
3005 # Broken: success on invalid input.
3006 continue
3007 else
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3011 # Passes both tests.
3012 ac_preproc_ok=:
3013 break
3015 rm -f conftest.err conftest.$ac_ext
3017 done
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3021 break
3024 done
3025 ac_cv_prog_CPP=$CPP
3028 CPP=$ac_cv_prog_CPP
3029 else
3030 ac_cv_prog_CPP=$CPP
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3034 ac_preproc_ok=false
3035 for ac_c_preproc_warn_flag in '' yes
3037 # Use a header file that comes with gcc, so configuring glibc
3038 # with a fresh cross-compiler works.
3039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040 # <limits.h> exists even on freestanding compilers.
3041 # On the NeXT, cc -E runs the code through the compiler's parser,
3042 # not just through cpp. "Syntax error" is here to catch this case.
3043 cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h. */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3049 #ifdef __STDC__
3050 # include <limits.h>
3051 #else
3052 # include <assert.h>
3053 #endif
3054 Syntax error
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
3066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067 else
3068 ac_cpp_err=
3070 else
3071 ac_cpp_err=yes
3073 if test -z "$ac_cpp_err"; then
3075 else
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 # Broken: fails on valid input.
3080 continue
3082 rm -f conftest.err conftest.$ac_ext
3084 # OK, works on sane cases. Now check whether non-existent headers
3085 # can be detected and how.
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #include <ac_nonexistent.h>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null; then
3102 if test -s conftest.err; then
3103 ac_cpp_err=$ac_c_preproc_warn_flag
3104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3105 else
3106 ac_cpp_err=
3108 else
3109 ac_cpp_err=yes
3111 if test -z "$ac_cpp_err"; then
3112 # Broken: success on invalid input.
3113 continue
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 # Passes both tests.
3119 ac_preproc_ok=:
3120 break
3122 rm -f conftest.err conftest.$ac_ext
3124 done
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3129 else
3130 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145 if test "x$ac_path_x_has_been_run" != xyes; then
3146 echo "$as_me:$LINENO: checking for X" >&5
3147 echo $ECHO_N "checking for X... $ECHO_C" >&6
3149 ac_path_x_has_been_run=yes
3151 # Check whether --with-x or --without-x was given.
3152 if test "${with_x+set}" = set; then
3153 withval="$with_x"
3156 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3157 if test "x$with_x" = xno; then
3158 # The user explicitly disabled X.
3159 have_x=disabled
3160 else
3161 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3162 # Both variables are already set.
3163 have_x=yes
3164 else
3165 if test "${ac_cv_have_x+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 # One or both of the vars are not set, and there is no cached value.
3169 ac_x_includes=no ac_x_libraries=no
3170 rm -fr conftest.dir
3171 if mkdir conftest.dir; then
3172 cd conftest.dir
3173 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3174 cat >Imakefile <<'_ACEOF'
3175 acfindx:
3176 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3177 _ACEOF
3178 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3180 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3181 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3182 for ac_extension in a so sl; do
3183 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3184 test -f $ac_im_libdir/libX11.$ac_extension; then
3185 ac_im_usrlibdir=$ac_im_libdir; break
3187 done
3188 # Screen out bogus values from the imake configuration. They are
3189 # bogus both because they are the default anyway, and because
3190 # using them would break gcc on systems where it needs fixed includes.
3191 case $ac_im_incroot in
3192 /usr/include) ;;
3193 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3194 esac
3195 case $ac_im_usrlibdir in
3196 /usr/lib | /lib) ;;
3197 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3198 esac
3200 cd ..
3201 rm -fr conftest.dir
3204 # Standard set of common directories for X headers.
3205 # Check X11 before X11Rn because it is often a symlink to the current release.
3206 ac_x_header_dirs='
3207 /usr/X11/include
3208 /usr/X11R6/include
3209 /usr/X11R5/include
3210 /usr/X11R4/include
3212 /usr/include/X11
3213 /usr/include/X11R6
3214 /usr/include/X11R5
3215 /usr/include/X11R4
3217 /usr/local/X11/include
3218 /usr/local/X11R6/include
3219 /usr/local/X11R5/include
3220 /usr/local/X11R4/include
3222 /usr/local/include/X11
3223 /usr/local/include/X11R6
3224 /usr/local/include/X11R5
3225 /usr/local/include/X11R4
3227 /usr/X386/include
3228 /usr/x386/include
3229 /usr/XFree86/include/X11
3231 /usr/include
3232 /usr/local/include
3233 /usr/unsupported/include
3234 /usr/athena/include
3235 /usr/local/x11r5/include
3236 /usr/lpp/Xamples/include
3238 /usr/openwin/include
3239 /usr/openwin/share/include'
3241 if test "$ac_x_includes" = no; then
3242 # Guess where to find include files, by looking for a specified header file.
3243 # First, try using that file with no special directory specified.
3244 cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h. */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3250 #include <X11/Intrinsic.h>
3251 _ACEOF
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
3262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263 else
3264 ac_cpp_err=
3266 else
3267 ac_cpp_err=yes
3269 if test -z "$ac_cpp_err"; then
3270 # We can compile using X headers with no special include directory.
3271 ac_x_includes=
3272 else
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 for ac_dir in $ac_x_header_dirs; do
3277 if test -r "$ac_dir/X11/Intrinsic.h"; then
3278 ac_x_includes=$ac_dir
3279 break
3281 done
3283 rm -f conftest.err conftest.$ac_ext
3284 fi # $ac_x_includes = no
3286 if test "$ac_x_libraries" = no; then
3287 # Check for the libraries.
3288 # See if we find them without any special options.
3289 # Don't add to $LIBS permanently.
3290 ac_save_LIBS=$LIBS
3291 LIBS="-lXt $LIBS"
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298 #include <X11/Intrinsic.h>
3300 main ()
3302 XtMalloc (0)
3304 return 0;
3306 _ACEOF
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309 (eval $ac_link) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try='test -s conftest$ac_exeext'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 LIBS=$ac_save_LIBS
3329 # We can link X programs with no special library path.
3330 ac_x_libraries=
3331 else
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 LIBS=$ac_save_LIBS
3336 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3338 # Don't even attempt the hair of trying to link an X program!
3339 for ac_extension in a so sl; do
3340 if test -r $ac_dir/libXt.$ac_extension; then
3341 ac_x_libraries=$ac_dir
3342 break 2
3344 done
3345 done
3347 rm -f conftest.err conftest.$ac_objext \
3348 conftest$ac_exeext conftest.$ac_ext
3349 fi # $ac_x_libraries = no
3351 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3352 # Didn't find X anywhere. Cache the known absence of X.
3353 ac_cv_have_x="have_x=no"
3354 else
3355 # Record where we found X for the cache.
3356 ac_cv_have_x="have_x=yes \
3357 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3362 eval "$ac_cv_have_x"
3363 fi # $with_x != no
3365 if test "$have_x" != yes; then
3366 echo "$as_me:$LINENO: result: $have_x" >&5
3367 echo "${ECHO_T}$have_x" >&6
3368 no_x=yes
3369 else
3370 # If each of the values was on the command line, it overrides each guess.
3371 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3372 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3373 # Update the cache value to reflect the command line values.
3374 ac_cv_have_x="have_x=yes \
3375 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3376 # It might be that x_includes is empty (headers are found in the
3377 # standard search path. Then output the corresponding message
3378 ac_out_x_includes=$x_includes
3379 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3380 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3381 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3385 if test "$no_x" = yes; then
3386 # Not all programs may use this symbol, but it does not hurt to define it.
3388 cat >>confdefs.h <<\_ACEOF
3389 #define X_DISPLAY_MISSING 1
3390 _ACEOF
3392 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3393 else
3394 if test -n "$x_includes"; then
3395 X_CFLAGS="$X_CFLAGS -I$x_includes"
3398 # It would also be nice to do this for all -L options, not just this one.
3399 if test -n "$x_libraries"; then
3400 X_LIBS="$X_LIBS -L$x_libraries"
3401 # For Solaris; some versions of Sun CC require a space after -R and
3402 # others require no space. Words are not sufficient . . . .
3403 case `(uname -sr) 2>/dev/null` in
3404 "SunOS 5"*)
3405 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3406 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3407 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3416 main ()
3420 return 0;
3422 _ACEOF
3423 rm -f conftest.$ac_objext conftest$ac_exeext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3425 (eval $ac_link) 2>conftest.er1
3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; } &&
3438 { ac_try='test -s conftest$ac_exeext'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 ac_R_nospace=yes
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 ac_R_nospace=no
3451 rm -f conftest.err conftest.$ac_objext \
3452 conftest$ac_exeext conftest.$ac_ext
3453 if test $ac_R_nospace = yes; then
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 X_LIBS="$X_LIBS -R$x_libraries"
3457 else
3458 LIBS="$ac_xsave_LIBS -R $x_libraries"
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3467 main ()
3471 return 0;
3473 _ACEOF
3474 rm -f conftest.$ac_objext conftest$ac_exeext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3476 (eval $ac_link) 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; } &&
3489 { ac_try='test -s conftest$ac_exeext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 ac_R_space=yes
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 ac_R_space=no
3502 rm -f conftest.err conftest.$ac_objext \
3503 conftest$ac_exeext conftest.$ac_ext
3504 if test $ac_R_space = yes; then
3505 echo "$as_me:$LINENO: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6
3507 X_LIBS="$X_LIBS -R $x_libraries"
3508 else
3509 echo "$as_me:$LINENO: result: neither works" >&5
3510 echo "${ECHO_T}neither works" >&6
3513 LIBS=$ac_xsave_LIBS
3514 esac
3517 # Check for system-dependent libraries X programs must link with.
3518 # Do this before checking for the system-independent R6 libraries
3519 # (-lICE), since we may need -lsocket or whatever for X linking.
3521 if test "$ISC" = yes; then
3522 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3523 else
3524 # Martyn Johnson says this is needed for Ultrix, if the X
3525 # libraries were built with DECnet support. And Karl Berry says
3526 # the Alpha needs dnet_stub (dnet does not exist).
3527 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3535 /* Override any gcc2 internal prototype to avoid an error. */
3536 #ifdef __cplusplus
3537 extern "C"
3538 #endif
3539 /* We use char because int might match the return type of a gcc2
3540 builtin and then its argument prototype would still apply. */
3541 char XOpenDisplay ();
3543 main ()
3545 XOpenDisplay ();
3547 return 0;
3549 _ACEOF
3550 rm -f conftest.$ac_objext conftest$ac_exeext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3552 (eval $ac_link) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest$ac_exeext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3577 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3578 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581 ac_check_lib_save_LIBS=$LIBS
3582 LIBS="-ldnet $LIBS"
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3590 /* Override any gcc2 internal prototype to avoid an error. */
3591 #ifdef __cplusplus
3592 extern "C"
3593 #endif
3594 /* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3596 char dnet_ntoa ();
3598 main ()
3600 dnet_ntoa ();
3602 return 0;
3604 _ACEOF
3605 rm -f conftest.$ac_objext conftest$ac_exeext
3606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607 (eval $ac_link) 2>conftest.er1
3608 ac_status=$?
3609 grep -v '^ *+' conftest.er1 >conftest.err
3610 rm -f conftest.er1
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } &&
3614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest$ac_exeext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 ac_cv_lib_dnet_dnet_ntoa=yes
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 ac_cv_lib_dnet_dnet_ntoa=no
3633 rm -f conftest.err conftest.$ac_objext \
3634 conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3638 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3639 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3640 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3643 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3644 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3645 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3646 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 ac_check_lib_save_LIBS=$LIBS
3650 LIBS="-ldnet_stub $LIBS"
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 #ifdef __cplusplus
3660 extern "C"
3661 #endif
3662 /* We use char because int might match the return type of a gcc2
3663 builtin and then its argument prototype would still apply. */
3664 char dnet_ntoa ();
3666 main ()
3668 dnet_ntoa ();
3670 return 0;
3672 _ACEOF
3673 rm -f conftest.$ac_objext conftest$ac_exeext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675 (eval $ac_link) 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest$ac_exeext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3695 else
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 ac_cv_lib_dnet_stub_dnet_ntoa=no
3701 rm -f conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext
3703 LIBS=$ac_check_lib_save_LIBS
3705 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3706 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3707 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3708 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3713 rm -f conftest.err conftest.$ac_objext \
3714 conftest$ac_exeext conftest.$ac_ext
3715 LIBS="$ac_xsave_LIBS"
3717 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3718 # to get the SysV transport functions.
3719 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3720 # needs -lnsl.
3721 # The nsl library prevents programs from opening the X display
3722 # on Irix 5.2, according to T.E. Dickey.
3723 # The functions gethostbyname, getservbyname, and inet_addr are
3724 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3725 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3726 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3727 if test "${ac_cv_func_gethostbyname+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h. */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3736 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3738 #define gethostbyname innocuous_gethostbyname
3740 /* System header to define __stub macros and hopefully few prototypes,
3741 which can conflict with char gethostbyname (); below.
3742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3743 <limits.h> exists even on freestanding compilers. */
3745 #ifdef __STDC__
3746 # include <limits.h>
3747 #else
3748 # include <assert.h>
3749 #endif
3751 #undef gethostbyname
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 #ifdef __cplusplus
3755 extern "C"
3757 #endif
3758 /* We use char because int might match the return type of a gcc2
3759 builtin and then its argument prototype would still apply. */
3760 char gethostbyname ();
3761 /* The GNU C library defines this for functions which it implements
3762 to always fail with ENOSYS. Some functions are actually named
3763 something starting with __ and the normal name is an alias. */
3764 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3765 choke me
3766 #else
3767 char (*f) () = gethostbyname;
3768 #endif
3769 #ifdef __cplusplus
3771 #endif
3774 main ()
3776 return f != gethostbyname;
3778 return 0;
3780 _ACEOF
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783 (eval $ac_link) 2>conftest.er1
3784 ac_status=$?
3785 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } &&
3790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try='test -s conftest$ac_exeext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_cv_func_gethostbyname=yes
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 ac_cv_func_gethostbyname=no
3809 rm -f conftest.err conftest.$ac_objext \
3810 conftest$ac_exeext conftest.$ac_ext
3812 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3813 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3815 if test $ac_cv_func_gethostbyname = no; then
3816 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3817 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3818 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 ac_check_lib_save_LIBS=$LIBS
3822 LIBS="-lnsl $LIBS"
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h. */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3830 /* Override any gcc2 internal prototype to avoid an error. */
3831 #ifdef __cplusplus
3832 extern "C"
3833 #endif
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3836 char gethostbyname ();
3838 main ()
3840 gethostbyname ();
3842 return 0;
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_lib_nsl_gethostbyname=yes
3867 else
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_cv_lib_nsl_gethostbyname=no
3873 rm -f conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
3875 LIBS=$ac_check_lib_save_LIBS
3877 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3878 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3879 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3880 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3883 if test $ac_cv_lib_nsl_gethostbyname = no; then
3884 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3885 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3886 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 ac_check_lib_save_LIBS=$LIBS
3890 LIBS="-lbsd $LIBS"
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3898 /* Override any gcc2 internal prototype to avoid an error. */
3899 #ifdef __cplusplus
3900 extern "C"
3901 #endif
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3904 char gethostbyname ();
3906 main ()
3908 gethostbyname ();
3910 return 0;
3912 _ACEOF
3913 rm -f conftest.$ac_objext conftest$ac_exeext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915 (eval $ac_link) 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest$ac_exeext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_lib_bsd_gethostbyname=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_cv_lib_bsd_gethostbyname=no
3941 rm -f conftest.err conftest.$ac_objext \
3942 conftest$ac_exeext conftest.$ac_ext
3943 LIBS=$ac_check_lib_save_LIBS
3945 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3946 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3947 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3948 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3954 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3955 # socket/setsockopt and other routines are undefined under SCO ODT
3956 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3957 # on later versions), says Simon Leinen: it contains gethostby*
3958 # variants that don't use the name server (or something). -lsocket
3959 # must be given before -lnsl if both are needed. We assume that
3960 # if connect needs -lnsl, so does gethostbyname.
3961 echo "$as_me:$LINENO: checking for connect" >&5
3962 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3963 if test "${ac_cv_func_connect+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966 cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h. */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3972 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3974 #define connect innocuous_connect
3976 /* System header to define __stub macros and hopefully few prototypes,
3977 which can conflict with char connect (); below.
3978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979 <limits.h> exists even on freestanding compilers. */
3981 #ifdef __STDC__
3982 # include <limits.h>
3983 #else
3984 # include <assert.h>
3985 #endif
3987 #undef connect
3989 /* Override any gcc2 internal prototype to avoid an error. */
3990 #ifdef __cplusplus
3991 extern "C"
3993 #endif
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
3996 char connect ();
3997 /* The GNU C library defines this for functions which it implements
3998 to always fail with ENOSYS. Some functions are actually named
3999 something starting with __ and the normal name is an alias. */
4000 #if defined (__stub_connect) || defined (__stub___connect)
4001 choke me
4002 #else
4003 char (*f) () = connect;
4004 #endif
4005 #ifdef __cplusplus
4007 #endif
4010 main ()
4012 return f != connect;
4014 return 0;
4016 _ACEOF
4017 rm -f conftest.$ac_objext conftest$ac_exeext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4019 (eval $ac_link) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try='test -s conftest$ac_exeext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_cv_func_connect=yes
4039 else
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 ac_cv_func_connect=no
4045 rm -f conftest.err conftest.$ac_objext \
4046 conftest$ac_exeext conftest.$ac_ext
4048 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4049 echo "${ECHO_T}$ac_cv_func_connect" >&6
4051 if test $ac_cv_func_connect = no; then
4052 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4053 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4054 if test "${ac_cv_lib_socket_connect+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 ac_check_lib_save_LIBS=$LIBS
4058 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h. */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4066 /* Override any gcc2 internal prototype to avoid an error. */
4067 #ifdef __cplusplus
4068 extern "C"
4069 #endif
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4072 char connect ();
4074 main ()
4076 connect ();
4078 return 0;
4080 _ACEOF
4081 rm -f conftest.$ac_objext conftest$ac_exeext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4083 (eval $ac_link) 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest$ac_exeext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_lib_socket_connect=yes
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 ac_cv_lib_socket_connect=no
4109 rm -f conftest.err conftest.$ac_objext \
4110 conftest$ac_exeext conftest.$ac_ext
4111 LIBS=$ac_check_lib_save_LIBS
4113 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4114 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4115 if test $ac_cv_lib_socket_connect = yes; then
4116 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4121 # Guillermo Gomez says -lposix is necessary on A/UX.
4122 echo "$as_me:$LINENO: checking for remove" >&5
4123 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4124 if test "${ac_cv_func_remove+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127 cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h. */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4133 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4135 #define remove innocuous_remove
4137 /* System header to define __stub macros and hopefully few prototypes,
4138 which can conflict with char remove (); below.
4139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140 <limits.h> exists even on freestanding compilers. */
4142 #ifdef __STDC__
4143 # include <limits.h>
4144 #else
4145 # include <assert.h>
4146 #endif
4148 #undef remove
4150 /* Override any gcc2 internal prototype to avoid an error. */
4151 #ifdef __cplusplus
4152 extern "C"
4154 #endif
4155 /* We use char because int might match the return type of a gcc2
4156 builtin and then its argument prototype would still apply. */
4157 char remove ();
4158 /* The GNU C library defines this for functions which it implements
4159 to always fail with ENOSYS. Some functions are actually named
4160 something starting with __ and the normal name is an alias. */
4161 #if defined (__stub_remove) || defined (__stub___remove)
4162 choke me
4163 #else
4164 char (*f) () = remove;
4165 #endif
4166 #ifdef __cplusplus
4168 #endif
4171 main ()
4173 return f != remove;
4175 return 0;
4177 _ACEOF
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; } &&
4193 { ac_try='test -s conftest$ac_exeext'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 (eval $ac_try) 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 ac_cv_func_remove=yes
4200 else
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 ac_cv_func_remove=no
4206 rm -f conftest.err conftest.$ac_objext \
4207 conftest$ac_exeext conftest.$ac_ext
4209 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4210 echo "${ECHO_T}$ac_cv_func_remove" >&6
4212 if test $ac_cv_func_remove = no; then
4213 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4214 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4215 if test "${ac_cv_lib_posix_remove+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 ac_check_lib_save_LIBS=$LIBS
4219 LIBS="-lposix $LIBS"
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h. */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4227 /* Override any gcc2 internal prototype to avoid an error. */
4228 #ifdef __cplusplus
4229 extern "C"
4230 #endif
4231 /* We use char because int might match the return type of a gcc2
4232 builtin and then its argument prototype would still apply. */
4233 char remove ();
4235 main ()
4237 remove ();
4239 return 0;
4241 _ACEOF
4242 rm -f conftest.$ac_objext conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244 (eval $ac_link) 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 (eval $ac_try) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; } &&
4257 { ac_try='test -s conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 (eval $ac_try) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 ac_cv_lib_posix_remove=yes
4264 else
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4268 ac_cv_lib_posix_remove=no
4270 rm -f conftest.err conftest.$ac_objext \
4271 conftest$ac_exeext conftest.$ac_ext
4272 LIBS=$ac_check_lib_save_LIBS
4274 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4275 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4276 if test $ac_cv_lib_posix_remove = yes; then
4277 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4282 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4283 echo "$as_me:$LINENO: checking for shmat" >&5
4284 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4285 if test "${ac_cv_func_shmat+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288 cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h. */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4294 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4296 #define shmat innocuous_shmat
4298 /* System header to define __stub macros and hopefully few prototypes,
4299 which can conflict with char shmat (); below.
4300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4301 <limits.h> exists even on freestanding compilers. */
4303 #ifdef __STDC__
4304 # include <limits.h>
4305 #else
4306 # include <assert.h>
4307 #endif
4309 #undef shmat
4311 /* Override any gcc2 internal prototype to avoid an error. */
4312 #ifdef __cplusplus
4313 extern "C"
4315 #endif
4316 /* We use char because int might match the return type of a gcc2
4317 builtin and then its argument prototype would still apply. */
4318 char shmat ();
4319 /* The GNU C library defines this for functions which it implements
4320 to always fail with ENOSYS. Some functions are actually named
4321 something starting with __ and the normal name is an alias. */
4322 #if defined (__stub_shmat) || defined (__stub___shmat)
4323 choke me
4324 #else
4325 char (*f) () = shmat;
4326 #endif
4327 #ifdef __cplusplus
4329 #endif
4332 main ()
4334 return f != shmat;
4336 return 0;
4338 _ACEOF
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341 (eval $ac_link) 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest$ac_exeext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_func_shmat=yes
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 ac_cv_func_shmat=no
4367 rm -f conftest.err conftest.$ac_objext \
4368 conftest$ac_exeext conftest.$ac_ext
4370 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4371 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4373 if test $ac_cv_func_shmat = no; then
4374 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4375 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4376 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 ac_check_lib_save_LIBS=$LIBS
4380 LIBS="-lipc $LIBS"
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4388 /* Override any gcc2 internal prototype to avoid an error. */
4389 #ifdef __cplusplus
4390 extern "C"
4391 #endif
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4394 char shmat ();
4396 main ()
4398 shmat ();
4400 return 0;
4402 _ACEOF
4403 rm -f conftest.$ac_objext conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405 (eval $ac_link) 2>conftest.er1
4406 ac_status=$?
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest$ac_exeext'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 ac_cv_lib_ipc_shmat=yes
4425 else
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 ac_cv_lib_ipc_shmat=no
4431 rm -f conftest.err conftest.$ac_objext \
4432 conftest$ac_exeext conftest.$ac_ext
4433 LIBS=$ac_check_lib_save_LIBS
4435 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4436 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4437 if test $ac_cv_lib_ipc_shmat = yes; then
4438 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4444 # Check for libraries that X11R6 Xt/Xaw programs need.
4445 ac_save_LDFLAGS=$LDFLAGS
4446 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4447 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4448 # check for ICE first), but we must link in the order -lSM -lICE or
4449 # we get undefined symbols. So assume we have SM if we have ICE.
4450 # These have to be linked with before -lX11, unlike the other
4451 # libraries we check for below, so use a different variable.
4452 # John Interrante, Karl Berry
4453 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4454 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4455 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 ac_check_lib_save_LIBS=$LIBS
4459 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4467 /* Override any gcc2 internal prototype to avoid an error. */
4468 #ifdef __cplusplus
4469 extern "C"
4470 #endif
4471 /* We use char because int might match the return type of a gcc2
4472 builtin and then its argument prototype would still apply. */
4473 char IceConnectionNumber ();
4475 main ()
4477 IceConnectionNumber ();
4479 return 0;
4481 _ACEOF
4482 rm -f conftest.$ac_objext conftest$ac_exeext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4484 (eval $ac_link) 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest$ac_exeext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_lib_ICE_IceConnectionNumber=yes
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_lib_ICE_IceConnectionNumber=no
4510 rm -f conftest.err conftest.$ac_objext \
4511 conftest$ac_exeext conftest.$ac_ext
4512 LIBS=$ac_check_lib_save_LIBS
4514 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4515 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4516 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4517 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4520 LDFLAGS=$ac_save_LDFLAGS
4524 for ac_prog in flex lex
4526 # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530 if test "${ac_cv_prog_LEX+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 if test -n "$LEX"; then
4534 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_LEX="$ac_prog"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4552 LEX=$ac_cv_prog_LEX
4553 if test -n "$LEX"; then
4554 echo "$as_me:$LINENO: result: $LEX" >&5
4555 echo "${ECHO_T}$LEX" >&6
4556 else
4557 echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6
4561 test -n "$LEX" && break
4562 done
4563 test -n "$LEX" || LEX=":"
4565 if test -z "$LEXLIB"
4566 then
4567 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4568 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4569 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 ac_check_lib_save_LIBS=$LIBS
4573 LIBS="-lfl $LIBS"
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4581 /* Override any gcc2 internal prototype to avoid an error. */
4582 #ifdef __cplusplus
4583 extern "C"
4584 #endif
4585 /* We use char because int might match the return type of a gcc2
4586 builtin and then its argument prototype would still apply. */
4587 char yywrap ();
4589 main ()
4591 yywrap ();
4593 return 0;
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598 (eval $ac_link) 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest$ac_exeext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_lib_fl_yywrap=yes
4618 else
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 ac_cv_lib_fl_yywrap=no
4624 rm -f conftest.err conftest.$ac_objext \
4625 conftest$ac_exeext conftest.$ac_ext
4626 LIBS=$ac_check_lib_save_LIBS
4628 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4629 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4630 if test $ac_cv_lib_fl_yywrap = yes; then
4631 LEXLIB="-lfl"
4632 else
4633 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4634 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4635 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638 ac_check_lib_save_LIBS=$LIBS
4639 LIBS="-ll $LIBS"
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4647 /* Override any gcc2 internal prototype to avoid an error. */
4648 #ifdef __cplusplus
4649 extern "C"
4650 #endif
4651 /* We use char because int might match the return type of a gcc2
4652 builtin and then its argument prototype would still apply. */
4653 char yywrap ();
4655 main ()
4657 yywrap ();
4659 return 0;
4661 _ACEOF
4662 rm -f conftest.$ac_objext conftest$ac_exeext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4664 (eval $ac_link) 2>conftest.er1
4665 ac_status=$?
4666 grep -v '^ *+' conftest.er1 >conftest.err
4667 rm -f conftest.er1
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try='test -s conftest$ac_exeext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 (eval $ac_try) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 ac_cv_lib_l_yywrap=yes
4684 else
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4688 ac_cv_lib_l_yywrap=no
4690 rm -f conftest.err conftest.$ac_objext \
4691 conftest$ac_exeext conftest.$ac_ext
4692 LIBS=$ac_check_lib_save_LIBS
4694 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4695 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4696 if test $ac_cv_lib_l_yywrap = yes; then
4697 LEXLIB="-ll"
4704 if test "x$LEX" != "x:"; then
4705 echo "$as_me:$LINENO: checking lex output file root" >&5
4706 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4707 if test "${ac_cv_prog_lex_root+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710 # The minimal lex program is just a single line: %%. But some broken lexes
4711 # (Solaris, I think it was) want two %% lines, so accommodate them.
4712 cat >conftest.l <<_ACEOF
4715 _ACEOF
4716 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4717 (eval $LEX conftest.l) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }
4721 if test -f lex.yy.c; then
4722 ac_cv_prog_lex_root=lex.yy
4723 elif test -f lexyy.c; then
4724 ac_cv_prog_lex_root=lexyy
4725 else
4726 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4727 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4728 { (exit 1); exit 1; }; }
4731 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4732 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4733 rm -f conftest.l
4734 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4736 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4737 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4738 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741 # POSIX says lex can declare yytext either as a pointer or an array; the
4742 # default is implementation-dependent. Figure out which it is, since
4743 # not all implementations provide the %pointer and %array declarations.
4744 ac_cv_prog_lex_yytext_pointer=no
4745 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4746 ac_save_LIBS=$LIBS
4747 LIBS="$LIBS $LEXLIB"
4748 cat >conftest.$ac_ext <<_ACEOF
4749 `cat $LEX_OUTPUT_ROOT.c`
4750 _ACEOF
4751 rm -f conftest.$ac_objext conftest$ac_exeext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4753 (eval $ac_link) 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest$ac_exeext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_cv_prog_lex_yytext_pointer=yes
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4778 rm -f conftest.err conftest.$ac_objext \
4779 conftest$ac_exeext conftest.$ac_ext
4780 LIBS=$ac_save_LIBS
4781 rm -f "${LEX_OUTPUT_ROOT}.c"
4784 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4785 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4786 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4788 cat >>confdefs.h <<\_ACEOF
4789 #define YYTEXT_POINTER 1
4790 _ACEOF
4796 for ac_prog in $LEX flex lex
4798 # Extract the first word of "$ac_prog", so it can be a program name with args.
4799 set dummy $ac_prog; ac_word=$2
4800 echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4802 if test "${ac_cv_prog_XLEX+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 if test -n "$XLEX"; then
4806 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815 ac_cv_prog_XLEX="$ac_prog"
4816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4824 XLEX=$ac_cv_prog_XLEX
4825 if test -n "$XLEX"; then
4826 echo "$as_me:$LINENO: result: $XLEX" >&5
4827 echo "${ECHO_T}$XLEX" >&6
4828 else
4829 echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4833 test -n "$XLEX" && break
4834 done
4835 test -n "$XLEX" || XLEX="none"
4837 if test "$XLEX" = "none"
4838 then
4839 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4840 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4841 { (exit 1); exit 1; }; }
4844 for ac_prog in bison
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_prog_BISON+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853 if test -n "$BISON"; then
4854 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_BISON="$ac_prog"
4864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4867 done
4868 done
4872 BISON=$ac_cv_prog_BISON
4873 if test -n "$BISON"; then
4874 echo "$as_me:$LINENO: result: $BISON" >&5
4875 echo "${ECHO_T}$BISON" >&6
4876 else
4877 echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6
4881 test -n "$BISON" && break
4882 done
4883 test -n "$BISON" || BISON="none"
4885 if test "$BISON" = "none"
4886 then
4887 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4888 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4889 { (exit 1); exit 1; }; }
4892 if test -n "$ac_tool_prefix"; then
4893 for ac_prog in gas as
4895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_prog_AS+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902 if test -n "$AS"; then
4903 ac_cv_prog_AS="$AS" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4921 AS=$ac_cv_prog_AS
4922 if test -n "$AS"; then
4923 echo "$as_me:$LINENO: result: $AS" >&5
4924 echo "${ECHO_T}$AS" >&6
4925 else
4926 echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4930 test -n "$AS" && break
4931 done
4933 if test -z "$AS"; then
4934 ac_ct_AS=$AS
4935 for ac_prog in gas as
4937 # Extract the first word of "$ac_prog", so it can be a program name with args.
4938 set dummy $ac_prog; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944 if test -n "$ac_ct_AS"; then
4945 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954 ac_cv_prog_ac_ct_AS="$ac_prog"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4963 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4964 if test -n "$ac_ct_AS"; then
4965 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4966 echo "${ECHO_T}$ac_ct_AS" >&6
4967 else
4968 echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6
4972 test -n "$ac_ct_AS" && break
4973 done
4974 test -n "$ac_ct_AS" || ac_ct_AS="as"
4976 AS=$ac_ct_AS
4979 if test -n "$ac_tool_prefix"; then
4980 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}ld; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_prog_LD+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 if test -n "$LD"; then
4988 ac_cv_prog_LD="$LD" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_LD="${ac_tool_prefix}ld"
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5006 LD=$ac_cv_prog_LD
5007 if test -n "$LD"; then
5008 echo "$as_me:$LINENO: result: $LD" >&5
5009 echo "${ECHO_T}$LD" >&6
5010 else
5011 echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5016 if test -z "$ac_cv_prog_LD"; then
5017 ac_ct_LD=$LD
5018 # Extract the first word of "ld", so it can be a program name with args.
5019 set dummy ld; ac_word=$2
5020 echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 if test -n "$ac_ct_LD"; then
5026 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_ac_ct_LD="ld"
5036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5039 done
5040 done
5042 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5045 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5046 if test -n "$ac_ct_LD"; then
5047 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5048 echo "${ECHO_T}$ac_ct_LD" >&6
5049 else
5050 echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5054 LD=$ac_ct_LD
5055 else
5056 LD="$ac_cv_prog_LD"
5059 if test -n "$ac_tool_prefix"; then
5060 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5061 set dummy ${ac_tool_prefix}ar; ac_word=$2
5062 echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5064 if test "${ac_cv_prog_AR+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 if test -n "$AR"; then
5068 ac_cv_prog_AR="$AR" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077 ac_cv_prog_AR="${ac_tool_prefix}ar"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5086 AR=$ac_cv_prog_AR
5087 if test -n "$AR"; then
5088 echo "$as_me:$LINENO: result: $AR" >&5
5089 echo "${ECHO_T}$AR" >&6
5090 else
5091 echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6
5096 if test -z "$ac_cv_prog_AR"; then
5097 ac_ct_AR=$AR
5098 # Extract the first word of "ar", so it can be a program name with args.
5099 set dummy ar; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 if test -n "$ac_ct_AR"; then
5106 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_ac_ct_AR="ar"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5119 done
5120 done
5122 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5125 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5126 if test -n "$ac_ct_AR"; then
5127 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5128 echo "${ECHO_T}$ac_ct_AR" >&6
5129 else
5130 echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5134 AR=$ac_ct_AR
5135 else
5136 AR="$ac_cv_prog_AR"
5139 if test -n "$ac_tool_prefix"; then
5140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5142 echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144 if test "${ac_cv_prog_RANLIB+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 if test -n "$RANLIB"; then
5148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5161 done
5162 done
5166 RANLIB=$ac_cv_prog_RANLIB
5167 if test -n "$RANLIB"; then
5168 echo "$as_me:$LINENO: result: $RANLIB" >&5
5169 echo "${ECHO_T}$RANLIB" >&6
5170 else
5171 echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5176 if test -z "$ac_cv_prog_RANLIB"; then
5177 ac_ct_RANLIB=$RANLIB
5178 # Extract the first word of "ranlib", so it can be a program name with args.
5179 set dummy ranlib; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185 if test -n "$ac_ct_RANLIB"; then
5186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_RANLIB="ranlib"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5202 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5206 if test -n "$ac_ct_RANLIB"; then
5207 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5208 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5209 else
5210 echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5214 RANLIB=$ac_ct_RANLIB
5215 else
5216 RANLIB="$ac_cv_prog_RANLIB"
5219 if test -n "$ac_tool_prefix"; then
5220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5221 set dummy ${ac_tool_prefix}strip; ac_word=$2
5222 echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224 if test "${ac_cv_prog_STRIP+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 if test -n "$STRIP"; then
5228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5246 STRIP=$ac_cv_prog_STRIP
5247 if test -n "$STRIP"; then
5248 echo "$as_me:$LINENO: result: $STRIP" >&5
5249 echo "${ECHO_T}$STRIP" >&6
5250 else
5251 echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5256 if test -z "$ac_cv_prog_STRIP"; then
5257 ac_ct_STRIP=$STRIP
5258 # Extract the first word of "strip", so it can be a program name with args.
5259 set dummy strip; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 if test -n "$ac_ct_STRIP"; then
5266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_prog_ac_ct_STRIP="strip"
5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5279 done
5280 done
5282 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5286 if test -n "$ac_ct_STRIP"; then
5287 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5288 echo "${ECHO_T}$ac_ct_STRIP" >&6
5289 else
5290 echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6
5294 STRIP=$ac_ct_STRIP
5295 else
5296 STRIP="$ac_cv_prog_STRIP"
5299 if test -n "$ac_tool_prefix"; then
5300 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5301 set dummy ${ac_tool_prefix}windres; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_prog_WINDRES+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 if test -n "$WINDRES"; then
5308 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5326 WINDRES=$ac_cv_prog_WINDRES
5327 if test -n "$WINDRES"; then
5328 echo "$as_me:$LINENO: result: $WINDRES" >&5
5329 echo "${ECHO_T}$WINDRES" >&6
5330 else
5331 echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5336 if test -z "$ac_cv_prog_WINDRES"; then
5337 ac_ct_WINDRES=$WINDRES
5338 # Extract the first word of "windres", so it can be a program name with args.
5339 set dummy windres; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 if test -n "$ac_ct_WINDRES"; then
5346 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_ac_ct_WINDRES="windres"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5359 done
5360 done
5362 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5365 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5366 if test -n "$ac_ct_WINDRES"; then
5367 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5368 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5369 else
5370 echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5374 WINDRES=$ac_ct_WINDRES
5375 else
5376 WINDRES="$ac_cv_prog_WINDRES"
5379 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5380 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5381 LN_S=$as_ln_s
5382 if test "$LN_S" = "ln -s"; then
5383 echo "$as_me:$LINENO: result: yes" >&5
5384 echo "${ECHO_T}yes" >&6
5385 else
5386 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5387 echo "${ECHO_T}no, using $LN_S" >&6
5390 echo "$as_me:$LINENO: checking whether ln works" >&5
5391 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5392 rm -f conf$$ conf$$.file
5393 echo >conf$$.file
5394 if ln conf$$.file conf$$ 2>/dev/null; then
5395 LN=ln
5397 echo "$as_me:$LINENO: result: yes" >&5
5398 echo "${ECHO_T}yes" >&6
5399 else
5400 LN="cp -p"
5402 echo "$as_me:$LINENO: result: no, using $LN" >&5
5403 echo "${ECHO_T}no, using $LN" >&6
5405 rm -f conf$$ conf$$.file
5406 echo "$as_me:$LINENO: checking for egrep" >&5
5407 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5408 if test "${ac_cv_prog_egrep+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5412 then ac_cv_prog_egrep='grep -E'
5413 else ac_cv_prog_egrep='egrep'
5416 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5417 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5418 EGREP=$ac_cv_prog_egrep
5421 # Extract the first word of "ldconfig", so it can be a program name with args.
5422 set dummy ldconfig; ac_word=$2
5423 echo "$as_me:$LINENO: checking for $ac_word" >&5
5424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428 case $LDCONFIG in
5429 [\\/]* | ?:[\\/]*)
5430 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in /sbin /usr/sbin $PATH
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5444 done
5445 done
5447 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5449 esac
5451 LDCONFIG=$ac_cv_path_LDCONFIG
5453 if test -n "$LDCONFIG"; then
5454 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5455 echo "${ECHO_T}$LDCONFIG" >&6
5456 else
5457 echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5461 # Find a good install program. We prefer a C program (faster),
5462 # so one script is as good as another. But avoid the broken or
5463 # incompatible versions:
5464 # SysV /etc/install, /usr/sbin/install
5465 # SunOS /usr/etc/install
5466 # IRIX /sbin/install
5467 # AIX /bin/install
5468 # AmigaOS /C/install, which installs bootblocks on floppy discs
5469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5472 # OS/2's system install, which has a completely different semantic
5473 # ./install, which can be erroneously created by make from ./install.sh.
5474 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5475 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5476 if test -z "$INSTALL"; then
5477 if test "${ac_cv_path_install+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
5485 # Account for people who put trailing slashes in PATH elements.
5486 case $as_dir/ in
5487 ./ | .// | /cC/* | \
5488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5490 /usr/ucb/* ) ;;
5492 # OSF1 and SCO ODT 3.0 have their own names for install.
5493 # Don't use installbsd from OSF since it installs stuff as root
5494 # by default.
5495 for ac_prog in ginstall scoinst install; do
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5498 if test $ac_prog = install &&
5499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5500 # AIX install. It has an incompatible calling convention.
5502 elif test $ac_prog = install &&
5503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5504 # program-specific install script used by HP pwplus--don't use.
5506 else
5507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5508 break 3
5511 done
5512 done
5514 esac
5515 done
5519 if test "${ac_cv_path_install+set}" = set; then
5520 INSTALL=$ac_cv_path_install
5521 else
5522 # As a last resort, use the slow shell script. We don't cache a
5523 # path for INSTALL within a source directory, because that will
5524 # break other packages using the cache if that directory is
5525 # removed, or if the path is relative.
5526 INSTALL=$ac_install_sh
5529 echo "$as_me:$LINENO: result: $INSTALL" >&5
5530 echo "${ECHO_T}$INSTALL" >&6
5532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5533 # It thinks the first close brace ends the variable substitution.
5534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5540 case "$INSTALL" in
5541 [\\/$]* | ?:[\\/]* ) ;;
5542 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5543 esac
5545 for ac_prog in lclint lint
5547 # Extract the first word of "$ac_prog", so it can be a program name with args.
5548 set dummy $ac_prog; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_prog_LINT+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 if test -n "$LINT"; then
5555 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_LINT="$ac_prog"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5568 done
5569 done
5573 LINT=$ac_cv_prog_LINT
5574 if test -n "$LINT"; then
5575 echo "$as_me:$LINENO: result: $LINT" >&5
5576 echo "${ECHO_T}$LINT" >&6
5577 else
5578 echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6
5582 test -n "$LINT" && break
5583 done
5585 if test "$LINT" = "lint"
5586 then
5587 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5592 for ac_prog in docbook2html db2html
5594 # Extract the first word of "$ac_prog", so it can be a program name with args.
5595 set dummy $ac_prog; ac_word=$2
5596 echo "$as_me:$LINENO: checking for $ac_word" >&5
5597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5598 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601 if test -n "$DB2HTML"; then
5602 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_DB2HTML="$ac_prog"
5612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5615 done
5616 done
5620 DB2HTML=$ac_cv_prog_DB2HTML
5621 if test -n "$DB2HTML"; then
5622 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5623 echo "${ECHO_T}$DB2HTML" >&6
5624 else
5625 echo "$as_me:$LINENO: result: no" >&5
5626 echo "${ECHO_T}no" >&6
5629 test -n "$DB2HTML" && break
5630 done
5631 test -n "$DB2HTML" || DB2HTML="false"
5633 for ac_prog in docbook2pdf db2pdf
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 if test -n "$DB2PDF"; then
5643 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_DB2PDF="$ac_prog"
5653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5656 done
5657 done
5661 DB2PDF=$ac_cv_prog_DB2PDF
5662 if test -n "$DB2PDF"; then
5663 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5664 echo "${ECHO_T}$DB2PDF" >&6
5665 else
5666 echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5670 test -n "$DB2PDF" && break
5671 done
5672 test -n "$DB2PDF" || DB2PDF="false"
5674 for ac_prog in docbook2ps db2ps
5676 # Extract the first word of "$ac_prog", so it can be a program name with args.
5677 set dummy $ac_prog; ac_word=$2
5678 echo "$as_me:$LINENO: checking for $ac_word" >&5
5679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680 if test "${ac_cv_prog_DB2PS+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683 if test -n "$DB2PS"; then
5684 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_DB2PS="$ac_prog"
5694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5697 done
5698 done
5702 DB2PS=$ac_cv_prog_DB2PS
5703 if test -n "$DB2PS"; then
5704 echo "$as_me:$LINENO: result: $DB2PS" >&5
5705 echo "${ECHO_T}$DB2PS" >&6
5706 else
5707 echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5711 test -n "$DB2PS" && break
5712 done
5713 test -n "$DB2PS" || DB2PS="false"
5715 for ac_prog in docbook2txt db2txt
5717 # Extract the first word of "$ac_prog", so it can be a program name with args.
5718 set dummy $ac_prog; ac_word=$2
5719 echo "$as_me:$LINENO: checking for $ac_word" >&5
5720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 if test -n "$DB2TXT"; then
5725 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_DB2TXT="$ac_prog"
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5738 done
5739 done
5743 DB2TXT=$ac_cv_prog_DB2TXT
5744 if test -n "$DB2TXT"; then
5745 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5746 echo "${ECHO_T}$DB2TXT" >&6
5747 else
5748 echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6
5752 test -n "$DB2TXT" && break
5753 done
5754 test -n "$DB2TXT" || DB2TXT="false"
5756 for ac_prog in fontforge
5758 # Extract the first word of "$ac_prog", so it can be a program name with args.
5759 set dummy $ac_prog; ac_word=$2
5760 echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5762 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 if test -n "$FONTFORGE"; then
5766 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5775 ac_cv_prog_FONTFORGE="$ac_prog"
5776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5779 done
5780 done
5784 FONTFORGE=$ac_cv_prog_FONTFORGE
5785 if test -n "$FONTFORGE"; then
5786 echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5787 echo "${ECHO_T}$FONTFORGE" >&6
5788 else
5789 echo "$as_me:$LINENO: result: no" >&5
5790 echo "${ECHO_T}no" >&6
5793 test -n "$FONTFORGE" && break
5794 done
5795 test -n "$FONTFORGE" || FONTFORGE="false"
5800 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5801 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5802 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805 ac_check_lib_save_LIBS=$LIBS
5806 LIBS="-li386 $LIBS"
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5814 /* Override any gcc2 internal prototype to avoid an error. */
5815 #ifdef __cplusplus
5816 extern "C"
5817 #endif
5818 /* We use char because int might match the return type of a gcc2
5819 builtin and then its argument prototype would still apply. */
5820 char i386_set_ldt ();
5822 main ()
5824 i386_set_ldt ();
5826 return 0;
5828 _ACEOF
5829 rm -f conftest.$ac_objext conftest$ac_exeext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5831 (eval $ac_link) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest$ac_exeext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_lib_i386_i386_set_ldt=yes
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 ac_cv_lib_i386_i386_set_ldt=no
5857 rm -f conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
5859 LIBS=$ac_check_lib_save_LIBS
5861 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5862 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5863 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5864 cat >>confdefs.h <<_ACEOF
5865 #define HAVE_LIBI386 1
5866 _ACEOF
5868 LIBS="-li386 $LIBS"
5873 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5874 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5875 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878 ac_check_lib_save_LIBS=$LIBS
5879 LIBS="-lossaudio $LIBS"
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5887 /* Override any gcc2 internal prototype to avoid an error. */
5888 #ifdef __cplusplus
5889 extern "C"
5890 #endif
5891 /* We use char because int might match the return type of a gcc2
5892 builtin and then its argument prototype would still apply. */
5893 char _oss_ioctl ();
5895 main ()
5897 _oss_ioctl ();
5899 return 0;
5901 _ACEOF
5902 rm -f conftest.$ac_objext conftest$ac_exeext
5903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5904 (eval $ac_link) 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 (eval $ac_try) 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; } &&
5917 { ac_try='test -s conftest$ac_exeext'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5923 ac_cv_lib_ossaudio__oss_ioctl=yes
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 ac_cv_lib_ossaudio__oss_ioctl=no
5930 rm -f conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext conftest.$ac_ext
5932 LIBS=$ac_check_lib_save_LIBS
5934 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5935 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5936 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5937 cat >>confdefs.h <<_ACEOF
5938 #define HAVE_LIBOSSAUDIO 1
5939 _ACEOF
5941 LIBS="-lossaudio $LIBS"
5946 for ac_func in iswalnum
5948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5949 echo "$as_me:$LINENO: checking for $ac_func" >&5
5950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5951 if eval "test \"\${$as_ac_var+set}\" = set"; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954 cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h. */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5962 #define $ac_func innocuous_$ac_func
5964 /* System header to define __stub macros and hopefully few prototypes,
5965 which can conflict with char $ac_func (); below.
5966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5967 <limits.h> exists even on freestanding compilers. */
5969 #ifdef __STDC__
5970 # include <limits.h>
5971 #else
5972 # include <assert.h>
5973 #endif
5975 #undef $ac_func
5977 /* Override any gcc2 internal prototype to avoid an error. */
5978 #ifdef __cplusplus
5979 extern "C"
5981 #endif
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5984 char $ac_func ();
5985 /* The GNU C library defines this for functions which it implements
5986 to always fail with ENOSYS. Some functions are actually named
5987 something starting with __ and the normal name is an alias. */
5988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5989 choke me
5990 #else
5991 char (*f) () = $ac_func;
5992 #endif
5993 #ifdef __cplusplus
5995 #endif
5998 main ()
6000 return f != $ac_func;
6002 return 0;
6004 _ACEOF
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>conftest.er1
6008 ac_status=$?
6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; } &&
6020 { ac_try='test -s conftest$ac_exeext'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 eval "$as_ac_var=yes"
6027 else
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 eval "$as_ac_var=no"
6033 rm -f conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6038 if test `eval echo '${'$as_ac_var'}'` = yes; then
6039 cat >>confdefs.h <<_ACEOF
6040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6041 _ACEOF
6043 else
6045 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
6046 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6047 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 ac_check_lib_save_LIBS=$LIBS
6051 LIBS="-lw $LIBS"
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6059 /* Override any gcc2 internal prototype to avoid an error. */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6065 char iswalnum ();
6067 main ()
6069 iswalnum ();
6071 return 0;
6073 _ACEOF
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076 (eval $ac_link) 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 (eval $ac_try) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_lib_w_iswalnum=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_cv_lib_w_iswalnum=no
6102 rm -f conftest.err conftest.$ac_objext \
6103 conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_check_lib_save_LIBS
6106 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6107 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6108 if test $ac_cv_lib_w_iswalnum = yes; then
6109 cat >>confdefs.h <<_ACEOF
6110 #define HAVE_LIBW 1
6111 _ACEOF
6113 LIBS="-lw $LIBS"
6118 done
6121 for ac_func in gethostbyname
6123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6124 echo "$as_me:$LINENO: checking for $ac_func" >&5
6125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6126 if eval "test \"\${$as_ac_var+set}\" = set"; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6137 #define $ac_func innocuous_$ac_func
6139 /* System header to define __stub macros and hopefully few prototypes,
6140 which can conflict with char $ac_func (); below.
6141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142 <limits.h> exists even on freestanding compilers. */
6144 #ifdef __STDC__
6145 # include <limits.h>
6146 #else
6147 # include <assert.h>
6148 #endif
6150 #undef $ac_func
6152 /* Override any gcc2 internal prototype to avoid an error. */
6153 #ifdef __cplusplus
6154 extern "C"
6156 #endif
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6159 char $ac_func ();
6160 /* The GNU C library defines this for functions which it implements
6161 to always fail with ENOSYS. Some functions are actually named
6162 something starting with __ and the normal name is an alias. */
6163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6164 choke me
6165 #else
6166 char (*f) () = $ac_func;
6167 #endif
6168 #ifdef __cplusplus
6170 #endif
6173 main ()
6175 return f != $ac_func;
6177 return 0;
6179 _ACEOF
6180 rm -f conftest.$ac_objext conftest$ac_exeext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182 (eval $ac_link) 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest$ac_exeext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 eval "$as_ac_var=yes"
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 eval "$as_ac_var=no"
6208 rm -f conftest.err conftest.$ac_objext \
6209 conftest$ac_exeext conftest.$ac_ext
6211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6213 if test `eval echo '${'$as_ac_var'}'` = yes; then
6214 cat >>confdefs.h <<_ACEOF
6215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6216 _ACEOF
6218 else
6220 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6221 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6222 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lnsl $LIBS"
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h. */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 /* Override any gcc2 internal prototype to avoid an error. */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 /* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6240 char gethostbyname ();
6242 main ()
6244 gethostbyname ();
6246 return 0;
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest$ac_exeext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_cv_lib_nsl_gethostbyname=yes
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 ac_cv_lib_nsl_gethostbyname=no
6277 rm -f conftest.err conftest.$ac_objext \
6278 conftest$ac_exeext conftest.$ac_ext
6279 LIBS=$ac_check_lib_save_LIBS
6281 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6282 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6283 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6284 cat >>confdefs.h <<_ACEOF
6285 #define HAVE_LIBNSL 1
6286 _ACEOF
6288 LIBS="-lnsl $LIBS"
6293 done
6296 for ac_func in connect
6298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6299 echo "$as_me:$LINENO: checking for $ac_func" >&5
6300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6301 if eval "test \"\${$as_ac_var+set}\" = set"; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6312 #define $ac_func innocuous_$ac_func
6314 /* System header to define __stub macros and hopefully few prototypes,
6315 which can conflict with char $ac_func (); below.
6316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6317 <limits.h> exists even on freestanding compilers. */
6319 #ifdef __STDC__
6320 # include <limits.h>
6321 #else
6322 # include <assert.h>
6323 #endif
6325 #undef $ac_func
6327 /* Override any gcc2 internal prototype to avoid an error. */
6328 #ifdef __cplusplus
6329 extern "C"
6331 #endif
6332 /* We use char because int might match the return type of a gcc2
6333 builtin and then its argument prototype would still apply. */
6334 char $ac_func ();
6335 /* The GNU C library defines this for functions which it implements
6336 to always fail with ENOSYS. Some functions are actually named
6337 something starting with __ and the normal name is an alias. */
6338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6339 choke me
6340 #else
6341 char (*f) () = $ac_func;
6342 #endif
6343 #ifdef __cplusplus
6345 #endif
6348 main ()
6350 return f != $ac_func;
6352 return 0;
6354 _ACEOF
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357 (eval $ac_link) 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; } &&
6370 { ac_try='test -s conftest$ac_exeext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 (eval $ac_try) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 eval "$as_ac_var=yes"
6377 else
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 eval "$as_ac_var=no"
6383 rm -f conftest.err conftest.$ac_objext \
6384 conftest$ac_exeext conftest.$ac_ext
6386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6388 if test `eval echo '${'$as_ac_var'}'` = yes; then
6389 cat >>confdefs.h <<_ACEOF
6390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6391 _ACEOF
6393 else
6395 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6396 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6397 if test "${ac_cv_lib_socket_connect+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 ac_check_lib_save_LIBS=$LIBS
6401 LIBS="-lsocket $LIBS"
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 #ifdef __cplusplus
6411 extern "C"
6412 #endif
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6415 char connect ();
6417 main ()
6419 connect ();
6421 return 0;
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try='test -s conftest$ac_exeext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_cv_lib_socket_connect=yes
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 ac_cv_lib_socket_connect=no
6452 rm -f conftest.err conftest.$ac_objext \
6453 conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6456 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6457 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6458 if test $ac_cv_lib_socket_connect = yes; then
6459 cat >>confdefs.h <<_ACEOF
6460 #define HAVE_LIBSOCKET 1
6461 _ACEOF
6463 LIBS="-lsocket $LIBS"
6468 done
6471 for ac_func in inet_aton
6473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6474 echo "$as_me:$LINENO: checking for $ac_func" >&5
6475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6476 if eval "test \"\${$as_ac_var+set}\" = set"; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479 cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h. */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6487 #define $ac_func innocuous_$ac_func
6489 /* System header to define __stub macros and hopefully few prototypes,
6490 which can conflict with char $ac_func (); below.
6491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6492 <limits.h> exists even on freestanding compilers. */
6494 #ifdef __STDC__
6495 # include <limits.h>
6496 #else
6497 # include <assert.h>
6498 #endif
6500 #undef $ac_func
6502 /* Override any gcc2 internal prototype to avoid an error. */
6503 #ifdef __cplusplus
6504 extern "C"
6506 #endif
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6509 char $ac_func ();
6510 /* The GNU C library defines this for functions which it implements
6511 to always fail with ENOSYS. Some functions are actually named
6512 something starting with __ and the normal name is an alias. */
6513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6514 choke me
6515 #else
6516 char (*f) () = $ac_func;
6517 #endif
6518 #ifdef __cplusplus
6520 #endif
6523 main ()
6525 return f != $ac_func;
6527 return 0;
6529 _ACEOF
6530 rm -f conftest.$ac_objext conftest$ac_exeext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6532 (eval $ac_link) 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 (eval $ac_try) 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; } &&
6545 { ac_try='test -s conftest$ac_exeext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 eval "$as_ac_var=yes"
6552 else
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 eval "$as_ac_var=no"
6558 rm -f conftest.err conftest.$ac_objext \
6559 conftest$ac_exeext conftest.$ac_ext
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6563 if test `eval echo '${'$as_ac_var'}'` = yes; then
6564 cat >>confdefs.h <<_ACEOF
6565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6566 _ACEOF
6568 else
6570 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6571 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6572 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575 ac_check_lib_save_LIBS=$LIBS
6576 LIBS="-lresolv $LIBS"
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6584 /* Override any gcc2 internal prototype to avoid an error. */
6585 #ifdef __cplusplus
6586 extern "C"
6587 #endif
6588 /* We use char because int might match the return type of a gcc2
6589 builtin and then its argument prototype would still apply. */
6590 char inet_aton ();
6592 main ()
6594 inet_aton ();
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6601 (eval $ac_link) 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 (eval $ac_try) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try='test -s conftest$ac_exeext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_lib_resolv_inet_aton=yes
6621 else
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6625 ac_cv_lib_resolv_inet_aton=no
6627 rm -f conftest.err conftest.$ac_objext \
6628 conftest$ac_exeext conftest.$ac_ext
6629 LIBS=$ac_check_lib_save_LIBS
6631 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6632 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6633 if test $ac_cv_lib_resolv_inet_aton = yes; then
6634 cat >>confdefs.h <<_ACEOF
6635 #define HAVE_LIBRESOLV 1
6636 _ACEOF
6638 LIBS="-lresolv $LIBS"
6643 done
6646 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6647 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6648 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651 ac_check_lib_save_LIBS=$LIBS
6652 LIBS="-lxpg4 $LIBS"
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6660 /* Override any gcc2 internal prototype to avoid an error. */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6666 char _xpg4_setrunelocale ();
6668 main ()
6670 _xpg4_setrunelocale ();
6672 return 0;
6674 _ACEOF
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 (eval $ac_try) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; } &&
6690 { ac_try='test -s conftest$ac_exeext'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 (eval $ac_try) 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6703 rm -f conftest.err conftest.$ac_objext \
6704 conftest$ac_exeext conftest.$ac_ext
6705 LIBS=$ac_check_lib_save_LIBS
6707 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6708 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6709 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define HAVE_LIBXPG4 1
6712 _ACEOF
6714 LIBS="-lxpg4 $LIBS"
6719 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6720 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6721 if test "${ac_cv_lib_poll_poll+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 ac_check_lib_save_LIBS=$LIBS
6725 LIBS="-lpoll $LIBS"
6726 cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h. */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6733 /* Override any gcc2 internal prototype to avoid an error. */
6734 #ifdef __cplusplus
6735 extern "C"
6736 #endif
6737 /* We use char because int might match the return type of a gcc2
6738 builtin and then its argument prototype would still apply. */
6739 char poll ();
6741 main ()
6743 poll ();
6745 return 0;
6747 _ACEOF
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750 (eval $ac_link) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; } &&
6763 { ac_try='test -s conftest$ac_exeext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 ac_cv_lib_poll_poll=yes
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 ac_cv_lib_poll_poll=no
6776 rm -f conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6778 LIBS=$ac_check_lib_save_LIBS
6780 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6781 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6782 if test $ac_cv_lib_poll_poll = yes; then
6783 cat >>confdefs.h <<_ACEOF
6784 #define HAVE_LIBPOLL 1
6785 _ACEOF
6787 LIBS="-lpoll $LIBS"
6792 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6793 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6794 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 ac_check_lib_save_LIBS=$LIBS
6798 LIBS="-lresolv $LIBS"
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6806 /* Override any gcc2 internal prototype to avoid an error. */
6807 #ifdef __cplusplus
6808 extern "C"
6809 #endif
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6812 char res_9_init ();
6814 main ()
6816 res_9_init ();
6818 return 0;
6820 _ACEOF
6821 rm -f conftest.$ac_objext conftest$ac_exeext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823 (eval $ac_link) 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; } &&
6836 { ac_try='test -s conftest$ac_exeext'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 (eval $ac_try) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6842 ac_cv_lib_resolv_res_9_init=yes
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 ac_cv_lib_resolv_res_9_init=no
6849 rm -f conftest.err conftest.$ac_objext \
6850 conftest$ac_exeext conftest.$ac_ext
6851 LIBS=$ac_check_lib_save_LIBS
6853 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6854 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6855 if test $ac_cv_lib_resolv_res_9_init = yes; then
6856 cat >>confdefs.h <<_ACEOF
6857 #define HAVE_LIBRESOLV 1
6858 _ACEOF
6860 LIBS="-lresolv $LIBS"
6864 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6865 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6866 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-lpthread $LIBS"
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h. */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6878 /* Override any gcc2 internal prototype to avoid an error. */
6879 #ifdef __cplusplus
6880 extern "C"
6881 #endif
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6884 char pthread_create ();
6886 main ()
6888 pthread_create ();
6890 return 0;
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
6908 { ac_try='test -s conftest$ac_exeext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_cv_lib_pthread_pthread_create=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ac_cv_lib_pthread_pthread_create=no
6921 rm -f conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
6923 LIBS=$ac_check_lib_save_LIBS
6925 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6926 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6927 if test $ac_cv_lib_pthread_pthread_create = yes; then
6928 LIBPTHREAD="-lpthread"
6935 XFILES=""
6937 OPENGLFILES=""
6939 GLU32FILES=""
6941 OPENGL_LIBS=""
6942 if test "$have_x" = "yes"
6943 then
6944 XLIB="-lXext -lX11"
6945 ac_save_CPPFLAGS="$CPPFLAGS"
6946 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6948 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6949 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6950 if test "${ac_cv_header_stdc+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953 cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h. */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6959 #include <stdlib.h>
6960 #include <stdarg.h>
6961 #include <string.h>
6962 #include <float.h>
6965 main ()
6969 return 0;
6971 _ACEOF
6972 rm -f conftest.$ac_objext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974 (eval $ac_compile) 2>conftest.er1
6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } &&
6981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; } &&
6987 { ac_try='test -s conftest.$ac_objext'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6993 ac_cv_header_stdc=yes
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ac_cv_header_stdc=no
7000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7002 if test $ac_cv_header_stdc = yes; then
7003 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7004 cat >conftest.$ac_ext <<_ACEOF
7005 /* confdefs.h. */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010 #include <string.h>
7012 _ACEOF
7013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7014 $EGREP "memchr" >/dev/null 2>&1; then
7016 else
7017 ac_cv_header_stdc=no
7019 rm -f conftest*
7023 if test $ac_cv_header_stdc = yes; then
7024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7025 cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h. */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 #include <stdlib.h>
7033 _ACEOF
7034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7035 $EGREP "free" >/dev/null 2>&1; then
7037 else
7038 ac_cv_header_stdc=no
7040 rm -f conftest*
7044 if test $ac_cv_header_stdc = yes; then
7045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7046 if test "$cross_compiling" = yes; then
7048 else
7049 cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h. */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 #include <ctype.h>
7056 #if ((' ' & 0x0FF) == 0x020)
7057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7059 #else
7060 # define ISLOWER(c) \
7061 (('a' <= (c) && (c) <= 'i') \
7062 || ('j' <= (c) && (c) <= 'r') \
7063 || ('s' <= (c) && (c) <= 'z'))
7064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7065 #endif
7067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7069 main ()
7071 int i;
7072 for (i = 0; i < 256; i++)
7073 if (XOR (islower (i), ISLOWER (i))
7074 || toupper (i) != TOUPPER (i))
7075 exit(2);
7076 exit (0);
7078 _ACEOF
7079 rm -f conftest$ac_exeext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 (eval $ac_try) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7091 else
7092 echo "$as_me: program exited with status $ac_status" >&5
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7096 ( exit $ac_status )
7097 ac_cv_header_stdc=no
7099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7103 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7104 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7105 if test $ac_cv_header_stdc = yes; then
7107 cat >>confdefs.h <<\_ACEOF
7108 #define STDC_HEADERS 1
7109 _ACEOF
7113 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7123 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7124 inttypes.h stdint.h unistd.h
7126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7127 echo "$as_me:$LINENO: checking for $ac_header" >&5
7128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 $ac_includes_default
7140 #include <$ac_header>
7141 _ACEOF
7142 rm -f conftest.$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>conftest.er1
7145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; } &&
7157 { ac_try='test -s conftest.$ac_objext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 eval "$as_ac_Header=yes"
7164 else
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7168 eval "$as_ac_Header=no"
7170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7175 cat >>confdefs.h <<_ACEOF
7176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7177 _ACEOF
7181 done
7185 for ac_header in X11/Xlib.h
7187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7189 echo "$as_me:$LINENO: checking for $ac_header" >&5
7190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7196 else
7197 # Is the header compilable?
7198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7200 cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h. */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7206 $ac_includes_default
7207 #include <$ac_header>
7208 _ACEOF
7209 rm -f conftest.$ac_objext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211 (eval $ac_compile) 2>conftest.er1
7212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } &&
7218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220 (eval $ac_try) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; } &&
7224 { ac_try='test -s conftest.$ac_objext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 ac_header_compiler=yes
7231 else
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7235 ac_header_compiler=no
7237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7239 echo "${ECHO_T}$ac_header_compiler" >&6
7241 # Is the header present?
7242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h. */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 #include <$ac_header>
7251 _ACEOF
7252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7254 ac_status=$?
7255 grep -v '^ *+' conftest.er1 >conftest.err
7256 rm -f conftest.er1
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } >/dev/null; then
7260 if test -s conftest.err; then
7261 ac_cpp_err=$ac_c_preproc_warn_flag
7262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7263 else
7264 ac_cpp_err=
7266 else
7267 ac_cpp_err=yes
7269 if test -z "$ac_cpp_err"; then
7270 ac_header_preproc=yes
7271 else
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7275 ac_header_preproc=no
7277 rm -f conftest.err conftest.$ac_ext
7278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7279 echo "${ECHO_T}$ac_header_preproc" >&6
7281 # So? What about this header?
7282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7283 yes:no: )
7284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7288 ac_header_preproc=yes
7290 no:yes:* )
7291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7304 cat <<\_ASBOX
7305 ## ------------------------------------ ##
7306 ## Report this to wine-devel@winehq.org ##
7307 ## ------------------------------------ ##
7308 _ASBOX
7310 sed "s/^/$as_me: WARNING: /" >&2
7312 esac
7313 echo "$as_me:$LINENO: checking for $ac_header" >&5
7314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318 eval "$as_ac_Header=\$ac_header_preproc"
7320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7325 cat >>confdefs.h <<_ACEOF
7326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7327 _ACEOF
7339 for ac_header in X11/XKBlib.h \
7340 X11/Xutil.h \
7341 X11/extensions/shape.h \
7342 X11/extensions/XInput.h \
7343 X11/extensions/XShm.h \
7344 X11/extensions/Xrandr.h \
7345 X11/extensions/Xrender.h \
7346 X11/extensions/Xvlib.h \
7347 X11/extensions/xf86dga.h \
7348 X11/extensions/xf86vmode.h
7350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7351 echo "$as_me:$LINENO: checking for $ac_header" >&5
7352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356 cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 #include <X11/Xlib.h>
7363 #ifdef HAVE_X11_XUTIL_H
7364 # include <X11/Xutil.h>
7365 #endif
7367 #include <$ac_header>
7368 _ACEOF
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371 (eval $ac_compile) 2>conftest.er1
7372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest.$ac_objext'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7390 eval "$as_ac_Header=yes"
7391 else
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7395 eval "$as_ac_Header=no"
7397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7402 cat >>confdefs.h <<_ACEOF
7403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7404 _ACEOF
7408 done
7411 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7412 then
7413 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7414 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7415 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418 ac_check_lib_save_LIBS=$LIBS
7419 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h. */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7427 /* Override any gcc2 internal prototype to avoid an error. */
7428 #ifdef __cplusplus
7429 extern "C"
7430 #endif
7431 /* We use char because int might match the return type of a gcc2
7432 builtin and then its argument prototype would still apply. */
7433 char XkbQueryExtension ();
7435 main ()
7437 XkbQueryExtension ();
7439 return 0;
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444 (eval $ac_link) 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; } &&
7457 { ac_try='test -s conftest$ac_exeext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_lib_X11_XkbQueryExtension=yes
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ac_cv_lib_X11_XkbQueryExtension=no
7470 rm -f conftest.err conftest.$ac_objext \
7471 conftest$ac_exeext conftest.$ac_ext
7472 LIBS=$ac_check_lib_save_LIBS
7474 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7475 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7476 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7478 cat >>confdefs.h <<\_ACEOF
7479 #define HAVE_XKB 1
7480 _ACEOF
7486 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7487 then
7488 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7489 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7490 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 ac_check_lib_save_LIBS=$LIBS
7494 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7502 /* Override any gcc2 internal prototype to avoid an error. */
7503 #ifdef __cplusplus
7504 extern "C"
7505 #endif
7506 /* We use char because int might match the return type of a gcc2
7507 builtin and then its argument prototype would still apply. */
7508 char XShmQueryExtension ();
7510 main ()
7512 XShmQueryExtension ();
7514 return 0;
7516 _ACEOF
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519 (eval $ac_link) 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 (eval $ac_try) 2>&5
7529 ac_status=$?
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; } &&
7532 { ac_try='test -s conftest$ac_exeext'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 (eval $ac_try) 2>&5
7535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; }; then
7538 ac_cv_lib_Xext_XShmQueryExtension=yes
7539 else
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7543 ac_cv_lib_Xext_XShmQueryExtension=no
7545 rm -f conftest.err conftest.$ac_objext \
7546 conftest$ac_exeext conftest.$ac_ext
7547 LIBS=$ac_check_lib_save_LIBS
7549 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7550 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7551 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7553 cat >>confdefs.h <<\_ACEOF
7554 #define HAVE_LIBXXSHM 1
7555 _ACEOF
7561 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7562 then
7563 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7564 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7565 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568 ac_check_lib_save_LIBS=$LIBS
7569 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7570 cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h. */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7577 /* Override any gcc2 internal prototype to avoid an error. */
7578 #ifdef __cplusplus
7579 extern "C"
7580 #endif
7581 /* We use char because int might match the return type of a gcc2
7582 builtin and then its argument prototype would still apply. */
7583 char XShapeQueryExtension ();
7585 main ()
7587 XShapeQueryExtension ();
7589 return 0;
7591 _ACEOF
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7594 (eval $ac_link) 2>conftest.er1
7595 ac_status=$?
7596 grep -v '^ *+' conftest.er1 >conftest.err
7597 rm -f conftest.er1
7598 cat conftest.err >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } &&
7601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 (eval $ac_try) 2>&5
7604 ac_status=$?
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; } &&
7607 { ac_try='test -s conftest$ac_exeext'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 (eval $ac_try) 2>&5
7610 ac_status=$?
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; }; then
7613 ac_cv_lib_Xext_XShapeQueryExtension=yes
7614 else
7615 echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7618 ac_cv_lib_Xext_XShapeQueryExtension=no
7620 rm -f conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7622 LIBS=$ac_check_lib_save_LIBS
7624 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7625 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7626 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7628 cat >>confdefs.h <<\_ACEOF
7629 #define HAVE_LIBXSHAPE 1
7630 _ACEOF
7636 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7637 then
7638 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7639 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7640 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643 ac_check_lib_save_LIBS=$LIBS
7644 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7645 cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h. */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h. */
7652 /* Override any gcc2 internal prototype to avoid an error. */
7653 #ifdef __cplusplus
7654 extern "C"
7655 #endif
7656 /* We use char because int might match the return type of a gcc2
7657 builtin and then its argument prototype would still apply. */
7658 char XDGAQueryExtension ();
7660 main ()
7662 XDGAQueryExtension ();
7664 return 0;
7666 _ACEOF
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669 (eval $ac_link) 2>conftest.er1
7670 ac_status=$?
7671 grep -v '^ *+' conftest.er1 >conftest.err
7672 rm -f conftest.er1
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } &&
7676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 (eval $ac_try) 2>&5
7679 ac_status=$?
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; } &&
7682 { ac_try='test -s conftest$ac_exeext'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7688 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7689 else
7690 echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7693 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7695 rm -f conftest.err conftest.$ac_objext \
7696 conftest$ac_exeext conftest.$ac_ext
7697 LIBS=$ac_check_lib_save_LIBS
7699 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7700 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7701 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7703 cat >>confdefs.h <<\_ACEOF
7704 #define HAVE_LIBXXF86DGA2 1
7705 _ACEOF
7707 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7709 else
7710 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7711 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7712 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715 ac_check_lib_save_LIBS=$LIBS
7716 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7717 $LIBS"
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h. */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7725 /* Override any gcc2 internal prototype to avoid an error. */
7726 #ifdef __cplusplus
7727 extern "C"
7728 #endif
7729 /* We use char because int might match the return type of a gcc2
7730 builtin and then its argument prototype would still apply. */
7731 char XF86DGAQueryExtension ();
7733 main ()
7735 XF86DGAQueryExtension ();
7737 return 0;
7739 _ACEOF
7740 rm -f conftest.$ac_objext conftest$ac_exeext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742 (eval $ac_link) 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751 (eval $ac_try) 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; } &&
7755 { ac_try='test -s conftest$ac_exeext'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 (eval $ac_try) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7762 else
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7768 rm -f conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7772 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7773 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7774 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7776 cat >>confdefs.h <<\_ACEOF
7777 #define HAVE_LIBXXF86DGA 1
7778 _ACEOF
7780 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7789 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7790 then
7791 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7792 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7793 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796 ac_check_lib_save_LIBS=$LIBS
7797 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7798 cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h. */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7805 /* Override any gcc2 internal prototype to avoid an error. */
7806 #ifdef __cplusplus
7807 extern "C"
7808 #endif
7809 /* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7811 char XF86VidModeQueryExtension ();
7813 main ()
7815 XF86VidModeQueryExtension ();
7817 return 0;
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>conftest.er1
7823 ac_status=$?
7824 grep -v '^ *+' conftest.er1 >conftest.err
7825 rm -f conftest.er1
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try='test -s conftest$ac_exeext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7842 else
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7846 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7848 rm -f conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
7850 LIBS=$ac_check_lib_save_LIBS
7852 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7853 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7854 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7856 cat >>confdefs.h <<\_ACEOF
7857 #define HAVE_LIBXXF86VM 1
7858 _ACEOF
7860 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7866 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7867 then
7868 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h. */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 #include <X11/Xlib.h>
7875 #include <X11/extensions/Xrandr.h>
7877 main ()
7879 static typeof(XRRSetScreenConfigAndRate) * func;
7881 return 0;
7883 _ACEOF
7884 rm -f conftest.$ac_objext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7886 (eval $ac_compile) 2>conftest.er1
7887 ac_status=$?
7888 grep -v '^ *+' conftest.er1 >conftest.err
7889 rm -f conftest.er1
7890 cat conftest.err >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } &&
7893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest.$ac_objext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7906 cat >>confdefs.h <<\_ACEOF
7907 #define HAVE_LIBXRANDR 1
7908 _ACEOF
7910 else
7911 echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7918 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
7919 then
7920 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7921 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7922 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925 ac_check_lib_save_LIBS=$LIBS
7926 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7927 cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h. */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7934 /* Override any gcc2 internal prototype to avoid an error. */
7935 #ifdef __cplusplus
7936 extern "C"
7937 #endif
7938 /* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7940 char XvShmCreateImage ();
7942 main ()
7944 XvShmCreateImage ();
7946 return 0;
7948 _ACEOF
7949 rm -f conftest.$ac_objext conftest$ac_exeext
7950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951 (eval $ac_link) 2>conftest.er1
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 (eval $ac_try) 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; } &&
7964 { ac_try='test -s conftest$ac_exeext'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 (eval $ac_try) 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_cv_lib_Xv_XvShmCreateImage=yes
7971 else
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 ac_cv_lib_Xv_XvShmCreateImage=no
7977 rm -f conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7979 LIBS=$ac_check_lib_save_LIBS
7981 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7982 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7983 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7985 cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_XVIDEO 1
7987 _ACEOF
7989 X_PRE_LIBS="$X_PRE_LIBS -lXv"
7995 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
7996 then
7997 echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
7998 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
7999 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002 ac_check_lib_save_LIBS=$LIBS
8003 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8011 /* Override any gcc2 internal prototype to avoid an error. */
8012 #ifdef __cplusplus
8013 extern "C"
8014 #endif
8015 /* We use char because int might match the return type of a gcc2
8016 builtin and then its argument prototype would still apply. */
8017 char XRenderSetPictureTransform ();
8019 main ()
8021 XRenderSetPictureTransform ();
8023 return 0;
8025 _ACEOF
8026 rm -f conftest.$ac_objext conftest$ac_exeext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8028 (eval $ac_link) 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; } &&
8041 { ac_try='test -s conftest$ac_exeext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8054 rm -f conftest.err conftest.$ac_objext \
8055 conftest$ac_exeext conftest.$ac_ext
8056 LIBS=$ac_check_lib_save_LIBS
8058 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8059 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8060 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8062 cat >>confdefs.h <<\_ACEOF
8063 #define HAVE_XRENDERSETPICTURETRANSFORM 1
8064 _ACEOF
8073 done
8075 if test "x$with_opengl" != "xno"
8076 then
8077 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8078 then
8079 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8080 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8081 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8082 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8083 { (exit 1); exit 1; }; }
8088 for ac_header in GL/gl.h GL/glx.h
8090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8092 echo "$as_me:$LINENO: checking for $ac_header" >&5
8093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8099 else
8100 # Is the header compilable?
8101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8103 cat >conftest.$ac_ext <<_ACEOF
8104 /* confdefs.h. */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 $ac_includes_default
8110 #include <$ac_header>
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest.$ac_objext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 ac_header_compiler=yes
8134 else
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8138 ac_header_compiler=no
8140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8142 echo "${ECHO_T}$ac_header_compiler" >&6
8144 # Is the header present?
8145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 #include <$ac_header>
8154 _ACEOF
8155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } >/dev/null; then
8163 if test -s conftest.err; then
8164 ac_cpp_err=$ac_c_preproc_warn_flag
8165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8166 else
8167 ac_cpp_err=
8169 else
8170 ac_cpp_err=yes
8172 if test -z "$ac_cpp_err"; then
8173 ac_header_preproc=yes
8174 else
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 ac_header_preproc=no
8180 rm -f conftest.err conftest.$ac_ext
8181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8182 echo "${ECHO_T}$ac_header_preproc" >&6
8184 # So? What about this header?
8185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8186 yes:no: )
8187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8191 ac_header_preproc=yes
8193 no:yes:* )
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8207 cat <<\_ASBOX
8208 ## ------------------------------------ ##
8209 ## Report this to wine-devel@winehq.org ##
8210 ## ------------------------------------ ##
8211 _ASBOX
8213 sed "s/^/$as_me: WARNING: /" >&2
8215 esac
8216 echo "$as_me:$LINENO: checking for $ac_header" >&5
8217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 eval "$as_ac_Header=\$ac_header_preproc"
8223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8228 cat >>confdefs.h <<_ACEOF
8229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8230 _ACEOF
8234 done
8236 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8237 then
8239 for ac_header in GL/glext.h
8241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8242 echo "$as_me:$LINENO: checking for $ac_header" >&5
8243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 #include <GL/glx.h>
8255 #include <$ac_header>
8256 _ACEOF
8257 rm -f conftest.$ac_objext
8258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8259 (eval $ac_compile) 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } &&
8266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 (eval $ac_try) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; } &&
8272 { ac_try='test -s conftest.$ac_objext'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 (eval $ac_try) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 eval "$as_ac_Header=yes"
8279 else
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 eval "$as_ac_Header=no"
8285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8290 cat >>confdefs.h <<_ACEOF
8291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8292 _ACEOF
8296 done
8298 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8299 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8300 if test "${wine_cv_opengl_version_OK+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 else
8303 cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h. */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8309 #include <GL/gl.h>
8311 main ()
8313 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8315 return 0;
8317 _ACEOF
8318 rm -f conftest.$ac_objext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8320 (eval $ac_compile) 2>conftest.er1
8321 ac_status=$?
8322 grep -v '^ *+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest.$ac_objext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 wine_cv_opengl_version_OK="yes"
8340 else
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 wine_cv_opengl_version_OK="no"
8347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8351 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8353 if test "$wine_cv_opengl_version_OK" = "yes"
8354 then
8355 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8356 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8357 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360 ac_check_lib_save_LIBS=$LIBS
8361 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8362 cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h. */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8369 /* Override any gcc2 internal prototype to avoid an error. */
8370 #ifdef __cplusplus
8371 extern "C"
8372 #endif
8373 /* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8375 char glXCreateContext ();
8377 main ()
8379 glXCreateContext ();
8381 return 0;
8383 _ACEOF
8384 rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386 (eval $ac_link) 2>conftest.er1
8387 ac_status=$?
8388 grep -v '^ *+' conftest.er1 >conftest.err
8389 rm -f conftest.er1
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try='test -s conftest$ac_exeext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_lib_GL_glXCreateContext=yes
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 ac_cv_lib_GL_glXCreateContext=no
8412 rm -f conftest.err conftest.$ac_objext \
8413 conftest$ac_exeext conftest.$ac_ext
8414 LIBS=$ac_check_lib_save_LIBS
8416 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8417 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8418 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8419 OPENGL_LIBS="-lGL"
8424 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8425 then
8426 OPENGLFILES='$(OPENGLFILES)'
8428 cat >>confdefs.h <<\_ACEOF
8429 #define HAVE_OPENGL 1
8430 _ACEOF
8433 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8434 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8435 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438 ac_check_lib_save_LIBS=$LIBS
8439 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8447 /* Override any gcc2 internal prototype to avoid an error. */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 /* We use char because int might match the return type of a gcc2
8452 builtin and then its argument prototype would still apply. */
8453 char glXGetProcAddressARB ();
8455 main ()
8457 glXGetProcAddressARB ();
8459 return 0;
8461 _ACEOF
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest$ac_exeext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_cv_lib_GL_glXGetProcAddressARB=yes
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 ac_cv_lib_GL_glXGetProcAddressARB=no
8490 rm -f conftest.err conftest.$ac_objext \
8491 conftest$ac_exeext conftest.$ac_ext
8492 LIBS=$ac_check_lib_save_LIBS
8494 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8495 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8496 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8498 cat >>confdefs.h <<\_ACEOF
8499 #define HAVE_GLX_GETPROCADDRESS 1
8500 _ACEOF
8505 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8506 then
8507 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8508 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8509 if test "${wine_cv_extension_prototypes+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h. */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 #include <GL/gl.h>
8519 #ifdef HAVE_GL_GLEXT_H
8520 # include <GL/glext.h>
8521 #endif
8524 main ()
8526 PFNGLCOLORTABLEEXTPROC test_proc;
8528 return 0;
8530 _ACEOF
8531 rm -f conftest.$ac_objext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8533 (eval $ac_compile) 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 (eval $ac_try) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 wine_cv_extension_prototypes="yes"
8553 else
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 wine_cv_extension_prototypes="no"
8560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8563 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8564 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8565 if test "$wine_cv_extension_prototypes" = "yes"
8566 then
8568 cat >>confdefs.h <<\_ACEOF
8569 #define HAVE_GLEXT_PROTOTYPES 1
8570 _ACEOF
8576 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8577 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8578 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8580 else
8581 ac_check_lib_save_LIBS=$LIBS
8582 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8583 $LIBS"
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h. */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8591 /* Override any gcc2 internal prototype to avoid an error. */
8592 #ifdef __cplusplus
8593 extern "C"
8594 #endif
8595 /* We use char because int might match the return type of a gcc2
8596 builtin and then its argument prototype would still apply. */
8597 char gluLookAt ();
8599 main ()
8601 gluLookAt ();
8603 return 0;
8605 _ACEOF
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>conftest.er1
8609 ac_status=$?
8610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try='test -s conftest$ac_exeext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_lib_GLU_gluLookAt=yes
8628 else
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cv_lib_GLU_gluLookAt=no
8634 rm -f conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8636 LIBS=$ac_check_lib_save_LIBS
8638 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8639 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8640 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8641 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8642 GLU32FILES='$(GLU32FILES)'
8648 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8649 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8650 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 ac_check_lib_save_LIBS=$LIBS
8654 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8655 cat >conftest.$ac_ext <<_ACEOF
8656 /* confdefs.h. */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8662 /* Override any gcc2 internal prototype to avoid an error. */
8663 #ifdef __cplusplus
8664 extern "C"
8665 #endif
8666 /* We use char because int might match the return type of a gcc2
8667 builtin and then its argument prototype would still apply. */
8668 char glutMainLoop ();
8670 main ()
8672 glutMainLoop ();
8674 return 0;
8676 _ACEOF
8677 rm -f conftest.$ac_objext conftest$ac_exeext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8679 (eval $ac_link) 2>conftest.er1
8680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } &&
8686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; } &&
8692 { ac_try='test -s conftest$ac_exeext'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 (eval $ac_try) 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
8698 ac_cv_lib_glut_glutMainLoop=yes
8699 else
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8703 ac_cv_lib_glut_glutMainLoop=no
8705 rm -f conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
8707 LIBS=$ac_check_lib_save_LIBS
8709 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8710 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8711 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8712 GLUT_LIBS="-lglut -lXmu -lXi"
8714 GLUT32FILES='$(GLUT32FILES)'
8721 NASLIBS=""
8724 for ac_header in audio/audiolib.h
8726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728 echo "$as_me:$LINENO: checking for $ac_header" >&5
8729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8735 else
8736 # Is the header compilable?
8737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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. */
8745 $ac_includes_default
8746 #include <$ac_header>
8747 _ACEOF
8748 rm -f conftest.$ac_objext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750 (eval $ac_compile) 2>conftest.er1
8751 ac_status=$?
8752 grep -v '^ *+' conftest.er1 >conftest.err
8753 rm -f conftest.er1
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest.$ac_objext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 ac_header_compiler=yes
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_header_compiler=no
8776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8778 echo "${ECHO_T}$ac_header_compiler" >&6
8780 # Is the header present?
8781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h. */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 #include <$ac_header>
8790 _ACEOF
8791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8793 ac_status=$?
8794 grep -v '^ *+' conftest.er1 >conftest.err
8795 rm -f conftest.er1
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } >/dev/null; then
8799 if test -s conftest.err; then
8800 ac_cpp_err=$ac_c_preproc_warn_flag
8801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8802 else
8803 ac_cpp_err=
8805 else
8806 ac_cpp_err=yes
8808 if test -z "$ac_cpp_err"; then
8809 ac_header_preproc=yes
8810 else
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ac_header_preproc=no
8816 rm -f conftest.err conftest.$ac_ext
8817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8818 echo "${ECHO_T}$ac_header_preproc" >&6
8820 # So? What about this header?
8821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8822 yes:no: )
8823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8827 ac_header_preproc=yes
8829 no:yes:* )
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8843 cat <<\_ASBOX
8844 ## ------------------------------------ ##
8845 ## Report this to wine-devel@winehq.org ##
8846 ## ------------------------------------ ##
8847 _ASBOX
8849 sed "s/^/$as_me: WARNING: /" >&2
8851 esac
8852 echo "$as_me:$LINENO: checking for $ac_header" >&5
8853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857 eval "$as_ac_Header=\$ac_header_preproc"
8859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8864 cat >>confdefs.h <<_ACEOF
8865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8866 _ACEOF
8868 for ac_header in audio/soundlib.h
8870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8871 echo "$as_me:$LINENO: checking for $ac_header" >&5
8872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876 cat >conftest.$ac_ext <<_ACEOF
8877 /* confdefs.h. */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8882 #include <audio/audiolib.h>
8884 #include <$ac_header>
8885 _ACEOF
8886 rm -f conftest.$ac_objext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8888 (eval $ac_compile) 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 (eval $ac_try) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; } &&
8901 { ac_try='test -s conftest.$ac_objext'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 (eval $ac_try) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8907 eval "$as_ac_Header=yes"
8908 else
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 eval "$as_ac_Header=no"
8914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8919 cat >>confdefs.h <<_ACEOF
8920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8921 _ACEOF
8925 done
8927 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8928 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8929 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932 ac_check_lib_save_LIBS=$LIBS
8933 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8934 cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h. */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8941 /* Override any gcc2 internal prototype to avoid an error. */
8942 #ifdef __cplusplus
8943 extern "C"
8944 #endif
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
8947 char AuCreateFlow ();
8949 main ()
8951 AuCreateFlow ();
8953 return 0;
8955 _ACEOF
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8958 (eval $ac_link) 2>conftest.er1
8959 ac_status=$?
8960 grep -v '^ *+' conftest.er1 >conftest.err
8961 rm -f conftest.er1
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_lib_audio_AuCreateFlow=yes
8978 else
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8982 ac_cv_lib_audio_AuCreateFlow=no
8984 rm -f conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986 LIBS=$ac_check_lib_save_LIBS
8988 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8989 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8990 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8992 cat >>confdefs.h <<\_ACEOF
8993 #define HAVE_NAS 1
8994 _ACEOF
8996 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9001 done
9004 CPPFLAGS="$ac_save_CPPFLAGS"
9005 XFILES='$(XFILES)'
9006 else
9007 XLIB=""
9008 X_CFLAGS=""
9009 X_LIBS=""
9012 CURSESLIBS=""
9013 if test "x$with_curses" != "xno"
9014 then
9016 for ac_header in ncurses.h
9018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020 echo "$as_me:$LINENO: checking for $ac_header" >&5
9021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9027 else
9028 # Is the header compilable?
9029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 $ac_includes_default
9038 #include <$ac_header>
9039 _ACEOF
9040 rm -f conftest.$ac_objext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9042 (eval $ac_compile) 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_objext'
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_header_compiler=yes
9062 else
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9066 ac_header_compiler=no
9068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9070 echo "${ECHO_T}$ac_header_compiler" >&6
9072 # Is the header present?
9073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9075 cat >conftest.$ac_ext <<_ACEOF
9076 /* confdefs.h. */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 #include <$ac_header>
9082 _ACEOF
9083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } >/dev/null; then
9091 if test -s conftest.err; then
9092 ac_cpp_err=$ac_c_preproc_warn_flag
9093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9094 else
9095 ac_cpp_err=
9097 else
9098 ac_cpp_err=yes
9100 if test -z "$ac_cpp_err"; then
9101 ac_header_preproc=yes
9102 else
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9106 ac_header_preproc=no
9108 rm -f conftest.err conftest.$ac_ext
9109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9110 echo "${ECHO_T}$ac_header_preproc" >&6
9112 # So? What about this header?
9113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9114 yes:no: )
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9119 ac_header_preproc=yes
9121 no:yes:* )
9122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9135 cat <<\_ASBOX
9136 ## ------------------------------------ ##
9137 ## Report this to wine-devel@winehq.org ##
9138 ## ------------------------------------ ##
9139 _ASBOX
9141 sed "s/^/$as_me: WARNING: /" >&2
9143 esac
9144 echo "$as_me:$LINENO: checking for $ac_header" >&5
9145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149 eval "$as_ac_Header=\$ac_header_preproc"
9151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9156 cat >>confdefs.h <<_ACEOF
9157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9158 _ACEOF
9159 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9160 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9161 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164 ac_check_lib_save_LIBS=$LIBS
9165 LIBS="-lncurses $LIBS"
9166 cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h. */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9173 /* Override any gcc2 internal prototype to avoid an error. */
9174 #ifdef __cplusplus
9175 extern "C"
9176 #endif
9177 /* We use char because int might match the return type of a gcc2
9178 builtin and then its argument prototype would still apply. */
9179 char waddch ();
9181 main ()
9183 waddch ();
9185 return 0;
9187 _ACEOF
9188 rm -f conftest.$ac_objext conftest$ac_exeext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190 (eval $ac_link) 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 (eval $ac_try) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; } &&
9203 { ac_try='test -s conftest$ac_exeext'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
9209 ac_cv_lib_ncurses_waddch=yes
9210 else
9211 echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.$ac_ext >&5
9214 ac_cv_lib_ncurses_waddch=no
9216 rm -f conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218 LIBS=$ac_check_lib_save_LIBS
9220 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9221 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9222 if test $ac_cv_lib_ncurses_waddch = yes; then
9224 cat >>confdefs.h <<\_ACEOF
9225 #define HAVE_LIBNCURSES 1
9226 _ACEOF
9228 CURSESLIBS="-lncurses"
9229 else
9231 for ac_header in curses.h
9233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9235 echo "$as_me:$LINENO: checking for $ac_header" >&5
9236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9242 else
9243 # Is the header compilable?
9244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9246 cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h. */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 $ac_includes_default
9253 #include <$ac_header>
9254 _ACEOF
9255 rm -f conftest.$ac_objext
9256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9257 (eval $ac_compile) 2>conftest.er1
9258 ac_status=$?
9259 grep -v '^ *+' conftest.er1 >conftest.err
9260 rm -f conftest.er1
9261 cat conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } &&
9264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 (eval $ac_try) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; } &&
9270 { ac_try='test -s conftest.$ac_objext'
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 (eval $ac_try) 2>&5
9273 ac_status=$?
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; }; then
9276 ac_header_compiler=yes
9277 else
9278 echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9281 ac_header_compiler=no
9283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9285 echo "${ECHO_T}$ac_header_compiler" >&6
9287 # Is the header present?
9288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9290 cat >conftest.$ac_ext <<_ACEOF
9291 /* confdefs.h. */
9292 _ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9296 #include <$ac_header>
9297 _ACEOF
9298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } >/dev/null; then
9306 if test -s conftest.err; then
9307 ac_cpp_err=$ac_c_preproc_warn_flag
9308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9309 else
9310 ac_cpp_err=
9312 else
9313 ac_cpp_err=yes
9315 if test -z "$ac_cpp_err"; then
9316 ac_header_preproc=yes
9317 else
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9321 ac_header_preproc=no
9323 rm -f conftest.err conftest.$ac_ext
9324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9325 echo "${ECHO_T}$ac_header_preproc" >&6
9327 # So? What about this header?
9328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9329 yes:no: )
9330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9334 ac_header_preproc=yes
9336 no:yes:* )
9337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9350 cat <<\_ASBOX
9351 ## ------------------------------------ ##
9352 ## Report this to wine-devel@winehq.org ##
9353 ## ------------------------------------ ##
9354 _ASBOX
9356 sed "s/^/$as_me: WARNING: /" >&2
9358 esac
9359 echo "$as_me:$LINENO: checking for $ac_header" >&5
9360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 else
9364 eval "$as_ac_Header=\$ac_header_preproc"
9366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9371 cat >>confdefs.h <<_ACEOF
9372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9373 _ACEOF
9374 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9375 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9376 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379 ac_check_lib_save_LIBS=$LIBS
9380 LIBS="-lcurses $LIBS"
9381 cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h. */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9388 /* Override any gcc2 internal prototype to avoid an error. */
9389 #ifdef __cplusplus
9390 extern "C"
9391 #endif
9392 /* We use char because int might match the return type of a gcc2
9393 builtin and then its argument prototype would still apply. */
9394 char waddch ();
9396 main ()
9398 waddch ();
9400 return 0;
9402 _ACEOF
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9405 (eval $ac_link) 2>conftest.er1
9406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; } &&
9418 { ac_try='test -s conftest$ac_exeext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 ac_cv_lib_curses_waddch=yes
9425 else
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9429 ac_cv_lib_curses_waddch=no
9431 rm -f conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9435 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9436 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9437 if test $ac_cv_lib_curses_waddch = yes; then
9439 cat >>confdefs.h <<\_ACEOF
9440 #define HAVE_LIBCURSES 1
9441 _ACEOF
9443 CURSESLIBS="-lcurses"
9448 done
9454 done
9456 saved_libs="$LIBS"
9457 LIBS="$CURSESLIBS $LIBS"
9460 for ac_func in getbkgd resizeterm
9462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9463 echo "$as_me:$LINENO: checking for $ac_func" >&5
9464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9465 if eval "test \"\${$as_ac_var+set}\" = set"; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h. */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9476 #define $ac_func innocuous_$ac_func
9478 /* System header to define __stub macros and hopefully few prototypes,
9479 which can conflict with char $ac_func (); below.
9480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481 <limits.h> exists even on freestanding compilers. */
9483 #ifdef __STDC__
9484 # include <limits.h>
9485 #else
9486 # include <assert.h>
9487 #endif
9489 #undef $ac_func
9491 /* Override any gcc2 internal prototype to avoid an error. */
9492 #ifdef __cplusplus
9493 extern "C"
9495 #endif
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9498 char $ac_func ();
9499 /* The GNU C library defines this for functions which it implements
9500 to always fail with ENOSYS. Some functions are actually named
9501 something starting with __ and the normal name is an alias. */
9502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9503 choke me
9504 #else
9505 char (*f) () = $ac_func;
9506 #endif
9507 #ifdef __cplusplus
9509 #endif
9512 main ()
9514 return f != $ac_func;
9516 return 0;
9518 _ACEOF
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; } &&
9534 { ac_try='test -s conftest$ac_exeext'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 (eval $ac_try) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; }; then
9540 eval "$as_ac_var=yes"
9541 else
9542 echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9545 eval "$as_ac_var=no"
9547 rm -f conftest.err conftest.$ac_objext \
9548 conftest$ac_exeext conftest.$ac_ext
9550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9552 if test `eval echo '${'$as_ac_var'}'` = yes; then
9553 cat >>confdefs.h <<_ACEOF
9554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9555 _ACEOF
9558 done
9560 LIBS="$saved_libs"
9564 # Extract the first word of "sane-config", so it can be a program name with args.
9565 set dummy sane-config; ac_word=$2
9566 echo "$as_me:$LINENO: checking for $ac_word" >&5
9567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9568 if test "${ac_cv_prog_sane_devel+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571 if test -n "$sane_devel"; then
9572 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9573 else
9574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9575 for as_dir in $PATH
9577 IFS=$as_save_IFS
9578 test -z "$as_dir" && as_dir=.
9579 for ac_exec_ext in '' $ac_executable_extensions; do
9580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9581 ac_cv_prog_sane_devel="sane-config"
9582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9583 break 2
9585 done
9586 done
9588 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9591 sane_devel=$ac_cv_prog_sane_devel
9592 if test -n "$sane_devel"; then
9593 echo "$as_me:$LINENO: result: $sane_devel" >&5
9594 echo "${ECHO_T}$sane_devel" >&6
9595 else
9596 echo "$as_me:$LINENO: result: no" >&5
9597 echo "${ECHO_T}no" >&6
9600 if test "$sane_devel" = "no"
9601 then
9602 SANELIBS=""
9603 SANEINCL=""
9604 else
9605 SANELIBS="`$sane_devel --libs`"
9606 SANEINCL="`$sane_devel --cflags`"
9607 ac_save_CPPFLAGS="$CPPFLAGS"
9608 ac_save_LIBS="$LIBS"
9609 CPPFLAGS="$CPPFLAGS $SANEINCL"
9610 LIBS="$LIBS $SANELIBS"
9611 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9612 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9613 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9614 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9618 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9619 else
9620 # Is the header compilable?
9621 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9622 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h. */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629 $ac_includes_default
9630 #include <sane/sane.h>
9631 _ACEOF
9632 rm -f conftest.$ac_objext
9633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9634 (eval $ac_compile) 2>conftest.er1
9635 ac_status=$?
9636 grep -v '^ *+' conftest.er1 >conftest.err
9637 rm -f conftest.er1
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } &&
9641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 (eval $ac_try) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; } &&
9647 { ac_try='test -s conftest.$ac_objext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 (eval $ac_try) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 ac_header_compiler=yes
9654 else
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9658 ac_header_compiler=no
9660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9662 echo "${ECHO_T}$ac_header_compiler" >&6
9664 # Is the header present?
9665 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9666 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h. */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9673 #include <sane/sane.h>
9674 _ACEOF
9675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } >/dev/null; then
9683 if test -s conftest.err; then
9684 ac_cpp_err=$ac_c_preproc_warn_flag
9685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9686 else
9687 ac_cpp_err=
9689 else
9690 ac_cpp_err=yes
9692 if test -z "$ac_cpp_err"; then
9693 ac_header_preproc=yes
9694 else
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 ac_header_preproc=no
9700 rm -f conftest.err conftest.$ac_ext
9701 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9702 echo "${ECHO_T}$ac_header_preproc" >&6
9704 # So? What about this header?
9705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9706 yes:no: )
9707 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9708 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9710 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9711 ac_header_preproc=yes
9713 no:yes:* )
9714 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9715 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9716 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9717 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9718 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9719 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9720 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
9721 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
9722 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9723 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9724 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9725 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9727 cat <<\_ASBOX
9728 ## ------------------------------------ ##
9729 ## Report this to wine-devel@winehq.org ##
9730 ## ------------------------------------ ##
9731 _ASBOX
9733 sed "s/^/$as_me: WARNING: /" >&2
9735 esac
9736 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9737 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9738 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741 ac_cv_header_sane_sane_h=$ac_header_preproc
9743 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9744 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9747 if test $ac_cv_header_sane_sane_h = yes; then
9748 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9749 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9750 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753 ac_check_lib_save_LIBS=$LIBS
9754 LIBS="-lsane $LIBS"
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h. */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9762 /* Override any gcc2 internal prototype to avoid an error. */
9763 #ifdef __cplusplus
9764 extern "C"
9765 #endif
9766 /* We use char because int might match the return type of a gcc2
9767 builtin and then its argument prototype would still apply. */
9768 char sane_open ();
9770 main ()
9772 sane_open ();
9774 return 0;
9776 _ACEOF
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9779 (eval $ac_link) 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_lib_sane_sane_open=yes
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9803 ac_cv_lib_sane_sane_open=no
9805 rm -f conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807 LIBS=$ac_check_lib_save_LIBS
9809 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9810 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9811 if test $ac_cv_lib_sane_sane_open = yes; then
9813 cat >>confdefs.h <<\_ACEOF
9814 #define HAVE_SANE 1
9815 _ACEOF
9817 else
9818 SANELIBS=""
9819 SANEINCL=""
9822 else
9823 SANELIBS=""
9824 SANEINCL=""
9828 LIBS="$ac_save_LIBS"
9829 CPPFLAGS="$ac_save_CPPFLAGS"
9835 for ac_header in unicode/ubidi.h
9837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9839 echo "$as_me:$LINENO: checking for $ac_header" >&5
9840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9846 else
9847 # Is the header compilable?
9848 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9850 cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h. */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 $ac_includes_default
9857 #include <$ac_header>
9858 _ACEOF
9859 rm -f conftest.$ac_objext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861 (eval $ac_compile) 2>conftest.er1
9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 (eval $ac_try) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest.$ac_objext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 (eval $ac_try) 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_header_compiler=yes
9881 else
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_header_compiler=no
9887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9889 echo "${ECHO_T}$ac_header_compiler" >&6
9891 # Is the header present?
9892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9894 cat >conftest.$ac_ext <<_ACEOF
9895 /* confdefs.h. */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 #include <$ac_header>
9901 _ACEOF
9902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } >/dev/null; then
9910 if test -s conftest.err; then
9911 ac_cpp_err=$ac_c_preproc_warn_flag
9912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9913 else
9914 ac_cpp_err=
9916 else
9917 ac_cpp_err=yes
9919 if test -z "$ac_cpp_err"; then
9920 ac_header_preproc=yes
9921 else
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9925 ac_header_preproc=no
9927 rm -f conftest.err conftest.$ac_ext
9928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9929 echo "${ECHO_T}$ac_header_preproc" >&6
9931 # So? What about this header?
9932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9933 yes:no: )
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9938 ac_header_preproc=yes
9940 no:yes:* )
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9954 cat <<\_ASBOX
9955 ## ------------------------------------ ##
9956 ## Report this to wine-devel@winehq.org ##
9957 ## ------------------------------------ ##
9958 _ASBOX
9960 sed "s/^/$as_me: WARNING: /" >&2
9962 esac
9963 echo "$as_me:$LINENO: checking for $ac_header" >&5
9964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968 eval "$as_ac_Header=\$ac_header_preproc"
9970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9975 cat >>confdefs.h <<_ACEOF
9976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9977 _ACEOF
9981 done
9983 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9984 then
9985 saved_libs="$LIBS"
9986 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9987 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9988 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9989 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9990 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
9991 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 #include <unicode/ubidi.h>
10000 main ()
10002 ubidi_open()
10004 return 0;
10006 _ACEOF
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10019 ac_status=$?
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; } &&
10022 { ac_try='test -s conftest$ac_exeext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10029 cat >>confdefs.h <<\_ACEOF
10030 #define HAVE_ICU 1
10031 _ACEOF
10033 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10035 echo "$as_me:$LINENO: result: yes" >&5
10036 echo "${ECHO_T}yes" >&6
10037 else
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 echo "$as_me:$LINENO: result: no" >&5
10042 echo "${ECHO_T}no" >&6
10044 rm -f conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10046 LIBS="$saved_libs"
10049 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10050 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10051 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054 ac_check_lib_save_LIBS=$LIBS
10055 LIBS="-lfreetype $X_LIBS $LIBS"
10056 cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h. */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10063 /* Override any gcc2 internal prototype to avoid an error. */
10064 #ifdef __cplusplus
10065 extern "C"
10066 #endif
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069 char FT_Init_FreeType ();
10071 main ()
10073 FT_Init_FreeType ();
10075 return 0;
10077 _ACEOF
10078 rm -f conftest.$ac_objext conftest$ac_exeext
10079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10080 (eval $ac_link) 2>conftest.er1
10081 ac_status=$?
10082 grep -v '^ *+' conftest.er1 >conftest.err
10083 rm -f conftest.er1
10084 cat conftest.err >&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } &&
10087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try='test -s conftest$ac_exeext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 ac_cv_lib_freetype_FT_Init_FreeType=yes
10100 else
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10104 ac_cv_lib_freetype_FT_Init_FreeType=no
10106 rm -f conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10108 LIBS=$ac_check_lib_save_LIBS
10110 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10111 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10112 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10113 ft_lib=yes
10114 else
10115 ft_lib=no
10118 if test "$ft_lib" = "no"
10119 then
10120 FREETYPELIBS=""
10121 FREETYPEINCL=""
10122 wine_cv_msg_freetype=no
10123 else
10124 # Extract the first word of "freetype-config", so it can be a program name with args.
10125 set dummy freetype-config; ac_word=$2
10126 echo "$as_me:$LINENO: checking for $ac_word" >&5
10127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10128 if test "${ac_cv_prog_ft_devel+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 else
10131 if test -n "$ft_devel"; then
10132 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10133 else
10134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135 for as_dir in $PATH
10137 IFS=$as_save_IFS
10138 test -z "$as_dir" && as_dir=.
10139 for ac_exec_ext in '' $ac_executable_extensions; do
10140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10141 ac_cv_prog_ft_devel="freetype-config"
10142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10143 break 2
10145 done
10146 done
10148 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10151 ft_devel=$ac_cv_prog_ft_devel
10152 if test -n "$ft_devel"; then
10153 echo "$as_me:$LINENO: result: $ft_devel" >&5
10154 echo "${ECHO_T}$ft_devel" >&6
10155 else
10156 echo "$as_me:$LINENO: result: no" >&5
10157 echo "${ECHO_T}no" >&6
10160 if test "$ft_devel" = "no"
10161 then
10162 # Extract the first word of "freetype2-config", so it can be a program name with args.
10163 set dummy freetype2-config; ac_word=$2
10164 echo "$as_me:$LINENO: checking for $ac_word" >&5
10165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10166 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169 if test -n "$ft_devel2"; then
10170 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10171 else
10172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10173 for as_dir in $PATH
10175 IFS=$as_save_IFS
10176 test -z "$as_dir" && as_dir=.
10177 for ac_exec_ext in '' $ac_executable_extensions; do
10178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10179 ac_cv_prog_ft_devel2="freetype2-config"
10180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10181 break 2
10183 done
10184 done
10186 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10189 ft_devel2=$ac_cv_prog_ft_devel2
10190 if test -n "$ft_devel2"; then
10191 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10192 echo "${ECHO_T}$ft_devel2" >&6
10193 else
10194 echo "$as_me:$LINENO: result: no" >&5
10195 echo "${ECHO_T}no" >&6
10198 if test "$ft_devel2" = "freetype2-config"
10199 then
10200 ft_devel=$ft_devel2
10203 if test "$ft_devel" = "no"
10204 then
10205 FREETYPELIBS=""
10206 FREETYPEINCL=""
10207 wine_cv_msg_freetype=yes
10208 else
10209 FREETYPELIBS=`$ft_devel --libs`
10210 FREETYPEINCL=`$ft_devel --cflags`
10211 ac_save_CPPFLAGS="$CPPFLAGS"
10212 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10223 for ac_header in ft2build.h \
10224 freetype/freetype.h \
10225 freetype/ftglyph.h \
10226 freetype/tttables.h \
10227 freetype/ftnames.h \
10228 freetype/ftsnames.h \
10229 freetype/ttnameid.h \
10230 freetype/ftoutln.h \
10231 freetype/ftwinfnt.h \
10232 freetype/internal/sfnt.h
10234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10235 echo "$as_me:$LINENO: checking for $ac_header" >&5
10236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 #if HAVE_FT2BUILD_H
10247 #include <ft2build.h>
10248 #endif
10250 #include <$ac_header>
10251 _ACEOF
10252 rm -f conftest.$ac_objext
10253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10254 (eval $ac_compile) 2>conftest.er1
10255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest.$ac_objext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 eval "$as_ac_Header=yes"
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 eval "$as_ac_Header=no"
10280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10285 cat >>confdefs.h <<_ACEOF
10286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10287 _ACEOF
10291 done
10293 cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h. */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10299 #include <ft2build.h>
10300 #include <freetype/fttrigon.h>
10301 _ACEOF
10302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10304 ac_status=$?
10305 grep -v '^ *+' conftest.er1 >conftest.err
10306 rm -f conftest.er1
10307 cat conftest.err >&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } >/dev/null; then
10310 if test -s conftest.err; then
10311 ac_cpp_err=$ac_c_preproc_warn_flag
10312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10313 else
10314 ac_cpp_err=
10316 else
10317 ac_cpp_err=yes
10319 if test -z "$ac_cpp_err"; then
10321 cat >>confdefs.h <<\_ACEOF
10322 #define HAVE_FREETYPE_FTTRIGON_H 1
10323 _ACEOF
10325 wine_cv_fttrigon=yes
10326 else
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 wine_cv_fttrigon=no
10332 rm -f conftest.err conftest.$ac_ext
10333 CPPFLAGS="$ac_save_CPPFLAGS"
10334 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10335 then
10337 cat >>confdefs.h <<\_ACEOF
10338 #define HAVE_FREETYPE 1
10339 _ACEOF
10341 wine_cv_msg_freetype=no
10342 else
10343 FREETYPELIBS=""
10344 FREETYPEINCL=""
10345 wine_cv_msg_freetype=yes
10352 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10353 then
10354 FONTSSUBDIRS="fonts"
10358 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10359 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10360 if test "${ac_cv_c_ppdev+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363 cat >conftest.$ac_ext <<_ACEOF
10364 /* confdefs.h. */
10365 _ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10369 #include <linux/ppdev.h>
10371 main ()
10373 ioctl (1,PPCLAIM,0)
10375 return 0;
10377 _ACEOF
10378 rm -f conftest.$ac_objext
10379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10380 (eval $ac_compile) 2>conftest.er1
10381 ac_status=$?
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; } &&
10393 { ac_try='test -s conftest.$ac_objext'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10399 ac_cv_c_ppdev="yes"
10400 else
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10404 ac_cv_c_ppdev="no"
10406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10409 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10410 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10411 if test "$ac_cv_c_ppdev" = "yes"
10412 then
10414 cat >>confdefs.h <<\_ACEOF
10415 #define HAVE_PPDEV 1
10416 _ACEOF
10420 echo "$as_me:$LINENO: checking for va_copy" >&5
10421 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10422 if test "${ac_cv_c_va_copy+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 else
10425 cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h. */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 #include <stdarg.h>
10433 main ()
10435 va_list ap1, ap2;
10436 va_copy(ap1,ap2);
10439 return 0;
10441 _ACEOF
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444 (eval $ac_link) 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; } &&
10457 { ac_try='test -s conftest$ac_exeext'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_cv_c_va_copy="yes"
10464 else
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 ac_cv_c_va_copy="no"
10470 rm -f conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
10474 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10475 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10476 if test "$ac_cv_c_va_copy" = "yes"
10477 then
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_VA_COPY 1
10481 _ACEOF
10484 echo "$as_me:$LINENO: checking for __va_copy" >&5
10485 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10486 if test "${ac_cv_c___va_copy+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489 cat >conftest.$ac_ext <<_ACEOF
10490 /* confdefs.h. */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 #include <stdarg.h>
10497 main ()
10499 va_list ap1, ap2;
10500 __va_copy(ap1,ap2);
10503 return 0;
10505 _ACEOF
10506 rm -f conftest.$ac_objext conftest$ac_exeext
10507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508 (eval $ac_link) 2>conftest.er1
10509 ac_status=$?
10510 grep -v '^ *+' conftest.er1 >conftest.err
10511 rm -f conftest.er1
10512 cat conftest.err >&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest$ac_exeext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 ac_cv_c___va_copy="yes"
10528 else
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10532 ac_cv_c___va_copy="no"
10534 rm -f conftest.err conftest.$ac_objext \
10535 conftest$ac_exeext conftest.$ac_ext
10538 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10539 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10540 if test "$ac_cv_c___va_copy" = "yes"
10541 then
10543 cat >>confdefs.h <<\_ACEOF
10544 #define HAVE___VA_COPY 1
10545 _ACEOF
10549 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10550 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10551 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554 cat >conftest.$ac_ext <<_ACEOF
10555 /* confdefs.h. */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10560 #include <setjmp.h>
10562 main ()
10564 sigjmp_buf buf;
10565 sigsetjmp( buf, 1 );
10566 siglongjmp( buf, 1 );
10568 return 0;
10570 _ACEOF
10571 rm -f conftest.$ac_objext conftest$ac_exeext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10573 (eval $ac_link) 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; } &&
10586 { ac_try='test -s conftest$ac_exeext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_c_sigsetjmp="yes"
10593 else
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10597 ac_cv_c_sigsetjmp="no"
10599 rm -f conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10603 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10604 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10605 if test "$ac_cv_c_sigsetjmp" = "yes"
10606 then
10608 cat >>confdefs.h <<\_ACEOF
10609 #define HAVE_SIGSETJMP 1
10610 _ACEOF
10614 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10615 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10616 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619 cat >conftest.$ac_ext <<_ACEOF
10620 /* confdefs.h. */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10625 #define _GNU_SOURCE
10626 #include <pthread.h>
10629 main ()
10631 if ((pthread_rwlock_t *) 0)
10632 return 0;
10633 if (sizeof (pthread_rwlock_t))
10634 return 0;
10636 return 0;
10638 _ACEOF
10639 rm -f conftest.$ac_objext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10641 (eval $ac_compile) 2>conftest.er1
10642 ac_status=$?
10643 grep -v '^ *+' conftest.er1 >conftest.err
10644 rm -f conftest.er1
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; } &&
10654 { ac_try='test -s conftest.$ac_objext'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_cv_type_pthread_rwlock_t=yes
10661 else
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10665 ac_cv_type_pthread_rwlock_t=no
10667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10669 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10670 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10671 if test $ac_cv_type_pthread_rwlock_t = yes; then
10673 cat >>confdefs.h <<_ACEOF
10674 #define HAVE_PTHREAD_RWLOCK_T 1
10675 _ACEOF
10679 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10680 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10681 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #define _GNU_SOURCE
10691 #include <pthread.h>
10694 main ()
10696 if ((pthread_rwlockattr_t *) 0)
10697 return 0;
10698 if (sizeof (pthread_rwlockattr_t))
10699 return 0;
10701 return 0;
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10706 (eval $ac_compile) 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
10713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_type_pthread_rwlockattr_t=yes
10726 else
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_cv_type_pthread_rwlockattr_t=no
10732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10734 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10735 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10736 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10738 cat >>confdefs.h <<_ACEOF
10739 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10740 _ACEOF
10746 ac_save_LIBS="$LIBS"
10747 LIBS="$LIBS $LIBPTHREAD"
10751 for ac_func in \
10752 pthread_getattr_np \
10753 pthread_get_stackaddr_np \
10754 pthread_get_stacksize_np \
10757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10758 echo "$as_me:$LINENO: checking for $ac_func" >&5
10759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10760 if eval "test \"\${$as_ac_var+set}\" = set"; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10771 #define $ac_func innocuous_$ac_func
10773 /* System header to define __stub macros and hopefully few prototypes,
10774 which can conflict with char $ac_func (); below.
10775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10776 <limits.h> exists even on freestanding compilers. */
10778 #ifdef __STDC__
10779 # include <limits.h>
10780 #else
10781 # include <assert.h>
10782 #endif
10784 #undef $ac_func
10786 /* Override any gcc2 internal prototype to avoid an error. */
10787 #ifdef __cplusplus
10788 extern "C"
10790 #endif
10791 /* We use char because int might match the return type of a gcc2
10792 builtin and then its argument prototype would still apply. */
10793 char $ac_func ();
10794 /* The GNU C library defines this for functions which it implements
10795 to always fail with ENOSYS. Some functions are actually named
10796 something starting with __ and the normal name is an alias. */
10797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10798 choke me
10799 #else
10800 char (*f) () = $ac_func;
10801 #endif
10802 #ifdef __cplusplus
10804 #endif
10807 main ()
10809 return f != $ac_func;
10811 return 0;
10813 _ACEOF
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest$ac_exeext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 eval "$as_ac_var=yes"
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 eval "$as_ac_var=no"
10842 rm -f conftest.err conftest.$ac_objext \
10843 conftest$ac_exeext conftest.$ac_ext
10845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10847 if test `eval echo '${'$as_ac_var'}'` = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10850 _ACEOF
10853 done
10855 LIBS="$ac_save_LIBS"
10860 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10864 echo "$as_me:$LINENO: checking for $ac_header" >&5
10865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10871 else
10872 # Is the header compilable?
10873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h. */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 $ac_includes_default
10882 #include <$ac_header>
10883 _ACEOF
10884 rm -f conftest.$ac_objext
10885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10886 (eval $ac_compile) 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest.$ac_objext'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10905 ac_header_compiler=yes
10906 else
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_header_compiler=no
10912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10914 echo "${ECHO_T}$ac_header_compiler" >&6
10916 # Is the header present?
10917 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10919 cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h. */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10925 #include <$ac_header>
10926 _ACEOF
10927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } >/dev/null; then
10935 if test -s conftest.err; then
10936 ac_cpp_err=$ac_c_preproc_warn_flag
10937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10938 else
10939 ac_cpp_err=
10941 else
10942 ac_cpp_err=yes
10944 if test -z "$ac_cpp_err"; then
10945 ac_header_preproc=yes
10946 else
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_header_preproc=no
10952 rm -f conftest.err conftest.$ac_ext
10953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10954 echo "${ECHO_T}$ac_header_preproc" >&6
10956 # So? What about this header?
10957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10958 yes:no: )
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10963 ac_header_preproc=yes
10965 no:yes:* )
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10979 cat <<\_ASBOX
10980 ## ------------------------------------ ##
10981 ## Report this to wine-devel@winehq.org ##
10982 ## ------------------------------------ ##
10983 _ASBOX
10985 sed "s/^/$as_me: WARNING: /" >&2
10987 esac
10988 echo "$as_me:$LINENO: checking for $ac_header" >&5
10989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993 eval "$as_ac_Header=\$ac_header_preproc"
10995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11000 cat >>confdefs.h <<_ACEOF
11001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11002 _ACEOF
11003 break
11006 done
11009 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11010 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11011 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014 cat >conftest.$ac_ext <<_ACEOF
11015 /* confdefs.h. */
11016 _ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h. */
11021 #if defined(HAVE_SYS_SOUNDCARD_H)
11022 #include <sys/soundcard.h>
11023 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11024 #include <machine/soundcard.h>
11025 #elif defined(HAVE_SOUNDCARD_H)
11026 #include <soundcard.h>
11027 #endif
11030 main ()
11034 /* check for one of the Open Sound System specific SNDCTL_ defines */
11035 #if !defined(SNDCTL_DSP_STEREO)
11036 #error No open sound system
11037 #endif
11040 return 0;
11042 _ACEOF
11043 rm -f conftest.$ac_objext
11044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11045 (eval $ac_compile) 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; } &&
11058 { ac_try='test -s conftest.$ac_objext'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 ac_cv_c_opensoundsystem="yes"
11065 else
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 ac_cv_c_opensoundsystem="no"
11071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11073 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11074 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11076 if test "$ac_cv_c_opensoundsystem" = "yes"
11077 then
11079 cat >>confdefs.h <<\_ACEOF
11080 #define HAVE_OSS 1
11081 _ACEOF
11085 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11086 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11087 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090 cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h. */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11097 #if defined(HAVE_SYS_SOUNDCARD_H)
11098 #include <sys/soundcard.h>
11099 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11100 #include <machine/soundcard.h>
11101 #elif defined(HAVE_SOUNDCARD_H)
11102 #include <soundcard.h>
11103 #endif
11106 main ()
11110 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11111 #if !defined(SNDCTL_SEQ_SYNC)
11112 #error No open sound system MIDI interface
11113 #endif
11116 return 0;
11118 _ACEOF
11119 rm -f conftest.$ac_objext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11121 (eval $ac_compile) 2>conftest.er1
11122 ac_status=$?
11123 grep -v '^ *+' conftest.er1 >conftest.err
11124 rm -f conftest.er1
11125 cat conftest.err >&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130 (eval $ac_try) 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; } &&
11134 { ac_try='test -s conftest.$ac_objext'
11135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11136 (eval $ac_try) 2>&5
11137 ac_status=$?
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 ac_cv_c_opensoundsystem_midi="yes"
11141 else
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 ac_cv_c_opensoundsystem_midi="no"
11147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11149 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11150 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11152 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11153 then
11155 cat >>confdefs.h <<\_ACEOF
11156 #define HAVE_OSS_MIDI 1
11157 _ACEOF
11161 # Extract the first word of "artsc-config", so it can be a program name with args.
11162 set dummy artsc-config; ac_word=$2
11163 echo "$as_me:$LINENO: checking for $ac_word" >&5
11164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11165 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168 case $ARTSCCONFIG in
11169 [\\/]* | ?:[\\/]*)
11170 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $PATH
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11184 done
11185 done
11188 esac
11190 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11192 if test -n "$ARTSCCONFIG"; then
11193 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11194 echo "${ECHO_T}$ARTSCCONFIG" >&6
11195 else
11196 echo "$as_me:$LINENO: result: no" >&5
11197 echo "${ECHO_T}no" >&6
11200 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11201 then
11202 ARTSC_CFLAGS=""
11203 for i in `$ARTSCCONFIG --cflags`
11205 case "$i" in
11206 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11207 esac
11208 done
11209 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11210 save_CFLAGS="$CFLAGS"
11211 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h. */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 #include <artsc.h>
11220 main ()
11222 arts_stream_t stream;
11224 return 0;
11226 _ACEOF
11227 rm -f conftest.$ac_objext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229 (eval $ac_compile) 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; } &&
11242 { ac_try='test -s conftest.$ac_objext'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ARTSLIBS=$ARTSC_LIBS
11250 ARTSINCL=$ARTSC_CFLAGS
11253 cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_ARTS 1
11255 _ACEOF
11257 else
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11263 CFLAGS="$save_CFLAGS"
11266 ALSALIBS=""
11270 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11274 echo "$as_me:$LINENO: checking for $ac_header" >&5
11275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11281 else
11282 # Is the header compilable?
11283 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11285 cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h. */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 $ac_includes_default
11292 #include <$ac_header>
11293 _ACEOF
11294 rm -f conftest.$ac_objext
11295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11296 (eval $ac_compile) 2>conftest.er1
11297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } &&
11303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest.$ac_objext'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
11315 ac_header_compiler=yes
11316 else
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11320 ac_header_compiler=no
11322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11324 echo "${ECHO_T}$ac_header_compiler" >&6
11326 # Is the header present?
11327 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h. */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 #include <$ac_header>
11336 _ACEOF
11337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11339 ac_status=$?
11340 grep -v '^ *+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } >/dev/null; then
11345 if test -s conftest.err; then
11346 ac_cpp_err=$ac_c_preproc_warn_flag
11347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11348 else
11349 ac_cpp_err=
11351 else
11352 ac_cpp_err=yes
11354 if test -z "$ac_cpp_err"; then
11355 ac_header_preproc=yes
11356 else
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_header_preproc=no
11362 rm -f conftest.err conftest.$ac_ext
11363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11364 echo "${ECHO_T}$ac_header_preproc" >&6
11366 # So? What about this header?
11367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11368 yes:no: )
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11373 ac_header_preproc=yes
11375 no:yes:* )
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11389 cat <<\_ASBOX
11390 ## ------------------------------------ ##
11391 ## Report this to wine-devel@winehq.org ##
11392 ## ------------------------------------ ##
11393 _ASBOX
11395 sed "s/^/$as_me: WARNING: /" >&2
11397 esac
11398 echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403 eval "$as_ac_Header=\$ac_header_preproc"
11405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11410 cat >>confdefs.h <<_ACEOF
11411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11412 _ACEOF
11413 break
11416 done
11418 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11419 then
11420 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11421 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11422 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425 ac_check_lib_save_LIBS=$LIBS
11426 LIBS="-lasound $LIBS"
11427 cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h. */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11434 /* Override any gcc2 internal prototype to avoid an error. */
11435 #ifdef __cplusplus
11436 extern "C"
11437 #endif
11438 /* We use char because int might match the return type of a gcc2
11439 builtin and then its argument prototype would still apply. */
11440 char snd_pcm_open ();
11442 main ()
11444 snd_pcm_open ();
11446 return 0;
11448 _ACEOF
11449 rm -f conftest.$ac_objext conftest$ac_exeext
11450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11451 (eval $ac_link) 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } &&
11458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; } &&
11464 { ac_try='test -s conftest$ac_exeext'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; }; then
11470 ac_cv_lib_asound_snd_pcm_open=yes
11471 else
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_cv_lib_asound_snd_pcm_open=no
11477 rm -f conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479 LIBS=$ac_check_lib_save_LIBS
11481 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11482 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11483 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11485 cat >>confdefs.h <<\_ACEOF
11486 #define HAVE_ALSA 1
11487 _ACEOF
11489 ALSALIBS="-lasound"
11495 AUDIOIOLIBS=""
11498 for ac_header in libaudioio.h
11500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11502 echo "$as_me:$LINENO: checking for $ac_header" >&5
11503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11509 else
11510 # Is the header compilable?
11511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11513 cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h. */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 $ac_includes_default
11520 #include <$ac_header>
11521 _ACEOF
11522 rm -f conftest.$ac_objext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11524 (eval $ac_compile) 2>conftest.er1
11525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } &&
11531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; } &&
11537 { ac_try='test -s conftest.$ac_objext'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 ac_header_compiler=yes
11544 else
11545 echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11548 ac_header_compiler=no
11550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11552 echo "${ECHO_T}$ac_header_compiler" >&6
11554 # Is the header present?
11555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11557 cat >conftest.$ac_ext <<_ACEOF
11558 /* confdefs.h. */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11563 #include <$ac_header>
11564 _ACEOF
11565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11567 ac_status=$?
11568 grep -v '^ *+' conftest.er1 >conftest.err
11569 rm -f conftest.er1
11570 cat conftest.err >&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } >/dev/null; then
11573 if test -s conftest.err; then
11574 ac_cpp_err=$ac_c_preproc_warn_flag
11575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11576 else
11577 ac_cpp_err=
11579 else
11580 ac_cpp_err=yes
11582 if test -z "$ac_cpp_err"; then
11583 ac_header_preproc=yes
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ac_header_preproc=no
11590 rm -f conftest.err conftest.$ac_ext
11591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11592 echo "${ECHO_T}$ac_header_preproc" >&6
11594 # So? What about this header?
11595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11596 yes:no: )
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11601 ac_header_preproc=yes
11603 no:yes:* )
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11617 cat <<\_ASBOX
11618 ## ------------------------------------ ##
11619 ## Report this to wine-devel@winehq.org ##
11620 ## ------------------------------------ ##
11621 _ASBOX
11623 sed "s/^/$as_me: WARNING: /" >&2
11625 esac
11626 echo "$as_me:$LINENO: checking for $ac_header" >&5
11627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631 eval "$as_ac_Header=\$ac_header_preproc"
11633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11638 cat >>confdefs.h <<_ACEOF
11639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11640 _ACEOF
11641 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11642 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11643 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646 ac_check_lib_save_LIBS=$LIBS
11647 LIBS="-laudioio $LIBS"
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. */
11655 /* Override any gcc2 internal prototype to avoid an error. */
11656 #ifdef __cplusplus
11657 extern "C"
11658 #endif
11659 /* We use char because int might match the return type of a gcc2
11660 builtin and then its argument prototype would still apply. */
11661 char AudioIOGetVersion ();
11663 main ()
11665 AudioIOGetVersion ();
11667 return 0;
11669 _ACEOF
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11672 (eval $ac_link) 2>conftest.er1
11673 ac_status=$?
11674 grep -v '^ *+' conftest.er1 >conftest.err
11675 rm -f conftest.er1
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; } &&
11685 { ac_try='test -s conftest$ac_exeext'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 ac_cv_lib_audioio_AudioIOGetVersion=yes
11692 else
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 ac_cv_lib_audioio_AudioIOGetVersion=no
11698 rm -f conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11700 LIBS=$ac_check_lib_save_LIBS
11702 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11703 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11704 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11705 AUDIOIOLIBS="-laudioio"
11707 cat >>confdefs.h <<\_ACEOF
11708 #define HAVE_LIBAUDIOIO 1
11709 _ACEOF
11715 done
11720 for ac_header in capi20.h
11722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11724 echo "$as_me:$LINENO: checking for $ac_header" >&5
11725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11731 else
11732 # Is the header compilable?
11733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h. */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741 $ac_includes_default
11742 #include <$ac_header>
11743 _ACEOF
11744 rm -f conftest.$ac_objext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11746 (eval $ac_compile) 2>conftest.er1
11747 ac_status=$?
11748 grep -v '^ *+' conftest.er1 >conftest.err
11749 rm -f conftest.er1
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 (eval $ac_try) 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest.$ac_objext'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 ac_header_compiler=yes
11766 else
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 ac_header_compiler=no
11772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11774 echo "${ECHO_T}$ac_header_compiler" >&6
11776 # Is the header present?
11777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11779 cat >conftest.$ac_ext <<_ACEOF
11780 /* confdefs.h. */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785 #include <$ac_header>
11786 _ACEOF
11787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } >/dev/null; then
11795 if test -s conftest.err; then
11796 ac_cpp_err=$ac_c_preproc_warn_flag
11797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11798 else
11799 ac_cpp_err=
11801 else
11802 ac_cpp_err=yes
11804 if test -z "$ac_cpp_err"; then
11805 ac_header_preproc=yes
11806 else
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ac_header_preproc=no
11812 rm -f conftest.err conftest.$ac_ext
11813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11814 echo "${ECHO_T}$ac_header_preproc" >&6
11816 # So? What about this header?
11817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11818 yes:no: )
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11823 ac_header_preproc=yes
11825 no:yes:* )
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11839 cat <<\_ASBOX
11840 ## ------------------------------------ ##
11841 ## Report this to wine-devel@winehq.org ##
11842 ## ------------------------------------ ##
11843 _ASBOX
11845 sed "s/^/$as_me: WARNING: /" >&2
11847 esac
11848 echo "$as_me:$LINENO: checking for $ac_header" >&5
11849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853 eval "$as_ac_Header=\$ac_header_preproc"
11855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11860 cat >>confdefs.h <<_ACEOF
11861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11862 _ACEOF
11865 for ac_header in linux/capi.h
11867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11869 echo "$as_me:$LINENO: checking for $ac_header" >&5
11870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11876 else
11877 # Is the header compilable?
11878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11880 cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h. */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 $ac_includes_default
11887 #include <$ac_header>
11888 _ACEOF
11889 rm -f conftest.$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest.$ac_objext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_header_compiler=yes
11911 else
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11915 ac_header_compiler=no
11917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11919 echo "${ECHO_T}$ac_header_compiler" >&6
11921 # Is the header present?
11922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11924 cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h. */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 #include <$ac_header>
11931 _ACEOF
11932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } >/dev/null; then
11940 if test -s conftest.err; then
11941 ac_cpp_err=$ac_c_preproc_warn_flag
11942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11943 else
11944 ac_cpp_err=
11946 else
11947 ac_cpp_err=yes
11949 if test -z "$ac_cpp_err"; then
11950 ac_header_preproc=yes
11951 else
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11955 ac_header_preproc=no
11957 rm -f conftest.err conftest.$ac_ext
11958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11959 echo "${ECHO_T}$ac_header_preproc" >&6
11961 # So? What about this header?
11962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11963 yes:no: )
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11968 ac_header_preproc=yes
11970 no:yes:* )
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11984 cat <<\_ASBOX
11985 ## ------------------------------------ ##
11986 ## Report this to wine-devel@winehq.org ##
11987 ## ------------------------------------ ##
11988 _ASBOX
11990 sed "s/^/$as_me: WARNING: /" >&2
11992 esac
11993 echo "$as_me:$LINENO: checking for $ac_header" >&5
11994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998 eval "$as_ac_Header=\$ac_header_preproc"
12000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12005 cat >>confdefs.h <<_ACEOF
12006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12007 _ACEOF
12009 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12010 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12011 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 else
12014 ac_check_lib_save_LIBS=$LIBS
12015 LIBS="-lcapi20 $LIBS"
12016 cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h. */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12023 /* Override any gcc2 internal prototype to avoid an error. */
12024 #ifdef __cplusplus
12025 extern "C"
12026 #endif
12027 /* We use char because int might match the return type of a gcc2
12028 builtin and then its argument prototype would still apply. */
12029 char capi20_register ();
12031 main ()
12033 capi20_register ();
12035 return 0;
12037 _ACEOF
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12040 (eval $ac_link) 2>conftest.er1
12041 ac_status=$?
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest$ac_exeext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_cv_lib_capi20_capi20_register=yes
12060 else
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 ac_cv_lib_capi20_capi20_register=no
12066 rm -f conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12068 LIBS=$ac_check_lib_save_LIBS
12070 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12071 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12072 if test $ac_cv_lib_capi20_capi20_register = yes; then
12075 cat >>confdefs.h <<\_ACEOF
12076 #define HAVE_CAPI4LINUX 1
12077 _ACEOF
12079 CAPI4LINUXLIBS="-lcapi20"
12087 done
12092 done
12096 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12097 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12098 if test "${ac_cv_mmap64_works+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101 if test "$cross_compiling" = yes; then
12102 ac_cv_mmap64_works="no"
12103 else
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12111 #define _FILE_OFFSET_BITS 64
12112 #include <stdio.h>
12113 #include <unistd.h>
12114 #include <fcntl.h>
12115 #include <sys/mman.h>
12116 #include <errno.h>
12118 int main(int argc,char **argv) {
12119 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12120 if (fd == -1) exit(1);
12122 unlink("conftest.map");
12124 write(fd,"test",4);
12126 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12127 (errno == EINVAL)
12129 exit(1);
12131 close(fd);
12132 fprintf(stderr,"success!\n");
12133 exit(0);
12137 _ACEOF
12138 rm -f conftest$ac_exeext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12140 (eval $ac_link) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12146 ac_status=$?
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; }; then
12149 ac_cv_mmap64_works="yes"
12150 else
12151 echo "$as_me: program exited with status $ac_status" >&5
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 ( exit $ac_status )
12156 ac_cv_mmap64_works="no"
12158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12161 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12162 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12164 if test "$ac_cv_mmap64_works" = "yes"
12165 then
12167 cat >>confdefs.h <<\_ACEOF
12168 #define _FILE_OFFSET_BITS 64
12169 _ACEOF
12174 EXTRACFLAGS=""
12176 if test "x${GCC}" = "xyes"
12177 then
12178 EXTRACFLAGS="-Wall -pipe"
12180 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12181 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12182 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 else
12185 if test "$cross_compiling" = yes; then
12186 ac_cv_c_gcc_strength_bug="yes"
12187 else
12188 cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h. */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12195 int L[4] = {0,1,2,3};
12196 int main(void) {
12197 static int Array[3];
12198 unsigned int B = 3;
12199 int i;
12200 for(i=0; i<B; i++) Array[i] = i - 3;
12201 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12202 L[i] = 4;
12204 exit( Array[1] != -2 || L[2] != 3);
12206 _ACEOF
12207 rm -f conftest$ac_exeext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12209 (eval $ac_link) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 ac_cv_c_gcc_strength_bug="no"
12219 else
12220 echo "$as_me: program exited with status $ac_status" >&5
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12224 ( exit $ac_status )
12225 ac_cv_c_gcc_strength_bug="yes"
12227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12230 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12231 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12232 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12233 then
12234 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12237 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12238 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12239 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 else
12242 ac_wine_try_cflags_saved=$CFLAGS
12243 CFLAGS="$CFLAGS -fshort-wchar"
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12252 main ()
12256 return 0;
12258 _ACEOF
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12261 (eval $ac_link) 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest$ac_exeext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 ac_cv_c_gcc_fshort_wchar="yes"
12281 else
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 ac_cv_c_gcc_fshort_wchar="no"
12287 rm -f conftest.err conftest.$ac_objext \
12288 conftest$ac_exeext conftest.$ac_ext
12289 CFLAGS=$ac_wine_try_cflags_saved
12291 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12292 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12293 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12294 then
12296 cat >>confdefs.h <<\_ACEOF
12297 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12298 _ACEOF
12302 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12303 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12304 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 else
12307 ac_wine_try_cflags_saved=$CFLAGS
12308 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12309 cat >conftest.$ac_ext <<_ACEOF
12310 /* confdefs.h. */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12317 main ()
12321 return 0;
12323 _ACEOF
12324 rm -f conftest.$ac_objext conftest$ac_exeext
12325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12326 (eval $ac_link) 2>conftest.er1
12327 ac_status=$?
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try='test -s conftest$ac_exeext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_cv_c_gcc_stack_boundary="yes"
12346 else
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12350 ac_cv_c_gcc_stack_boundary="no"
12352 rm -f conftest.err conftest.$ac_objext \
12353 conftest$ac_exeext conftest.$ac_ext
12354 CFLAGS=$ac_wine_try_cflags_saved
12356 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12357 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12358 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12359 then
12360 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12363 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12364 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12365 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 else
12368 ac_wine_try_cflags_saved=$CFLAGS
12369 CFLAGS="$CFLAGS -fno-strict-aliasing"
12370 cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h. */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12378 main ()
12382 return 0;
12384 _ACEOF
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12387 (eval $ac_link) 2>conftest.er1
12388 ac_status=$?
12389 grep -v '^ *+' conftest.er1 >conftest.err
12390 rm -f conftest.er1
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 ac_cv_c_gcc_no_strict_aliasing="yes"
12407 else
12408 echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12411 ac_cv_c_gcc_no_strict_aliasing="no"
12413 rm -f conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
12415 CFLAGS=$ac_wine_try_cflags_saved
12417 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12418 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12419 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12420 then
12421 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12424 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12425 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12426 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429 ac_wine_try_cflags_saved=$CFLAGS
12430 CFLAGS="$CFLAGS -gstabs+"
12431 cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h. */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12439 main ()
12443 return 0;
12445 _ACEOF
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448 (eval $ac_link) 2>conftest.er1
12449 ac_status=$?
12450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; } &&
12461 { ac_try='test -s conftest$ac_exeext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_cv_c_gcc_gstabs="yes"
12468 else
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_cv_c_gcc_gstabs="no"
12474 rm -f conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
12476 CFLAGS=$ac_wine_try_cflags_saved
12478 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12479 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12480 if test "$ac_cv_c_gcc_gstabs" = "yes"
12481 then
12482 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12485 saved_CFLAGS="$CFLAGS"
12486 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12487 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12488 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12489 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492 cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h. */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 #include <string.h>
12500 main ()
12504 return 0;
12506 _ACEOF
12507 rm -f conftest.$ac_objext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12509 (eval $ac_compile) 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; } &&
12522 { ac_try='test -s conftest.$ac_objext'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12525 ac_status=$?
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 ac_cv_c_string_h_warnings=no
12529 else
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 ac_cv_c_string_h_warnings=yes
12535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12537 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12538 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12539 CFLAGS="$saved_CFLAGS"
12540 if test "$ac_cv_c_string_h_warnings" = "no"
12541 then
12542 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12547 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12548 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12549 if test "${ac_cv_asm_func_def+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552 cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h. */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 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"); }
12561 main ()
12565 return 0;
12567 _ACEOF
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12570 (eval $ac_link) 2>conftest.er1
12571 ac_status=$?
12572 grep -v '^ *+' conftest.er1 >conftest.err
12573 rm -f conftest.er1
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; } &&
12583 { ac_try='test -s conftest$ac_exeext'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 ac_cv_asm_func_def=".def"
12590 else
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12603 main ()
12607 return 0;
12609 _ACEOF
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612 (eval $ac_link) 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; } &&
12625 { ac_try='test -s conftest$ac_exeext'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 ac_cv_asm_func_def=".type @function"
12632 else
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h. */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12642 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12645 main ()
12649 return 0;
12651 _ACEOF
12652 rm -f conftest.$ac_objext conftest$ac_exeext
12653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12654 (eval $ac_link) 2>conftest.er1
12655 ac_status=$?
12656 grep -v '^ *+' conftest.er1 >conftest.err
12657 rm -f conftest.er1
12658 cat conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; } &&
12667 { ac_try='test -s conftest$ac_exeext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 ac_cv_asm_func_def=".type 2"
12674 else
12675 echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12678 ac_cv_asm_func_def="unknown"
12680 rm -f conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12683 rm -f conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
12686 rm -f conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12689 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12690 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12694 case "$ac_cv_asm_func_def" in
12695 ".def")
12696 cat >>confdefs.h <<\_ACEOF
12697 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12698 _ACEOF
12700 ".type @function")
12701 cat >>confdefs.h <<\_ACEOF
12702 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12703 _ACEOF
12705 ".type 2")
12706 cat >>confdefs.h <<\_ACEOF
12707 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12708 _ACEOF
12711 cat >>confdefs.h <<\_ACEOF
12712 #define __ASM_FUNC(name) ""
12713 _ACEOF
12715 esac
12718 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12719 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12720 if test "${ac_cv_c_extern_prefix+set}" = set; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 else
12723 cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h. */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12730 extern int ac_test;
12732 main ()
12734 if (ac_test) return 1
12736 return 0;
12738 _ACEOF
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12741 (eval $ac_link) 2>conftest.er1
12742 ac_status=$?
12743 grep -v '^ *+' conftest.er1 >conftest.err
12744 rm -f conftest.er1
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } &&
12748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; } &&
12754 { ac_try='test -s conftest$ac_exeext'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 ac_cv_c_extern_prefix="yes"
12761 else
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12765 ac_cv_c_extern_prefix="no"
12767 rm -f conftest.err conftest.$ac_objext \
12768 conftest$ac_exeext conftest.$ac_ext
12770 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12771 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12775 if test "$ac_cv_c_extern_prefix" = "yes"
12776 then
12777 cat >>confdefs.h <<\_ACEOF
12778 #define __ASM_NAME(name) "_" name
12779 _ACEOF
12781 else
12782 cat >>confdefs.h <<\_ACEOF
12783 #define __ASM_NAME(name) name
12784 _ACEOF
12789 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12790 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
12791 if test "${ac_cv_c_asm_string+set}" = set; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 else
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
12803 main ()
12807 return 0;
12809 _ACEOF
12810 rm -f conftest.$ac_objext conftest$ac_exeext
12811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12812 (eval $ac_link) 2>conftest.er1
12813 ac_status=$?
12814 grep -v '^ *+' conftest.er1 >conftest.err
12815 rm -f conftest.er1
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } &&
12819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try='test -s conftest$ac_exeext'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 ac_cv_c_asm_string=".string"
12832 else
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12836 cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h. */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12845 main ()
12849 return 0;
12851 _ACEOF
12852 rm -f conftest.$ac_objext conftest$ac_exeext
12853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12854 (eval $ac_link) 2>conftest.er1
12855 ac_status=$?
12856 grep -v '^ *+' conftest.er1 >conftest.err
12857 rm -f conftest.er1
12858 cat conftest.err >&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } &&
12861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest$ac_exeext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_cv_c_asm_string=".asciz"
12874 else
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h. */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12887 main ()
12891 return 0;
12893 _ACEOF
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12896 (eval $ac_link) 2>conftest.er1
12897 ac_status=$?
12898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
12903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; } &&
12909 { ac_try='test -s conftest$ac_exeext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 ac_cv_c_asm_string=".ascii"
12916 else
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12920 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
12921 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
12922 { (exit 1); exit 1; }; }
12924 rm -f conftest.err conftest.$ac_objext \
12925 conftest$ac_exeext conftest.$ac_ext
12927 rm -f conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12930 rm -f conftest.err conftest.$ac_objext \
12931 conftest$ac_exeext conftest.$ac_ext
12933 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
12934 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
12937 cat >>confdefs.h <<_ACEOF
12938 #define __ASM_STRING "$ac_cv_c_asm_string"
12939 _ACEOF
12943 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
12944 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
12945 if test "${ac_cv_c_asm_short+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 else
12948 cat >conftest.$ac_ext <<_ACEOF
12949 /* confdefs.h. */
12950 _ACEOF
12951 cat confdefs.h >>conftest.$ac_ext
12952 cat >>conftest.$ac_ext <<_ACEOF
12953 /* end confdefs.h. */
12954 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
12957 main ()
12961 return 0;
12963 _ACEOF
12964 rm -f conftest.$ac_objext conftest$ac_exeext
12965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12966 (eval $ac_link) 2>conftest.er1
12967 ac_status=$?
12968 grep -v '^ *+' conftest.er1 >conftest.err
12969 rm -f conftest.er1
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try='test -s conftest$ac_exeext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_c_asm_short=".short"
12986 else
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 cat >conftest.$ac_ext <<_ACEOF
12991 /* confdefs.h. */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
12999 main ()
13003 return 0;
13005 _ACEOF
13006 rm -f conftest.$ac_objext conftest$ac_exeext
13007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13008 (eval $ac_link) 2>conftest.er1
13009 ac_status=$?
13010 grep -v '^ *+' conftest.er1 >conftest.err
13011 rm -f conftest.er1
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } &&
13015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13018 ac_status=$?
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; } &&
13021 { ac_try='test -s conftest$ac_exeext'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; }; then
13027 ac_cv_c_asm_short=".half"
13028 else
13029 echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13032 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13033 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13034 { (exit 1); exit 1; }; }
13036 rm -f conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13039 rm -f conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext conftest.$ac_ext
13042 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13043 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13046 cat >>confdefs.h <<_ACEOF
13047 #define __ASM_SHORT "$ac_cv_c_asm_short"
13048 _ACEOF
13052 echo "$as_me:$LINENO: checking for .size in assembler" >&5
13053 echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
13054 if test "${ac_cv_c_asm_size+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057 cat >conftest.$ac_ext <<_ACEOF
13058 /* confdefs.h. */
13059 _ACEOF
13060 cat confdefs.h >>conftest.$ac_ext
13061 cat >>conftest.$ac_ext <<_ACEOF
13062 /* end confdefs.h. */
13063 void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
13066 main ()
13070 return 0;
13072 _ACEOF
13073 rm -f conftest.$ac_objext conftest$ac_exeext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13075 (eval $ac_link) 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084 (eval $ac_try) 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; } &&
13088 { ac_try='test -s conftest$ac_exeext'
13089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090 (eval $ac_try) 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; }; then
13094 ac_cv_c_asm_size="yes"
13095 else
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13099 ac_cv_c_asm_size="no"
13101 rm -f conftest.err conftest.$ac_objext \
13102 conftest$ac_exeext conftest.$ac_ext
13104 echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13105 echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13107 if test "$ac_cv_c_asm_size" = "yes"
13108 then
13110 cat >>confdefs.h <<\_ACEOF
13111 #define HAVE_ASM_DOT_SIZE 1
13112 _ACEOF
13117 DLLEXT=""
13119 DLLFLAGS="-D_REENTRANT"
13121 DLLIBS=""
13123 LDSHARED=""
13125 LDDLLFLAGS=""
13127 LIBEXT="so"
13129 IMPLIBEXT="def"
13132 case $host_os in
13133 cygwin*|mingw32*)
13134 if test -n "$ac_tool_prefix"; then
13135 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13136 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13137 echo "$as_me:$LINENO: checking for $ac_word" >&5
13138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13139 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 else
13142 if test -n "$DLLTOOL"; then
13143 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13144 else
13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13146 for as_dir in $PATH
13148 IFS=$as_save_IFS
13149 test -z "$as_dir" && as_dir=.
13150 for ac_exec_ext in '' $ac_executable_extensions; do
13151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13152 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13154 break 2
13156 done
13157 done
13161 DLLTOOL=$ac_cv_prog_DLLTOOL
13162 if test -n "$DLLTOOL"; then
13163 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13164 echo "${ECHO_T}$DLLTOOL" >&6
13165 else
13166 echo "$as_me:$LINENO: result: no" >&5
13167 echo "${ECHO_T}no" >&6
13171 if test -z "$ac_cv_prog_DLLTOOL"; then
13172 ac_ct_DLLTOOL=$DLLTOOL
13173 # Extract the first word of "dlltool", so it can be a program name with args.
13174 set dummy dlltool; ac_word=$2
13175 echo "$as_me:$LINENO: checking for $ac_word" >&5
13176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13177 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 else
13180 if test -n "$ac_ct_DLLTOOL"; then
13181 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13182 else
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $PATH
13186 IFS=$as_save_IFS
13187 test -z "$as_dir" && as_dir=.
13188 for ac_exec_ext in '' $ac_executable_extensions; do
13189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13190 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13192 break 2
13194 done
13195 done
13197 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13200 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13201 if test -n "$ac_ct_DLLTOOL"; then
13202 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13203 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13204 else
13205 echo "$as_me:$LINENO: result: no" >&5
13206 echo "${ECHO_T}no" >&6
13209 DLLTOOL=$ac_ct_DLLTOOL
13210 else
13211 DLLTOOL="$ac_cv_prog_DLLTOOL"
13214 if test -n "$ac_tool_prefix"; then
13215 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13216 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13217 echo "$as_me:$LINENO: checking for $ac_word" >&5
13218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13219 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 else
13222 if test -n "$DLLWRAP"; then
13223 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13224 else
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13228 IFS=$as_save_IFS
13229 test -z "$as_dir" && as_dir=.
13230 for ac_exec_ext in '' $ac_executable_extensions; do
13231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13232 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13234 break 2
13236 done
13237 done
13241 DLLWRAP=$ac_cv_prog_DLLWRAP
13242 if test -n "$DLLWRAP"; then
13243 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13244 echo "${ECHO_T}$DLLWRAP" >&6
13245 else
13246 echo "$as_me:$LINENO: result: no" >&5
13247 echo "${ECHO_T}no" >&6
13251 if test -z "$ac_cv_prog_DLLWRAP"; then
13252 ac_ct_DLLWRAP=$DLLWRAP
13253 # Extract the first word of "dllwrap", so it can be a program name with args.
13254 set dummy dllwrap; ac_word=$2
13255 echo "$as_me:$LINENO: checking for $ac_word" >&5
13256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13257 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 else
13260 if test -n "$ac_ct_DLLWRAP"; then
13261 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13262 else
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13266 IFS=$as_save_IFS
13267 test -z "$as_dir" && as_dir=.
13268 for ac_exec_ext in '' $ac_executable_extensions; do
13269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13270 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13272 break 2
13274 done
13275 done
13277 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13280 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13281 if test -n "$ac_ct_DLLWRAP"; then
13282 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13283 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13284 else
13285 echo "$as_me:$LINENO: result: no" >&5
13286 echo "${ECHO_T}no" >&6
13289 DLLWRAP=$ac_ct_DLLWRAP
13290 else
13291 DLLWRAP="$ac_cv_prog_DLLWRAP"
13294 if test "$DLLWRAP" = "false"; then
13295 LIBEXT="a"
13296 else
13297 LIBEXT="dll"
13299 IMPLIBEXT="a"
13300 WIN16_FILES=""
13301 WIN16_INSTALL=""
13305 for ac_header in dlfcn.h
13307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13309 echo "$as_me:$LINENO: checking for $ac_header" >&5
13310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13316 else
13317 # Is the header compilable?
13318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13320 cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h. */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13326 $ac_includes_default
13327 #include <$ac_header>
13328 _ACEOF
13329 rm -f conftest.$ac_objext
13330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13331 (eval $ac_compile) 2>conftest.er1
13332 ac_status=$?
13333 grep -v '^ *+' conftest.er1 >conftest.err
13334 rm -f conftest.er1
13335 cat conftest.err >&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } &&
13338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; } &&
13344 { ac_try='test -s conftest.$ac_objext'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; }; then
13350 ac_header_compiler=yes
13351 else
13352 echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13355 ac_header_compiler=no
13357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13359 echo "${ECHO_T}$ac_header_compiler" >&6
13361 # Is the header present?
13362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h. */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 #include <$ac_header>
13371 _ACEOF
13372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13374 ac_status=$?
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } >/dev/null; then
13380 if test -s conftest.err; then
13381 ac_cpp_err=$ac_c_preproc_warn_flag
13382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13383 else
13384 ac_cpp_err=
13386 else
13387 ac_cpp_err=yes
13389 if test -z "$ac_cpp_err"; then
13390 ac_header_preproc=yes
13391 else
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 ac_header_preproc=no
13397 rm -f conftest.err conftest.$ac_ext
13398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13399 echo "${ECHO_T}$ac_header_preproc" >&6
13401 # So? What about this header?
13402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13403 yes:no: )
13404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13408 ac_header_preproc=yes
13410 no:yes:* )
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13424 cat <<\_ASBOX
13425 ## ------------------------------------ ##
13426 ## Report this to wine-devel@winehq.org ##
13427 ## ------------------------------------ ##
13428 _ASBOX
13430 sed "s/^/$as_me: WARNING: /" >&2
13432 esac
13433 echo "$as_me:$LINENO: checking for $ac_header" >&5
13434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13437 else
13438 eval "$as_ac_Header=\$ac_header_preproc"
13440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13445 cat >>confdefs.h <<_ACEOF
13446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13447 _ACEOF
13449 for ac_func in dlopen
13451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13452 echo "$as_me:$LINENO: checking for $ac_func" >&5
13453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13454 if eval "test \"\${$as_ac_var+set}\" = set"; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 else
13457 cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h. */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13465 #define $ac_func innocuous_$ac_func
13467 /* System header to define __stub macros and hopefully few prototypes,
13468 which can conflict with char $ac_func (); below.
13469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13470 <limits.h> exists even on freestanding compilers. */
13472 #ifdef __STDC__
13473 # include <limits.h>
13474 #else
13475 # include <assert.h>
13476 #endif
13478 #undef $ac_func
13480 /* Override any gcc2 internal prototype to avoid an error. */
13481 #ifdef __cplusplus
13482 extern "C"
13484 #endif
13485 /* We use char because int might match the return type of a gcc2
13486 builtin and then its argument prototype would still apply. */
13487 char $ac_func ();
13488 /* The GNU C library defines this for functions which it implements
13489 to always fail with ENOSYS. Some functions are actually named
13490 something starting with __ and the normal name is an alias. */
13491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13492 choke me
13493 #else
13494 char (*f) () = $ac_func;
13495 #endif
13496 #ifdef __cplusplus
13498 #endif
13501 main ()
13503 return f != $ac_func;
13505 return 0;
13507 _ACEOF
13508 rm -f conftest.$ac_objext conftest$ac_exeext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13510 (eval $ac_link) 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; } &&
13523 { ac_try='test -s conftest$ac_exeext'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529 eval "$as_ac_var=yes"
13530 else
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13534 eval "$as_ac_var=no"
13536 rm -f conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
13539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13541 if test `eval echo '${'$as_ac_var'}'` = yes; then
13542 cat >>confdefs.h <<_ACEOF
13543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13544 _ACEOF
13546 else
13547 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13548 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13549 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552 ac_check_lib_save_LIBS=$LIBS
13553 LIBS="-ldl $LIBS"
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13561 /* Override any gcc2 internal prototype to avoid an error. */
13562 #ifdef __cplusplus
13563 extern "C"
13564 #endif
13565 /* We use char because int might match the return type of a gcc2
13566 builtin and then its argument prototype would still apply. */
13567 char dlopen ();
13569 main ()
13571 dlopen ();
13573 return 0;
13575 _ACEOF
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578 (eval $ac_link) 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest$ac_exeext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_cv_lib_dl_dlopen=yes
13598 else
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 ac_cv_lib_dl_dlopen=no
13604 rm -f conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
13606 LIBS=$ac_check_lib_save_LIBS
13608 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13609 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13610 if test $ac_cv_lib_dl_dlopen = yes; then
13612 cat >>confdefs.h <<\_ACEOF
13613 #define HAVE_DLOPEN 1
13614 _ACEOF
13616 DLLIBS="-ldl"
13617 else
13618 LIBEXT="a"
13622 done
13624 else
13625 LIBEXT="a"
13628 done
13631 if test "$LIBEXT" = "so"
13632 then
13633 DLLFLAGS="$DLLFLAGS -fPIC"
13634 DLLEXT=".so"
13635 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13636 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13637 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640 ac_wine_try_cflags_saved=$CFLAGS
13641 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13642 cat >conftest.$ac_ext <<_ACEOF
13643 void myfunc() {}
13644 _ACEOF
13645 rm -f conftest.$ac_objext conftest$ac_exeext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13647 (eval $ac_link) 2>conftest.er1
13648 ac_status=$?
13649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest$ac_exeext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 ac_cv_c_dll_gnuelf="yes"
13667 else
13668 echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13671 ac_cv_c_dll_gnuelf="no"
13673 rm -f conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext conftest.$ac_ext
13675 CFLAGS=$ac_wine_try_cflags_saved
13677 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13678 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13679 if test "$ac_cv_c_dll_gnuelf" = "yes"
13680 then
13681 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13682 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13683 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13684 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13685 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13687 else
13688 ac_wine_try_cflags_saved=$CFLAGS
13689 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13690 cat >conftest.$ac_ext <<_ACEOF
13691 /* confdefs.h. */
13692 _ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13698 main ()
13702 return 0;
13704 _ACEOF
13705 rm -f conftest.$ac_objext conftest$ac_exeext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13707 (eval $ac_link) 2>conftest.er1
13708 ac_status=$?
13709 grep -v '^ *+' conftest.er1 >conftest.err
13710 rm -f conftest.er1
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } &&
13714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; } &&
13720 { ac_try='test -s conftest$ac_exeext'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 ac_cv_c_dll_zdefs="yes"
13727 else
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 ac_cv_c_dll_zdefs="no"
13733 rm -f conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
13735 CFLAGS=$ac_wine_try_cflags_saved
13737 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13738 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13739 if test "$ac_cv_c_dll_zdefs" = "yes"
13740 then
13741 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13744 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13745 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13746 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 else
13749 ac_wine_try_cflags_saved=$CFLAGS
13750 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13751 cat >conftest.$ac_ext <<_ACEOF
13752 /* confdefs.h. */
13753 _ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13759 main ()
13763 return 0;
13765 _ACEOF
13766 rm -f conftest.$ac_objext conftest$ac_exeext
13767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13768 (eval $ac_link) 2>conftest.er1
13769 ac_status=$?
13770 grep -v '^ *+' conftest.er1 >conftest.err
13771 rm -f conftest.er1
13772 cat conftest.err >&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } &&
13775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; } &&
13781 { ac_try='test -s conftest$ac_exeext'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_cv_c_dll_init_fini="yes"
13788 else
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13792 ac_cv_c_dll_init_fini="no"
13794 rm -f conftest.err conftest.$ac_objext \
13795 conftest$ac_exeext conftest.$ac_ext
13796 CFLAGS=$ac_wine_try_cflags_saved
13798 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13799 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13800 if test "$ac_cv_c_dll_init_fini" = "yes"
13801 then
13802 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13805 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13806 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13807 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810 echo '{ global: *; };' >conftest.map
13811 ac_wine_try_cflags_saved=$CFLAGS
13812 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13821 main ()
13825 return 0;
13827 _ACEOF
13828 rm -f conftest.$ac_objext conftest$ac_exeext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13830 (eval $ac_link) 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try='test -s conftest$ac_exeext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 ac_cv_c_ld_version_scripts="yes"
13850 else
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13854 ac_cv_c_ld_version_scripts="no"
13856 rm -f conftest.err conftest.$ac_objext \
13857 conftest$ac_exeext conftest.$ac_ext
13858 CFLAGS=$ac_wine_try_cflags_saved
13859 rm -f conftest.map
13861 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13862 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13863 if test "$ac_cv_c_ld_version_scripts" = "yes"
13864 then
13865 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13868 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13869 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13870 if test "${ac_cv_c_export_dynamic+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 ac_wine_try_cflags_saved=$CFLAGS
13874 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13875 cat >conftest.$ac_ext <<_ACEOF
13876 /* confdefs.h. */
13877 _ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h. */
13883 main ()
13887 return 0;
13889 _ACEOF
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13892 (eval $ac_link) 2>conftest.er1
13893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; } &&
13905 { ac_try='test -s conftest$ac_exeext'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
13911 ac_cv_c_export_dynamic="yes"
13912 else
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13916 ac_cv_c_export_dynamic="no"
13918 rm -f conftest.err conftest.$ac_objext \
13919 conftest$ac_exeext conftest.$ac_ext
13920 CFLAGS=$ac_wine_try_cflags_saved
13922 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13923 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13924 if test "$ac_cv_c_export_dynamic" = "yes"
13925 then
13926 LDEXECFLAGS="-Wl,--export-dynamic"
13930 case $host_cpu in
13931 *i[3456789]86*)
13932 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
13933 echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
13934 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 ac_wine_try_cflags_saved=$CFLAGS
13938 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h. */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13947 main ()
13951 return 0;
13953 _ACEOF
13954 rm -f conftest.$ac_objext conftest$ac_exeext
13955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13956 (eval $ac_link) 2>conftest.er1
13957 ac_status=$?
13958 grep -v '^ *+' conftest.er1 >conftest.err
13959 rm -f conftest.er1
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } &&
13963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; } &&
13969 { ac_try='test -s conftest$ac_exeext'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 ac_cv_ld_reloc_exec="yes"
13976 else
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 ac_cv_ld_reloc_exec="no"
13982 rm -f conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
13984 CFLAGS=$ac_wine_try_cflags_saved
13986 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13987 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13988 if test "$ac_cv_ld_reloc_exec" = "yes"
13989 then
13990 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
13993 esac
13995 else
13996 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13997 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13998 if test "${ac_cv_c_dll_unixware+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 else
14001 ac_wine_try_cflags_saved=$CFLAGS
14002 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14003 cat >conftest.$ac_ext <<_ACEOF
14004 void myfunc() {}
14005 _ACEOF
14006 rm -f conftest.$ac_objext conftest$ac_exeext
14007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14008 (eval $ac_link) 2>conftest.er1
14009 ac_status=$?
14010 grep -v '^ *+' conftest.er1 >conftest.err
14011 rm -f conftest.er1
14012 cat conftest.err >&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
14015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; } &&
14021 { ac_try='test -s conftest$ac_exeext'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 ac_cv_c_dll_unixware="yes"
14028 else
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14032 ac_cv_c_dll_unixware="no"
14034 rm -f conftest.err conftest.$ac_objext \
14035 conftest$ac_exeext conftest.$ac_ext
14036 CFLAGS=$ac_wine_try_cflags_saved
14038 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14039 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14040 if test "$ac_cv_c_dll_unixware" = "yes"
14041 then
14042 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14043 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14045 else
14046 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14047 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14048 if test "${ac_cv_c_dll_macho+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051 ac_wine_try_cflags_saved=$CFLAGS
14052 CFLAGS="$CFLAGS -bundle"
14053 cat >conftest.$ac_ext <<_ACEOF
14054 void myfunc() {}
14055 _ACEOF
14056 rm -f conftest.$ac_objext conftest$ac_exeext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14058 (eval $ac_link) 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14068 ac_status=$?
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; } &&
14071 { ac_try='test -s conftest$ac_exeext'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14077 ac_cv_c_dll_macho="yes"
14078 else
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14082 ac_cv_c_dll_macho="no"
14084 rm -f conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14086 CFLAGS=$ac_wine_try_cflags_saved
14088 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14089 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14090 if test "$ac_cv_c_dll_macho" = "yes"
14091 then
14092 LIBEXT="dylib"
14093 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14094 LDSHARED="\$(CC) -dynamiclib"
14095 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14096 STRIP="$STRIP -u -r"
14097 LDEXECFLAGS="-seg1addr 0x120000"
14099 LDLIBWINEFLAGS="-seg1addr 0x140000"
14101 COREFOUNDATIONLIB="-framework CoreFoundation"
14103 IOKITLIB="-framework IOKit"
14105 IOKITLIB = "$IOKITLIB $COREFOUNDATIONLIB"
14106 else
14107 echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14108 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
14109 if test "${ac_cv_c_dll_hpux+set}" = set; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 else
14112 ac_wine_try_cflags_saved=$CFLAGS
14113 CFLAGS="$CFLAGS -shared"
14114 cat >conftest.$ac_ext <<_ACEOF
14115 void myfunc() {}
14116 _ACEOF
14117 rm -f conftest.$ac_objext conftest$ac_exeext
14118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14119 (eval $ac_link) 2>conftest.er1
14120 ac_status=$?
14121 grep -v '^ *+' conftest.er1 >conftest.err
14122 rm -f conftest.er1
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
14126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; } &&
14132 { ac_try='test -s conftest$ac_exeext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_cv_c_dll_hpux="yes"
14139 else
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14143 ac_cv_c_dll_hpux="no"
14145 rm -f conftest.err conftest.$ac_objext \
14146 conftest$ac_exeext conftest.$ac_ext
14147 CFLAGS=$ac_wine_try_cflags_saved
14149 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14150 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
14151 if test "$ac_cv_c_dll_hpux" = "yes"
14152 then
14153 LIBEXT="sl"
14154 DLLEXT=".sl"
14155 LDDLLFLAGS="-shared -fPIC"
14156 LDSHARED="\$(CC) -shared"
14163 CROSSTEST=""
14165 if test "$cross_compiling" = "no"
14166 then
14167 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14169 # Extract the first word of "$ac_prog", so it can be a program name with args.
14170 set dummy $ac_prog; ac_word=$2
14171 echo "$as_me:$LINENO: checking for $ac_word" >&5
14172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14173 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176 if test -n "$CROSSCC"; then
14177 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14178 else
14179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14180 for as_dir in $PATH
14182 IFS=$as_save_IFS
14183 test -z "$as_dir" && as_dir=.
14184 for ac_exec_ext in '' $ac_executable_extensions; do
14185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14186 ac_cv_prog_CROSSCC="$ac_prog"
14187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14188 break 2
14190 done
14191 done
14195 CROSSCC=$ac_cv_prog_CROSSCC
14196 if test -n "$CROSSCC"; then
14197 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14198 echo "${ECHO_T}$CROSSCC" >&6
14199 else
14200 echo "$as_me:$LINENO: result: no" >&5
14201 echo "${ECHO_T}no" >&6
14204 test -n "$CROSSCC" && break
14205 done
14206 test -n "$CROSSCC" || CROSSCC="false"
14208 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14210 # Extract the first word of "$ac_prog", so it can be a program name with args.
14211 set dummy $ac_prog; ac_word=$2
14212 echo "$as_me:$LINENO: checking for $ac_word" >&5
14213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14214 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 if test -n "$DLLTOOL"; then
14218 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14219 else
14220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14221 for as_dir in $PATH
14223 IFS=$as_save_IFS
14224 test -z "$as_dir" && as_dir=.
14225 for ac_exec_ext in '' $ac_executable_extensions; do
14226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14227 ac_cv_prog_DLLTOOL="$ac_prog"
14228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14229 break 2
14231 done
14232 done
14236 DLLTOOL=$ac_cv_prog_DLLTOOL
14237 if test -n "$DLLTOOL"; then
14238 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14239 echo "${ECHO_T}$DLLTOOL" >&6
14240 else
14241 echo "$as_me:$LINENO: result: no" >&5
14242 echo "${ECHO_T}no" >&6
14245 test -n "$DLLTOOL" && break
14246 done
14247 test -n "$DLLTOOL" || DLLTOOL="false"
14249 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14251 # Extract the first word of "$ac_prog", so it can be a program name with args.
14252 set dummy $ac_prog; ac_word=$2
14253 echo "$as_me:$LINENO: checking for $ac_word" >&5
14254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14255 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 else
14258 if test -n "$CROSSWINDRES"; then
14259 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14260 else
14261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14262 for as_dir in $PATH
14264 IFS=$as_save_IFS
14265 test -z "$as_dir" && as_dir=.
14266 for ac_exec_ext in '' $ac_executable_extensions; do
14267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14268 ac_cv_prog_CROSSWINDRES="$ac_prog"
14269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14270 break 2
14272 done
14273 done
14277 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14278 if test -n "$CROSSWINDRES"; then
14279 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14280 echo "${ECHO_T}$CROSSWINDRES" >&6
14281 else
14282 echo "$as_me:$LINENO: result: no" >&5
14283 echo "${ECHO_T}no" >&6
14286 test -n "$CROSSWINDRES" && break
14287 done
14288 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14290 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14293 esac
14295 if test "$LIBEXT" = "a"; then
14296 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14297 It is currently not possible to build Wine without shared library
14298 (.so) support to allow transparent switch between .so and .dll files.
14299 If you are using Linux, you will need a newer binutils.
14300 " >&5
14301 echo "$as_me: error: could not find a way to build shared libraries.
14302 It is currently not possible to build Wine without shared library
14303 (.so) support to allow transparent switch between .so and .dll files.
14304 If you are using Linux, you will need a newer binutils.
14305 " >&2;}
14306 { (exit 1); exit 1; }; }
14309 case $build_os in
14310 cygwin*|mingw32*)
14311 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14313 darwin*|macosx*)
14314 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14317 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14319 esac
14321 case $host_os in
14322 mingw32*)
14323 CRTLIBS="-lmsvcrt"
14325 SOCKETLIBS="-lws2_32"
14328 esac
14330 case $host_os in
14331 linux*)
14332 case $host_cpu in
14333 *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14335 *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14337 esac
14338 MAIN_BINARY="wine-glibc"
14341 darwin*)
14342 WINE_BINARIES="wine-pthread"
14344 MAIN_BINARY="wine-pthread"
14348 WINE_BINARIES="wine-kthread"
14350 MAIN_BINARY="wine-kthread"
14353 esac
14356 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14357 then
14358 # Extract the first word of "ldd", so it can be a program name with args.
14359 set dummy ldd; ac_word=$2
14360 echo "$as_me:$LINENO: checking for $ac_word" >&5
14361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14362 if test "${ac_cv_path_LDD+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 else
14365 case $LDD in
14366 [\\/]* | ?:[\\/]*)
14367 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14371 as_dummy="/sbin:/usr/sbin:$PATH"
14372 for as_dir in $as_dummy
14374 IFS=$as_save_IFS
14375 test -z "$as_dir" && as_dir=.
14376 for ac_exec_ext in '' $ac_executable_extensions; do
14377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14378 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14380 break 2
14382 done
14383 done
14385 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14387 esac
14389 LDD=$ac_cv_path_LDD
14391 if test -n "$LDD"; then
14392 echo "$as_me:$LINENO: result: $LDD" >&5
14393 echo "${ECHO_T}$LDD" >&6
14394 else
14395 echo "$as_me:$LINENO: result: no" >&5
14396 echo "${ECHO_T}no" >&6
14400 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14401 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14402 if test "${ac_cv_lib_soname_X11+set}" = set; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404 else
14405 ac_get_soname_save_LIBS=$LIBS
14406 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14407 cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h. */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14414 /* Override any gcc2 internal prototype to avoid an error. */
14415 #ifdef __cplusplus
14416 extern "C"
14417 #endif
14418 /* We use char because int might match the return type of a gcc2
14419 builtin and then its argument prototype would still apply. */
14420 char XCreateWindow ();
14422 main ()
14424 XCreateWindow ();
14426 return 0;
14428 _ACEOF
14429 rm -f conftest.$ac_objext conftest$ac_exeext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14431 (eval $ac_link) 2>conftest.er1
14432 ac_status=$?
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest$ac_exeext'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
14450 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"`
14451 if test "x$ac_cv_lib_soname_X11" = "x"
14452 then
14453 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14455 else
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14461 rm -f conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext conftest.$ac_ext
14463 LIBS=$ac_get_soname_save_LIBS
14465 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14466 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14467 if test "x$ac_cv_lib_soname_X11" != xNONE
14468 then
14469 cat >>confdefs.h <<_ACEOF
14470 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14471 _ACEOF
14474 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14475 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14476 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479 ac_get_soname_save_LIBS=$LIBS
14480 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14481 cat >conftest.$ac_ext <<_ACEOF
14482 /* confdefs.h. */
14483 _ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14488 /* Override any gcc2 internal prototype to avoid an error. */
14489 #ifdef __cplusplus
14490 extern "C"
14491 #endif
14492 /* We use char because int might match the return type of a gcc2
14493 builtin and then its argument prototype would still apply. */
14494 char XextCreateExtension ();
14496 main ()
14498 XextCreateExtension ();
14500 return 0;
14502 _ACEOF
14503 rm -f conftest.$ac_objext conftest$ac_exeext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14505 (eval $ac_link) 2>conftest.er1
14506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; } &&
14518 { ac_try='test -s conftest$ac_exeext'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"`
14525 if test "x$ac_cv_lib_soname_Xext" = "x"
14526 then
14527 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14529 else
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14533 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14535 rm -f conftest.err conftest.$ac_objext \
14536 conftest$ac_exeext conftest.$ac_ext
14537 LIBS=$ac_get_soname_save_LIBS
14539 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14540 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14541 if test "x$ac_cv_lib_soname_Xext" != xNONE
14542 then
14543 cat >>confdefs.h <<_ACEOF
14544 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14545 _ACEOF
14548 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14549 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14550 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 else
14553 ac_get_soname_save_LIBS=$LIBS
14554 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14555 cat >conftest.$ac_ext <<_ACEOF
14556 /* confdefs.h. */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14562 /* Override any gcc2 internal prototype to avoid an error. */
14563 #ifdef __cplusplus
14564 extern "C"
14565 #endif
14566 /* We use char because int might match the return type of a gcc2
14567 builtin and then its argument prototype would still apply. */
14568 char XOpenDevice ();
14570 main ()
14572 XOpenDevice ();
14574 return 0;
14576 _ACEOF
14577 rm -f conftest.$ac_objext conftest$ac_exeext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14579 (eval $ac_link) 2>conftest.er1
14580 ac_status=$?
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
14586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } &&
14592 { ac_try='test -s conftest$ac_exeext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"`
14599 if test "x$ac_cv_lib_soname_Xi" = "x"
14600 then
14601 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14603 else
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14607 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14609 rm -f conftest.err conftest.$ac_objext \
14610 conftest$ac_exeext conftest.$ac_ext
14611 LIBS=$ac_get_soname_save_LIBS
14613 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14614 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14615 if test "x$ac_cv_lib_soname_Xi" != xNONE
14616 then
14617 cat >>confdefs.h <<_ACEOF
14618 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14619 _ACEOF
14622 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14623 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14624 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14626 else
14627 ac_get_soname_save_LIBS=$LIBS
14628 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14629 cat >conftest.$ac_ext <<_ACEOF
14630 /* confdefs.h. */
14631 _ACEOF
14632 cat confdefs.h >>conftest.$ac_ext
14633 cat >>conftest.$ac_ext <<_ACEOF
14634 /* end confdefs.h. */
14636 /* Override any gcc2 internal prototype to avoid an error. */
14637 #ifdef __cplusplus
14638 extern "C"
14639 #endif
14640 /* We use char because int might match the return type of a gcc2
14641 builtin and then its argument prototype would still apply. */
14642 char XRenderQueryExtension ();
14644 main ()
14646 XRenderQueryExtension ();
14648 return 0;
14650 _ACEOF
14651 rm -f conftest.$ac_objext conftest$ac_exeext
14652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14653 (eval $ac_link) 2>conftest.er1
14654 ac_status=$?
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -f conftest.er1
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try='test -s conftest$ac_exeext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14672 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"`
14673 if test "x$ac_cv_lib_soname_Xrender" = "x"
14674 then
14675 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14677 else
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14683 rm -f conftest.err conftest.$ac_objext \
14684 conftest$ac_exeext conftest.$ac_ext
14685 LIBS=$ac_get_soname_save_LIBS
14687 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14688 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14689 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14690 then
14691 cat >>confdefs.h <<_ACEOF
14692 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14693 _ACEOF
14696 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14697 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14698 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701 ac_get_soname_save_LIBS=$LIBS
14702 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14703 cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h. */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14710 /* Override any gcc2 internal prototype to avoid an error. */
14711 #ifdef __cplusplus
14712 extern "C"
14713 #endif
14714 /* We use char because int might match the return type of a gcc2
14715 builtin and then its argument prototype would still apply. */
14716 char XRRQueryExtension ();
14718 main ()
14720 XRRQueryExtension ();
14722 return 0;
14724 _ACEOF
14725 rm -f conftest.$ac_objext conftest$ac_exeext
14726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14727 (eval $ac_link) 2>conftest.er1
14728 ac_status=$?
14729 grep -v '^ *+' conftest.er1 >conftest.err
14730 rm -f conftest.er1
14731 cat conftest.err >&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } &&
14734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14737 ac_status=$?
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; } &&
14740 { ac_try='test -s conftest$ac_exeext'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
14746 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"`
14747 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14748 then
14749 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14751 else
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14757 rm -f conftest.err conftest.$ac_objext \
14758 conftest$ac_exeext conftest.$ac_ext
14759 LIBS=$ac_get_soname_save_LIBS
14761 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14762 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14763 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
14764 then
14765 cat >>confdefs.h <<_ACEOF
14766 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14767 _ACEOF
14770 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14771 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14772 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775 ac_get_soname_save_LIBS=$LIBS
14776 LIBS="-lfreetype $X_LIBS $LIBS"
14777 cat >conftest.$ac_ext <<_ACEOF
14778 /* confdefs.h. */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14784 /* Override any gcc2 internal prototype to avoid an error. */
14785 #ifdef __cplusplus
14786 extern "C"
14787 #endif
14788 /* We use char because int might match the return type of a gcc2
14789 builtin and then its argument prototype would still apply. */
14790 char FT_Init_FreeType ();
14792 main ()
14794 FT_Init_FreeType ();
14796 return 0;
14798 _ACEOF
14799 rm -f conftest.$ac_objext conftest$ac_exeext
14800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14801 (eval $ac_link) 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
14808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest$ac_exeext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"`
14821 if test "x$ac_cv_lib_soname_freetype" = "x"
14822 then
14823 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14825 else
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14831 rm -f conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext conftest.$ac_ext
14833 LIBS=$ac_get_soname_save_LIBS
14835 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14836 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14837 if test "x$ac_cv_lib_soname_freetype" != xNONE
14838 then
14839 cat >>confdefs.h <<_ACEOF
14840 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14841 _ACEOF
14844 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14845 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14846 if test "${ac_cv_lib_soname_GL+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
14849 ac_get_soname_save_LIBS=$LIBS
14850 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14851 cat >conftest.$ac_ext <<_ACEOF
14852 /* confdefs.h. */
14853 _ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h. */
14858 /* Override any gcc2 internal prototype to avoid an error. */
14859 #ifdef __cplusplus
14860 extern "C"
14861 #endif
14862 /* We use char because int might match the return type of a gcc2
14863 builtin and then its argument prototype would still apply. */
14864 char glXQueryExtension ();
14866 main ()
14868 glXQueryExtension ();
14870 return 0;
14872 _ACEOF
14873 rm -f conftest.$ac_objext conftest$ac_exeext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14875 (eval $ac_link) 2>conftest.er1
14876 ac_status=$?
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } &&
14882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14885 ac_status=$?
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; } &&
14888 { ac_try='test -s conftest$ac_exeext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"`
14895 if test "x$ac_cv_lib_soname_GL" = "x"
14896 then
14897 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14899 else
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14905 rm -f conftest.err conftest.$ac_objext \
14906 conftest$ac_exeext conftest.$ac_ext
14907 LIBS=$ac_get_soname_save_LIBS
14909 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14910 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14911 if test "x$ac_cv_lib_soname_GL" != xNONE
14912 then
14913 cat >>confdefs.h <<_ACEOF
14914 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14915 _ACEOF
14918 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14919 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14920 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14922 else
14923 ac_get_soname_save_LIBS=$LIBS
14924 LIBS="-ltxc_dxtn $LIBS"
14925 cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h. */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14932 /* Override any gcc2 internal prototype to avoid an error. */
14933 #ifdef __cplusplus
14934 extern "C"
14935 #endif
14936 /* We use char because int might match the return type of a gcc2
14937 builtin and then its argument prototype would still apply. */
14938 char fetch_2d_texel_rgba_dxt1 ();
14940 main ()
14942 fetch_2d_texel_rgba_dxt1 ();
14944 return 0;
14946 _ACEOF
14947 rm -f conftest.$ac_objext conftest$ac_exeext
14948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14949 (eval $ac_link) 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } &&
14956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; } &&
14962 { ac_try='test -s conftest$ac_exeext'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14965 ac_status=$?
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }; then
14968 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"`
14969 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14970 then
14971 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14979 rm -f conftest.err conftest.$ac_objext \
14980 conftest$ac_exeext conftest.$ac_ext
14981 LIBS=$ac_get_soname_save_LIBS
14983 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
14984 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
14985 if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
14986 then
14987 cat >>confdefs.h <<_ACEOF
14988 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
14989 _ACEOF
14992 echo "$as_me:$LINENO: checking for -lcups soname" >&5
14993 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14994 if test "${ac_cv_lib_soname_cups+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997 ac_get_soname_save_LIBS=$LIBS
14998 LIBS="-lcups $LIBS"
14999 cat >conftest.$ac_ext <<_ACEOF
15000 /* confdefs.h. */
15001 _ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15006 /* Override any gcc2 internal prototype to avoid an error. */
15007 #ifdef __cplusplus
15008 extern "C"
15009 #endif
15010 /* We use char because int might match the return type of a gcc2
15011 builtin and then its argument prototype would still apply. */
15012 char cupsGetDefault ();
15014 main ()
15016 cupsGetDefault ();
15018 return 0;
15020 _ACEOF
15021 rm -f conftest.$ac_objext conftest$ac_exeext
15022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15023 (eval $ac_link) 2>conftest.er1
15024 ac_status=$?
15025 grep -v '^ *+' conftest.er1 >conftest.err
15026 rm -f conftest.er1
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } &&
15030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest$ac_exeext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"`
15043 if test "x$ac_cv_lib_soname_cups" = "x"
15044 then
15045 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15047 else
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15051 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15053 rm -f conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext conftest.$ac_ext
15055 LIBS=$ac_get_soname_save_LIBS
15057 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15058 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15059 if test "x$ac_cv_lib_soname_cups" != xNONE
15060 then
15061 cat >>confdefs.h <<_ACEOF
15062 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15063 _ACEOF
15066 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15067 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15068 if test "${ac_cv_lib_soname_jack+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071 ac_get_soname_save_LIBS=$LIBS
15072 LIBS="-ljack $LIBS"
15073 cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h. */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15080 /* Override any gcc2 internal prototype to avoid an error. */
15081 #ifdef __cplusplus
15082 extern "C"
15083 #endif
15084 /* We use char because int might match the return type of a gcc2
15085 builtin and then its argument prototype would still apply. */
15086 char jack_client_new ();
15088 main ()
15090 jack_client_new ();
15092 return 0;
15094 _ACEOF
15095 rm -f conftest.$ac_objext conftest$ac_exeext
15096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15097 (eval $ac_link) 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try='test -s conftest$ac_exeext'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"`
15117 if test "x$ac_cv_lib_soname_jack" = "x"
15118 then
15119 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15121 else
15122 echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15125 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15127 rm -f conftest.err conftest.$ac_objext \
15128 conftest$ac_exeext conftest.$ac_ext
15129 LIBS=$ac_get_soname_save_LIBS
15131 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15132 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15133 if test "x$ac_cv_lib_soname_jack" != xNONE
15134 then
15135 cat >>confdefs.h <<_ACEOF
15136 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15137 _ACEOF
15140 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15141 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15142 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15144 else
15145 ac_get_soname_save_LIBS=$LIBS
15146 LIBS="-lfontconfig $LIBS"
15147 cat >conftest.$ac_ext <<_ACEOF
15148 /* confdefs.h. */
15149 _ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15154 /* Override any gcc2 internal prototype to avoid an error. */
15155 #ifdef __cplusplus
15156 extern "C"
15157 #endif
15158 /* We use char because int might match the return type of a gcc2
15159 builtin and then its argument prototype would still apply. */
15160 char FcInit ();
15162 main ()
15164 FcInit ();
15166 return 0;
15168 _ACEOF
15169 rm -f conftest.$ac_objext conftest$ac_exeext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15171 (eval $ac_link) 2>conftest.er1
15172 ac_status=$?
15173 grep -v '^ *+' conftest.er1 >conftest.err
15174 rm -f conftest.er1
15175 cat conftest.err >&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; } &&
15184 { ac_try='test -s conftest$ac_exeext'
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"`
15191 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15192 then
15193 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15195 else
15196 echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15199 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15201 rm -f conftest.err conftest.$ac_objext \
15202 conftest$ac_exeext conftest.$ac_ext
15203 LIBS=$ac_get_soname_save_LIBS
15205 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15206 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15207 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15208 then
15209 cat >>confdefs.h <<_ACEOF
15210 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15211 _ACEOF
15214 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15215 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15216 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219 ac_get_soname_save_LIBS=$LIBS
15220 LIBS="-lssl $LIBS"
15221 cat >conftest.$ac_ext <<_ACEOF
15222 /* confdefs.h. */
15223 _ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15228 /* Override any gcc2 internal prototype to avoid an error. */
15229 #ifdef __cplusplus
15230 extern "C"
15231 #endif
15232 /* We use char because int might match the return type of a gcc2
15233 builtin and then its argument prototype would still apply. */
15234 char SSL_library_init ();
15236 main ()
15238 SSL_library_init ();
15240 return 0;
15242 _ACEOF
15243 rm -f conftest.$ac_objext conftest$ac_exeext
15244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15245 (eval $ac_link) 2>conftest.er1
15246 ac_status=$?
15247 grep -v '^ *+' conftest.er1 >conftest.err
15248 rm -f conftest.er1
15249 cat conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; } &&
15258 { ac_try='test -s conftest$ac_exeext'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"`
15265 if test "x$ac_cv_lib_soname_ssl" = "x"
15266 then
15267 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15269 else
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15275 rm -f conftest.err conftest.$ac_objext \
15276 conftest$ac_exeext conftest.$ac_ext
15277 LIBS=$ac_get_soname_save_LIBS
15279 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15280 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15281 if test "x$ac_cv_lib_soname_ssl" != xNONE
15282 then
15283 cat >>confdefs.h <<_ACEOF
15284 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15285 _ACEOF
15288 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15289 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15290 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15292 else
15293 ac_get_soname_save_LIBS=$LIBS
15294 LIBS="-lcrypto $LIBS"
15295 cat >conftest.$ac_ext <<_ACEOF
15296 /* confdefs.h. */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15302 /* Override any gcc2 internal prototype to avoid an error. */
15303 #ifdef __cplusplus
15304 extern "C"
15305 #endif
15306 /* We use char because int might match the return type of a gcc2
15307 builtin and then its argument prototype would still apply. */
15308 char BIO_new_socket ();
15310 main ()
15312 BIO_new_socket ();
15314 return 0;
15316 _ACEOF
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15319 (eval $ac_link) 2>conftest.er1
15320 ac_status=$?
15321 grep -v '^ *+' conftest.er1 >conftest.err
15322 rm -f conftest.er1
15323 cat conftest.err >&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
15326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try='test -s conftest$ac_exeext'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"`
15339 if test "x$ac_cv_lib_soname_crypto" = "x"
15340 then
15341 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15343 else
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15347 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15349 rm -f conftest.err conftest.$ac_objext \
15350 conftest$ac_exeext conftest.$ac_ext
15351 LIBS=$ac_get_soname_save_LIBS
15353 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15354 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15355 if test "x$ac_cv_lib_soname_crypto" != xNONE
15356 then
15357 cat >>confdefs.h <<_ACEOF
15358 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15359 _ACEOF
15362 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15363 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15364 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367 ac_get_soname_save_LIBS=$LIBS
15368 LIBS="-lncurses $LIBS"
15369 cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h. */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15376 /* Override any gcc2 internal prototype to avoid an error. */
15377 #ifdef __cplusplus
15378 extern "C"
15379 #endif
15380 /* We use char because int might match the return type of a gcc2
15381 builtin and then its argument prototype would still apply. */
15382 char waddch ();
15384 main ()
15386 waddch ();
15388 return 0;
15390 _ACEOF
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15393 (eval $ac_link) 2>conftest.er1
15394 ac_status=$?
15395 grep -v '^ *+' conftest.er1 >conftest.err
15396 rm -f conftest.er1
15397 cat conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; } &&
15406 { ac_try='test -s conftest$ac_exeext'
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"`
15413 if test "x$ac_cv_lib_soname_ncurses" = "x"
15414 then
15415 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15417 else
15418 echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.$ac_ext >&5
15421 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15423 rm -f conftest.err conftest.$ac_objext \
15424 conftest$ac_exeext conftest.$ac_ext
15425 LIBS=$ac_get_soname_save_LIBS
15427 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15428 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15429 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15430 then
15431 cat >>confdefs.h <<_ACEOF
15432 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15433 _ACEOF
15436 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15437 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15438 if test "${ac_cv_lib_soname_curses+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441 ac_get_soname_save_LIBS=$LIBS
15442 LIBS="-lcurses $LIBS"
15443 cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h. */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15450 /* Override any gcc2 internal prototype to avoid an error. */
15451 #ifdef __cplusplus
15452 extern "C"
15453 #endif
15454 /* We use char because int might match the return type of a gcc2
15455 builtin and then its argument prototype would still apply. */
15456 char waddch ();
15458 main ()
15460 waddch ();
15462 return 0;
15464 _ACEOF
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15467 (eval $ac_link) 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } &&
15474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; } &&
15480 { ac_try='test -s conftest$ac_exeext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"`
15487 if test "x$ac_cv_lib_soname_curses" = "x"
15488 then
15489 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15491 else
15492 echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15495 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15497 rm -f conftest.err conftest.$ac_objext \
15498 conftest$ac_exeext conftest.$ac_ext
15499 LIBS=$ac_get_soname_save_LIBS
15501 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15502 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15503 if test "x$ac_cv_lib_soname_curses" != xNONE
15504 then
15505 cat >>confdefs.h <<_ACEOF
15506 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15507 _ACEOF
15510 echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15511 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15512 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 else
15515 ac_get_soname_save_LIBS=$LIBS
15516 LIBS="-ljpeg $LIBS"
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h. */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15524 /* Override any gcc2 internal prototype to avoid an error. */
15525 #ifdef __cplusplus
15526 extern "C"
15527 #endif
15528 /* We use char because int might match the return type of a gcc2
15529 builtin and then its argument prototype would still apply. */
15530 char jpeg_start_decompress ();
15532 main ()
15534 jpeg_start_decompress ();
15536 return 0;
15538 _ACEOF
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15541 (eval $ac_link) 2>conftest.er1
15542 ac_status=$?
15543 grep -v '^ *+' conftest.er1 >conftest.err
15544 rm -f conftest.er1
15545 cat conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; } &&
15554 { ac_try='test -s conftest$ac_exeext'
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"`
15561 if test "x$ac_cv_lib_soname_jpeg" = "x"
15562 then
15563 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15565 else
15566 echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15569 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15571 rm -f conftest.err conftest.$ac_objext \
15572 conftest$ac_exeext conftest.$ac_ext
15573 LIBS=$ac_get_soname_save_LIBS
15575 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15576 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15577 if test "x$ac_cv_lib_soname_jpeg" != xNONE
15578 then
15579 cat >>confdefs.h <<_ACEOF
15580 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15581 _ACEOF
15584 echo "$as_me:$LINENO: checking for -lungif soname" >&5
15585 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15586 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 else
15589 ac_get_soname_save_LIBS=$LIBS
15590 LIBS="-lungif $LIBS"
15591 cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h. */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15598 /* Override any gcc2 internal prototype to avoid an error. */
15599 #ifdef __cplusplus
15600 extern "C"
15601 #endif
15602 /* We use char because int might match the return type of a gcc2
15603 builtin and then its argument prototype would still apply. */
15604 char DGifOpen ();
15606 main ()
15608 DGifOpen ();
15610 return 0;
15612 _ACEOF
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615 (eval $ac_link) 2>conftest.er1
15616 ac_status=$?
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
15622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest$ac_exeext'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"`
15635 if test "x$ac_cv_lib_soname_ungif" = "x"
15636 then
15637 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15639 else
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15643 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15645 rm -f conftest.err conftest.$ac_objext \
15646 conftest$ac_exeext conftest.$ac_ext
15647 LIBS=$ac_get_soname_save_LIBS
15649 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15650 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15651 if test "x$ac_cv_lib_soname_ungif" != xNONE
15652 then
15653 cat >>confdefs.h <<_ACEOF
15654 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15655 _ACEOF
15658 echo "$as_me:$LINENO: checking for -lgif soname" >&5
15659 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15660 if test "${ac_cv_lib_soname_gif+set}" = set; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663 ac_get_soname_save_LIBS=$LIBS
15664 LIBS="-lgif $LIBS"
15665 cat >conftest.$ac_ext <<_ACEOF
15666 /* confdefs.h. */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h. */
15672 /* Override any gcc2 internal prototype to avoid an error. */
15673 #ifdef __cplusplus
15674 extern "C"
15675 #endif
15676 /* We use char because int might match the return type of a gcc2
15677 builtin and then its argument prototype would still apply. */
15678 char DGifOpen ();
15680 main ()
15682 DGifOpen ();
15684 return 0;
15686 _ACEOF
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15689 (eval $ac_link) 2>conftest.er1
15690 ac_status=$?
15691 grep -v '^ *+' conftest.er1 >conftest.err
15692 rm -f conftest.er1
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } &&
15696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; } &&
15702 { ac_try='test -s conftest$ac_exeext'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"`
15709 if test "x$ac_cv_lib_soname_gif" = "x"
15710 then
15711 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15713 else
15714 echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15717 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15719 rm -f conftest.err conftest.$ac_objext \
15720 conftest$ac_exeext conftest.$ac_ext
15721 LIBS=$ac_get_soname_save_LIBS
15723 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15724 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15725 if test "x$ac_cv_lib_soname_gif" != xNONE
15726 then
15727 cat >>confdefs.h <<_ACEOF
15728 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15729 _ACEOF
15732 echo "$as_me:$LINENO: checking for -llcms soname" >&5
15733 echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6
15734 if test "${ac_cv_lib_soname_lcms+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737 ac_get_soname_save_LIBS=$LIBS
15738 LIBS="-llcms $LIBS"
15739 cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h. */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15746 /* Override any gcc2 internal prototype to avoid an error. */
15747 #ifdef __cplusplus
15748 extern "C"
15749 #endif
15750 /* We use char because int might match the return type of a gcc2
15751 builtin and then its argument prototype would still apply. */
15752 char cmsOpenProfileFromFile ();
15754 main ()
15756 cmsOpenProfileFromFile ();
15758 return 0;
15760 _ACEOF
15761 rm -f conftest.$ac_objext conftest$ac_exeext
15762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15763 (eval $ac_link) 2>conftest.er1
15764 ac_status=$?
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; } &&
15776 { ac_try='test -s conftest$ac_exeext'
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^ ]*\).*$/\1/"`
15783 if test "x$ac_cv_lib_soname_lcms" = "x"
15784 then
15785 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15787 else
15788 echo "$as_me: failed program was:" >&5
15789 sed 's/^/| /' conftest.$ac_ext >&5
15791 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15793 rm -f conftest.err conftest.$ac_objext \
15794 conftest$ac_exeext conftest.$ac_ext
15795 LIBS=$ac_get_soname_save_LIBS
15797 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5
15798 echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6
15799 if test "x$ac_cv_lib_soname_lcms" != xNONE
15800 then
15801 cat >>confdefs.h <<_ACEOF
15802 #define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms"
15803 _ACEOF
15809 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15810 # for constant arguments. Useless!
15811 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15812 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15813 if test "${ac_cv_working_alloca_h+set}" = set; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 else
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h. */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 #include <alloca.h>
15824 main ()
15826 char *p = (char *) alloca (2 * sizeof (int));
15828 return 0;
15830 _ACEOF
15831 rm -f conftest.$ac_objext conftest$ac_exeext
15832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15833 (eval $ac_link) 2>conftest.er1
15834 ac_status=$?
15835 grep -v '^ *+' conftest.er1 >conftest.err
15836 rm -f conftest.er1
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
15840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest$ac_exeext'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 ac_cv_working_alloca_h=yes
15853 else
15854 echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15857 ac_cv_working_alloca_h=no
15859 rm -f conftest.err conftest.$ac_objext \
15860 conftest$ac_exeext conftest.$ac_ext
15862 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15863 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15864 if test $ac_cv_working_alloca_h = yes; then
15866 cat >>confdefs.h <<\_ACEOF
15867 #define HAVE_ALLOCA_H 1
15868 _ACEOF
15872 echo "$as_me:$LINENO: checking for alloca" >&5
15873 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15874 if test "${ac_cv_func_alloca_works+set}" = set; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15876 else
15877 cat >conftest.$ac_ext <<_ACEOF
15878 /* confdefs.h. */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15883 #ifdef __GNUC__
15884 # define alloca __builtin_alloca
15885 #else
15886 # ifdef _MSC_VER
15887 # include <malloc.h>
15888 # define alloca _alloca
15889 # else
15890 # if HAVE_ALLOCA_H
15891 # include <alloca.h>
15892 # else
15893 # ifdef _AIX
15894 #pragma alloca
15895 # else
15896 # ifndef alloca /* predefined by HP cc +Olibcalls */
15897 char *alloca ();
15898 # endif
15899 # endif
15900 # endif
15901 # endif
15902 #endif
15905 main ()
15907 char *p = (char *) alloca (1);
15909 return 0;
15911 _ACEOF
15912 rm -f conftest.$ac_objext conftest$ac_exeext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15914 (eval $ac_link) 2>conftest.er1
15915 ac_status=$?
15916 grep -v '^ *+' conftest.er1 >conftest.err
15917 rm -f conftest.er1
15918 cat conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; } &&
15927 { ac_try='test -s conftest$ac_exeext'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15933 ac_cv_func_alloca_works=yes
15934 else
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 ac_cv_func_alloca_works=no
15940 rm -f conftest.err conftest.$ac_objext \
15941 conftest$ac_exeext conftest.$ac_ext
15943 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15944 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15946 if test $ac_cv_func_alloca_works = yes; then
15948 cat >>confdefs.h <<\_ACEOF
15949 #define HAVE_ALLOCA 1
15950 _ACEOF
15952 else
15953 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15954 # that cause trouble. Some versions do not even contain alloca or
15955 # contain a buggy version. If you still want to use their alloca,
15956 # use ar to extract alloca.o from them instead of compiling alloca.c.
15958 ALLOCA=alloca.$ac_objext
15960 cat >>confdefs.h <<\_ACEOF
15961 #define C_ALLOCA 1
15962 _ACEOF
15965 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15966 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15967 if test "${ac_cv_os_cray+set}" = set; then
15968 echo $ECHO_N "(cached) $ECHO_C" >&6
15969 else
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h. */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #if defined(CRAY) && ! defined(CRAY2)
15977 webecray
15978 #else
15979 wenotbecray
15980 #endif
15982 _ACEOF
15983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15984 $EGREP "webecray" >/dev/null 2>&1; then
15985 ac_cv_os_cray=yes
15986 else
15987 ac_cv_os_cray=no
15989 rm -f conftest*
15992 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15993 echo "${ECHO_T}$ac_cv_os_cray" >&6
15994 if test $ac_cv_os_cray = yes; then
15995 for ac_func in _getb67 GETB67 getb67; do
15996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15997 echo "$as_me:$LINENO: checking for $ac_func" >&5
15998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15999 if eval "test \"\${$as_ac_var+set}\" = set"; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 else
16002 cat >conftest.$ac_ext <<_ACEOF
16003 /* confdefs.h. */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16010 #define $ac_func innocuous_$ac_func
16012 /* System header to define __stub macros and hopefully few prototypes,
16013 which can conflict with char $ac_func (); below.
16014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16015 <limits.h> exists even on freestanding compilers. */
16017 #ifdef __STDC__
16018 # include <limits.h>
16019 #else
16020 # include <assert.h>
16021 #endif
16023 #undef $ac_func
16025 /* Override any gcc2 internal prototype to avoid an error. */
16026 #ifdef __cplusplus
16027 extern "C"
16029 #endif
16030 /* We use char because int might match the return type of a gcc2
16031 builtin and then its argument prototype would still apply. */
16032 char $ac_func ();
16033 /* The GNU C library defines this for functions which it implements
16034 to always fail with ENOSYS. Some functions are actually named
16035 something starting with __ and the normal name is an alias. */
16036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16037 choke me
16038 #else
16039 char (*f) () = $ac_func;
16040 #endif
16041 #ifdef __cplusplus
16043 #endif
16046 main ()
16048 return f != $ac_func;
16050 return 0;
16052 _ACEOF
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055 (eval $ac_link) 2>conftest.er1
16056 ac_status=$?
16057 grep -v '^ *+' conftest.er1 >conftest.err
16058 rm -f conftest.er1
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } &&
16062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; } &&
16068 { ac_try='test -s conftest$ac_exeext'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; }; then
16074 eval "$as_ac_var=yes"
16075 else
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16079 eval "$as_ac_var=no"
16081 rm -f conftest.err conftest.$ac_objext \
16082 conftest$ac_exeext conftest.$ac_ext
16084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16086 if test `eval echo '${'$as_ac_var'}'` = yes; then
16088 cat >>confdefs.h <<_ACEOF
16089 #define CRAY_STACKSEG_END $ac_func
16090 _ACEOF
16092 break
16095 done
16098 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16099 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16100 if test "${ac_cv_c_stack_direction+set}" = set; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16102 else
16103 if test "$cross_compiling" = yes; then
16104 ac_cv_c_stack_direction=0
16105 else
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* confdefs.h. */
16108 _ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16113 find_stack_direction ()
16115 static char *addr = 0;
16116 auto char dummy;
16117 if (addr == 0)
16119 addr = &dummy;
16120 return find_stack_direction ();
16122 else
16123 return (&dummy > addr) ? 1 : -1;
16127 main ()
16129 exit (find_stack_direction () < 0);
16131 _ACEOF
16132 rm -f conftest$ac_exeext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16134 (eval $ac_link) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16140 ac_status=$?
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; }; then
16143 ac_cv_c_stack_direction=1
16144 else
16145 echo "$as_me: program exited with status $ac_status" >&5
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 ( exit $ac_status )
16150 ac_cv_c_stack_direction=-1
16152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16155 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16156 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16158 cat >>confdefs.h <<_ACEOF
16159 #define STACK_DIRECTION $ac_cv_c_stack_direction
16160 _ACEOF
16227 for ac_func in \
16228 _lwp_create \
16229 _lwp_self \
16230 _pclose \
16231 _popen \
16232 _snprintf \
16233 _spawnvp \
16234 _stricmp \
16235 _strnicmp \
16236 _vsnprintf \
16237 chsize \
16238 clone \
16239 epoll_create \
16240 ffs \
16241 finite \
16242 fork \
16243 fpclass \
16244 fstatfs \
16245 fstatvfs \
16246 ftruncate \
16247 ftruncate64 \
16248 futimes \
16249 getnetbyaddr \
16250 getnetbyname \
16251 getopt_long \
16252 getpagesize \
16253 getprotobyname \
16254 getprotobynumber \
16255 getpwuid \
16256 getservbyport \
16257 gettid \
16258 gettimeofday \
16259 getuid \
16260 inet_network \
16261 lseek64 \
16262 lstat \
16263 memmove \
16264 mmap \
16265 pclose \
16266 popen \
16267 pread \
16268 pwrite \
16269 readlink \
16270 rfork \
16271 sched_yield \
16272 select \
16273 sendmsg \
16274 settimeofday \
16275 sigaltstack \
16276 snprintf \
16277 spawnvp \
16278 statfs \
16279 statvfs \
16280 strcasecmp \
16281 strerror \
16282 strncasecmp \
16283 tcgetattr \
16284 timegm \
16285 usleep \
16286 vfscanf \
16287 vsnprintf \
16288 wait4 \
16289 waitpid \
16292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16293 echo "$as_me:$LINENO: checking for $ac_func" >&5
16294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16295 if eval "test \"\${$as_ac_var+set}\" = set"; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 else
16298 cat >conftest.$ac_ext <<_ACEOF
16299 /* confdefs.h. */
16300 _ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16306 #define $ac_func innocuous_$ac_func
16308 /* System header to define __stub macros and hopefully few prototypes,
16309 which can conflict with char $ac_func (); below.
16310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16311 <limits.h> exists even on freestanding compilers. */
16313 #ifdef __STDC__
16314 # include <limits.h>
16315 #else
16316 # include <assert.h>
16317 #endif
16319 #undef $ac_func
16321 /* Override any gcc2 internal prototype to avoid an error. */
16322 #ifdef __cplusplus
16323 extern "C"
16325 #endif
16326 /* We use char because int might match the return type of a gcc2
16327 builtin and then its argument prototype would still apply. */
16328 char $ac_func ();
16329 /* The GNU C library defines this for functions which it implements
16330 to always fail with ENOSYS. Some functions are actually named
16331 something starting with __ and the normal name is an alias. */
16332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16333 choke me
16334 #else
16335 char (*f) () = $ac_func;
16336 #endif
16337 #ifdef __cplusplus
16339 #endif
16342 main ()
16344 return f != $ac_func;
16346 return 0;
16348 _ACEOF
16349 rm -f conftest.$ac_objext conftest$ac_exeext
16350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16351 (eval $ac_link) 2>conftest.er1
16352 ac_status=$?
16353 grep -v '^ *+' conftest.er1 >conftest.err
16354 rm -f conftest.er1
16355 cat conftest.err >&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } &&
16358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; } &&
16364 { ac_try='test -s conftest$ac_exeext'
16365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366 (eval $ac_try) 2>&5
16367 ac_status=$?
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; }; then
16370 eval "$as_ac_var=yes"
16371 else
16372 echo "$as_me: failed program was:" >&5
16373 sed 's/^/| /' conftest.$ac_ext >&5
16375 eval "$as_ac_var=no"
16377 rm -f conftest.err conftest.$ac_objext \
16378 conftest$ac_exeext conftest.$ac_ext
16380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16382 if test `eval echo '${'$as_ac_var'}'` = yes; then
16383 cat >>confdefs.h <<_ACEOF
16384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16385 _ACEOF
16388 done
16482 for ac_header in \
16483 arpa/inet.h \
16484 arpa/nameser.h \
16485 cups/cups.h \
16486 direct.h \
16487 elf.h \
16488 float.h \
16489 fontconfig/fontconfig.h \
16490 getopt.h \
16491 gif_lib.h \
16492 ieeefp.h \
16493 io.h \
16494 jack/jack.h \
16495 jpeglib.h \
16496 lcms.h \
16497 libio.h \
16498 libutil.h \
16499 link.h \
16500 linux/cdrom.h \
16501 linux/compiler.h \
16502 linux/hdreg.h \
16503 linux/input.h \
16504 linux/ioctl.h \
16505 linux/joystick.h \
16506 linux/major.h \
16507 linux/param.h \
16508 linux/serial.h \
16509 linux/ucdrom.h \
16510 machine/cpu.h \
16511 mntent.h \
16512 netdb.h \
16513 netinet/in.h \
16514 netinet/in_systm.h \
16515 netinet/tcp.h \
16516 netinet/tcp_fsm.h \
16517 openssl/ssl.h \
16518 process.h \
16519 pthread.h \
16520 pty.h \
16521 pwd.h \
16522 regex.h \
16523 sched.h \
16524 scsi/sg.h \
16525 scsi/scsi.h \
16526 scsi/scsi_ioctl.h \
16527 socket.h \
16528 stdint.h \
16529 strings.h \
16530 sys/cdio.h \
16531 sys/elf32.h \
16532 sys/errno.h \
16533 sys/epoll.h \
16534 sys/exec_elf.h \
16535 sys/file.h \
16536 sys/filio.h \
16537 sys/inttypes.h \
16538 sys/ioctl.h \
16539 sys/ipc.h \
16540 sys/link.h \
16541 sys/lwp.h \
16542 sys/mman.h \
16543 sys/modem.h \
16544 sys/msg.h \
16545 sys/param.h \
16546 sys/poll.h \
16547 sys/ptrace.h \
16548 sys/reg.h \
16549 sys/scsiio.h \
16550 sys/shm.h \
16551 sys/signal.h \
16552 sys/socket.h \
16553 sys/sockio.h \
16554 sys/statfs.h \
16555 sys/statvfs.h \
16556 sys/strtio.h \
16557 sys/syscall.h \
16558 sys/sysctl.h \
16559 sys/time.h \
16560 sys/times.h \
16561 sys/uio.h \
16562 sys/un.h \
16563 sys/v86.h \
16564 sys/v86intr.h \
16565 sys/vfs.h \
16566 sys/vm86.h \
16567 sys/wait.h \
16568 syscall.h \
16569 termios.h \
16570 unistd.h \
16571 utime.h \
16572 valgrind/memcheck.h
16575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16577 echo "$as_me:$LINENO: checking for $ac_header" >&5
16578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16584 else
16585 # Is the header compilable?
16586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16588 cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h. */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 $ac_includes_default
16595 #include <$ac_header>
16596 _ACEOF
16597 rm -f conftest.$ac_objext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16599 (eval $ac_compile) 2>conftest.er1
16600 ac_status=$?
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; } &&
16612 { ac_try='test -s conftest.$ac_objext'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_header_compiler=yes
16619 else
16620 echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16623 ac_header_compiler=no
16625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16627 echo "${ECHO_T}$ac_header_compiler" >&6
16629 # Is the header present?
16630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16632 cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h. */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16638 #include <$ac_header>
16639 _ACEOF
16640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16642 ac_status=$?
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } >/dev/null; then
16648 if test -s conftest.err; then
16649 ac_cpp_err=$ac_c_preproc_warn_flag
16650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16651 else
16652 ac_cpp_err=
16654 else
16655 ac_cpp_err=yes
16657 if test -z "$ac_cpp_err"; then
16658 ac_header_preproc=yes
16659 else
16660 echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16663 ac_header_preproc=no
16665 rm -f conftest.err conftest.$ac_ext
16666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16667 echo "${ECHO_T}$ac_header_preproc" >&6
16669 # So? What about this header?
16670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16671 yes:no: )
16672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16676 ac_header_preproc=yes
16678 no:yes:* )
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16686 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16692 cat <<\_ASBOX
16693 ## ------------------------------------ ##
16694 ## Report this to wine-devel@winehq.org ##
16695 ## ------------------------------------ ##
16696 _ASBOX
16698 sed "s/^/$as_me: WARNING: /" >&2
16700 esac
16701 echo "$as_me:$LINENO: checking for $ac_header" >&5
16702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 else
16706 eval "$as_ac_Header=\$ac_header_preproc"
16708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16713 cat >>confdefs.h <<_ACEOF
16714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16715 _ACEOF
16719 done
16721 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16722 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16723 if test "${ac_cv_header_stat_broken+set}" = set; then
16724 echo $ECHO_N "(cached) $ECHO_C" >&6
16725 else
16726 cat >conftest.$ac_ext <<_ACEOF
16727 /* confdefs.h. */
16728 _ACEOF
16729 cat confdefs.h >>conftest.$ac_ext
16730 cat >>conftest.$ac_ext <<_ACEOF
16731 /* end confdefs.h. */
16732 #include <sys/types.h>
16733 #include <sys/stat.h>
16735 #if defined(S_ISBLK) && defined(S_IFDIR)
16736 # if S_ISBLK (S_IFDIR)
16737 You lose.
16738 # endif
16739 #endif
16741 #if defined(S_ISBLK) && defined(S_IFCHR)
16742 # if S_ISBLK (S_IFCHR)
16743 You lose.
16744 # endif
16745 #endif
16747 #if defined(S_ISLNK) && defined(S_IFREG)
16748 # if S_ISLNK (S_IFREG)
16749 You lose.
16750 # endif
16751 #endif
16753 #if defined(S_ISSOCK) && defined(S_IFREG)
16754 # if S_ISSOCK (S_IFREG)
16755 You lose.
16756 # endif
16757 #endif
16759 _ACEOF
16760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16761 $EGREP "You lose" >/dev/null 2>&1; then
16762 ac_cv_header_stat_broken=yes
16763 else
16764 ac_cv_header_stat_broken=no
16766 rm -f conftest*
16769 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16770 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16771 if test $ac_cv_header_stat_broken = yes; then
16773 cat >>confdefs.h <<\_ACEOF
16774 #define STAT_MACROS_BROKEN 1
16775 _ACEOF
16783 for ac_header in sys/mount.h sys/user.h
16785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16786 echo "$as_me:$LINENO: checking for $ac_header" >&5
16787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16790 else
16791 cat >conftest.$ac_ext <<_ACEOF
16792 /* confdefs.h. */
16793 _ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h. */
16797 #include <sys/types.h>
16798 #if HAVE_SYS_PARAM_H
16799 # include <sys/param.h>
16800 #endif
16802 #include <$ac_header>
16803 _ACEOF
16804 rm -f conftest.$ac_objext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16806 (eval $ac_compile) 2>conftest.er1
16807 ac_status=$?
16808 grep -v '^ *+' conftest.er1 >conftest.err
16809 rm -f conftest.er1
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest.$ac_objext'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
16825 eval "$as_ac_Header=yes"
16826 else
16827 echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16830 eval "$as_ac_Header=no"
16832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16837 cat >>confdefs.h <<_ACEOF
16838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16839 _ACEOF
16843 done
16851 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16854 echo "$as_me:$LINENO: checking for $ac_header" >&5
16855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16859 cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h. */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #include <sys/types.h>
16866 #if HAVE_SYS_SOCKET_H
16867 # include <sys/socket.h>
16868 #endif
16870 #include <$ac_header>
16871 _ACEOF
16872 rm -f conftest.$ac_objext
16873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16874 (eval $ac_compile) 2>conftest.er1
16875 ac_status=$?
16876 grep -v '^ *+' conftest.er1 >conftest.err
16877 rm -f conftest.er1
16878 cat conftest.err >&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } &&
16881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; } &&
16887 { ac_try='test -s conftest.$ac_objext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 eval "$as_ac_Header=yes"
16894 else
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 eval "$as_ac_Header=no"
16900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16905 cat >>confdefs.h <<_ACEOF
16906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16907 _ACEOF
16911 done
16915 for ac_header in resolv.h
16917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16918 echo "$as_me:$LINENO: checking for $ac_header" >&5
16919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16921 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 else
16923 cat >conftest.$ac_ext <<_ACEOF
16924 /* confdefs.h. */
16925 _ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16929 #include <sys/types.h>
16930 #if HAVE_SYS_SOCKET_H
16931 # include <sys/socket.h>
16932 #endif
16933 #if HAVE_NETINET_IN_H
16934 # include <netinet/in.h>
16935 #endif
16936 #if HAVE_ARPA_NAMESER_H
16937 # include <arpa/nameser.h>
16938 #endif
16940 #include <$ac_header>
16941 _ACEOF
16942 rm -f conftest.$ac_objext
16943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16944 (eval $ac_compile) 2>conftest.er1
16945 ac_status=$?
16946 grep -v '^ *+' conftest.er1 >conftest.err
16947 rm -f conftest.er1
16948 cat conftest.err >&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } &&
16951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } &&
16957 { ac_try='test -s conftest.$ac_objext'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 eval "$as_ac_Header=yes"
16964 else
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 eval "$as_ac_Header=no"
16970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16975 cat >>confdefs.h <<_ACEOF
16976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16977 _ACEOF
16981 done
16985 for ac_header in netinet/ip.h
16987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16988 echo "$as_me:$LINENO: checking for $ac_header" >&5
16989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 else
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h. */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 #include <sys/types.h>
17000 #if HAVE_SYS_SOCKET_H
17001 # include <sys/socket.h>
17002 #endif
17003 #if HAVE_NETINET_IN_SYSTM_H
17004 # include <netinet/in_systm.h>
17005 #endif
17007 #include <$ac_header>
17008 _ACEOF
17009 rm -f conftest.$ac_objext
17010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17011 (eval $ac_compile) 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } &&
17018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } &&
17024 { ac_try='test -s conftest.$ac_objext'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030 eval "$as_ac_Header=yes"
17031 else
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17035 eval "$as_ac_Header=no"
17037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17042 cat >>confdefs.h <<_ACEOF
17043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17044 _ACEOF
17048 done
17052 for ac_header in ucontext.h
17054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17055 echo "$as_me:$LINENO: checking for $ac_header" >&5
17056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060 cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h. */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 #include <signal.h>
17068 #include <$ac_header>
17069 _ACEOF
17070 rm -f conftest.$ac_objext
17071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17072 (eval $ac_compile) 2>conftest.er1
17073 ac_status=$?
17074 grep -v '^ *+' conftest.er1 >conftest.err
17075 rm -f conftest.er1
17076 cat conftest.err >&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
17079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; } &&
17085 { ac_try='test -s conftest.$ac_objext'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; }; then
17091 eval "$as_ac_Header=yes"
17092 else
17093 echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17096 eval "$as_ac_Header=no"
17098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17103 cat >>confdefs.h <<_ACEOF
17104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17105 _ACEOF
17109 done
17113 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
17114 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
17115 if test "${ac_cv_c_ipx_gnu+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117 else
17118 cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h. */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 #include <sys/types.h>
17125 #ifdef HAVE_SYS_SOCKET_H
17126 # include <sys/socket.h>
17127 #endif
17128 #include <netipx/ipx.h>
17130 main ()
17132 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17134 return 0;
17136 _ACEOF
17137 rm -f conftest.$ac_objext
17138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17139 (eval $ac_compile) 2>conftest.er1
17140 ac_status=$?
17141 grep -v '^ *+' conftest.er1 >conftest.err
17142 rm -f conftest.er1
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
17146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest.$ac_objext'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 ac_cv_c_ipx_gnu="yes"
17159 else
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 ac_cv_c_ipx_gnu="no"
17165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17168 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17169 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17170 if test "$ac_cv_c_ipx_gnu" = "yes"
17171 then
17173 cat >>confdefs.h <<\_ACEOF
17174 #define HAVE_IPX_GNU 1
17175 _ACEOF
17179 if test "$ac_cv_c_ipx_gnu" = "no"
17180 then
17181 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17182 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17183 if test "${ac_cv_c_ipx_linux+set}" = set; then
17184 echo $ECHO_N "(cached) $ECHO_C" >&6
17185 else
17186 cat >conftest.$ac_ext <<_ACEOF
17187 /* confdefs.h. */
17188 _ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17192 #include <sys/types.h>
17193 #ifdef HAVE_SYS_SOCKET_H
17194 # include <sys/socket.h>
17195 #endif
17196 #include <asm/types.h>
17197 #include <linux/ipx.h>
17199 main ()
17201 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17203 return 0;
17205 _ACEOF
17206 rm -f conftest.$ac_objext
17207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17208 (eval $ac_compile) 2>conftest.er1
17209 ac_status=$?
17210 grep -v '^ *+' conftest.er1 >conftest.err
17211 rm -f conftest.er1
17212 cat conftest.err >&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } &&
17215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217 (eval $ac_try) 2>&5
17218 ac_status=$?
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; } &&
17221 { ac_try='test -s conftest.$ac_objext'
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17227 ac_cv_c_ipx_linux="yes"
17228 else
17229 echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17232 ac_cv_c_ipx_linux="no"
17234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17237 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17238 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17239 if test "$ac_cv_c_ipx_linux" = "yes"
17240 then
17242 cat >>confdefs.h <<\_ACEOF
17243 #define HAVE_IPX_LINUX 1
17244 _ACEOF
17250 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17251 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17252 if test "${ac_cv_c_const+set}" = set; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17254 else
17255 cat >conftest.$ac_ext <<_ACEOF
17256 /* confdefs.h. */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17263 main ()
17265 /* FIXME: Include the comments suggested by Paul. */
17266 #ifndef __cplusplus
17267 /* Ultrix mips cc rejects this. */
17268 typedef int charset[2];
17269 const charset x;
17270 /* SunOS 4.1.1 cc rejects this. */
17271 char const *const *ccp;
17272 char **p;
17273 /* NEC SVR4.0.2 mips cc rejects this. */
17274 struct point {int x, y;};
17275 static struct point const zero = {0,0};
17276 /* AIX XL C 1.02.0.0 rejects this.
17277 It does not let you subtract one const X* pointer from another in
17278 an arm of an if-expression whose if-part is not a constant
17279 expression */
17280 const char *g = "string";
17281 ccp = &g + (g ? g-g : 0);
17282 /* HPUX 7.0 cc rejects these. */
17283 ++ccp;
17284 p = (char**) ccp;
17285 ccp = (char const *const *) p;
17286 { /* SCO 3.2v4 cc rejects this. */
17287 char *t;
17288 char const *s = 0 ? (char *) 0 : (char const *) 0;
17290 *t++ = 0;
17292 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17293 int x[] = {25, 17};
17294 const int *foo = &x[0];
17295 ++foo;
17297 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17298 typedef const int *iptr;
17299 iptr p = 0;
17300 ++p;
17302 { /* AIX XL C 1.02.0.0 rejects this saying
17303 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17304 struct s { int j; const int *ap[3]; };
17305 struct s *b; b->j = 5;
17307 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17308 const int foo = 10;
17310 #endif
17313 return 0;
17315 _ACEOF
17316 rm -f conftest.$ac_objext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17318 (eval $ac_compile) 2>conftest.er1
17319 ac_status=$?
17320 grep -v '^ *+' conftest.er1 >conftest.err
17321 rm -f conftest.er1
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17328 ac_status=$?
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try='test -s conftest.$ac_objext'
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 ac_cv_c_const=yes
17338 else
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17342 ac_cv_c_const=no
17344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17346 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17347 echo "${ECHO_T}$ac_cv_c_const" >&6
17348 if test $ac_cv_c_const = no; then
17350 cat >>confdefs.h <<\_ACEOF
17351 #define const
17352 _ACEOF
17356 echo "$as_me:$LINENO: checking for inline" >&5
17357 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17358 if test "${ac_cv_c_inline+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17361 ac_cv_c_inline=no
17362 for ac_kw in inline __inline__ __inline; do
17363 cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h. */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 #ifndef __cplusplus
17370 typedef int foo_t;
17371 static $ac_kw foo_t static_foo () {return 0; }
17372 $ac_kw foo_t foo () {return 0; }
17373 #endif
17375 _ACEOF
17376 rm -f conftest.$ac_objext
17377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17378 (eval $ac_compile) 2>conftest.er1
17379 ac_status=$?
17380 grep -v '^ *+' conftest.er1 >conftest.err
17381 rm -f conftest.er1
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } &&
17385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; } &&
17391 { ac_try='test -s conftest.$ac_objext'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17394 ac_status=$?
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397 ac_cv_c_inline=$ac_kw; break
17398 else
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17404 done
17407 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17408 echo "${ECHO_T}$ac_cv_c_inline" >&6
17411 case $ac_cv_c_inline in
17412 inline | yes) ;;
17414 case $ac_cv_c_inline in
17415 no) ac_val=;;
17416 *) ac_val=$ac_cv_c_inline;;
17417 esac
17418 cat >>confdefs.h <<_ACEOF
17419 #ifndef __cplusplus
17420 #define inline $ac_val
17421 #endif
17422 _ACEOF
17424 esac
17426 echo "$as_me:$LINENO: checking for mode_t" >&5
17427 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17428 if test "${ac_cv_type_mode_t+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431 cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h. */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 $ac_includes_default
17439 main ()
17441 if ((mode_t *) 0)
17442 return 0;
17443 if (sizeof (mode_t))
17444 return 0;
17446 return 0;
17448 _ACEOF
17449 rm -f conftest.$ac_objext
17450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17451 (eval $ac_compile) 2>conftest.er1
17452 ac_status=$?
17453 grep -v '^ *+' conftest.er1 >conftest.err
17454 rm -f conftest.er1
17455 cat conftest.err >&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
17458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest.$ac_objext'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 ac_cv_type_mode_t=yes
17471 else
17472 echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17475 ac_cv_type_mode_t=no
17477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17479 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17480 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17481 if test $ac_cv_type_mode_t = yes; then
17483 cat >>confdefs.h <<_ACEOF
17484 #define HAVE_MODE_T 1
17485 _ACEOF
17489 echo "$as_me:$LINENO: checking for off_t" >&5
17490 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17491 if test "${ac_cv_type_off_t+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 else
17494 cat >conftest.$ac_ext <<_ACEOF
17495 /* confdefs.h. */
17496 _ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500 $ac_includes_default
17502 main ()
17504 if ((off_t *) 0)
17505 return 0;
17506 if (sizeof (off_t))
17507 return 0;
17509 return 0;
17511 _ACEOF
17512 rm -f conftest.$ac_objext
17513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17514 (eval $ac_compile) 2>conftest.er1
17515 ac_status=$?
17516 grep -v '^ *+' conftest.er1 >conftest.err
17517 rm -f conftest.er1
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } &&
17521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; } &&
17527 { ac_try='test -s conftest.$ac_objext'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 ac_cv_type_off_t=yes
17534 else
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 ac_cv_type_off_t=no
17540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17542 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17543 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17544 if test $ac_cv_type_off_t = yes; then
17546 cat >>confdefs.h <<_ACEOF
17547 #define HAVE_OFF_T 1
17548 _ACEOF
17552 echo "$as_me:$LINENO: checking for pid_t" >&5
17553 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17554 if test "${ac_cv_type_pid_t+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557 cat >conftest.$ac_ext <<_ACEOF
17558 /* confdefs.h. */
17559 _ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h. */
17563 $ac_includes_default
17565 main ()
17567 if ((pid_t *) 0)
17568 return 0;
17569 if (sizeof (pid_t))
17570 return 0;
17572 return 0;
17574 _ACEOF
17575 rm -f conftest.$ac_objext
17576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17577 (eval $ac_compile) 2>conftest.er1
17578 ac_status=$?
17579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest.$ac_objext'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ac_cv_type_pid_t=yes
17597 else
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 ac_cv_type_pid_t=no
17603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17605 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17606 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17607 if test $ac_cv_type_pid_t = yes; then
17609 cat >>confdefs.h <<_ACEOF
17610 #define HAVE_PID_T 1
17611 _ACEOF
17615 echo "$as_me:$LINENO: checking for size_t" >&5
17616 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17617 if test "${ac_cv_type_size_t+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17619 else
17620 cat >conftest.$ac_ext <<_ACEOF
17621 /* confdefs.h. */
17622 _ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h. */
17626 $ac_includes_default
17628 main ()
17630 if ((size_t *) 0)
17631 return 0;
17632 if (sizeof (size_t))
17633 return 0;
17635 return 0;
17637 _ACEOF
17638 rm -f conftest.$ac_objext
17639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17640 (eval $ac_compile) 2>conftest.er1
17641 ac_status=$?
17642 grep -v '^ *+' conftest.er1 >conftest.err
17643 rm -f conftest.er1
17644 cat conftest.err >&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
17647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest.$ac_objext'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 ac_cv_type_size_t=yes
17660 else
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 ac_cv_type_size_t=no
17666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17668 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17669 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17670 if test $ac_cv_type_size_t = yes; then
17672 cat >>confdefs.h <<_ACEOF
17673 #define HAVE_SIZE_T 1
17674 _ACEOF
17678 echo "$as_me:$LINENO: checking for ssize_t" >&5
17679 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17680 if test "${ac_cv_type_ssize_t+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683 cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h. */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17691 main ()
17693 if ((ssize_t *) 0)
17694 return 0;
17695 if (sizeof (ssize_t))
17696 return 0;
17698 return 0;
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17703 (eval $ac_compile) 2>conftest.er1
17704 ac_status=$?
17705 grep -v '^ *+' conftest.er1 >conftest.err
17706 rm -f conftest.er1
17707 cat conftest.err >&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
17710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; } &&
17716 { ac_try='test -s conftest.$ac_objext'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722 ac_cv_type_ssize_t=yes
17723 else
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_cv_type_ssize_t=no
17729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17731 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17732 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17733 if test $ac_cv_type_ssize_t = yes; then
17735 cat >>confdefs.h <<_ACEOF
17736 #define HAVE_SSIZE_T 1
17737 _ACEOF
17741 echo "$as_me:$LINENO: checking for long long" >&5
17742 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17743 if test "${ac_cv_type_long_long+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17745 else
17746 cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h. */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 $ac_includes_default
17754 main ()
17756 if ((long long *) 0)
17757 return 0;
17758 if (sizeof (long long))
17759 return 0;
17761 return 0;
17763 _ACEOF
17764 rm -f conftest.$ac_objext
17765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17766 (eval $ac_compile) 2>conftest.er1
17767 ac_status=$?
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775 (eval $ac_try) 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; } &&
17779 { ac_try='test -s conftest.$ac_objext'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17785 ac_cv_type_long_long=yes
17786 else
17787 echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17790 ac_cv_type_long_long=no
17792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17794 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17795 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17796 if test $ac_cv_type_long_long = yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define HAVE_LONG_LONG 1
17800 _ACEOF
17804 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17805 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17806 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809 cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h. */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 $ac_includes_default
17817 main ()
17819 if ((fsblkcnt_t *) 0)
17820 return 0;
17821 if (sizeof (fsblkcnt_t))
17822 return 0;
17824 return 0;
17826 _ACEOF
17827 rm -f conftest.$ac_objext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17829 (eval $ac_compile) 2>conftest.er1
17830 ac_status=$?
17831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -f conftest.er1
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
17836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; } &&
17842 { ac_try='test -s conftest.$ac_objext'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_cv_type_fsblkcnt_t=yes
17849 else
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17853 ac_cv_type_fsblkcnt_t=no
17855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17857 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17858 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17859 if test $ac_cv_type_fsblkcnt_t = yes; then
17861 cat >>confdefs.h <<_ACEOF
17862 #define HAVE_FSBLKCNT_T 1
17863 _ACEOF
17867 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17868 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17869 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 else
17872 cat >conftest.$ac_ext <<_ACEOF
17873 /* confdefs.h. */
17874 _ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17878 $ac_includes_default
17880 main ()
17882 if ((fsfilcnt_t *) 0)
17883 return 0;
17884 if (sizeof (fsfilcnt_t))
17885 return 0;
17887 return 0;
17889 _ACEOF
17890 rm -f conftest.$ac_objext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17892 (eval $ac_compile) 2>conftest.er1
17893 ac_status=$?
17894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
17899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; } &&
17905 { ac_try='test -s conftest.$ac_objext'
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17908 ac_status=$?
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; }; then
17911 ac_cv_type_fsfilcnt_t=yes
17912 else
17913 echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17916 ac_cv_type_fsfilcnt_t=no
17918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17920 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17921 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17922 if test $ac_cv_type_fsfilcnt_t = yes; then
17924 cat >>confdefs.h <<_ACEOF
17925 #define HAVE_FSFILCNT_T 1
17926 _ACEOF
17932 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17933 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17934 if test "${wine_cv_linux_input_h+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 else
17937 cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h. */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17944 #include <linux/input.h>
17947 main ()
17950 int foo = EVIOCGBIT(EV_ABS,42);
17951 int bar = BTN_PINKIE;
17952 int fortytwo = 42;
17955 return 0;
17957 _ACEOF
17958 rm -f conftest.$ac_objext
17959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17960 (eval $ac_compile) 2>conftest.er1
17961 ac_status=$?
17962 grep -v '^ *+' conftest.er1 >conftest.err
17963 rm -f conftest.er1
17964 cat conftest.err >&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } &&
17967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; } &&
17973 { ac_try='test -s conftest.$ac_objext'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; }; then
17979 wine_cv_linux_input_h=yes
17980 else
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17984 wine_cv_linux_input_h=no
17986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17989 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17990 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17991 if test "$wine_cv_linux_input_h" = "yes"
17992 then
17994 cat >>confdefs.h <<\_ACEOF
17995 #define HAVE_CORRECT_LINUXINPUT_H 1
17996 _ACEOF
18001 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
18002 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
18003 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 else
18006 cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h. */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18013 #include <netdb.h>
18016 main ()
18019 char *name=NULL;
18020 struct hostent he;
18021 struct hostent *result;
18022 char *buf=NULL;
18023 int bufsize=0;
18024 int res,errnr;
18025 char *addr=NULL;
18026 int addrlen=0;
18027 int addrtype=0;
18028 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
18029 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
18032 return 0;
18034 _ACEOF
18035 rm -f conftest.$ac_objext conftest$ac_exeext
18036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18037 (eval $ac_link) 2>conftest.er1
18038 ac_status=$?
18039 grep -v '^ *+' conftest.er1 >conftest.err
18040 rm -f conftest.er1
18041 cat conftest.err >&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } &&
18044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest$ac_exeext'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18053 ac_status=$?
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 wine_cv_linux_gethostbyname_r_6=yes
18057 else
18058 echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18061 wine_cv_linux_gethostbyname_r_6=no
18064 rm -f conftest.err conftest.$ac_objext \
18065 conftest$ac_exeext conftest.$ac_ext
18068 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
18069 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
18070 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
18071 then
18073 cat >>confdefs.h <<\_ACEOF
18074 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
18075 _ACEOF
18079 if test "$ac_cv_header_linux_joystick_h" = "yes"
18080 then
18081 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
18082 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
18083 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18085 else
18086 cat >conftest.$ac_ext <<_ACEOF
18087 /* confdefs.h. */
18088 _ACEOF
18089 cat confdefs.h >>conftest.$ac_ext
18090 cat >>conftest.$ac_ext <<_ACEOF
18091 /* end confdefs.h. */
18093 #include <sys/ioctl.h>
18094 #include <linux/joystick.h>
18096 struct js_event blub;
18097 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18098 #error "no 2.2 header"
18099 #endif
18102 main ()
18104 /*empty*/
18106 return 0;
18108 _ACEOF
18109 rm -f conftest.$ac_objext
18110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18111 (eval $ac_compile) 2>conftest.er1
18112 ac_status=$?
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; } &&
18124 { ac_try='test -s conftest.$ac_objext'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 wine_cv_linux_joystick_22_api=yes
18131 else
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 wine_cv_linux_joystick_22_api=no
18137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18140 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18141 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
18142 if test "$wine_cv_linux_joystick_22_api" = "yes"
18143 then
18145 cat >>confdefs.h <<\_ACEOF
18146 #define HAVE_LINUX_22_JOYSTICK_API 1
18147 _ACEOF
18153 if test "$ac_cv_header_sys_vfs_h" = "yes"
18154 then
18155 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
18156 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18157 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18159 else
18160 cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h. */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18167 #include <sys/types.h>
18168 #ifdef HAVE_SYS_PARAM_H
18169 # include <sys/param.h>
18170 #endif
18171 #include <sys/vfs.h>
18174 main ()
18177 struct statfs stfs;
18179 memset(&stfs,0,sizeof(stfs));
18182 return 0;
18184 _ACEOF
18185 rm -f conftest.$ac_objext
18186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187 (eval $ac_compile) 2>conftest.er1
18188 ac_status=$?
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -f conftest.er1
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
18194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196 (eval $ac_try) 2>&5
18197 ac_status=$?
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } &&
18200 { ac_try='test -s conftest.$ac_objext'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 wine_cv_sys_vfs_has_statfs=yes
18207 else
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18211 wine_cv_sys_vfs_has_statfs=no
18214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18217 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18218 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18219 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18220 then
18222 cat >>confdefs.h <<\_ACEOF
18223 #define STATFS_DEFINED_BY_SYS_VFS 1
18224 _ACEOF
18229 if test "$ac_cv_header_sys_statfs_h" = "yes"
18230 then
18231 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18232 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18233 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236 cat >conftest.$ac_ext <<_ACEOF
18237 /* confdefs.h. */
18238 _ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18243 #include <sys/types.h>
18244 #ifdef HAVE_SYS_PARAM_H
18245 # include <sys/param.h>
18246 #endif
18247 #include <sys/statfs.h>
18250 main ()
18253 struct statfs stfs;
18256 return 0;
18258 _ACEOF
18259 rm -f conftest.$ac_objext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18261 (eval $ac_compile) 2>conftest.er1
18262 ac_status=$?
18263 grep -v '^ *+' conftest.er1 >conftest.err
18264 rm -f conftest.er1
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; } &&
18274 { ac_try='test -s conftest.$ac_objext'
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; }; then
18280 wine_cv_sys_statfs_has_statfs=yes
18281 else
18282 echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18285 wine_cv_sys_statfs_has_statfs=no
18288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18291 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18292 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18293 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18294 then
18296 cat >>confdefs.h <<\_ACEOF
18297 #define STATFS_DEFINED_BY_SYS_STATFS 1
18298 _ACEOF
18303 if test "$ac_cv_header_sys_mount_h" = "yes"
18304 then
18305 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18306 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18307 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 else
18310 cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h. */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18317 #include <sys/types.h>
18318 #ifdef HAVE_SYS_PARAM_H
18319 # include <sys/param.h>
18320 #endif
18321 #include <sys/mount.h>
18324 main ()
18327 struct statfs stfs;
18330 return 0;
18332 _ACEOF
18333 rm -f conftest.$ac_objext
18334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18335 (eval $ac_compile) 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } &&
18348 { ac_try='test -s conftest.$ac_objext'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; }; then
18354 wine_cv_sys_mount_has_statfs=yes
18355 else
18356 echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18359 wine_cv_sys_mount_has_statfs=no
18362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18365 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18366 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18367 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18368 then
18370 cat >>confdefs.h <<\_ACEOF
18371 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18372 _ACEOF
18378 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18379 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18380 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383 cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h. */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18389 #include <sys/types.h>
18390 #ifdef HAVE_SYS_PARAM_H
18391 # include <sys/param.h>
18392 #endif
18393 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18394 # include <sys/mount.h>
18395 #else
18396 # ifdef STATFS_DEFINED_BY_SYS_VFS
18397 # include <sys/vfs.h>
18398 # else
18399 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18400 # include <sys/statfs.h>
18401 # endif
18402 # endif
18403 #endif
18406 main ()
18408 static struct statfs ac_aggr;
18409 if (ac_aggr.f_bfree)
18410 return 0;
18412 return 0;
18414 _ACEOF
18415 rm -f conftest.$ac_objext
18416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18417 (eval $ac_compile) 2>conftest.er1
18418 ac_status=$?
18419 grep -v '^ *+' conftest.er1 >conftest.err
18420 rm -f conftest.er1
18421 cat conftest.err >&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } &&
18424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; } &&
18430 { ac_try='test -s conftest.$ac_objext'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; }; then
18436 ac_cv_member_struct_statfs_f_bfree=yes
18437 else
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18441 cat >conftest.$ac_ext <<_ACEOF
18442 /* confdefs.h. */
18443 _ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18447 #include <sys/types.h>
18448 #ifdef HAVE_SYS_PARAM_H
18449 # include <sys/param.h>
18450 #endif
18451 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18452 # include <sys/mount.h>
18453 #else
18454 # ifdef STATFS_DEFINED_BY_SYS_VFS
18455 # include <sys/vfs.h>
18456 # else
18457 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18458 # include <sys/statfs.h>
18459 # endif
18460 # endif
18461 #endif
18464 main ()
18466 static struct statfs ac_aggr;
18467 if (sizeof ac_aggr.f_bfree)
18468 return 0;
18470 return 0;
18472 _ACEOF
18473 rm -f conftest.$ac_objext
18474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18475 (eval $ac_compile) 2>conftest.er1
18476 ac_status=$?
18477 grep -v '^ *+' conftest.er1 >conftest.err
18478 rm -f conftest.er1
18479 cat conftest.err >&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } &&
18482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; } &&
18488 { ac_try='test -s conftest.$ac_objext'
18489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490 (eval $ac_try) 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; }; then
18494 ac_cv_member_struct_statfs_f_bfree=yes
18495 else
18496 echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18499 ac_cv_member_struct_statfs_f_bfree=no
18501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18505 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18506 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18507 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18509 cat >>confdefs.h <<_ACEOF
18510 #define HAVE_STRUCT_STATFS_F_BFREE 1
18511 _ACEOF
18515 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18516 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18517 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18519 else
18520 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h. */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18526 #include <sys/types.h>
18527 #ifdef HAVE_SYS_PARAM_H
18528 # include <sys/param.h>
18529 #endif
18530 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18531 # include <sys/mount.h>
18532 #else
18533 # ifdef STATFS_DEFINED_BY_SYS_VFS
18534 # include <sys/vfs.h>
18535 # else
18536 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18537 # include <sys/statfs.h>
18538 # endif
18539 # endif
18540 #endif
18543 main ()
18545 static struct statfs ac_aggr;
18546 if (ac_aggr.f_bavail)
18547 return 0;
18549 return 0;
18551 _ACEOF
18552 rm -f conftest.$ac_objext
18553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18554 (eval $ac_compile) 2>conftest.er1
18555 ac_status=$?
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
18561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; } &&
18567 { ac_try='test -s conftest.$ac_objext'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18570 ac_status=$?
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573 ac_cv_member_struct_statfs_f_bavail=yes
18574 else
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18578 cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h. */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584 #include <sys/types.h>
18585 #ifdef HAVE_SYS_PARAM_H
18586 # include <sys/param.h>
18587 #endif
18588 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18589 # include <sys/mount.h>
18590 #else
18591 # ifdef STATFS_DEFINED_BY_SYS_VFS
18592 # include <sys/vfs.h>
18593 # else
18594 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18595 # include <sys/statfs.h>
18596 # endif
18597 # endif
18598 #endif
18601 main ()
18603 static struct statfs ac_aggr;
18604 if (sizeof ac_aggr.f_bavail)
18605 return 0;
18607 return 0;
18609 _ACEOF
18610 rm -f conftest.$ac_objext
18611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18612 (eval $ac_compile) 2>conftest.er1
18613 ac_status=$?
18614 grep -v '^ *+' conftest.er1 >conftest.err
18615 rm -f conftest.er1
18616 cat conftest.err >&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } &&
18619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest.$ac_objext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_cv_member_struct_statfs_f_bavail=yes
18632 else
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 ac_cv_member_struct_statfs_f_bavail=no
18638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18642 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18643 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18644 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18646 cat >>confdefs.h <<_ACEOF
18647 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18648 _ACEOF
18652 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18653 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18654 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h. */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663 #include <sys/types.h>
18664 #ifdef HAVE_SYS_PARAM_H
18665 # include <sys/param.h>
18666 #endif
18667 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18668 # include <sys/mount.h>
18669 #else
18670 # ifdef STATFS_DEFINED_BY_SYS_VFS
18671 # include <sys/vfs.h>
18672 # else
18673 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18674 # include <sys/statfs.h>
18675 # endif
18676 # endif
18677 #endif
18680 main ()
18682 static struct statfs ac_aggr;
18683 if (ac_aggr.f_frsize)
18684 return 0;
18686 return 0;
18688 _ACEOF
18689 rm -f conftest.$ac_objext
18690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18691 (eval $ac_compile) 2>conftest.er1
18692 ac_status=$?
18693 grep -v '^ *+' conftest.er1 >conftest.err
18694 rm -f conftest.er1
18695 cat conftest.err >&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } &&
18698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try='test -s conftest.$ac_objext'
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 ac_cv_member_struct_statfs_f_frsize=yes
18711 else
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18715 cat >conftest.$ac_ext <<_ACEOF
18716 /* confdefs.h. */
18717 _ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18721 #include <sys/types.h>
18722 #ifdef HAVE_SYS_PARAM_H
18723 # include <sys/param.h>
18724 #endif
18725 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18726 # include <sys/mount.h>
18727 #else
18728 # ifdef STATFS_DEFINED_BY_SYS_VFS
18729 # include <sys/vfs.h>
18730 # else
18731 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18732 # include <sys/statfs.h>
18733 # endif
18734 # endif
18735 #endif
18738 main ()
18740 static struct statfs ac_aggr;
18741 if (sizeof ac_aggr.f_frsize)
18742 return 0;
18744 return 0;
18746 _ACEOF
18747 rm -f conftest.$ac_objext
18748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18749 (eval $ac_compile) 2>conftest.er1
18750 ac_status=$?
18751 grep -v '^ *+' conftest.er1 >conftest.err
18752 rm -f conftest.er1
18753 cat conftest.err >&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } &&
18756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; } &&
18762 { ac_try='test -s conftest.$ac_objext'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; }; then
18768 ac_cv_member_struct_statfs_f_frsize=yes
18769 else
18770 echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18773 ac_cv_member_struct_statfs_f_frsize=no
18775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18779 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18780 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18781 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18783 cat >>confdefs.h <<_ACEOF
18784 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18785 _ACEOF
18789 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18790 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18791 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 else
18794 cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h. */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18800 #include <sys/types.h>
18801 #ifdef HAVE_SYS_PARAM_H
18802 # include <sys/param.h>
18803 #endif
18804 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18805 # include <sys/mount.h>
18806 #else
18807 # ifdef STATFS_DEFINED_BY_SYS_VFS
18808 # include <sys/vfs.h>
18809 # else
18810 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18811 # include <sys/statfs.h>
18812 # endif
18813 # endif
18814 #endif
18817 main ()
18819 static struct statfs ac_aggr;
18820 if (ac_aggr.f_ffree)
18821 return 0;
18823 return 0;
18825 _ACEOF
18826 rm -f conftest.$ac_objext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18828 (eval $ac_compile) 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } &&
18835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest.$ac_objext'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; }; then
18847 ac_cv_member_struct_statfs_f_ffree=yes
18848 else
18849 echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18852 cat >conftest.$ac_ext <<_ACEOF
18853 /* confdefs.h. */
18854 _ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18858 #include <sys/types.h>
18859 #ifdef HAVE_SYS_PARAM_H
18860 # include <sys/param.h>
18861 #endif
18862 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18863 # include <sys/mount.h>
18864 #else
18865 # ifdef STATFS_DEFINED_BY_SYS_VFS
18866 # include <sys/vfs.h>
18867 # else
18868 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18869 # include <sys/statfs.h>
18870 # endif
18871 # endif
18872 #endif
18875 main ()
18877 static struct statfs ac_aggr;
18878 if (sizeof ac_aggr.f_ffree)
18879 return 0;
18881 return 0;
18883 _ACEOF
18884 rm -f conftest.$ac_objext
18885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18886 (eval $ac_compile) 2>conftest.er1
18887 ac_status=$?
18888 grep -v '^ *+' conftest.er1 >conftest.err
18889 rm -f conftest.er1
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } &&
18893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest.$ac_objext'
18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_cv_member_struct_statfs_f_ffree=yes
18906 else
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_cv_member_struct_statfs_f_ffree=no
18912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18916 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18917 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18918 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18920 cat >>confdefs.h <<_ACEOF
18921 #define HAVE_STRUCT_STATFS_F_FFREE 1
18922 _ACEOF
18926 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18927 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18928 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 else
18931 cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h. */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 #include <sys/types.h>
18938 #ifdef HAVE_SYS_PARAM_H
18939 # include <sys/param.h>
18940 #endif
18941 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18942 # include <sys/mount.h>
18943 #else
18944 # ifdef STATFS_DEFINED_BY_SYS_VFS
18945 # include <sys/vfs.h>
18946 # else
18947 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18948 # include <sys/statfs.h>
18949 # endif
18950 # endif
18951 #endif
18954 main ()
18956 static struct statfs ac_aggr;
18957 if (ac_aggr.f_favail)
18958 return 0;
18960 return 0;
18962 _ACEOF
18963 rm -f conftest.$ac_objext
18964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18965 (eval $ac_compile) 2>conftest.er1
18966 ac_status=$?
18967 grep -v '^ *+' conftest.er1 >conftest.err
18968 rm -f conftest.er1
18969 cat conftest.err >&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
18972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; } &&
18978 { ac_try='test -s conftest.$ac_objext'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 ac_cv_member_struct_statfs_f_favail=yes
18985 else
18986 echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18989 cat >conftest.$ac_ext <<_ACEOF
18990 /* confdefs.h. */
18991 _ACEOF
18992 cat confdefs.h >>conftest.$ac_ext
18993 cat >>conftest.$ac_ext <<_ACEOF
18994 /* end confdefs.h. */
18995 #include <sys/types.h>
18996 #ifdef HAVE_SYS_PARAM_H
18997 # include <sys/param.h>
18998 #endif
18999 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19000 # include <sys/mount.h>
19001 #else
19002 # ifdef STATFS_DEFINED_BY_SYS_VFS
19003 # include <sys/vfs.h>
19004 # else
19005 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19006 # include <sys/statfs.h>
19007 # endif
19008 # endif
19009 #endif
19012 main ()
19014 static struct statfs ac_aggr;
19015 if (sizeof ac_aggr.f_favail)
19016 return 0;
19018 return 0;
19020 _ACEOF
19021 rm -f conftest.$ac_objext
19022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19023 (eval $ac_compile) 2>conftest.er1
19024 ac_status=$?
19025 grep -v '^ *+' conftest.er1 >conftest.err
19026 rm -f conftest.er1
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
19030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; } &&
19036 { ac_try='test -s conftest.$ac_objext'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_cv_member_struct_statfs_f_favail=yes
19043 else
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_cv_member_struct_statfs_f_favail=no
19049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19053 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
19054 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
19055 if test $ac_cv_member_struct_statfs_f_favail = yes; then
19057 cat >>confdefs.h <<_ACEOF
19058 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
19059 _ACEOF
19063 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
19064 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
19065 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068 cat >conftest.$ac_ext <<_ACEOF
19069 /* confdefs.h. */
19070 _ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 #include <sys/types.h>
19075 #ifdef HAVE_SYS_PARAM_H
19076 # include <sys/param.h>
19077 #endif
19078 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19079 # include <sys/mount.h>
19080 #else
19081 # ifdef STATFS_DEFINED_BY_SYS_VFS
19082 # include <sys/vfs.h>
19083 # else
19084 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19085 # include <sys/statfs.h>
19086 # endif
19087 # endif
19088 #endif
19091 main ()
19093 static struct statfs ac_aggr;
19094 if (ac_aggr.f_namelen)
19095 return 0;
19097 return 0;
19099 _ACEOF
19100 rm -f conftest.$ac_objext
19101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19102 (eval $ac_compile) 2>conftest.er1
19103 ac_status=$?
19104 grep -v '^ *+' conftest.er1 >conftest.err
19105 rm -f conftest.er1
19106 cat conftest.err >&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; } &&
19115 { ac_try='test -s conftest.$ac_objext'
19116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19117 (eval $ac_try) 2>&5
19118 ac_status=$?
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); }; }; then
19121 ac_cv_member_struct_statfs_f_namelen=yes
19122 else
19123 echo "$as_me: failed program was:" >&5
19124 sed 's/^/| /' conftest.$ac_ext >&5
19126 cat >conftest.$ac_ext <<_ACEOF
19127 /* confdefs.h. */
19128 _ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19132 #include <sys/types.h>
19133 #ifdef HAVE_SYS_PARAM_H
19134 # include <sys/param.h>
19135 #endif
19136 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19137 # include <sys/mount.h>
19138 #else
19139 # ifdef STATFS_DEFINED_BY_SYS_VFS
19140 # include <sys/vfs.h>
19141 # else
19142 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19143 # include <sys/statfs.h>
19144 # endif
19145 # endif
19146 #endif
19149 main ()
19151 static struct statfs ac_aggr;
19152 if (sizeof ac_aggr.f_namelen)
19153 return 0;
19155 return 0;
19157 _ACEOF
19158 rm -f conftest.$ac_objext
19159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19160 (eval $ac_compile) 2>conftest.er1
19161 ac_status=$?
19162 grep -v '^ *+' conftest.er1 >conftest.err
19163 rm -f conftest.er1
19164 cat conftest.err >&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); } &&
19167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try='test -s conftest.$ac_objext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 ac_cv_member_struct_statfs_f_namelen=yes
19180 else
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19184 ac_cv_member_struct_statfs_f_namelen=no
19186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19190 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19191 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19192 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19194 cat >>confdefs.h <<_ACEOF
19195 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19196 _ACEOF
19202 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19203 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19204 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19205 echo $ECHO_N "(cached) $ECHO_C" >&6
19206 else
19207 cat >conftest.$ac_ext <<_ACEOF
19208 /* confdefs.h. */
19209 _ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h. */
19213 #ifdef HAVE_SYS_STATVFS_H
19214 #include <sys/statvfs.h>
19215 #endif
19218 main ()
19220 static struct statvfs ac_aggr;
19221 if (ac_aggr.f_blocks)
19222 return 0;
19224 return 0;
19226 _ACEOF
19227 rm -f conftest.$ac_objext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19229 (eval $ac_compile) 2>conftest.er1
19230 ac_status=$?
19231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; } &&
19242 { ac_try='test -s conftest.$ac_objext'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_member_struct_statvfs_f_blocks=yes
19249 else
19250 echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h. */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 #ifdef HAVE_SYS_STATVFS_H
19260 #include <sys/statvfs.h>
19261 #endif
19264 main ()
19266 static struct statvfs ac_aggr;
19267 if (sizeof ac_aggr.f_blocks)
19268 return 0;
19270 return 0;
19272 _ACEOF
19273 rm -f conftest.$ac_objext
19274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275 (eval $ac_compile) 2>conftest.er1
19276 ac_status=$?
19277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; } &&
19288 { ac_try='test -s conftest.$ac_objext'
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_cv_member_struct_statvfs_f_blocks=yes
19295 else
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19299 ac_cv_member_struct_statvfs_f_blocks=no
19301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19305 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19306 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19307 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19309 cat >>confdefs.h <<_ACEOF
19310 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19311 _ACEOF
19317 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19318 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19319 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
19321 else
19322 cat >conftest.$ac_ext <<_ACEOF
19323 /* confdefs.h. */
19324 _ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h. */
19328 #include <sys/types.h>
19329 #ifdef HAVE_SYS_SOCKET_H
19330 # include <sys/socket.h>
19331 #endif
19332 #ifdef HAVE_SYS_UN_H
19333 # include <sys/un.h>
19334 #endif
19337 main ()
19339 static struct msghdr ac_aggr;
19340 if (ac_aggr.msg_accrights)
19341 return 0;
19343 return 0;
19345 _ACEOF
19346 rm -f conftest.$ac_objext
19347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19348 (eval $ac_compile) 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; } &&
19361 { ac_try='test -s conftest.$ac_objext'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_cv_member_struct_msghdr_msg_accrights=yes
19368 else
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19372 cat >conftest.$ac_ext <<_ACEOF
19373 /* confdefs.h. */
19374 _ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h. */
19378 #include <sys/types.h>
19379 #ifdef HAVE_SYS_SOCKET_H
19380 # include <sys/socket.h>
19381 #endif
19382 #ifdef HAVE_SYS_UN_H
19383 # include <sys/un.h>
19384 #endif
19387 main ()
19389 static struct msghdr ac_aggr;
19390 if (sizeof ac_aggr.msg_accrights)
19391 return 0;
19393 return 0;
19395 _ACEOF
19396 rm -f conftest.$ac_objext
19397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19398 (eval $ac_compile) 2>conftest.er1
19399 ac_status=$?
19400 grep -v '^ *+' conftest.er1 >conftest.err
19401 rm -f conftest.er1
19402 cat conftest.err >&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } &&
19405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; } &&
19411 { ac_try='test -s conftest.$ac_objext'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; }; then
19417 ac_cv_member_struct_msghdr_msg_accrights=yes
19418 else
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19422 ac_cv_member_struct_msghdr_msg_accrights=no
19424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19428 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19429 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19430 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19432 cat >>confdefs.h <<_ACEOF
19433 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19434 _ACEOF
19438 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19439 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19440 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19442 else
19443 cat >conftest.$ac_ext <<_ACEOF
19444 /* confdefs.h. */
19445 _ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h. */
19449 #include <sys/types.h>
19450 #ifdef HAVE_SYS_SOCKET_H
19451 # include <sys/socket.h>
19452 #endif
19453 #ifdef HAVE_SYS_UN_H
19454 # include <sys/un.h>
19455 #endif
19458 main ()
19460 static struct sockaddr ac_aggr;
19461 if (ac_aggr.sa_len)
19462 return 0;
19464 return 0;
19466 _ACEOF
19467 rm -f conftest.$ac_objext
19468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19469 (eval $ac_compile) 2>conftest.er1
19470 ac_status=$?
19471 grep -v '^ *+' conftest.er1 >conftest.err
19472 rm -f conftest.er1
19473 cat conftest.err >&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } &&
19476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; } &&
19482 { ac_try='test -s conftest.$ac_objext'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 ac_cv_member_struct_sockaddr_sa_len=yes
19489 else
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19493 cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h. */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19499 #include <sys/types.h>
19500 #ifdef HAVE_SYS_SOCKET_H
19501 # include <sys/socket.h>
19502 #endif
19503 #ifdef HAVE_SYS_UN_H
19504 # include <sys/un.h>
19505 #endif
19508 main ()
19510 static struct sockaddr ac_aggr;
19511 if (sizeof ac_aggr.sa_len)
19512 return 0;
19514 return 0;
19516 _ACEOF
19517 rm -f conftest.$ac_objext
19518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19519 (eval $ac_compile) 2>conftest.er1
19520 ac_status=$?
19521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } &&
19526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; } &&
19532 { ac_try='test -s conftest.$ac_objext'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 ac_cv_member_struct_sockaddr_sa_len=yes
19539 else
19540 echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19543 ac_cv_member_struct_sockaddr_sa_len=no
19545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19549 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19550 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19551 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19553 cat >>confdefs.h <<_ACEOF
19554 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19555 _ACEOF
19559 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19560 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19561 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19562 echo $ECHO_N "(cached) $ECHO_C" >&6
19563 else
19564 cat >conftest.$ac_ext <<_ACEOF
19565 /* confdefs.h. */
19566 _ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19570 #include <sys/types.h>
19571 #ifdef HAVE_SYS_SOCKET_H
19572 # include <sys/socket.h>
19573 #endif
19574 #ifdef HAVE_SYS_UN_H
19575 # include <sys/un.h>
19576 #endif
19579 main ()
19581 static struct sockaddr_un ac_aggr;
19582 if (ac_aggr.sun_len)
19583 return 0;
19585 return 0;
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590 (eval $ac_compile) 2>conftest.er1
19591 ac_status=$?
19592 grep -v '^ *+' conftest.er1 >conftest.err
19593 rm -f conftest.er1
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest.$ac_objext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 ac_cv_member_struct_sockaddr_un_sun_len=yes
19610 else
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19614 cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h. */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19620 #include <sys/types.h>
19621 #ifdef HAVE_SYS_SOCKET_H
19622 # include <sys/socket.h>
19623 #endif
19624 #ifdef HAVE_SYS_UN_H
19625 # include <sys/un.h>
19626 #endif
19629 main ()
19631 static struct sockaddr_un ac_aggr;
19632 if (sizeof ac_aggr.sun_len)
19633 return 0;
19635 return 0;
19637 _ACEOF
19638 rm -f conftest.$ac_objext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19640 (eval $ac_compile) 2>conftest.er1
19641 ac_status=$?
19642 grep -v '^ *+' conftest.er1 >conftest.err
19643 rm -f conftest.er1
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
19647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; } &&
19653 { ac_try='test -s conftest.$ac_objext'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; }; then
19659 ac_cv_member_struct_sockaddr_un_sun_len=yes
19660 else
19661 echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19664 ac_cv_member_struct_sockaddr_un_sun_len=no
19666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19670 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19671 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19672 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19674 cat >>confdefs.h <<_ACEOF
19675 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19676 _ACEOF
19682 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19683 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19684 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h. */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19693 #include <signal.h>
19696 main ()
19698 static siginfo_t ac_aggr;
19699 if (ac_aggr.si_fd)
19700 return 0;
19702 return 0;
19704 _ACEOF
19705 rm -f conftest.$ac_objext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19707 (eval $ac_compile) 2>conftest.er1
19708 ac_status=$?
19709 grep -v '^ *+' conftest.er1 >conftest.err
19710 rm -f conftest.er1
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 ac_cv_member_siginfo_t_si_fd=yes
19727 else
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h. */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 #include <signal.h>
19740 main ()
19742 static siginfo_t ac_aggr;
19743 if (sizeof ac_aggr.si_fd)
19744 return 0;
19746 return 0;
19748 _ACEOF
19749 rm -f conftest.$ac_objext
19750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19751 (eval $ac_compile) 2>conftest.er1
19752 ac_status=$?
19753 grep -v '^ *+' conftest.er1 >conftest.err
19754 rm -f conftest.er1
19755 cat conftest.err >&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } &&
19758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760 (eval $ac_try) 2>&5
19761 ac_status=$?
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); }; } &&
19764 { ac_try='test -s conftest.$ac_objext'
19765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766 (eval $ac_try) 2>&5
19767 ac_status=$?
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; }; then
19770 ac_cv_member_siginfo_t_si_fd=yes
19771 else
19772 echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19775 ac_cv_member_siginfo_t_si_fd=no
19777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19781 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19782 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19783 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19785 cat >>confdefs.h <<_ACEOF
19786 #define HAVE_SIGINFO_T_SI_FD 1
19787 _ACEOF
19793 echo "$as_me:$LINENO: checking for struct option.name" >&5
19794 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19795 if test "${ac_cv_member_struct_option_name+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19797 else
19798 cat >conftest.$ac_ext <<_ACEOF
19799 /* confdefs.h. */
19800 _ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h. */
19804 #ifdef HAVE_GETOPT_H
19805 #include <getopt.h>
19806 #endif
19809 main ()
19811 static struct option ac_aggr;
19812 if (ac_aggr.name)
19813 return 0;
19815 return 0;
19817 _ACEOF
19818 rm -f conftest.$ac_objext
19819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19820 (eval $ac_compile) 2>conftest.er1
19821 ac_status=$?
19822 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } &&
19827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829 (eval $ac_try) 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; } &&
19833 { ac_try='test -s conftest.$ac_objext'
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19836 ac_status=$?
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; }; then
19839 ac_cv_member_struct_option_name=yes
19840 else
19841 echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19844 cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h. */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19850 #ifdef HAVE_GETOPT_H
19851 #include <getopt.h>
19852 #endif
19855 main ()
19857 static struct option ac_aggr;
19858 if (sizeof ac_aggr.name)
19859 return 0;
19861 return 0;
19863 _ACEOF
19864 rm -f conftest.$ac_objext
19865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19866 (eval $ac_compile) 2>conftest.er1
19867 ac_status=$?
19868 grep -v '^ *+' conftest.er1 >conftest.err
19869 rm -f conftest.er1
19870 cat conftest.err >&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } &&
19873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19876 ac_status=$?
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; } &&
19879 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19885 ac_cv_member_struct_option_name=yes
19886 else
19887 echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 ac_cv_member_struct_option_name=no
19892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19896 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19897 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19898 if test $ac_cv_member_struct_option_name = yes; then
19900 cat >>confdefs.h <<_ACEOF
19901 #define HAVE_STRUCT_OPTION_NAME 1
19902 _ACEOF
19908 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19909 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19910 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h. */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 $ac_includes_default
19921 main ()
19923 static struct stat ac_aggr;
19924 if (ac_aggr.st_blocks)
19925 return 0;
19927 return 0;
19929 _ACEOF
19930 rm -f conftest.$ac_objext
19931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19932 (eval $ac_compile) 2>conftest.er1
19933 ac_status=$?
19934 grep -v '^ *+' conftest.er1 >conftest.err
19935 rm -f conftest.er1
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } &&
19939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; } &&
19945 { ac_try='test -s conftest.$ac_objext'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 ac_cv_member_struct_stat_st_blocks=yes
19952 else
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19956 cat >conftest.$ac_ext <<_ACEOF
19957 /* confdefs.h. */
19958 _ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h. */
19962 $ac_includes_default
19964 main ()
19966 static struct stat ac_aggr;
19967 if (sizeof ac_aggr.st_blocks)
19968 return 0;
19970 return 0;
19972 _ACEOF
19973 rm -f conftest.$ac_objext
19974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19975 (eval $ac_compile) 2>conftest.er1
19976 ac_status=$?
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
19982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; } &&
19988 { ac_try='test -s conftest.$ac_objext'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 ac_cv_member_struct_stat_st_blocks=yes
19995 else
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 ac_cv_member_struct_stat_st_blocks=no
20001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20005 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20006 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20007 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20009 cat >>confdefs.h <<_ACEOF
20010 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20011 _ACEOF
20018 case $host_cpu in
20019 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20020 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
20021 if test "${ac_cv_cpp_def___i386__+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024 cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h. */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20030 #ifndef __i386__
20032 #endif
20033 _ACEOF
20034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20035 $EGREP "yes" >/dev/null 2>&1; then
20036 ac_cv_cpp_def___i386__=yes
20037 else
20038 ac_cv_cpp_def___i386__=no
20040 rm -f conftest*
20043 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20044 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
20045 if test $ac_cv_cpp_def___i386__ = yes; then
20046 CFLAGS="$CFLAGS -D__i386__"
20047 LINTFLAGS="$LINTFLAGS -D__i386__"
20050 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20051 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
20052 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055 cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h. */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 #ifndef __ALPHA__
20063 #endif
20064 _ACEOF
20065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20066 $EGREP "yes" >/dev/null 2>&1; then
20067 ac_cv_cpp_def___ALPHA__=yes
20068 else
20069 ac_cv_cpp_def___ALPHA__=no
20071 rm -f conftest*
20074 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20075 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
20076 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20077 CFLAGS="$CFLAGS -D__ALPHA__"
20078 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20081 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20082 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
20083 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20085 else
20086 cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h. */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20092 #ifndef __sparc__
20094 #endif
20095 _ACEOF
20096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20097 $EGREP "yes" >/dev/null 2>&1; then
20098 ac_cv_cpp_def___sparc__=yes
20099 else
20100 ac_cv_cpp_def___sparc__=no
20102 rm -f conftest*
20105 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20106 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20107 if test $ac_cv_cpp_def___sparc__ = yes; then
20108 CFLAGS="$CFLAGS -D__sparc__"
20109 LINTFLAGS="$LINTFLAGS -D__sparc__"
20112 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20113 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20114 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117 cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h. */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 #ifndef __powerpc__
20125 #endif
20126 _ACEOF
20127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20128 $EGREP "yes" >/dev/null 2>&1; then
20129 ac_cv_cpp_def___powerpc__=yes
20130 else
20131 ac_cv_cpp_def___powerpc__=no
20133 rm -f conftest*
20136 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20137 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20138 if test $ac_cv_cpp_def___powerpc__ = yes; then
20139 CFLAGS="$CFLAGS -D__powerpc__"
20140 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20143 esac
20145 case $host_vendor in
20146 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20147 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
20148 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20150 else
20151 cat >conftest.$ac_ext <<_ACEOF
20152 /* confdefs.h. */
20153 _ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20157 #ifndef __sun__
20159 #endif
20160 _ACEOF
20161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20162 $EGREP "yes" >/dev/null 2>&1; then
20163 ac_cv_cpp_def___sun__=yes
20164 else
20165 ac_cv_cpp_def___sun__=no
20167 rm -f conftest*
20170 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20171 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20172 if test $ac_cv_cpp_def___sun__ = yes; then
20173 CFLAGS="$CFLAGS -D__sun__"
20174 LINTFLAGS="$LINTFLAGS -D__sun__"
20177 esac
20183 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
20185 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
20187 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
20189 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
20191 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
20193 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
20195 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
20197 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
20199 ac_config_commands="$ac_config_commands dlls/kernel/messages"
20201 ac_config_commands="$ac_config_commands dlls/user/dde"
20203 ac_config_commands="$ac_config_commands dlls/user/resources"
20205 ac_config_commands="$ac_config_commands dlls/wineps/data"
20207 ac_config_commands="$ac_config_commands include/wine"
20209 ac_config_commands="$ac_config_commands misc"
20211 ac_config_commands="$ac_config_commands programs/regedit/tests"
20213 ac_config_commands="$ac_config_commands windows"
20216 MAKE_RULES=Make.rules
20219 MAKE_DLL_RULES=dlls/Makedll.rules
20222 MAKE_TEST_RULES=dlls/Maketest.rules
20225 MAKE_LIB_RULES=libs/Makelib.rules
20228 MAKE_PROG_RULES=programs/Makeprog.rules
20231 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/secur32/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
20234 cat >confcache <<\_ACEOF
20235 # This file is a shell script that caches the results of configure
20236 # tests run on this system so they can be shared between configure
20237 # scripts and configure runs, see configure's option --config-cache.
20238 # It is not useful on other systems. If it contains results you don't
20239 # want to keep, you may remove or edit it.
20241 # config.status only pays attention to the cache file if you give it
20242 # the --recheck option to rerun configure.
20244 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20245 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20246 # following values.
20248 _ACEOF
20250 # The following way of writing the cache mishandles newlines in values,
20251 # but we know of no workaround that is simple, portable, and efficient.
20252 # So, don't put newlines in cache variables' values.
20253 # Ultrix sh set writes to stderr and can't be redirected directly,
20254 # and sets the high bit in the cache file unless we assign to the vars.
20256 (set) 2>&1 |
20257 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20258 *ac_space=\ *)
20259 # `set' does not quote correctly, so add quotes (double-quote
20260 # substitution turns \\\\ into \\, and sed turns \\ into \).
20261 sed -n \
20262 "s/'/'\\\\''/g;
20263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20266 # `set' quotes correctly as required by POSIX, so do not add quotes.
20267 sed -n \
20268 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20270 esac;
20272 sed '
20273 t clear
20274 : clear
20275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20276 t end
20277 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20278 : end' >>confcache
20279 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20280 if test -w $cache_file; then
20281 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20282 cat confcache >$cache_file
20283 else
20284 echo "not updating unwritable cache $cache_file"
20287 rm -f confcache
20289 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20290 # Let make expand exec_prefix.
20291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20293 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20294 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20295 # trailing colons and then remove the whole line if VPATH becomes empty
20296 # (actually we leave an empty line to preserve line numbers).
20297 if test "x$srcdir" = x.; then
20298 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20299 s/:*\$(srcdir):*/:/;
20300 s/:*\${srcdir}:*/:/;
20301 s/:*@srcdir@:*/:/;
20302 s/^\([^=]*=[ ]*\):*/\1/;
20303 s/:*$//;
20304 s/^[^=]*=[ ]*$//;
20308 DEFS=-DHAVE_CONFIG_H
20310 ac_libobjs=
20311 ac_ltlibobjs=
20312 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20313 # 1. Remove the extension, and $U if already installed.
20314 ac_i=`echo "$ac_i" |
20315 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20316 # 2. Add them.
20317 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20318 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20319 done
20320 LIBOBJS=$ac_libobjs
20322 LTLIBOBJS=$ac_ltlibobjs
20326 : ${CONFIG_STATUS=./config.status}
20327 ac_clean_files_save=$ac_clean_files
20328 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20329 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20330 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20331 cat >$CONFIG_STATUS <<_ACEOF
20332 #! $SHELL
20333 # Generated by $as_me.
20334 # Run this file to recreate the current configuration.
20335 # Compiler output produced by configure, useful for debugging
20336 # configure, is in config.log if it exists.
20338 debug=false
20339 ac_cs_recheck=false
20340 ac_cs_silent=false
20341 SHELL=\${CONFIG_SHELL-$SHELL}
20342 _ACEOF
20344 cat >>$CONFIG_STATUS <<\_ACEOF
20345 ## --------------------- ##
20346 ## M4sh Initialization. ##
20347 ## --------------------- ##
20349 # Be Bourne compatible
20350 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20351 emulate sh
20352 NULLCMD=:
20353 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20354 # is contrary to our usage. Disable this feature.
20355 alias -g '${1+"$@"}'='"$@"'
20356 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20357 set -o posix
20359 DUALCASE=1; export DUALCASE # for MKS sh
20361 # Support unset when possible.
20362 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20363 as_unset=unset
20364 else
20365 as_unset=false
20369 # Work around bugs in pre-3.0 UWIN ksh.
20370 $as_unset ENV MAIL MAILPATH
20371 PS1='$ '
20372 PS2='> '
20373 PS4='+ '
20375 # NLS nuisances.
20376 for as_var in \
20377 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20378 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20379 LC_TELEPHONE LC_TIME
20381 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20382 eval $as_var=C; export $as_var
20383 else
20384 $as_unset $as_var
20386 done
20388 # Required to use basename.
20389 if expr a : '\(a\)' >/dev/null 2>&1; then
20390 as_expr=expr
20391 else
20392 as_expr=false
20395 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20396 as_basename=basename
20397 else
20398 as_basename=false
20402 # Name of the executable.
20403 as_me=`$as_basename "$0" ||
20404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20405 X"$0" : 'X\(//\)$' \| \
20406 X"$0" : 'X\(/\)$' \| \
20407 . : '\(.\)' 2>/dev/null ||
20408 echo X/"$0" |
20409 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20410 /^X\/\(\/\/\)$/{ s//\1/; q; }
20411 /^X\/\(\/\).*/{ s//\1/; q; }
20412 s/.*/./; q'`
20415 # PATH needs CR, and LINENO needs CR and PATH.
20416 # Avoid depending upon Character Ranges.
20417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20420 as_cr_digits='0123456789'
20421 as_cr_alnum=$as_cr_Letters$as_cr_digits
20423 # The user is always right.
20424 if test "${PATH_SEPARATOR+set}" != set; then
20425 echo "#! /bin/sh" >conf$$.sh
20426 echo "exit 0" >>conf$$.sh
20427 chmod +x conf$$.sh
20428 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20429 PATH_SEPARATOR=';'
20430 else
20431 PATH_SEPARATOR=:
20433 rm -f conf$$.sh
20437 as_lineno_1=$LINENO
20438 as_lineno_2=$LINENO
20439 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20440 test "x$as_lineno_1" != "x$as_lineno_2" &&
20441 test "x$as_lineno_3" = "x$as_lineno_2" || {
20442 # Find who we are. Look in the path if we contain no path at all
20443 # relative or not.
20444 case $0 in
20445 *[\\/]* ) as_myself=$0 ;;
20446 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20447 for as_dir in $PATH
20449 IFS=$as_save_IFS
20450 test -z "$as_dir" && as_dir=.
20451 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20452 done
20455 esac
20456 # We did not find ourselves, most probably we were run as `sh COMMAND'
20457 # in which case we are not to be found in the path.
20458 if test "x$as_myself" = x; then
20459 as_myself=$0
20461 if test ! -f "$as_myself"; then
20462 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20463 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20464 { (exit 1); exit 1; }; }
20466 case $CONFIG_SHELL in
20468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20469 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20471 IFS=$as_save_IFS
20472 test -z "$as_dir" && as_dir=.
20473 for as_base in sh bash ksh sh5; do
20474 case $as_dir in
20476 if ("$as_dir/$as_base" -c '
20477 as_lineno_1=$LINENO
20478 as_lineno_2=$LINENO
20479 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20480 test "x$as_lineno_1" != "x$as_lineno_2" &&
20481 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20482 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20483 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20484 CONFIG_SHELL=$as_dir/$as_base
20485 export CONFIG_SHELL
20486 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20487 fi;;
20488 esac
20489 done
20490 done
20492 esac
20494 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20495 # uniformly replaced by the line number. The first 'sed' inserts a
20496 # line-number line before each line; the second 'sed' does the real
20497 # work. The second script uses 'N' to pair each line-number line
20498 # with the numbered line, and appends trailing '-' during
20499 # substitution so that $LINENO is not a special case at line end.
20500 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20501 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20502 sed '=' <$as_myself |
20503 sed '
20505 s,$,-,
20506 : loop
20507 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20508 t loop
20509 s,-$,,
20510 s,^['$as_cr_digits']*\n,,
20511 ' >$as_me.lineno &&
20512 chmod +x $as_me.lineno ||
20513 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20514 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20515 { (exit 1); exit 1; }; }
20517 # Don't try to exec as it changes $[0], causing all sort of problems
20518 # (the dirname of $[0] is not the place where we might find the
20519 # original and so on. Autoconf is especially sensible to this).
20520 . ./$as_me.lineno
20521 # Exit status is that of the last command.
20522 exit
20526 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20527 *c*,-n*) ECHO_N= ECHO_C='
20528 ' ECHO_T=' ' ;;
20529 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20530 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20531 esac
20533 if expr a : '\(a\)' >/dev/null 2>&1; then
20534 as_expr=expr
20535 else
20536 as_expr=false
20539 rm -f conf$$ conf$$.exe conf$$.file
20540 echo >conf$$.file
20541 if ln -s conf$$.file conf$$ 2>/dev/null; then
20542 # We could just check for DJGPP; but this test a) works b) is more generic
20543 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20544 if test -f conf$$.exe; then
20545 # Don't use ln at all; we don't have any links
20546 as_ln_s='cp -p'
20547 else
20548 as_ln_s='ln -s'
20550 elif ln conf$$.file conf$$ 2>/dev/null; then
20551 as_ln_s=ln
20552 else
20553 as_ln_s='cp -p'
20555 rm -f conf$$ conf$$.exe conf$$.file
20557 if mkdir -p . 2>/dev/null; then
20558 as_mkdir_p=:
20559 else
20560 test -d ./-p && rmdir ./-p
20561 as_mkdir_p=false
20564 as_executable_p="test -f"
20566 # Sed expression to map a string onto a valid CPP name.
20567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20569 # Sed expression to map a string onto a valid variable name.
20570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20573 # IFS
20574 # We need space, tab and new line, in precisely that order.
20575 as_nl='
20577 IFS=" $as_nl"
20579 # CDPATH.
20580 $as_unset CDPATH
20582 exec 6>&1
20584 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20585 # report actual input values of CONFIG_FILES etc. instead of their
20586 # values after options handling. Logging --version etc. is OK.
20587 exec 5>>config.log
20589 echo
20590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20591 ## Running $as_me. ##
20592 _ASBOX
20593 } >&5
20594 cat >&5 <<_CSEOF
20596 This file was extended by Wine $as_me 20041019, which was
20597 generated by GNU Autoconf 2.59. Invocation command line was
20599 CONFIG_FILES = $CONFIG_FILES
20600 CONFIG_HEADERS = $CONFIG_HEADERS
20601 CONFIG_LINKS = $CONFIG_LINKS
20602 CONFIG_COMMANDS = $CONFIG_COMMANDS
20603 $ $0 $@
20605 _CSEOF
20606 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20607 echo >&5
20608 _ACEOF
20610 # Files that config.status was made for.
20611 if test -n "$ac_config_files"; then
20612 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20615 if test -n "$ac_config_headers"; then
20616 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20619 if test -n "$ac_config_links"; then
20620 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20623 if test -n "$ac_config_commands"; then
20624 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20627 cat >>$CONFIG_STATUS <<\_ACEOF
20629 ac_cs_usage="\
20630 \`$as_me' instantiates files from templates according to the
20631 current configuration.
20633 Usage: $0 [OPTIONS] [FILE]...
20635 -h, --help print this help, then exit
20636 -V, --version print version number, then exit
20637 -q, --quiet do not print progress messages
20638 -d, --debug don't remove temporary files
20639 --recheck update $as_me by reconfiguring in the same conditions
20640 --file=FILE[:TEMPLATE]
20641 instantiate the configuration file FILE
20642 --header=FILE[:TEMPLATE]
20643 instantiate the configuration header FILE
20645 Configuration files:
20646 $config_files
20648 Configuration headers:
20649 $config_headers
20651 Configuration commands:
20652 $config_commands
20654 Report bugs to <bug-autoconf@gnu.org>."
20655 _ACEOF
20657 cat >>$CONFIG_STATUS <<_ACEOF
20658 ac_cs_version="\\
20659 Wine config.status 20041019
20660 configured by $0, generated by GNU Autoconf 2.59,
20661 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20663 Copyright (C) 2003 Free Software Foundation, Inc.
20664 This config.status script is free software; the Free Software Foundation
20665 gives unlimited permission to copy, distribute and modify it."
20666 srcdir=$srcdir
20667 INSTALL="$INSTALL"
20668 _ACEOF
20670 cat >>$CONFIG_STATUS <<\_ACEOF
20671 # If no file are specified by the user, then we need to provide default
20672 # value. By we need to know if files were specified by the user.
20673 ac_need_defaults=:
20674 while test $# != 0
20676 case $1 in
20677 --*=*)
20678 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20679 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20680 ac_shift=:
20683 ac_option=$1
20684 ac_optarg=$2
20685 ac_shift=shift
20687 *) # This is not an option, so the user has probably given explicit
20688 # arguments.
20689 ac_option=$1
20690 ac_need_defaults=false;;
20691 esac
20693 case $ac_option in
20694 # Handling of the options.
20695 _ACEOF
20696 cat >>$CONFIG_STATUS <<\_ACEOF
20697 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20698 ac_cs_recheck=: ;;
20699 --version | --vers* | -V )
20700 echo "$ac_cs_version"; exit 0 ;;
20701 --he | --h)
20702 # Conflict between --help and --header
20703 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20704 Try \`$0 --help' for more information." >&5
20705 echo "$as_me: error: ambiguous option: $1
20706 Try \`$0 --help' for more information." >&2;}
20707 { (exit 1); exit 1; }; };;
20708 --help | --hel | -h )
20709 echo "$ac_cs_usage"; exit 0 ;;
20710 --debug | --d* | -d )
20711 debug=: ;;
20712 --file | --fil | --fi | --f )
20713 $ac_shift
20714 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20715 ac_need_defaults=false;;
20716 --header | --heade | --head | --hea )
20717 $ac_shift
20718 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20719 ac_need_defaults=false;;
20720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20721 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20722 ac_cs_silent=: ;;
20724 # This is an error.
20725 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20726 Try \`$0 --help' for more information." >&5
20727 echo "$as_me: error: unrecognized option: $1
20728 Try \`$0 --help' for more information." >&2;}
20729 { (exit 1); exit 1; }; } ;;
20731 *) ac_config_targets="$ac_config_targets $1" ;;
20733 esac
20734 shift
20735 done
20737 ac_configure_extra_args=
20739 if $ac_cs_silent; then
20740 exec 6>/dev/null
20741 ac_configure_extra_args="$ac_configure_extra_args --silent"
20744 _ACEOF
20745 cat >>$CONFIG_STATUS <<_ACEOF
20746 if \$ac_cs_recheck; then
20747 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20748 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20751 _ACEOF
20757 cat >>$CONFIG_STATUS <<\_ACEOF
20758 for ac_config_target in $ac_config_targets
20760 case "$ac_config_target" in
20761 # Handling of arguments.
20762 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20763 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20764 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20765 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20766 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20767 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20768 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20769 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20770 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20771 "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20772 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20773 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20774 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20775 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20776 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20777 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20778 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20779 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20780 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20781 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20782 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20783 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20784 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20785 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20786 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20787 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20788 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20789 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20790 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20791 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20792 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20793 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20794 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20795 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20796 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20797 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20798 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20799 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20800 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20801 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20802 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20803 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20804 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20805 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20806 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20807 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20808 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20809 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20810 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20811 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20812 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20813 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20814 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20815 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20816 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20817 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20818 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20819 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20820 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20821 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20822 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20823 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20824 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20825 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20826 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20827 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20828 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20829 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20830 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20831 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20832 "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20833 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20834 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20835 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20836 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20837 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20838 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20839 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20840 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20841 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20842 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20843 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20844 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20845 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20846 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20847 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20848 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20849 "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20850 "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20851 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20852 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20853 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20854 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20855 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20856 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20857 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20858 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20859 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20860 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20861 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20862 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20863 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20864 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20865 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20866 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20867 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20868 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20869 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20870 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20871 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20872 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20873 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20874 "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20875 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20876 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20877 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20878 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20879 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20880 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20881 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20882 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20883 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20884 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20885 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20886 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20887 "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20888 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20889 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20890 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20891 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20892 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20893 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20894 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20895 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20896 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20897 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20898 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20899 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20900 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20901 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20902 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20903 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20904 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20905 "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20906 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20907 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20908 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20909 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20910 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20911 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20912 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20913 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20914 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20915 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20916 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20917 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20918 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20919 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20920 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20921 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20922 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20923 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20924 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20925 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20926 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20927 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20928 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20929 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20930 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20931 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20932 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20933 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20934 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20935 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20936 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20937 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20938 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20939 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20940 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20941 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20942 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20943 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20944 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20945 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20946 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20947 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20948 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20949 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20950 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20951 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20952 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20953 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20954 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20955 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20956 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20957 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20958 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20959 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20960 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20961 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20962 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20963 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20964 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20965 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20966 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20967 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20968 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20969 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20970 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20971 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20972 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20973 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20974 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20975 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20976 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20977 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20978 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20979 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20980 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20981 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20982 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20983 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20984 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20985 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20986 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20987 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20988 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20989 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20990 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20991 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20992 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20993 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20994 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20995 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20996 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20997 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20998 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20999 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21000 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21001 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21002 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
21003 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21004 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21005 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21006 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21007 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21008 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
21009 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
21010 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
21011 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
21012 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
21013 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
21014 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
21015 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
21016 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
21017 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
21018 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
21019 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
21020 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21021 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
21022 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
21023 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
21024 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21025 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21026 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21027 { (exit 1); exit 1; }; };;
21028 esac
21029 done
21031 # If the user did not use the arguments to specify the items to instantiate,
21032 # then the envvar interface is used. Set only those that are not.
21033 # We use the long form for the default assignment because of an extremely
21034 # bizarre bug on SunOS 4.1.3.
21035 if $ac_need_defaults; then
21036 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21037 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21038 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21041 # Have a temporary directory for convenience. Make it in the build tree
21042 # simply because there is no reason to put it here, and in addition,
21043 # creating and moving files from /tmp can sometimes cause problems.
21044 # Create a temporary directory, and hook for its removal unless debugging.
21045 $debug ||
21047 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21048 trap '{ (exit 1); exit 1; }' 1 2 13 15
21051 # Create a (secure) tmp directory for tmp files.
21054 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21055 test -n "$tmp" && test -d "$tmp"
21056 } ||
21058 tmp=./confstat$$-$RANDOM
21059 (umask 077 && mkdir $tmp)
21060 } ||
21062 echo "$me: cannot create a temporary directory in ." >&2
21063 { (exit 1); exit 1; }
21066 _ACEOF
21068 cat >>$CONFIG_STATUS <<_ACEOF
21071 # CONFIG_FILES section.
21074 # No need to generate the scripts if there are no CONFIG_FILES.
21075 # This happens for instance when ./config.status config.h
21076 if test -n "\$CONFIG_FILES"; then
21077 # Protect against being on the right side of a sed subst in config.status.
21078 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21079 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21080 s,@SHELL@,$SHELL,;t t
21081 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21082 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21083 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21084 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21085 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21086 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21087 s,@exec_prefix@,$exec_prefix,;t t
21088 s,@prefix@,$prefix,;t t
21089 s,@program_transform_name@,$program_transform_name,;t t
21090 s,@bindir@,$bindir,;t t
21091 s,@sbindir@,$sbindir,;t t
21092 s,@libexecdir@,$libexecdir,;t t
21093 s,@datadir@,$datadir,;t t
21094 s,@sysconfdir@,$sysconfdir,;t t
21095 s,@sharedstatedir@,$sharedstatedir,;t t
21096 s,@localstatedir@,$localstatedir,;t t
21097 s,@libdir@,$libdir,;t t
21098 s,@includedir@,$includedir,;t t
21099 s,@oldincludedir@,$oldincludedir,;t t
21100 s,@infodir@,$infodir,;t t
21101 s,@mandir@,$mandir,;t t
21102 s,@build_alias@,$build_alias,;t t
21103 s,@host_alias@,$host_alias,;t t
21104 s,@target_alias@,$target_alias,;t t
21105 s,@DEFS@,$DEFS,;t t
21106 s,@ECHO_C@,$ECHO_C,;t t
21107 s,@ECHO_N@,$ECHO_N,;t t
21108 s,@ECHO_T@,$ECHO_T,;t t
21109 s,@LIBS@,$LIBS,;t t
21110 s,@WIN16_FILES@,$WIN16_FILES,;t t
21111 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
21112 s,@DLLDEFS@,$DLLDEFS,;t t
21113 s,@build@,$build,;t t
21114 s,@build_cpu@,$build_cpu,;t t
21115 s,@build_vendor@,$build_vendor,;t t
21116 s,@build_os@,$build_os,;t t
21117 s,@host@,$host,;t t
21118 s,@host_cpu@,$host_cpu,;t t
21119 s,@host_vendor@,$host_vendor,;t t
21120 s,@host_os@,$host_os,;t t
21121 s,@SET_MAKE@,$SET_MAKE,;t t
21122 s,@CC@,$CC,;t t
21123 s,@CFLAGS@,$CFLAGS,;t t
21124 s,@LDFLAGS@,$LDFLAGS,;t t
21125 s,@CPPFLAGS@,$CPPFLAGS,;t t
21126 s,@ac_ct_CC@,$ac_ct_CC,;t t
21127 s,@EXEEXT@,$EXEEXT,;t t
21128 s,@OBJEXT@,$OBJEXT,;t t
21129 s,@CXX@,$CXX,;t t
21130 s,@CXXFLAGS@,$CXXFLAGS,;t t
21131 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21132 s,@CPPBIN@,$CPPBIN,;t t
21133 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
21134 s,@TOOLSDIR@,$TOOLSDIR,;t t
21135 s,@CPP@,$CPP,;t t
21136 s,@X_CFLAGS@,$X_CFLAGS,;t t
21137 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21138 s,@X_LIBS@,$X_LIBS,;t t
21139 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21140 s,@LEX@,$LEX,;t t
21141 s,@LEXLIB@,$LEXLIB,;t t
21142 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
21143 s,@XLEX@,$XLEX,;t t
21144 s,@BISON@,$BISON,;t t
21145 s,@AS@,$AS,;t t
21146 s,@ac_ct_AS@,$ac_ct_AS,;t t
21147 s,@LD@,$LD,;t t
21148 s,@ac_ct_LD@,$ac_ct_LD,;t t
21149 s,@AR@,$AR,;t t
21150 s,@ac_ct_AR@,$ac_ct_AR,;t t
21151 s,@RANLIB@,$RANLIB,;t t
21152 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21153 s,@STRIP@,$STRIP,;t t
21154 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21155 s,@WINDRES@,$WINDRES,;t t
21156 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21157 s,@LN_S@,$LN_S,;t t
21158 s,@LN@,$LN,;t t
21159 s,@EGREP@,$EGREP,;t t
21160 s,@LDCONFIG@,$LDCONFIG,;t t
21161 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21162 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21163 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21164 s,@LINT@,$LINT,;t t
21165 s,@LINTFLAGS@,$LINTFLAGS,;t t
21166 s,@DB2HTML@,$DB2HTML,;t t
21167 s,@DB2PDF@,$DB2PDF,;t t
21168 s,@DB2PS@,$DB2PS,;t t
21169 s,@DB2TXT@,$DB2TXT,;t t
21170 s,@FONTFORGE@,$FONTFORGE,;t t
21171 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
21172 s,@XLIB@,$XLIB,;t t
21173 s,@XFILES@,$XFILES,;t t
21174 s,@OPENGLFILES@,$OPENGLFILES,;t t
21175 s,@GLU32FILES@,$GLU32FILES,;t t
21176 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
21177 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21178 s,@GLUT32FILES@,$GLUT32FILES,;t t
21179 s,@NASLIBS@,$NASLIBS,;t t
21180 s,@CURSESLIBS@,$CURSESLIBS,;t t
21181 s,@sane_devel@,$sane_devel,;t t
21182 s,@SANELIBS@,$SANELIBS,;t t
21183 s,@SANEINCL@,$SANEINCL,;t t
21184 s,@ICULIBS@,$ICULIBS,;t t
21185 s,@ft_devel@,$ft_devel,;t t
21186 s,@ft_devel2@,$ft_devel2,;t t
21187 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
21188 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
21189 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
21190 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21191 s,@ARTSLIBS@,$ARTSLIBS,;t t
21192 s,@ARTSINCL@,$ARTSINCL,;t t
21193 s,@ALSALIBS@,$ALSALIBS,;t t
21194 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
21195 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
21196 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
21197 s,@DLLEXT@,$DLLEXT,;t t
21198 s,@DLLFLAGS@,$DLLFLAGS,;t t
21199 s,@DLLIBS@,$DLLIBS,;t t
21200 s,@LDSHARED@,$LDSHARED,;t t
21201 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
21202 s,@LIBEXT@,$LIBEXT,;t t
21203 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21204 s,@DLLTOOL@,$DLLTOOL,;t t
21205 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21206 s,@DLLWRAP@,$DLLWRAP,;t t
21207 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
21208 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
21209 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
21210 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
21211 s,@IOKITLIB@,$IOKITLIB,;t t
21212 s,@CROSSTEST@,$CROSSTEST,;t t
21213 s,@CROSSCC@,$CROSSCC,;t t
21214 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
21215 s,@LDPATH@,$LDPATH,;t t
21216 s,@CRTLIBS@,$CRTLIBS,;t t
21217 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
21218 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21219 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
21220 s,@LDD@,$LDD,;t t
21221 s,@ALLOCA@,$ALLOCA,;t t
21222 s,@LIBOBJS@,$LIBOBJS,;t t
21223 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21224 /@MAKE_RULES@/r $MAKE_RULES
21225 s,@MAKE_RULES@,,;t t
21226 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21227 s,@MAKE_DLL_RULES@,,;t t
21228 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21229 s,@MAKE_TEST_RULES@,,;t t
21230 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21231 s,@MAKE_LIB_RULES@,,;t t
21232 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21233 s,@MAKE_PROG_RULES@,,;t t
21234 CEOF
21236 _ACEOF
21238 cat >>$CONFIG_STATUS <<\_ACEOF
21239 # Split the substitutions into bite-sized pieces for seds with
21240 # small command number limits, like on Digital OSF/1 and HP-UX.
21241 ac_max_sed_lines=48
21242 ac_sed_frag=1 # Number of current file.
21243 ac_beg=1 # First line for current file.
21244 ac_end=$ac_max_sed_lines # Line after last line for current file.
21245 ac_more_lines=:
21246 ac_sed_cmds=
21247 while $ac_more_lines; do
21248 if test $ac_beg -gt 1; then
21249 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21250 else
21251 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21253 if test ! -s $tmp/subs.frag; then
21254 ac_more_lines=false
21255 else
21256 # The purpose of the label and of the branching condition is to
21257 # speed up the sed processing (if there are no `@' at all, there
21258 # is no need to browse any of the substitutions).
21259 # These are the two extra sed commands mentioned above.
21260 (echo ':t
21261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21262 if test -z "$ac_sed_cmds"; then
21263 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21264 else
21265 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21267 ac_sed_frag=`expr $ac_sed_frag + 1`
21268 ac_beg=$ac_end
21269 ac_end=`expr $ac_end + $ac_max_sed_lines`
21271 done
21272 if test -z "$ac_sed_cmds"; then
21273 ac_sed_cmds=cat
21275 fi # test -n "$CONFIG_FILES"
21277 _ACEOF
21278 cat >>$CONFIG_STATUS <<\_ACEOF
21279 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21280 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21281 case $ac_file in
21282 - | *:- | *:-:* ) # input from stdin
21283 cat >$tmp/stdin
21284 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21285 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21286 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21287 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21288 * ) ac_file_in=$ac_file.in ;;
21289 esac
21291 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21292 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21294 X"$ac_file" : 'X\(//\)[^/]' \| \
21295 X"$ac_file" : 'X\(//\)$' \| \
21296 X"$ac_file" : 'X\(/\)' \| \
21297 . : '\(.\)' 2>/dev/null ||
21298 echo X"$ac_file" |
21299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21300 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21301 /^X\(\/\/\)$/{ s//\1/; q; }
21302 /^X\(\/\).*/{ s//\1/; q; }
21303 s/.*/./; q'`
21304 { if $as_mkdir_p; then
21305 mkdir -p "$ac_dir"
21306 else
21307 as_dir="$ac_dir"
21308 as_dirs=
21309 while test ! -d "$as_dir"; do
21310 as_dirs="$as_dir $as_dirs"
21311 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21313 X"$as_dir" : 'X\(//\)[^/]' \| \
21314 X"$as_dir" : 'X\(//\)$' \| \
21315 X"$as_dir" : 'X\(/\)' \| \
21316 . : '\(.\)' 2>/dev/null ||
21317 echo X"$as_dir" |
21318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21320 /^X\(\/\/\)$/{ s//\1/; q; }
21321 /^X\(\/\).*/{ s//\1/; q; }
21322 s/.*/./; q'`
21323 done
21324 test ! -n "$as_dirs" || mkdir $as_dirs
21325 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21326 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21327 { (exit 1); exit 1; }; }; }
21329 ac_builddir=.
21331 if test "$ac_dir" != .; then
21332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21333 # A "../" for each directory in $ac_dir_suffix.
21334 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21335 else
21336 ac_dir_suffix= ac_top_builddir=
21339 case $srcdir in
21340 .) # No --srcdir option. We are building in place.
21341 ac_srcdir=.
21342 if test -z "$ac_top_builddir"; then
21343 ac_top_srcdir=.
21344 else
21345 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21346 fi ;;
21347 [\\/]* | ?:[\\/]* ) # Absolute path.
21348 ac_srcdir=$srcdir$ac_dir_suffix;
21349 ac_top_srcdir=$srcdir ;;
21350 *) # Relative path.
21351 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21352 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21353 esac
21355 # Do not use `cd foo && pwd` to compute absolute paths, because
21356 # the directories may not exist.
21357 case `pwd` in
21358 .) ac_abs_builddir="$ac_dir";;
21360 case "$ac_dir" in
21361 .) ac_abs_builddir=`pwd`;;
21362 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21363 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21364 esac;;
21365 esac
21366 case $ac_abs_builddir in
21367 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21369 case ${ac_top_builddir}. in
21370 .) ac_abs_top_builddir=$ac_abs_builddir;;
21371 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21372 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21373 esac;;
21374 esac
21375 case $ac_abs_builddir in
21376 .) ac_abs_srcdir=$ac_srcdir;;
21378 case $ac_srcdir in
21379 .) ac_abs_srcdir=$ac_abs_builddir;;
21380 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21381 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21382 esac;;
21383 esac
21384 case $ac_abs_builddir in
21385 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21387 case $ac_top_srcdir in
21388 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21389 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21390 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21391 esac;;
21392 esac
21395 case $INSTALL in
21396 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21397 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21398 esac
21400 # Let's still pretend it is `configure' which instantiates (i.e., don't
21401 # use $as_me), people would be surprised to read:
21402 # /* config.h. Generated by config.status. */
21403 if test x"$ac_file" = x-; then
21404 configure_input=
21405 else
21406 configure_input="$ac_file. "
21408 configure_input=$configure_input"Generated from `echo $ac_file_in |
21409 sed 's,.*/,,'` by configure."
21411 # First look for the input files in the build tree, otherwise in the
21412 # src tree.
21413 ac_file_inputs=`IFS=:
21414 for f in $ac_file_in; do
21415 case $f in
21416 -) echo $tmp/stdin ;;
21417 [\\/$]*)
21418 # Absolute (can't be DOS-style, as IFS=:)
21419 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21420 echo "$as_me: error: cannot find input file: $f" >&2;}
21421 { (exit 1); exit 1; }; }
21422 echo "$f";;
21423 *) # Relative
21424 if test -f "$f"; then
21425 # Build tree
21426 echo "$f"
21427 elif test -f "$srcdir/$f"; then
21428 # Source tree
21429 echo "$srcdir/$f"
21430 else
21431 # /dev/null tree
21432 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21433 echo "$as_me: error: cannot find input file: $f" >&2;}
21434 { (exit 1); exit 1; }; }
21435 fi;;
21436 esac
21437 done` || { (exit 1); exit 1; }
21439 if test x"$ac_file" != x-; then
21440 { echo "$as_me:$LINENO: creating $ac_file" >&5
21441 echo "$as_me: creating $ac_file" >&6;}
21442 rm -f "$ac_file"
21444 _ACEOF
21445 cat >>$CONFIG_STATUS <<_ACEOF
21446 sed "$ac_vpsub
21447 $extrasub
21448 _ACEOF
21449 cat >>$CONFIG_STATUS <<\_ACEOF
21451 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21452 s,@configure_input@,$configure_input,;t t
21453 s,@srcdir@,$ac_srcdir,;t t
21454 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21455 s,@top_srcdir@,$ac_top_srcdir,;t t
21456 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21457 s,@builddir@,$ac_builddir,;t t
21458 s,@abs_builddir@,$ac_abs_builddir,;t t
21459 s,@top_builddir@,$ac_top_builddir,;t t
21460 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21461 s,@INSTALL@,$ac_INSTALL,;t t
21462 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21463 rm -f $tmp/stdin
21464 if test x"$ac_file" != x-; then
21465 mv $tmp/out $ac_file
21466 else
21467 cat $tmp/out
21468 rm -f $tmp/out
21471 done
21472 _ACEOF
21473 cat >>$CONFIG_STATUS <<\_ACEOF
21476 # CONFIG_HEADER section.
21479 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21480 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21482 # ac_d sets the value in "#define NAME VALUE" lines.
21483 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21484 ac_dB='[ ].*$,\1#\2'
21485 ac_dC=' '
21486 ac_dD=',;t'
21487 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21488 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21489 ac_uB='$,\1#\2define\3'
21490 ac_uC=' '
21491 ac_uD=',;t'
21493 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21494 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21495 case $ac_file in
21496 - | *:- | *:-:* ) # input from stdin
21497 cat >$tmp/stdin
21498 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21499 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21500 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21501 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21502 * ) ac_file_in=$ac_file.in ;;
21503 esac
21505 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21506 echo "$as_me: creating $ac_file" >&6;}
21508 # First look for the input files in the build tree, otherwise in the
21509 # src tree.
21510 ac_file_inputs=`IFS=:
21511 for f in $ac_file_in; do
21512 case $f in
21513 -) echo $tmp/stdin ;;
21514 [\\/$]*)
21515 # Absolute (can't be DOS-style, as IFS=:)
21516 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21517 echo "$as_me: error: cannot find input file: $f" >&2;}
21518 { (exit 1); exit 1; }; }
21519 # Do quote $f, to prevent DOS paths from being IFS'd.
21520 echo "$f";;
21521 *) # Relative
21522 if test -f "$f"; then
21523 # Build tree
21524 echo "$f"
21525 elif test -f "$srcdir/$f"; then
21526 # Source tree
21527 echo "$srcdir/$f"
21528 else
21529 # /dev/null tree
21530 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21531 echo "$as_me: error: cannot find input file: $f" >&2;}
21532 { (exit 1); exit 1; }; }
21533 fi;;
21534 esac
21535 done` || { (exit 1); exit 1; }
21536 # Remove the trailing spaces.
21537 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21539 _ACEOF
21541 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21542 # `conftest.undefs', that substitutes the proper values into
21543 # config.h.in to produce config.h. The first handles `#define'
21544 # templates, and the second `#undef' templates.
21545 # And first: Protect against being on the right side of a sed subst in
21546 # config.status. Protect against being in an unquoted here document
21547 # in config.status.
21548 rm -f conftest.defines conftest.undefs
21549 # Using a here document instead of a string reduces the quoting nightmare.
21550 # Putting comments in sed scripts is not portable.
21552 # `end' is used to avoid that the second main sed command (meant for
21553 # 0-ary CPP macros) applies to n-ary macro definitions.
21554 # See the Autoconf documentation for `clear'.
21555 cat >confdef2sed.sed <<\_ACEOF
21556 s/[\\&,]/\\&/g
21557 s,[\\$`],\\&,g
21558 t clear
21559 : clear
21560 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21561 t end
21562 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21563 : end
21564 _ACEOF
21565 # If some macros were called several times there might be several times
21566 # the same #defines, which is useless. Nevertheless, we may not want to
21567 # sort them, since we want the *last* AC-DEFINE to be honored.
21568 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21569 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21570 rm -f confdef2sed.sed
21572 # This sed command replaces #undef with comments. This is necessary, for
21573 # example, in the case of _POSIX_SOURCE, which is predefined and required
21574 # on some systems where configure will not decide to define it.
21575 cat >>conftest.undefs <<\_ACEOF
21576 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21577 _ACEOF
21579 # Break up conftest.defines because some shells have a limit on the size
21580 # of here documents, and old seds have small limits too (100 cmds).
21581 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21582 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21583 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21584 echo ' :' >>$CONFIG_STATUS
21585 rm -f conftest.tail
21586 while grep . conftest.defines >/dev/null
21588 # Write a limited-size here document to $tmp/defines.sed.
21589 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21590 # Speed up: don't consider the non `#define' lines.
21591 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21592 # Work around the forget-to-reset-the-flag bug.
21593 echo 't clr' >>$CONFIG_STATUS
21594 echo ': clr' >>$CONFIG_STATUS
21595 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21596 echo 'CEOF
21597 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21598 rm -f $tmp/in
21599 mv $tmp/out $tmp/in
21600 ' >>$CONFIG_STATUS
21601 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21602 rm -f conftest.defines
21603 mv conftest.tail conftest.defines
21604 done
21605 rm -f conftest.defines
21606 echo ' fi # grep' >>$CONFIG_STATUS
21607 echo >>$CONFIG_STATUS
21609 # Break up conftest.undefs because some shells have a limit on the size
21610 # of here documents, and old seds have small limits too (100 cmds).
21611 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21612 rm -f conftest.tail
21613 while grep . conftest.undefs >/dev/null
21615 # Write a limited-size here document to $tmp/undefs.sed.
21616 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21617 # Speed up: don't consider the non `#undef'
21618 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21619 # Work around the forget-to-reset-the-flag bug.
21620 echo 't clr' >>$CONFIG_STATUS
21621 echo ': clr' >>$CONFIG_STATUS
21622 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21623 echo 'CEOF
21624 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21625 rm -f $tmp/in
21626 mv $tmp/out $tmp/in
21627 ' >>$CONFIG_STATUS
21628 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21629 rm -f conftest.undefs
21630 mv conftest.tail conftest.undefs
21631 done
21632 rm -f conftest.undefs
21634 cat >>$CONFIG_STATUS <<\_ACEOF
21635 # Let's still pretend it is `configure' which instantiates (i.e., don't
21636 # use $as_me), people would be surprised to read:
21637 # /* config.h. Generated by config.status. */
21638 if test x"$ac_file" = x-; then
21639 echo "/* Generated by configure. */" >$tmp/config.h
21640 else
21641 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21643 cat $tmp/in >>$tmp/config.h
21644 rm -f $tmp/in
21645 if test x"$ac_file" != x-; then
21646 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21647 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21648 echo "$as_me: $ac_file is unchanged" >&6;}
21649 else
21650 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21651 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21652 X"$ac_file" : 'X\(//\)[^/]' \| \
21653 X"$ac_file" : 'X\(//\)$' \| \
21654 X"$ac_file" : 'X\(/\)' \| \
21655 . : '\(.\)' 2>/dev/null ||
21656 echo X"$ac_file" |
21657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21659 /^X\(\/\/\)$/{ s//\1/; q; }
21660 /^X\(\/\).*/{ s//\1/; q; }
21661 s/.*/./; q'`
21662 { if $as_mkdir_p; then
21663 mkdir -p "$ac_dir"
21664 else
21665 as_dir="$ac_dir"
21666 as_dirs=
21667 while test ! -d "$as_dir"; do
21668 as_dirs="$as_dir $as_dirs"
21669 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21671 X"$as_dir" : 'X\(//\)[^/]' \| \
21672 X"$as_dir" : 'X\(//\)$' \| \
21673 X"$as_dir" : 'X\(/\)' \| \
21674 . : '\(.\)' 2>/dev/null ||
21675 echo X"$as_dir" |
21676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21678 /^X\(\/\/\)$/{ s//\1/; q; }
21679 /^X\(\/\).*/{ s//\1/; q; }
21680 s/.*/./; q'`
21681 done
21682 test ! -n "$as_dirs" || mkdir $as_dirs
21683 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21684 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21685 { (exit 1); exit 1; }; }; }
21687 rm -f $ac_file
21688 mv $tmp/config.h $ac_file
21690 else
21691 cat $tmp/config.h
21692 rm -f $tmp/config.h
21694 done
21695 _ACEOF
21696 cat >>$CONFIG_STATUS <<\_ACEOF
21699 # CONFIG_COMMANDS section.
21701 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21702 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21703 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21704 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21705 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21706 X"$ac_dest" : 'X\(//\)[^/]' \| \
21707 X"$ac_dest" : 'X\(//\)$' \| \
21708 X"$ac_dest" : 'X\(/\)' \| \
21709 . : '\(.\)' 2>/dev/null ||
21710 echo X"$ac_dest" |
21711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21713 /^X\(\/\/\)$/{ s//\1/; q; }
21714 /^X\(\/\).*/{ s//\1/; q; }
21715 s/.*/./; q'`
21716 { if $as_mkdir_p; then
21717 mkdir -p "$ac_dir"
21718 else
21719 as_dir="$ac_dir"
21720 as_dirs=
21721 while test ! -d "$as_dir"; do
21722 as_dirs="$as_dir $as_dirs"
21723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21725 X"$as_dir" : 'X\(//\)[^/]' \| \
21726 X"$as_dir" : 'X\(//\)$' \| \
21727 X"$as_dir" : 'X\(/\)' \| \
21728 . : '\(.\)' 2>/dev/null ||
21729 echo X"$as_dir" |
21730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21732 /^X\(\/\/\)$/{ s//\1/; q; }
21733 /^X\(\/\).*/{ s//\1/; q; }
21734 s/.*/./; q'`
21735 done
21736 test ! -n "$as_dirs" || mkdir $as_dirs
21737 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21738 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21739 { (exit 1); exit 1; }; }; }
21741 ac_builddir=.
21743 if test "$ac_dir" != .; then
21744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21745 # A "../" for each directory in $ac_dir_suffix.
21746 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21747 else
21748 ac_dir_suffix= ac_top_builddir=
21751 case $srcdir in
21752 .) # No --srcdir option. We are building in place.
21753 ac_srcdir=.
21754 if test -z "$ac_top_builddir"; then
21755 ac_top_srcdir=.
21756 else
21757 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21758 fi ;;
21759 [\\/]* | ?:[\\/]* ) # Absolute path.
21760 ac_srcdir=$srcdir$ac_dir_suffix;
21761 ac_top_srcdir=$srcdir ;;
21762 *) # Relative path.
21763 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21764 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21765 esac
21767 # Do not use `cd foo && pwd` to compute absolute paths, because
21768 # the directories may not exist.
21769 case `pwd` in
21770 .) ac_abs_builddir="$ac_dir";;
21772 case "$ac_dir" in
21773 .) ac_abs_builddir=`pwd`;;
21774 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21775 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21776 esac;;
21777 esac
21778 case $ac_abs_builddir in
21779 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21781 case ${ac_top_builddir}. in
21782 .) ac_abs_top_builddir=$ac_abs_builddir;;
21783 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21784 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21785 esac;;
21786 esac
21787 case $ac_abs_builddir in
21788 .) ac_abs_srcdir=$ac_srcdir;;
21790 case $ac_srcdir in
21791 .) ac_abs_srcdir=$ac_abs_builddir;;
21792 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21793 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21794 esac;;
21795 esac
21796 case $ac_abs_builddir in
21797 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21799 case $ac_top_srcdir in
21800 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21801 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21802 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21803 esac;;
21804 esac
21807 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21808 echo "$as_me: executing $ac_dest commands" >&6;}
21809 case $ac_dest in
21810 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21811 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21812 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21813 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21814 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21815 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21816 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21817 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21818 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21819 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21820 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21821 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21822 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21823 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21824 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21825 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21826 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21827 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21828 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21829 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21830 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21831 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21832 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21833 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21834 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21835 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21836 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21837 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21838 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21839 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21840 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21841 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21842 esac
21843 done
21844 _ACEOF
21846 cat >>$CONFIG_STATUS <<\_ACEOF
21848 { (exit 0); exit 0; }
21849 _ACEOF
21850 chmod +x $CONFIG_STATUS
21851 ac_clean_files=$ac_clean_files_save
21854 # configure is writing to config.log, and then calls config.status.
21855 # config.status does its own redirection, appending to config.log.
21856 # Unfortunately, on DOS this fails, as config.log is still kept open
21857 # by configure, so config.status won't be able to write to it; its
21858 # output is simply discarded. So we exec the FD to /dev/null,
21859 # effectively closing config.log, so it can be properly (re)opened and
21860 # appended to by config.status. When coming back to configure, we
21861 # need to make the FD available again.
21862 if test "$no_create" != yes; then
21863 ac_cs_success=:
21864 ac_config_status_args=
21865 test "$silent" = yes &&
21866 ac_config_status_args="$ac_config_status_args --quiet"
21867 exec 5>/dev/null
21868 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21869 exec 5>>config.log
21870 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21871 # would make configure fail if this is the last instruction.
21872 $ac_cs_success || { (exit 1); exit 1; }
21876 if test "$have_x" = "no"
21877 then
21878 echo
21879 echo "*** Warning: X development files not found. Wine will be built without"
21880 echo "*** X support, which currently does not work, and would probably not be"
21881 echo "*** what you want anyway. You will need to install devel packages of"
21882 echo "*** Xlib/Xfree86 at the very least."
21885 if test "$wine_cv_opengl_version_OK" = "no"
21886 then
21887 echo
21888 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21889 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21892 if test "$wine_cv_msg_freetype" = "yes"
21893 then
21894 echo
21895 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21896 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21897 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21898 echo "*** enable Wine to use TrueType fonts."
21901 echo
21902 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
21903 echo