Free the memory view before we unload a builtin dll to avoid a race
[wine/multimedia.git] / configure
blobfa067a99a6e20e7751be5850daf4e674ba9b151f
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
16487 for ac_header in \
16488 arpa/inet.h \
16489 arpa/nameser.h \
16490 cups/cups.h \
16491 direct.h \
16492 elf.h \
16493 float.h \
16494 fontconfig/fontconfig.h \
16495 getopt.h \
16496 gif_lib.h \
16497 ieeefp.h \
16498 io.h \
16499 jack/jack.h \
16500 jpeglib.h \
16501 lcms.h \
16502 libio.h \
16503 libutil.h \
16504 link.h \
16505 linux/cdrom.h \
16506 linux/compiler.h \
16507 linux/hdreg.h \
16508 linux/input.h \
16509 linux/ioctl.h \
16510 linux/joystick.h \
16511 linux/major.h \
16512 linux/param.h \
16513 linux/serial.h \
16514 linux/ucdrom.h \
16515 machine/cpu.h \
16516 mntent.h \
16517 netdb.h \
16518 netinet/in.h \
16519 netinet/in_systm.h \
16520 netinet/tcp.h \
16521 netinet/tcp_fsm.h \
16522 openssl/des.h \
16523 openssl/md2.h \
16524 openssl/rc2.h \
16525 openssl/rc4.h \
16526 openssl/rsa.h \
16527 openssl/ssl.h \
16528 process.h \
16529 pthread.h \
16530 pty.h \
16531 pwd.h \
16532 regex.h \
16533 sched.h \
16534 scsi/sg.h \
16535 scsi/scsi.h \
16536 scsi/scsi_ioctl.h \
16537 socket.h \
16538 stdint.h \
16539 strings.h \
16540 sys/cdio.h \
16541 sys/elf32.h \
16542 sys/errno.h \
16543 sys/epoll.h \
16544 sys/exec_elf.h \
16545 sys/file.h \
16546 sys/filio.h \
16547 sys/inttypes.h \
16548 sys/ioctl.h \
16549 sys/ipc.h \
16550 sys/link.h \
16551 sys/lwp.h \
16552 sys/mman.h \
16553 sys/modem.h \
16554 sys/msg.h \
16555 sys/param.h \
16556 sys/poll.h \
16557 sys/ptrace.h \
16558 sys/reg.h \
16559 sys/scsiio.h \
16560 sys/shm.h \
16561 sys/signal.h \
16562 sys/socket.h \
16563 sys/sockio.h \
16564 sys/statfs.h \
16565 sys/statvfs.h \
16566 sys/strtio.h \
16567 sys/syscall.h \
16568 sys/sysctl.h \
16569 sys/time.h \
16570 sys/times.h \
16571 sys/uio.h \
16572 sys/un.h \
16573 sys/v86.h \
16574 sys/v86intr.h \
16575 sys/vfs.h \
16576 sys/vm86.h \
16577 sys/wait.h \
16578 syscall.h \
16579 termios.h \
16580 unistd.h \
16581 utime.h \
16582 valgrind/memcheck.h
16585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16587 echo "$as_me:$LINENO: checking for $ac_header" >&5
16588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16594 else
16595 # Is the header compilable?
16596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16598 cat >conftest.$ac_ext <<_ACEOF
16599 /* confdefs.h. */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16604 $ac_includes_default
16605 #include <$ac_header>
16606 _ACEOF
16607 rm -f conftest.$ac_objext
16608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16609 (eval $ac_compile) 2>conftest.er1
16610 ac_status=$?
16611 grep -v '^ *+' conftest.er1 >conftest.err
16612 rm -f conftest.er1
16613 cat conftest.err >&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
16616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; } &&
16622 { ac_try='test -s conftest.$ac_objext'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_header_compiler=yes
16629 else
16630 echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16633 ac_header_compiler=no
16635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16637 echo "${ECHO_T}$ac_header_compiler" >&6
16639 # Is the header present?
16640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16642 cat >conftest.$ac_ext <<_ACEOF
16643 /* confdefs.h. */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16648 #include <$ac_header>
16649 _ACEOF
16650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16652 ac_status=$?
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } >/dev/null; then
16658 if test -s conftest.err; then
16659 ac_cpp_err=$ac_c_preproc_warn_flag
16660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16661 else
16662 ac_cpp_err=
16664 else
16665 ac_cpp_err=yes
16667 if test -z "$ac_cpp_err"; then
16668 ac_header_preproc=yes
16669 else
16670 echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16673 ac_header_preproc=no
16675 rm -f conftest.err conftest.$ac_ext
16676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16677 echo "${ECHO_T}$ac_header_preproc" >&6
16679 # So? What about this header?
16680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16681 yes:no: )
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16686 ac_header_preproc=yes
16688 no:yes:* )
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16702 cat <<\_ASBOX
16703 ## ------------------------------------ ##
16704 ## Report this to wine-devel@winehq.org ##
16705 ## ------------------------------------ ##
16706 _ASBOX
16708 sed "s/^/$as_me: WARNING: /" >&2
16710 esac
16711 echo "$as_me:$LINENO: checking for $ac_header" >&5
16712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 else
16716 eval "$as_ac_Header=\$ac_header_preproc"
16718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16723 cat >>confdefs.h <<_ACEOF
16724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16725 _ACEOF
16729 done
16731 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16732 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16733 if test "${ac_cv_header_stat_broken+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16736 cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h. */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16742 #include <sys/types.h>
16743 #include <sys/stat.h>
16745 #if defined(S_ISBLK) && defined(S_IFDIR)
16746 # if S_ISBLK (S_IFDIR)
16747 You lose.
16748 # endif
16749 #endif
16751 #if defined(S_ISBLK) && defined(S_IFCHR)
16752 # if S_ISBLK (S_IFCHR)
16753 You lose.
16754 # endif
16755 #endif
16757 #if defined(S_ISLNK) && defined(S_IFREG)
16758 # if S_ISLNK (S_IFREG)
16759 You lose.
16760 # endif
16761 #endif
16763 #if defined(S_ISSOCK) && defined(S_IFREG)
16764 # if S_ISSOCK (S_IFREG)
16765 You lose.
16766 # endif
16767 #endif
16769 _ACEOF
16770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16771 $EGREP "You lose" >/dev/null 2>&1; then
16772 ac_cv_header_stat_broken=yes
16773 else
16774 ac_cv_header_stat_broken=no
16776 rm -f conftest*
16779 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16780 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16781 if test $ac_cv_header_stat_broken = yes; then
16783 cat >>confdefs.h <<\_ACEOF
16784 #define STAT_MACROS_BROKEN 1
16785 _ACEOF
16793 for ac_header in sys/mount.h sys/user.h
16795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16796 echo "$as_me:$LINENO: checking for $ac_header" >&5
16797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 else
16801 cat >conftest.$ac_ext <<_ACEOF
16802 /* confdefs.h. */
16803 _ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16807 #include <sys/types.h>
16808 #if HAVE_SYS_PARAM_H
16809 # include <sys/param.h>
16810 #endif
16812 #include <$ac_header>
16813 _ACEOF
16814 rm -f conftest.$ac_objext
16815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16816 (eval $ac_compile) 2>conftest.er1
16817 ac_status=$?
16818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest.$ac_objext'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 eval "$as_ac_Header=yes"
16836 else
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 eval "$as_ac_Header=no"
16842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16847 cat >>confdefs.h <<_ACEOF
16848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16849 _ACEOF
16853 done
16861 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16864 echo "$as_me:$LINENO: checking for $ac_header" >&5
16865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869 cat >conftest.$ac_ext <<_ACEOF
16870 /* confdefs.h. */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16875 #include <sys/types.h>
16876 #if HAVE_SYS_SOCKET_H
16877 # include <sys/socket.h>
16878 #endif
16880 #include <$ac_header>
16881 _ACEOF
16882 rm -f conftest.$ac_objext
16883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16884 (eval $ac_compile) 2>conftest.er1
16885 ac_status=$?
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } &&
16891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest.$ac_objext'
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; }; then
16903 eval "$as_ac_Header=yes"
16904 else
16905 echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16908 eval "$as_ac_Header=no"
16910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16915 cat >>confdefs.h <<_ACEOF
16916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16917 _ACEOF
16921 done
16925 for ac_header in resolv.h
16927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16928 echo "$as_me:$LINENO: checking for $ac_header" >&5
16929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933 cat >conftest.$ac_ext <<_ACEOF
16934 /* confdefs.h. */
16935 _ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h. */
16939 #include <sys/types.h>
16940 #if HAVE_SYS_SOCKET_H
16941 # include <sys/socket.h>
16942 #endif
16943 #if HAVE_NETINET_IN_H
16944 # include <netinet/in.h>
16945 #endif
16946 #if HAVE_ARPA_NAMESER_H
16947 # include <arpa/nameser.h>
16948 #endif
16950 #include <$ac_header>
16951 _ACEOF
16952 rm -f conftest.$ac_objext
16953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16954 (eval $ac_compile) 2>conftest.er1
16955 ac_status=$?
16956 grep -v '^ *+' conftest.er1 >conftest.err
16957 rm -f conftest.er1
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
16961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; } &&
16967 { ac_try='test -s conftest.$ac_objext'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
16973 eval "$as_ac_Header=yes"
16974 else
16975 echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16978 eval "$as_ac_Header=no"
16980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16985 cat >>confdefs.h <<_ACEOF
16986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16987 _ACEOF
16991 done
16995 for ac_header in netinet/ip.h
16997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16998 echo "$as_me:$LINENO: checking for $ac_header" >&5
16999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 else
17003 cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h. */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17009 #include <sys/types.h>
17010 #if HAVE_SYS_SOCKET_H
17011 # include <sys/socket.h>
17012 #endif
17013 #if HAVE_NETINET_IN_SYSTM_H
17014 # include <netinet/in_systm.h>
17015 #endif
17017 #include <$ac_header>
17018 _ACEOF
17019 rm -f conftest.$ac_objext
17020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17021 (eval $ac_compile) 2>conftest.er1
17022 ac_status=$?
17023 grep -v '^ *+' conftest.er1 >conftest.err
17024 rm -f conftest.er1
17025 cat conftest.err >&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
17028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest.$ac_objext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 eval "$as_ac_Header=yes"
17041 else
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 eval "$as_ac_Header=no"
17047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17052 cat >>confdefs.h <<_ACEOF
17053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17054 _ACEOF
17058 done
17062 for ac_header in ucontext.h
17064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17065 echo "$as_me:$LINENO: checking for $ac_header" >&5
17066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070 cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h. */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17076 #include <signal.h>
17078 #include <$ac_header>
17079 _ACEOF
17080 rm -f conftest.$ac_objext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17082 (eval $ac_compile) 2>conftest.er1
17083 ac_status=$?
17084 grep -v '^ *+' conftest.er1 >conftest.err
17085 rm -f conftest.er1
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
17089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest.$ac_objext'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
17101 eval "$as_ac_Header=yes"
17102 else
17103 echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.$ac_ext >&5
17106 eval "$as_ac_Header=no"
17108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17113 cat >>confdefs.h <<_ACEOF
17114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17115 _ACEOF
17119 done
17123 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
17124 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
17125 if test "${ac_cv_c_ipx_gnu+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 else
17128 cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h. */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17134 #include <sys/types.h>
17135 #ifdef HAVE_SYS_SOCKET_H
17136 # include <sys/socket.h>
17137 #endif
17138 #include <netipx/ipx.h>
17140 main ()
17142 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17144 return 0;
17146 _ACEOF
17147 rm -f conftest.$ac_objext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17149 (eval $ac_compile) 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_cv_c_ipx_gnu="yes"
17169 else
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17173 ac_cv_c_ipx_gnu="no"
17175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17178 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17179 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17180 if test "$ac_cv_c_ipx_gnu" = "yes"
17181 then
17183 cat >>confdefs.h <<\_ACEOF
17184 #define HAVE_IPX_GNU 1
17185 _ACEOF
17189 if test "$ac_cv_c_ipx_gnu" = "no"
17190 then
17191 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17192 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17193 if test "${ac_cv_c_ipx_linux+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17195 else
17196 cat >conftest.$ac_ext <<_ACEOF
17197 /* confdefs.h. */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202 #include <sys/types.h>
17203 #ifdef HAVE_SYS_SOCKET_H
17204 # include <sys/socket.h>
17205 #endif
17206 #include <asm/types.h>
17207 #include <linux/ipx.h>
17209 main ()
17211 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17213 return 0;
17215 _ACEOF
17216 rm -f conftest.$ac_objext
17217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17218 (eval $ac_compile) 2>conftest.er1
17219 ac_status=$?
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
17225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227 (eval $ac_try) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; } &&
17231 { ac_try='test -s conftest.$ac_objext'
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 ac_cv_c_ipx_linux="yes"
17238 else
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ac_cv_c_ipx_linux="no"
17244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17247 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17248 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17249 if test "$ac_cv_c_ipx_linux" = "yes"
17250 then
17252 cat >>confdefs.h <<\_ACEOF
17253 #define HAVE_IPX_LINUX 1
17254 _ACEOF
17260 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17261 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17262 if test "${ac_cv_c_const+set}" = set; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17264 else
17265 cat >conftest.$ac_ext <<_ACEOF
17266 /* confdefs.h. */
17267 _ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17273 main ()
17275 /* FIXME: Include the comments suggested by Paul. */
17276 #ifndef __cplusplus
17277 /* Ultrix mips cc rejects this. */
17278 typedef int charset[2];
17279 const charset x;
17280 /* SunOS 4.1.1 cc rejects this. */
17281 char const *const *ccp;
17282 char **p;
17283 /* NEC SVR4.0.2 mips cc rejects this. */
17284 struct point {int x, y;};
17285 static struct point const zero = {0,0};
17286 /* AIX XL C 1.02.0.0 rejects this.
17287 It does not let you subtract one const X* pointer from another in
17288 an arm of an if-expression whose if-part is not a constant
17289 expression */
17290 const char *g = "string";
17291 ccp = &g + (g ? g-g : 0);
17292 /* HPUX 7.0 cc rejects these. */
17293 ++ccp;
17294 p = (char**) ccp;
17295 ccp = (char const *const *) p;
17296 { /* SCO 3.2v4 cc rejects this. */
17297 char *t;
17298 char const *s = 0 ? (char *) 0 : (char const *) 0;
17300 *t++ = 0;
17302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17303 int x[] = {25, 17};
17304 const int *foo = &x[0];
17305 ++foo;
17307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17308 typedef const int *iptr;
17309 iptr p = 0;
17310 ++p;
17312 { /* AIX XL C 1.02.0.0 rejects this saying
17313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17314 struct s { int j; const int *ap[3]; };
17315 struct s *b; b->j = 5;
17317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17318 const int foo = 10;
17320 #endif
17323 return 0;
17325 _ACEOF
17326 rm -f conftest.$ac_objext
17327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17328 (eval $ac_compile) 2>conftest.er1
17329 ac_status=$?
17330 grep -v '^ *+' conftest.er1 >conftest.err
17331 rm -f conftest.er1
17332 cat conftest.err >&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); } &&
17335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; } &&
17341 { ac_try='test -s conftest.$ac_objext'
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17344 ac_status=$?
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; }; then
17347 ac_cv_c_const=yes
17348 else
17349 echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17352 ac_cv_c_const=no
17354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17356 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17357 echo "${ECHO_T}$ac_cv_c_const" >&6
17358 if test $ac_cv_c_const = no; then
17360 cat >>confdefs.h <<\_ACEOF
17361 #define const
17362 _ACEOF
17366 echo "$as_me:$LINENO: checking for inline" >&5
17367 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17368 if test "${ac_cv_c_inline+set}" = set; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 else
17371 ac_cv_c_inline=no
17372 for ac_kw in inline __inline__ __inline; do
17373 cat >conftest.$ac_ext <<_ACEOF
17374 /* confdefs.h. */
17375 _ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17379 #ifndef __cplusplus
17380 typedef int foo_t;
17381 static $ac_kw foo_t static_foo () {return 0; }
17382 $ac_kw foo_t foo () {return 0; }
17383 #endif
17385 _ACEOF
17386 rm -f conftest.$ac_objext
17387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17388 (eval $ac_compile) 2>conftest.er1
17389 ac_status=$?
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest.$ac_objext'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 ac_cv_c_inline=$ac_kw; break
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17414 done
17417 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17418 echo "${ECHO_T}$ac_cv_c_inline" >&6
17421 case $ac_cv_c_inline in
17422 inline | yes) ;;
17424 case $ac_cv_c_inline in
17425 no) ac_val=;;
17426 *) ac_val=$ac_cv_c_inline;;
17427 esac
17428 cat >>confdefs.h <<_ACEOF
17429 #ifndef __cplusplus
17430 #define inline $ac_val
17431 #endif
17432 _ACEOF
17434 esac
17436 echo "$as_me:$LINENO: checking for mode_t" >&5
17437 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17438 if test "${ac_cv_type_mode_t+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17440 else
17441 cat >conftest.$ac_ext <<_ACEOF
17442 /* confdefs.h. */
17443 _ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17447 $ac_includes_default
17449 main ()
17451 if ((mode_t *) 0)
17452 return 0;
17453 if (sizeof (mode_t))
17454 return 0;
17456 return 0;
17458 _ACEOF
17459 rm -f conftest.$ac_objext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17461 (eval $ac_compile) 2>conftest.er1
17462 ac_status=$?
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
17468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; } &&
17474 { ac_try='test -s conftest.$ac_objext'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ac_cv_type_mode_t=yes
17481 else
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485 ac_cv_type_mode_t=no
17487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17489 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17490 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17491 if test $ac_cv_type_mode_t = yes; then
17493 cat >>confdefs.h <<_ACEOF
17494 #define HAVE_MODE_T 1
17495 _ACEOF
17499 echo "$as_me:$LINENO: checking for off_t" >&5
17500 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17501 if test "${ac_cv_type_off_t+set}" = set; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 else
17504 cat >conftest.$ac_ext <<_ACEOF
17505 /* confdefs.h. */
17506 _ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h. */
17510 $ac_includes_default
17512 main ()
17514 if ((off_t *) 0)
17515 return 0;
17516 if (sizeof (off_t))
17517 return 0;
17519 return 0;
17521 _ACEOF
17522 rm -f conftest.$ac_objext
17523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17524 (eval $ac_compile) 2>conftest.er1
17525 ac_status=$?
17526 grep -v '^ *+' conftest.er1 >conftest.err
17527 rm -f conftest.er1
17528 cat conftest.err >&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } &&
17531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17534 ac_status=$?
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; } &&
17537 { ac_try='test -s conftest.$ac_objext'
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; }; then
17543 ac_cv_type_off_t=yes
17544 else
17545 echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17548 ac_cv_type_off_t=no
17550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17552 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17553 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17554 if test $ac_cv_type_off_t = yes; then
17556 cat >>confdefs.h <<_ACEOF
17557 #define HAVE_OFF_T 1
17558 _ACEOF
17562 echo "$as_me:$LINENO: checking for pid_t" >&5
17563 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17564 if test "${ac_cv_type_pid_t+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 else
17567 cat >conftest.$ac_ext <<_ACEOF
17568 /* confdefs.h. */
17569 _ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17573 $ac_includes_default
17575 main ()
17577 if ((pid_t *) 0)
17578 return 0;
17579 if (sizeof (pid_t))
17580 return 0;
17582 return 0;
17584 _ACEOF
17585 rm -f conftest.$ac_objext
17586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17587 (eval $ac_compile) 2>conftest.er1
17588 ac_status=$?
17589 grep -v '^ *+' conftest.er1 >conftest.err
17590 rm -f conftest.er1
17591 cat conftest.err >&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } &&
17594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest.$ac_objext'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17603 ac_status=$?
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 ac_cv_type_pid_t=yes
17607 else
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 ac_cv_type_pid_t=no
17613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17615 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17616 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17617 if test $ac_cv_type_pid_t = yes; then
17619 cat >>confdefs.h <<_ACEOF
17620 #define HAVE_PID_T 1
17621 _ACEOF
17625 echo "$as_me:$LINENO: checking for size_t" >&5
17626 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17627 if test "${ac_cv_type_size_t+set}" = set; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 else
17630 cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h. */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17636 $ac_includes_default
17638 main ()
17640 if ((size_t *) 0)
17641 return 0;
17642 if (sizeof (size_t))
17643 return 0;
17645 return 0;
17647 _ACEOF
17648 rm -f conftest.$ac_objext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17650 (eval $ac_compile) 2>conftest.er1
17651 ac_status=$?
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try='test -s conftest.$ac_objext'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 ac_cv_type_size_t=yes
17670 else
17671 echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17674 ac_cv_type_size_t=no
17676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17678 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17679 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17680 if test $ac_cv_type_size_t = yes; then
17682 cat >>confdefs.h <<_ACEOF
17683 #define HAVE_SIZE_T 1
17684 _ACEOF
17688 echo "$as_me:$LINENO: checking for ssize_t" >&5
17689 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17690 if test "${ac_cv_type_ssize_t+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693 cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h. */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17699 $ac_includes_default
17701 main ()
17703 if ((ssize_t *) 0)
17704 return 0;
17705 if (sizeof (ssize_t))
17706 return 0;
17708 return 0;
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17713 (eval $ac_compile) 2>conftest.er1
17714 ac_status=$?
17715 grep -v '^ *+' conftest.er1 >conftest.err
17716 rm -f conftest.er1
17717 cat conftest.err >&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } &&
17720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest.$ac_objext'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 ac_cv_type_ssize_t=yes
17733 else
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_cv_type_ssize_t=no
17739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17741 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17742 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17743 if test $ac_cv_type_ssize_t = yes; then
17745 cat >>confdefs.h <<_ACEOF
17746 #define HAVE_SSIZE_T 1
17747 _ACEOF
17751 echo "$as_me:$LINENO: checking for long long" >&5
17752 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17753 if test "${ac_cv_type_long_long+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 else
17756 cat >conftest.$ac_ext <<_ACEOF
17757 /* confdefs.h. */
17758 _ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 $ac_includes_default
17764 main ()
17766 if ((long long *) 0)
17767 return 0;
17768 if (sizeof (long long))
17769 return 0;
17771 return 0;
17773 _ACEOF
17774 rm -f conftest.$ac_objext
17775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17776 (eval $ac_compile) 2>conftest.er1
17777 ac_status=$?
17778 grep -v '^ *+' conftest.er1 >conftest.err
17779 rm -f conftest.er1
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } &&
17783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest.$ac_objext'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17792 ac_status=$?
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 ac_cv_type_long_long=yes
17796 else
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 ac_cv_type_long_long=no
17802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17804 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17805 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17806 if test $ac_cv_type_long_long = yes; then
17808 cat >>confdefs.h <<_ACEOF
17809 #define HAVE_LONG_LONG 1
17810 _ACEOF
17814 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17815 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17816 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h. */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17825 $ac_includes_default
17827 main ()
17829 if ((fsblkcnt_t *) 0)
17830 return 0;
17831 if (sizeof (fsblkcnt_t))
17832 return 0;
17834 return 0;
17836 _ACEOF
17837 rm -f conftest.$ac_objext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17839 (eval $ac_compile) 2>conftest.er1
17840 ac_status=$?
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; } &&
17852 { ac_try='test -s conftest.$ac_objext'
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_cv_type_fsblkcnt_t=yes
17859 else
17860 echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17863 ac_cv_type_fsblkcnt_t=no
17865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17867 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17868 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17869 if test $ac_cv_type_fsblkcnt_t = yes; then
17871 cat >>confdefs.h <<_ACEOF
17872 #define HAVE_FSBLKCNT_T 1
17873 _ACEOF
17877 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17878 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17879 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 else
17882 cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h. */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888 $ac_includes_default
17890 main ()
17892 if ((fsfilcnt_t *) 0)
17893 return 0;
17894 if (sizeof (fsfilcnt_t))
17895 return 0;
17897 return 0;
17899 _ACEOF
17900 rm -f conftest.$ac_objext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17902 (eval $ac_compile) 2>conftest.er1
17903 ac_status=$?
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; } &&
17915 { ac_try='test -s conftest.$ac_objext'
17916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917 (eval $ac_try) 2>&5
17918 ac_status=$?
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; }; then
17921 ac_cv_type_fsfilcnt_t=yes
17922 else
17923 echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17926 ac_cv_type_fsfilcnt_t=no
17928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17930 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17931 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17932 if test $ac_cv_type_fsfilcnt_t = yes; then
17934 cat >>confdefs.h <<_ACEOF
17935 #define HAVE_FSFILCNT_T 1
17936 _ACEOF
17942 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17943 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17944 if test "${wine_cv_linux_input_h+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 else
17947 cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h. */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17954 #include <linux/input.h>
17957 main ()
17960 int foo = EVIOCGBIT(EV_ABS,42);
17961 int bar = BTN_PINKIE;
17962 int fortytwo = 42;
17965 return 0;
17967 _ACEOF
17968 rm -f conftest.$ac_objext
17969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17970 (eval $ac_compile) 2>conftest.er1
17971 ac_status=$?
17972 grep -v '^ *+' conftest.er1 >conftest.err
17973 rm -f conftest.er1
17974 cat conftest.err >&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } &&
17977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17980 ac_status=$?
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; } &&
17983 { ac_try='test -s conftest.$ac_objext'
17984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985 (eval $ac_try) 2>&5
17986 ac_status=$?
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; }; then
17989 wine_cv_linux_input_h=yes
17990 else
17991 echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17994 wine_cv_linux_input_h=no
17996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17999 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
18000 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
18001 if test "$wine_cv_linux_input_h" = "yes"
18002 then
18004 cat >>confdefs.h <<\_ACEOF
18005 #define HAVE_CORRECT_LINUXINPUT_H 1
18006 _ACEOF
18011 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
18012 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
18013 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 else
18016 cat >conftest.$ac_ext <<_ACEOF
18017 /* confdefs.h. */
18018 _ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h. */
18023 #include <netdb.h>
18026 main ()
18029 char *name=NULL;
18030 struct hostent he;
18031 struct hostent *result;
18032 char *buf=NULL;
18033 int bufsize=0;
18034 int res,errnr;
18035 char *addr=NULL;
18036 int addrlen=0;
18037 int addrtype=0;
18038 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
18039 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
18042 return 0;
18044 _ACEOF
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18047 (eval $ac_link) 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } &&
18054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest$ac_exeext'
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; }; then
18066 wine_cv_linux_gethostbyname_r_6=yes
18067 else
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 wine_cv_linux_gethostbyname_r_6=no
18074 rm -f conftest.err conftest.$ac_objext \
18075 conftest$ac_exeext conftest.$ac_ext
18078 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
18079 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
18080 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
18081 then
18083 cat >>confdefs.h <<\_ACEOF
18084 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
18085 _ACEOF
18089 if test "$ac_cv_header_linux_joystick_h" = "yes"
18090 then
18091 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
18092 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
18093 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18095 else
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18103 #include <sys/ioctl.h>
18104 #include <linux/joystick.h>
18106 struct js_event blub;
18107 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18108 #error "no 2.2 header"
18109 #endif
18112 main ()
18114 /*empty*/
18116 return 0;
18118 _ACEOF
18119 rm -f conftest.$ac_objext
18120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18121 (eval $ac_compile) 2>conftest.er1
18122 ac_status=$?
18123 grep -v '^ *+' conftest.er1 >conftest.err
18124 rm -f conftest.er1
18125 cat conftest.err >&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } &&
18128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18131 ac_status=$?
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; } &&
18134 { ac_try='test -s conftest.$ac_objext'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 wine_cv_linux_joystick_22_api=yes
18141 else
18142 echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 wine_cv_linux_joystick_22_api=no
18147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18150 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18151 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
18152 if test "$wine_cv_linux_joystick_22_api" = "yes"
18153 then
18155 cat >>confdefs.h <<\_ACEOF
18156 #define HAVE_LINUX_22_JOYSTICK_API 1
18157 _ACEOF
18163 if test "$ac_cv_header_sys_vfs_h" = "yes"
18164 then
18165 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
18166 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18167 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18168 echo $ECHO_N "(cached) $ECHO_C" >&6
18169 else
18170 cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h. */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18177 #include <sys/types.h>
18178 #ifdef HAVE_SYS_PARAM_H
18179 # include <sys/param.h>
18180 #endif
18181 #include <sys/vfs.h>
18184 main ()
18187 struct statfs stfs;
18189 memset(&stfs,0,sizeof(stfs));
18192 return 0;
18194 _ACEOF
18195 rm -f conftest.$ac_objext
18196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18197 (eval $ac_compile) 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 wine_cv_sys_vfs_has_statfs=yes
18217 else
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 wine_cv_sys_vfs_has_statfs=no
18224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18227 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18228 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18229 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18230 then
18232 cat >>confdefs.h <<\_ACEOF
18233 #define STATFS_DEFINED_BY_SYS_VFS 1
18234 _ACEOF
18239 if test "$ac_cv_header_sys_statfs_h" = "yes"
18240 then
18241 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18242 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18243 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246 cat >conftest.$ac_ext <<_ACEOF
18247 /* confdefs.h. */
18248 _ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h. */
18253 #include <sys/types.h>
18254 #ifdef HAVE_SYS_PARAM_H
18255 # include <sys/param.h>
18256 #endif
18257 #include <sys/statfs.h>
18260 main ()
18263 struct statfs stfs;
18266 return 0;
18268 _ACEOF
18269 rm -f conftest.$ac_objext
18270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18271 (eval $ac_compile) 2>conftest.er1
18272 ac_status=$?
18273 grep -v '^ *+' conftest.er1 >conftest.err
18274 rm -f conftest.er1
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
18278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest.$ac_objext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 wine_cv_sys_statfs_has_statfs=yes
18291 else
18292 echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 wine_cv_sys_statfs_has_statfs=no
18298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18301 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18302 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18303 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18304 then
18306 cat >>confdefs.h <<\_ACEOF
18307 #define STATFS_DEFINED_BY_SYS_STATFS 1
18308 _ACEOF
18313 if test "$ac_cv_header_sys_mount_h" = "yes"
18314 then
18315 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18316 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18317 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18319 else
18320 cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h. */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18327 #include <sys/types.h>
18328 #ifdef HAVE_SYS_PARAM_H
18329 # include <sys/param.h>
18330 #endif
18331 #include <sys/mount.h>
18334 main ()
18337 struct statfs stfs;
18340 return 0;
18342 _ACEOF
18343 rm -f conftest.$ac_objext
18344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18345 (eval $ac_compile) 2>conftest.er1
18346 ac_status=$?
18347 grep -v '^ *+' conftest.er1 >conftest.err
18348 rm -f conftest.er1
18349 cat conftest.err >&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } &&
18352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; } &&
18358 { ac_try='test -s conftest.$ac_objext'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 wine_cv_sys_mount_has_statfs=yes
18365 else
18366 echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18369 wine_cv_sys_mount_has_statfs=no
18372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18375 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18376 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18377 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18378 then
18380 cat >>confdefs.h <<\_ACEOF
18381 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18382 _ACEOF
18388 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18389 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18390 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18392 else
18393 cat >conftest.$ac_ext <<_ACEOF
18394 /* confdefs.h. */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18399 #include <sys/types.h>
18400 #ifdef HAVE_SYS_PARAM_H
18401 # include <sys/param.h>
18402 #endif
18403 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18404 # include <sys/mount.h>
18405 #else
18406 # ifdef STATFS_DEFINED_BY_SYS_VFS
18407 # include <sys/vfs.h>
18408 # else
18409 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18410 # include <sys/statfs.h>
18411 # endif
18412 # endif
18413 #endif
18416 main ()
18418 static struct statfs ac_aggr;
18419 if (ac_aggr.f_bfree)
18420 return 0;
18422 return 0;
18424 _ACEOF
18425 rm -f conftest.$ac_objext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18427 (eval $ac_compile) 2>conftest.er1
18428 ac_status=$?
18429 grep -v '^ *+' conftest.er1 >conftest.err
18430 rm -f conftest.er1
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; } &&
18440 { ac_try='test -s conftest.$ac_objext'
18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442 (eval $ac_try) 2>&5
18443 ac_status=$?
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; }; then
18446 ac_cv_member_struct_statfs_f_bfree=yes
18447 else
18448 echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18451 cat >conftest.$ac_ext <<_ACEOF
18452 /* confdefs.h. */
18453 _ACEOF
18454 cat confdefs.h >>conftest.$ac_ext
18455 cat >>conftest.$ac_ext <<_ACEOF
18456 /* end confdefs.h. */
18457 #include <sys/types.h>
18458 #ifdef HAVE_SYS_PARAM_H
18459 # include <sys/param.h>
18460 #endif
18461 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18462 # include <sys/mount.h>
18463 #else
18464 # ifdef STATFS_DEFINED_BY_SYS_VFS
18465 # include <sys/vfs.h>
18466 # else
18467 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18468 # include <sys/statfs.h>
18469 # endif
18470 # endif
18471 #endif
18474 main ()
18476 static struct statfs ac_aggr;
18477 if (sizeof ac_aggr.f_bfree)
18478 return 0;
18480 return 0;
18482 _ACEOF
18483 rm -f conftest.$ac_objext
18484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18485 (eval $ac_compile) 2>conftest.er1
18486 ac_status=$?
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
18492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18495 ac_status=$?
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; } &&
18498 { ac_try='test -s conftest.$ac_objext'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_cv_member_struct_statfs_f_bfree=yes
18505 else
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18509 ac_cv_member_struct_statfs_f_bfree=no
18511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18515 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18516 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18517 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18519 cat >>confdefs.h <<_ACEOF
18520 #define HAVE_STRUCT_STATFS_F_BFREE 1
18521 _ACEOF
18525 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18526 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18527 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18528 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 else
18530 cat >conftest.$ac_ext <<_ACEOF
18531 /* confdefs.h. */
18532 _ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18536 #include <sys/types.h>
18537 #ifdef HAVE_SYS_PARAM_H
18538 # include <sys/param.h>
18539 #endif
18540 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18541 # include <sys/mount.h>
18542 #else
18543 # ifdef STATFS_DEFINED_BY_SYS_VFS
18544 # include <sys/vfs.h>
18545 # else
18546 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18547 # include <sys/statfs.h>
18548 # endif
18549 # endif
18550 #endif
18553 main ()
18555 static struct statfs ac_aggr;
18556 if (ac_aggr.f_bavail)
18557 return 0;
18559 return 0;
18561 _ACEOF
18562 rm -f conftest.$ac_objext
18563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18564 (eval $ac_compile) 2>conftest.er1
18565 ac_status=$?
18566 grep -v '^ *+' conftest.er1 >conftest.err
18567 rm -f conftest.er1
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
18571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest.$ac_objext'
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_cv_member_struct_statfs_f_bavail=yes
18584 else
18585 echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18588 cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h. */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18594 #include <sys/types.h>
18595 #ifdef HAVE_SYS_PARAM_H
18596 # include <sys/param.h>
18597 #endif
18598 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18599 # include <sys/mount.h>
18600 #else
18601 # ifdef STATFS_DEFINED_BY_SYS_VFS
18602 # include <sys/vfs.h>
18603 # else
18604 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18605 # include <sys/statfs.h>
18606 # endif
18607 # endif
18608 #endif
18611 main ()
18613 static struct statfs ac_aggr;
18614 if (sizeof ac_aggr.f_bavail)
18615 return 0;
18617 return 0;
18619 _ACEOF
18620 rm -f conftest.$ac_objext
18621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18622 (eval $ac_compile) 2>conftest.er1
18623 ac_status=$?
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } &&
18629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest.$ac_objext'
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 ac_cv_member_struct_statfs_f_bavail=yes
18642 else
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 ac_cv_member_struct_statfs_f_bavail=no
18648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18652 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18653 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18654 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18656 cat >>confdefs.h <<_ACEOF
18657 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18658 _ACEOF
18662 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18663 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18664 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 else
18667 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h. */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673 #include <sys/types.h>
18674 #ifdef HAVE_SYS_PARAM_H
18675 # include <sys/param.h>
18676 #endif
18677 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18678 # include <sys/mount.h>
18679 #else
18680 # ifdef STATFS_DEFINED_BY_SYS_VFS
18681 # include <sys/vfs.h>
18682 # else
18683 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18684 # include <sys/statfs.h>
18685 # endif
18686 # endif
18687 #endif
18690 main ()
18692 static struct statfs ac_aggr;
18693 if (ac_aggr.f_frsize)
18694 return 0;
18696 return 0;
18698 _ACEOF
18699 rm -f conftest.$ac_objext
18700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18701 (eval $ac_compile) 2>conftest.er1
18702 ac_status=$?
18703 grep -v '^ *+' conftest.er1 >conftest.err
18704 rm -f conftest.er1
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } &&
18708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; } &&
18714 { ac_try='test -s conftest.$ac_objext'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; }; then
18720 ac_cv_member_struct_statfs_f_frsize=yes
18721 else
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18725 cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h. */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18731 #include <sys/types.h>
18732 #ifdef HAVE_SYS_PARAM_H
18733 # include <sys/param.h>
18734 #endif
18735 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18736 # include <sys/mount.h>
18737 #else
18738 # ifdef STATFS_DEFINED_BY_SYS_VFS
18739 # include <sys/vfs.h>
18740 # else
18741 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18742 # include <sys/statfs.h>
18743 # endif
18744 # endif
18745 #endif
18748 main ()
18750 static struct statfs ac_aggr;
18751 if (sizeof ac_aggr.f_frsize)
18752 return 0;
18754 return 0;
18756 _ACEOF
18757 rm -f conftest.$ac_objext
18758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18759 (eval $ac_compile) 2>conftest.er1
18760 ac_status=$?
18761 grep -v '^ *+' conftest.er1 >conftest.err
18762 rm -f conftest.er1
18763 cat conftest.err >&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); } &&
18766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; } &&
18772 { ac_try='test -s conftest.$ac_objext'
18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
18775 ac_status=$?
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; }; then
18778 ac_cv_member_struct_statfs_f_frsize=yes
18779 else
18780 echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 ac_cv_member_struct_statfs_f_frsize=no
18785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18789 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18790 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18791 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18793 cat >>confdefs.h <<_ACEOF
18794 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18795 _ACEOF
18799 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18800 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18801 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804 cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h. */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 #include <sys/types.h>
18811 #ifdef HAVE_SYS_PARAM_H
18812 # include <sys/param.h>
18813 #endif
18814 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18815 # include <sys/mount.h>
18816 #else
18817 # ifdef STATFS_DEFINED_BY_SYS_VFS
18818 # include <sys/vfs.h>
18819 # else
18820 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18821 # include <sys/statfs.h>
18822 # endif
18823 # endif
18824 #endif
18827 main ()
18829 static struct statfs ac_aggr;
18830 if (ac_aggr.f_ffree)
18831 return 0;
18833 return 0;
18835 _ACEOF
18836 rm -f conftest.$ac_objext
18837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18838 (eval $ac_compile) 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } &&
18845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; } &&
18851 { ac_try='test -s conftest.$ac_objext'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_cv_member_struct_statfs_f_ffree=yes
18858 else
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 cat >conftest.$ac_ext <<_ACEOF
18863 /* confdefs.h. */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18868 #include <sys/types.h>
18869 #ifdef HAVE_SYS_PARAM_H
18870 # include <sys/param.h>
18871 #endif
18872 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18873 # include <sys/mount.h>
18874 #else
18875 # ifdef STATFS_DEFINED_BY_SYS_VFS
18876 # include <sys/vfs.h>
18877 # else
18878 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18879 # include <sys/statfs.h>
18880 # endif
18881 # endif
18882 #endif
18885 main ()
18887 static struct statfs ac_aggr;
18888 if (sizeof ac_aggr.f_ffree)
18889 return 0;
18891 return 0;
18893 _ACEOF
18894 rm -f conftest.$ac_objext
18895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18896 (eval $ac_compile) 2>conftest.er1
18897 ac_status=$?
18898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; } &&
18909 { ac_try='test -s conftest.$ac_objext'
18910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18911 (eval $ac_try) 2>&5
18912 ac_status=$?
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18915 ac_cv_member_struct_statfs_f_ffree=yes
18916 else
18917 echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.$ac_ext >&5
18920 ac_cv_member_struct_statfs_f_ffree=no
18922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18926 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18927 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18928 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18930 cat >>confdefs.h <<_ACEOF
18931 #define HAVE_STRUCT_STATFS_F_FFREE 1
18932 _ACEOF
18936 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18937 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18938 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18940 else
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h. */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 #include <sys/types.h>
18948 #ifdef HAVE_SYS_PARAM_H
18949 # include <sys/param.h>
18950 #endif
18951 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18952 # include <sys/mount.h>
18953 #else
18954 # ifdef STATFS_DEFINED_BY_SYS_VFS
18955 # include <sys/vfs.h>
18956 # else
18957 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18958 # include <sys/statfs.h>
18959 # endif
18960 # endif
18961 #endif
18964 main ()
18966 static struct statfs ac_aggr;
18967 if (ac_aggr.f_favail)
18968 return 0;
18970 return 0;
18972 _ACEOF
18973 rm -f conftest.$ac_objext
18974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18975 (eval $ac_compile) 2>conftest.er1
18976 ac_status=$?
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
18982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; } &&
18988 { ac_try='test -s conftest.$ac_objext'
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 ac_cv_member_struct_statfs_f_favail=yes
18995 else
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18999 cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h. */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 #include <sys/types.h>
19006 #ifdef HAVE_SYS_PARAM_H
19007 # include <sys/param.h>
19008 #endif
19009 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19010 # include <sys/mount.h>
19011 #else
19012 # ifdef STATFS_DEFINED_BY_SYS_VFS
19013 # include <sys/vfs.h>
19014 # else
19015 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19016 # include <sys/statfs.h>
19017 # endif
19018 # endif
19019 #endif
19022 main ()
19024 static struct statfs ac_aggr;
19025 if (sizeof ac_aggr.f_favail)
19026 return 0;
19028 return 0;
19030 _ACEOF
19031 rm -f conftest.$ac_objext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19033 (eval $ac_compile) 2>conftest.er1
19034 ac_status=$?
19035 grep -v '^ *+' conftest.er1 >conftest.err
19036 rm -f conftest.er1
19037 cat conftest.err >&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
19040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest.$ac_objext'
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 ac_cv_member_struct_statfs_f_favail=yes
19053 else
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 ac_cv_member_struct_statfs_f_favail=no
19059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19063 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
19064 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
19065 if test $ac_cv_member_struct_statfs_f_favail = yes; then
19067 cat >>confdefs.h <<_ACEOF
19068 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
19069 _ACEOF
19073 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
19074 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
19075 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 else
19078 cat >conftest.$ac_ext <<_ACEOF
19079 /* confdefs.h. */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19084 #include <sys/types.h>
19085 #ifdef HAVE_SYS_PARAM_H
19086 # include <sys/param.h>
19087 #endif
19088 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19089 # include <sys/mount.h>
19090 #else
19091 # ifdef STATFS_DEFINED_BY_SYS_VFS
19092 # include <sys/vfs.h>
19093 # else
19094 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19095 # include <sys/statfs.h>
19096 # endif
19097 # endif
19098 #endif
19101 main ()
19103 static struct statfs ac_aggr;
19104 if (ac_aggr.f_namelen)
19105 return 0;
19107 return 0;
19109 _ACEOF
19110 rm -f conftest.$ac_objext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19112 (eval $ac_compile) 2>conftest.er1
19113 ac_status=$?
19114 grep -v '^ *+' conftest.er1 >conftest.err
19115 rm -f conftest.er1
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
19119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } &&
19125 { ac_try='test -s conftest.$ac_objext'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19128 ac_status=$?
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; }; then
19131 ac_cv_member_struct_statfs_f_namelen=yes
19132 else
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19136 cat >conftest.$ac_ext <<_ACEOF
19137 /* confdefs.h. */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19142 #include <sys/types.h>
19143 #ifdef HAVE_SYS_PARAM_H
19144 # include <sys/param.h>
19145 #endif
19146 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19147 # include <sys/mount.h>
19148 #else
19149 # ifdef STATFS_DEFINED_BY_SYS_VFS
19150 # include <sys/vfs.h>
19151 # else
19152 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19153 # include <sys/statfs.h>
19154 # endif
19155 # endif
19156 #endif
19159 main ()
19161 static struct statfs ac_aggr;
19162 if (sizeof ac_aggr.f_namelen)
19163 return 0;
19165 return 0;
19167 _ACEOF
19168 rm -f conftest.$ac_objext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19170 (eval $ac_compile) 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19180 ac_status=$?
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; } &&
19183 { ac_try='test -s conftest.$ac_objext'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; }; then
19189 ac_cv_member_struct_statfs_f_namelen=yes
19190 else
19191 echo "$as_me: failed program was:" >&5
19192 sed 's/^/| /' conftest.$ac_ext >&5
19194 ac_cv_member_struct_statfs_f_namelen=no
19196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19200 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19201 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19202 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19204 cat >>confdefs.h <<_ACEOF
19205 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19206 _ACEOF
19212 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19213 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19214 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19216 else
19217 cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h. */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223 #ifdef HAVE_SYS_STATVFS_H
19224 #include <sys/statvfs.h>
19225 #endif
19228 main ()
19230 static struct statvfs ac_aggr;
19231 if (ac_aggr.f_blocks)
19232 return 0;
19234 return 0;
19236 _ACEOF
19237 rm -f conftest.$ac_objext
19238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19239 (eval $ac_compile) 2>conftest.er1
19240 ac_status=$?
19241 grep -v '^ *+' conftest.er1 >conftest.err
19242 rm -f conftest.er1
19243 cat conftest.err >&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } &&
19246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; } &&
19252 { ac_try='test -s conftest.$ac_objext'
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; }; then
19258 ac_cv_member_struct_statvfs_f_blocks=yes
19259 else
19260 echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19263 cat >conftest.$ac_ext <<_ACEOF
19264 /* confdefs.h. */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269 #ifdef HAVE_SYS_STATVFS_H
19270 #include <sys/statvfs.h>
19271 #endif
19274 main ()
19276 static struct statvfs ac_aggr;
19277 if (sizeof ac_aggr.f_blocks)
19278 return 0;
19280 return 0;
19282 _ACEOF
19283 rm -f conftest.$ac_objext
19284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19285 (eval $ac_compile) 2>conftest.er1
19286 ac_status=$?
19287 grep -v '^ *+' conftest.er1 >conftest.err
19288 rm -f conftest.er1
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest.$ac_objext'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_cv_member_struct_statvfs_f_blocks=yes
19305 else
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19309 ac_cv_member_struct_statvfs_f_blocks=no
19311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19315 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19316 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19317 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19319 cat >>confdefs.h <<_ACEOF
19320 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19321 _ACEOF
19327 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19328 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19329 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332 cat >conftest.$ac_ext <<_ACEOF
19333 /* confdefs.h. */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19338 #include <sys/types.h>
19339 #ifdef HAVE_SYS_SOCKET_H
19340 # include <sys/socket.h>
19341 #endif
19342 #ifdef HAVE_SYS_UN_H
19343 # include <sys/un.h>
19344 #endif
19347 main ()
19349 static struct msghdr ac_aggr;
19350 if (ac_aggr.msg_accrights)
19351 return 0;
19353 return 0;
19355 _ACEOF
19356 rm -f conftest.$ac_objext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19358 (eval $ac_compile) 2>conftest.er1
19359 ac_status=$?
19360 grep -v '^ *+' conftest.er1 >conftest.err
19361 rm -f conftest.er1
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
19365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest.$ac_objext'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
19377 ac_cv_member_struct_msghdr_msg_accrights=yes
19378 else
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h. */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h. */
19388 #include <sys/types.h>
19389 #ifdef HAVE_SYS_SOCKET_H
19390 # include <sys/socket.h>
19391 #endif
19392 #ifdef HAVE_SYS_UN_H
19393 # include <sys/un.h>
19394 #endif
19397 main ()
19399 static struct msghdr ac_aggr;
19400 if (sizeof ac_aggr.msg_accrights)
19401 return 0;
19403 return 0;
19405 _ACEOF
19406 rm -f conftest.$ac_objext
19407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19408 (eval $ac_compile) 2>conftest.er1
19409 ac_status=$?
19410 grep -v '^ *+' conftest.er1 >conftest.err
19411 rm -f conftest.er1
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } &&
19415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19418 ac_status=$?
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; } &&
19421 { ac_try='test -s conftest.$ac_objext'
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; }; then
19427 ac_cv_member_struct_msghdr_msg_accrights=yes
19428 else
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432 ac_cv_member_struct_msghdr_msg_accrights=no
19434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19438 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19439 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19440 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19442 cat >>confdefs.h <<_ACEOF
19443 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19444 _ACEOF
19448 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19449 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19450 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19451 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 else
19453 cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h. */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19459 #include <sys/types.h>
19460 #ifdef HAVE_SYS_SOCKET_H
19461 # include <sys/socket.h>
19462 #endif
19463 #ifdef HAVE_SYS_UN_H
19464 # include <sys/un.h>
19465 #endif
19468 main ()
19470 static struct sockaddr ac_aggr;
19471 if (ac_aggr.sa_len)
19472 return 0;
19474 return 0;
19476 _ACEOF
19477 rm -f conftest.$ac_objext
19478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19479 (eval $ac_compile) 2>conftest.er1
19480 ac_status=$?
19481 grep -v '^ *+' conftest.er1 >conftest.err
19482 rm -f conftest.er1
19483 cat conftest.err >&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } &&
19486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; } &&
19492 { ac_try='test -s conftest.$ac_objext'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19495 ac_status=$?
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; }; then
19498 ac_cv_member_struct_sockaddr_sa_len=yes
19499 else
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19503 cat >conftest.$ac_ext <<_ACEOF
19504 /* confdefs.h. */
19505 _ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h. */
19509 #include <sys/types.h>
19510 #ifdef HAVE_SYS_SOCKET_H
19511 # include <sys/socket.h>
19512 #endif
19513 #ifdef HAVE_SYS_UN_H
19514 # include <sys/un.h>
19515 #endif
19518 main ()
19520 static struct sockaddr ac_aggr;
19521 if (sizeof ac_aggr.sa_len)
19522 return 0;
19524 return 0;
19526 _ACEOF
19527 rm -f conftest.$ac_objext
19528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19529 (eval $ac_compile) 2>conftest.er1
19530 ac_status=$?
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } &&
19536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest.$ac_objext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 ac_cv_member_struct_sockaddr_sa_len=yes
19549 else
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ac_cv_member_struct_sockaddr_sa_len=no
19555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19559 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19560 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19561 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19563 cat >>confdefs.h <<_ACEOF
19564 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19565 _ACEOF
19569 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19570 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19571 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 else
19574 cat >conftest.$ac_ext <<_ACEOF
19575 /* confdefs.h. */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 #include <sys/types.h>
19581 #ifdef HAVE_SYS_SOCKET_H
19582 # include <sys/socket.h>
19583 #endif
19584 #ifdef HAVE_SYS_UN_H
19585 # include <sys/un.h>
19586 #endif
19589 main ()
19591 static struct sockaddr_un ac_aggr;
19592 if (ac_aggr.sun_len)
19593 return 0;
19595 return 0;
19597 _ACEOF
19598 rm -f conftest.$ac_objext
19599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19600 (eval $ac_compile) 2>conftest.er1
19601 ac_status=$?
19602 grep -v '^ *+' conftest.er1 >conftest.err
19603 rm -f conftest.er1
19604 cat conftest.err >&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } &&
19607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; } &&
19613 { ac_try='test -s conftest.$ac_objext'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19616 ac_status=$?
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; }; then
19619 ac_cv_member_struct_sockaddr_un_sun_len=yes
19620 else
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19624 cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h. */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 #include <sys/types.h>
19631 #ifdef HAVE_SYS_SOCKET_H
19632 # include <sys/socket.h>
19633 #endif
19634 #ifdef HAVE_SYS_UN_H
19635 # include <sys/un.h>
19636 #endif
19639 main ()
19641 static struct sockaddr_un ac_aggr;
19642 if (sizeof ac_aggr.sun_len)
19643 return 0;
19645 return 0;
19647 _ACEOF
19648 rm -f conftest.$ac_objext
19649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19650 (eval $ac_compile) 2>conftest.er1
19651 ac_status=$?
19652 grep -v '^ *+' conftest.er1 >conftest.err
19653 rm -f conftest.er1
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } &&
19657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; } &&
19663 { ac_try='test -s conftest.$ac_objext'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19666 ac_status=$?
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; }; then
19669 ac_cv_member_struct_sockaddr_un_sun_len=yes
19670 else
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19674 ac_cv_member_struct_sockaddr_un_sun_len=no
19676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19680 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19681 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19682 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19684 cat >>confdefs.h <<_ACEOF
19685 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19686 _ACEOF
19692 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19693 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19694 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 else
19697 cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h. */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703 #include <signal.h>
19706 main ()
19708 static siginfo_t ac_aggr;
19709 if (ac_aggr.si_fd)
19710 return 0;
19712 return 0;
19714 _ACEOF
19715 rm -f conftest.$ac_objext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19717 (eval $ac_compile) 2>conftest.er1
19718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest.$ac_objext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_member_siginfo_t_si_fd=yes
19737 else
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h. */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19747 #include <signal.h>
19750 main ()
19752 static siginfo_t ac_aggr;
19753 if (sizeof ac_aggr.si_fd)
19754 return 0;
19756 return 0;
19758 _ACEOF
19759 rm -f conftest.$ac_objext
19760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761 (eval $ac_compile) 2>conftest.er1
19762 ac_status=$?
19763 grep -v '^ *+' conftest.er1 >conftest.err
19764 rm -f conftest.er1
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } &&
19768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19771 ac_status=$?
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try='test -s conftest.$ac_objext'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780 ac_cv_member_siginfo_t_si_fd=yes
19781 else
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_cv_member_siginfo_t_si_fd=no
19787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19791 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19792 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19793 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19795 cat >>confdefs.h <<_ACEOF
19796 #define HAVE_SIGINFO_T_SI_FD 1
19797 _ACEOF
19803 echo "$as_me:$LINENO: checking for struct option.name" >&5
19804 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19805 if test "${ac_cv_member_struct_option_name+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19807 else
19808 cat >conftest.$ac_ext <<_ACEOF
19809 /* confdefs.h. */
19810 _ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h. */
19814 #ifdef HAVE_GETOPT_H
19815 #include <getopt.h>
19816 #endif
19819 main ()
19821 static struct option ac_aggr;
19822 if (ac_aggr.name)
19823 return 0;
19825 return 0;
19827 _ACEOF
19828 rm -f conftest.$ac_objext
19829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19830 (eval $ac_compile) 2>conftest.er1
19831 ac_status=$?
19832 grep -v '^ *+' conftest.er1 >conftest.err
19833 rm -f conftest.er1
19834 cat conftest.err >&5
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); } &&
19837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest.$ac_objext'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 ac_cv_member_struct_option_name=yes
19850 else
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h. */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 #ifdef HAVE_GETOPT_H
19861 #include <getopt.h>
19862 #endif
19865 main ()
19867 static struct option ac_aggr;
19868 if (sizeof ac_aggr.name)
19869 return 0;
19871 return 0;
19873 _ACEOF
19874 rm -f conftest.$ac_objext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19876 (eval $ac_compile) 2>conftest.er1
19877 ac_status=$?
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try='test -s conftest.$ac_objext'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
19895 ac_cv_member_struct_option_name=yes
19896 else
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 ac_cv_member_struct_option_name=no
19902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19906 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19907 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19908 if test $ac_cv_member_struct_option_name = yes; then
19910 cat >>confdefs.h <<_ACEOF
19911 #define HAVE_STRUCT_OPTION_NAME 1
19912 _ACEOF
19918 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19919 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19920 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19921 echo $ECHO_N "(cached) $ECHO_C" >&6
19922 else
19923 cat >conftest.$ac_ext <<_ACEOF
19924 /* confdefs.h. */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h. */
19929 $ac_includes_default
19931 main ()
19933 static struct stat ac_aggr;
19934 if (ac_aggr.st_blocks)
19935 return 0;
19937 return 0;
19939 _ACEOF
19940 rm -f conftest.$ac_objext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19942 (eval $ac_compile) 2>conftest.er1
19943 ac_status=$?
19944 grep -v '^ *+' conftest.er1 >conftest.err
19945 rm -f conftest.er1
19946 cat conftest.err >&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } &&
19949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19952 ac_status=$?
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; } &&
19955 { ac_try='test -s conftest.$ac_objext'
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; }; then
19961 ac_cv_member_struct_stat_st_blocks=yes
19962 else
19963 echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19966 cat >conftest.$ac_ext <<_ACEOF
19967 /* confdefs.h. */
19968 _ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h. */
19972 $ac_includes_default
19974 main ()
19976 static struct stat ac_aggr;
19977 if (sizeof ac_aggr.st_blocks)
19978 return 0;
19980 return 0;
19982 _ACEOF
19983 rm -f conftest.$ac_objext
19984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19985 (eval $ac_compile) 2>conftest.er1
19986 ac_status=$?
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } &&
19992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19995 ac_status=$?
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
19998 { ac_try='test -s conftest.$ac_objext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 ac_cv_member_struct_stat_st_blocks=yes
20005 else
20006 echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20009 ac_cv_member_struct_stat_st_blocks=no
20011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20015 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20016 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20017 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20019 cat >>confdefs.h <<_ACEOF
20020 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20021 _ACEOF
20028 case $host_cpu in
20029 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20030 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
20031 if test "${ac_cv_cpp_def___i386__+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20033 else
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h. */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 #ifndef __i386__
20042 #endif
20043 _ACEOF
20044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20045 $EGREP "yes" >/dev/null 2>&1; then
20046 ac_cv_cpp_def___i386__=yes
20047 else
20048 ac_cv_cpp_def___i386__=no
20050 rm -f conftest*
20053 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20054 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
20055 if test $ac_cv_cpp_def___i386__ = yes; then
20056 CFLAGS="$CFLAGS -D__i386__"
20057 LINTFLAGS="$LINTFLAGS -D__i386__"
20060 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20061 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
20062 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 else
20065 cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h. */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071 #ifndef __ALPHA__
20073 #endif
20074 _ACEOF
20075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20076 $EGREP "yes" >/dev/null 2>&1; then
20077 ac_cv_cpp_def___ALPHA__=yes
20078 else
20079 ac_cv_cpp_def___ALPHA__=no
20081 rm -f conftest*
20084 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20085 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
20086 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20087 CFLAGS="$CFLAGS -D__ALPHA__"
20088 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20091 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20092 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
20093 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20096 cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h. */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102 #ifndef __sparc__
20104 #endif
20105 _ACEOF
20106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20107 $EGREP "yes" >/dev/null 2>&1; then
20108 ac_cv_cpp_def___sparc__=yes
20109 else
20110 ac_cv_cpp_def___sparc__=no
20112 rm -f conftest*
20115 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20116 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20117 if test $ac_cv_cpp_def___sparc__ = yes; then
20118 CFLAGS="$CFLAGS -D__sparc__"
20119 LINTFLAGS="$LINTFLAGS -D__sparc__"
20122 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20123 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20124 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20126 else
20127 cat >conftest.$ac_ext <<_ACEOF
20128 /* confdefs.h. */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20133 #ifndef __powerpc__
20135 #endif
20136 _ACEOF
20137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20138 $EGREP "yes" >/dev/null 2>&1; then
20139 ac_cv_cpp_def___powerpc__=yes
20140 else
20141 ac_cv_cpp_def___powerpc__=no
20143 rm -f conftest*
20146 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20147 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20148 if test $ac_cv_cpp_def___powerpc__ = yes; then
20149 CFLAGS="$CFLAGS -D__powerpc__"
20150 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20153 esac
20155 case $host_vendor in
20156 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20157 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
20158 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h. */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167 #ifndef __sun__
20169 #endif
20170 _ACEOF
20171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20172 $EGREP "yes" >/dev/null 2>&1; then
20173 ac_cv_cpp_def___sun__=yes
20174 else
20175 ac_cv_cpp_def___sun__=no
20177 rm -f conftest*
20180 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20181 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20182 if test $ac_cv_cpp_def___sun__ = yes; then
20183 CFLAGS="$CFLAGS -D__sun__"
20184 LINTFLAGS="$LINTFLAGS -D__sun__"
20187 esac
20193 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
20195 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
20197 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
20199 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
20201 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
20203 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
20205 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
20207 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
20209 ac_config_commands="$ac_config_commands dlls/kernel/messages"
20211 ac_config_commands="$ac_config_commands dlls/user/dde"
20213 ac_config_commands="$ac_config_commands dlls/user/resources"
20215 ac_config_commands="$ac_config_commands dlls/wineps/data"
20217 ac_config_commands="$ac_config_commands include/wine"
20219 ac_config_commands="$ac_config_commands misc"
20221 ac_config_commands="$ac_config_commands programs/regedit/tests"
20223 ac_config_commands="$ac_config_commands windows"
20226 MAKE_RULES=Make.rules
20229 MAKE_DLL_RULES=dlls/Makedll.rules
20232 MAKE_TEST_RULES=dlls/Maketest.rules
20235 MAKE_LIB_RULES=libs/Makelib.rules
20238 MAKE_PROG_RULES=programs/Makeprog.rules
20241 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/secur32/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
20244 cat >confcache <<\_ACEOF
20245 # This file is a shell script that caches the results of configure
20246 # tests run on this system so they can be shared between configure
20247 # scripts and configure runs, see configure's option --config-cache.
20248 # It is not useful on other systems. If it contains results you don't
20249 # want to keep, you may remove or edit it.
20251 # config.status only pays attention to the cache file if you give it
20252 # the --recheck option to rerun configure.
20254 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20255 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20256 # following values.
20258 _ACEOF
20260 # The following way of writing the cache mishandles newlines in values,
20261 # but we know of no workaround that is simple, portable, and efficient.
20262 # So, don't put newlines in cache variables' values.
20263 # Ultrix sh set writes to stderr and can't be redirected directly,
20264 # and sets the high bit in the cache file unless we assign to the vars.
20266 (set) 2>&1 |
20267 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20268 *ac_space=\ *)
20269 # `set' does not quote correctly, so add quotes (double-quote
20270 # substitution turns \\\\ into \\, and sed turns \\ into \).
20271 sed -n \
20272 "s/'/'\\\\''/g;
20273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20276 # `set' quotes correctly as required by POSIX, so do not add quotes.
20277 sed -n \
20278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20280 esac;
20282 sed '
20283 t clear
20284 : clear
20285 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20286 t end
20287 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20288 : end' >>confcache
20289 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20290 if test -w $cache_file; then
20291 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20292 cat confcache >$cache_file
20293 else
20294 echo "not updating unwritable cache $cache_file"
20297 rm -f confcache
20299 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20300 # Let make expand exec_prefix.
20301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20303 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20304 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20305 # trailing colons and then remove the whole line if VPATH becomes empty
20306 # (actually we leave an empty line to preserve line numbers).
20307 if test "x$srcdir" = x.; then
20308 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20309 s/:*\$(srcdir):*/:/;
20310 s/:*\${srcdir}:*/:/;
20311 s/:*@srcdir@:*/:/;
20312 s/^\([^=]*=[ ]*\):*/\1/;
20313 s/:*$//;
20314 s/^[^=]*=[ ]*$//;
20318 DEFS=-DHAVE_CONFIG_H
20320 ac_libobjs=
20321 ac_ltlibobjs=
20322 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20323 # 1. Remove the extension, and $U if already installed.
20324 ac_i=`echo "$ac_i" |
20325 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20326 # 2. Add them.
20327 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20328 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20329 done
20330 LIBOBJS=$ac_libobjs
20332 LTLIBOBJS=$ac_ltlibobjs
20336 : ${CONFIG_STATUS=./config.status}
20337 ac_clean_files_save=$ac_clean_files
20338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20339 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20340 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20341 cat >$CONFIG_STATUS <<_ACEOF
20342 #! $SHELL
20343 # Generated by $as_me.
20344 # Run this file to recreate the current configuration.
20345 # Compiler output produced by configure, useful for debugging
20346 # configure, is in config.log if it exists.
20348 debug=false
20349 ac_cs_recheck=false
20350 ac_cs_silent=false
20351 SHELL=\${CONFIG_SHELL-$SHELL}
20352 _ACEOF
20354 cat >>$CONFIG_STATUS <<\_ACEOF
20355 ## --------------------- ##
20356 ## M4sh Initialization. ##
20357 ## --------------------- ##
20359 # Be Bourne compatible
20360 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20361 emulate sh
20362 NULLCMD=:
20363 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20364 # is contrary to our usage. Disable this feature.
20365 alias -g '${1+"$@"}'='"$@"'
20366 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20367 set -o posix
20369 DUALCASE=1; export DUALCASE # for MKS sh
20371 # Support unset when possible.
20372 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20373 as_unset=unset
20374 else
20375 as_unset=false
20379 # Work around bugs in pre-3.0 UWIN ksh.
20380 $as_unset ENV MAIL MAILPATH
20381 PS1='$ '
20382 PS2='> '
20383 PS4='+ '
20385 # NLS nuisances.
20386 for as_var in \
20387 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20388 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20389 LC_TELEPHONE LC_TIME
20391 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20392 eval $as_var=C; export $as_var
20393 else
20394 $as_unset $as_var
20396 done
20398 # Required to use basename.
20399 if expr a : '\(a\)' >/dev/null 2>&1; then
20400 as_expr=expr
20401 else
20402 as_expr=false
20405 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20406 as_basename=basename
20407 else
20408 as_basename=false
20412 # Name of the executable.
20413 as_me=`$as_basename "$0" ||
20414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20415 X"$0" : 'X\(//\)$' \| \
20416 X"$0" : 'X\(/\)$' \| \
20417 . : '\(.\)' 2>/dev/null ||
20418 echo X/"$0" |
20419 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20420 /^X\/\(\/\/\)$/{ s//\1/; q; }
20421 /^X\/\(\/\).*/{ s//\1/; q; }
20422 s/.*/./; q'`
20425 # PATH needs CR, and LINENO needs CR and PATH.
20426 # Avoid depending upon Character Ranges.
20427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20430 as_cr_digits='0123456789'
20431 as_cr_alnum=$as_cr_Letters$as_cr_digits
20433 # The user is always right.
20434 if test "${PATH_SEPARATOR+set}" != set; then
20435 echo "#! /bin/sh" >conf$$.sh
20436 echo "exit 0" >>conf$$.sh
20437 chmod +x conf$$.sh
20438 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20439 PATH_SEPARATOR=';'
20440 else
20441 PATH_SEPARATOR=:
20443 rm -f conf$$.sh
20447 as_lineno_1=$LINENO
20448 as_lineno_2=$LINENO
20449 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20450 test "x$as_lineno_1" != "x$as_lineno_2" &&
20451 test "x$as_lineno_3" = "x$as_lineno_2" || {
20452 # Find who we are. Look in the path if we contain no path at all
20453 # relative or not.
20454 case $0 in
20455 *[\\/]* ) as_myself=$0 ;;
20456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20457 for as_dir in $PATH
20459 IFS=$as_save_IFS
20460 test -z "$as_dir" && as_dir=.
20461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20462 done
20465 esac
20466 # We did not find ourselves, most probably we were run as `sh COMMAND'
20467 # in which case we are not to be found in the path.
20468 if test "x$as_myself" = x; then
20469 as_myself=$0
20471 if test ! -f "$as_myself"; then
20472 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20473 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20474 { (exit 1); exit 1; }; }
20476 case $CONFIG_SHELL in
20478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20479 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20481 IFS=$as_save_IFS
20482 test -z "$as_dir" && as_dir=.
20483 for as_base in sh bash ksh sh5; do
20484 case $as_dir in
20486 if ("$as_dir/$as_base" -c '
20487 as_lineno_1=$LINENO
20488 as_lineno_2=$LINENO
20489 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20490 test "x$as_lineno_1" != "x$as_lineno_2" &&
20491 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20492 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20493 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20494 CONFIG_SHELL=$as_dir/$as_base
20495 export CONFIG_SHELL
20496 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20497 fi;;
20498 esac
20499 done
20500 done
20502 esac
20504 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20505 # uniformly replaced by the line number. The first 'sed' inserts a
20506 # line-number line before each line; the second 'sed' does the real
20507 # work. The second script uses 'N' to pair each line-number line
20508 # with the numbered line, and appends trailing '-' during
20509 # substitution so that $LINENO is not a special case at line end.
20510 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20511 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20512 sed '=' <$as_myself |
20513 sed '
20515 s,$,-,
20516 : loop
20517 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20518 t loop
20519 s,-$,,
20520 s,^['$as_cr_digits']*\n,,
20521 ' >$as_me.lineno &&
20522 chmod +x $as_me.lineno ||
20523 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20524 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20525 { (exit 1); exit 1; }; }
20527 # Don't try to exec as it changes $[0], causing all sort of problems
20528 # (the dirname of $[0] is not the place where we might find the
20529 # original and so on. Autoconf is especially sensible to this).
20530 . ./$as_me.lineno
20531 # Exit status is that of the last command.
20532 exit
20536 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20537 *c*,-n*) ECHO_N= ECHO_C='
20538 ' ECHO_T=' ' ;;
20539 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20540 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20541 esac
20543 if expr a : '\(a\)' >/dev/null 2>&1; then
20544 as_expr=expr
20545 else
20546 as_expr=false
20549 rm -f conf$$ conf$$.exe conf$$.file
20550 echo >conf$$.file
20551 if ln -s conf$$.file conf$$ 2>/dev/null; then
20552 # We could just check for DJGPP; but this test a) works b) is more generic
20553 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20554 if test -f conf$$.exe; then
20555 # Don't use ln at all; we don't have any links
20556 as_ln_s='cp -p'
20557 else
20558 as_ln_s='ln -s'
20560 elif ln conf$$.file conf$$ 2>/dev/null; then
20561 as_ln_s=ln
20562 else
20563 as_ln_s='cp -p'
20565 rm -f conf$$ conf$$.exe conf$$.file
20567 if mkdir -p . 2>/dev/null; then
20568 as_mkdir_p=:
20569 else
20570 test -d ./-p && rmdir ./-p
20571 as_mkdir_p=false
20574 as_executable_p="test -f"
20576 # Sed expression to map a string onto a valid CPP name.
20577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20579 # Sed expression to map a string onto a valid variable name.
20580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20583 # IFS
20584 # We need space, tab and new line, in precisely that order.
20585 as_nl='
20587 IFS=" $as_nl"
20589 # CDPATH.
20590 $as_unset CDPATH
20592 exec 6>&1
20594 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20595 # report actual input values of CONFIG_FILES etc. instead of their
20596 # values after options handling. Logging --version etc. is OK.
20597 exec 5>>config.log
20599 echo
20600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20601 ## Running $as_me. ##
20602 _ASBOX
20603 } >&5
20604 cat >&5 <<_CSEOF
20606 This file was extended by Wine $as_me 20041019, which was
20607 generated by GNU Autoconf 2.59. Invocation command line was
20609 CONFIG_FILES = $CONFIG_FILES
20610 CONFIG_HEADERS = $CONFIG_HEADERS
20611 CONFIG_LINKS = $CONFIG_LINKS
20612 CONFIG_COMMANDS = $CONFIG_COMMANDS
20613 $ $0 $@
20615 _CSEOF
20616 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20617 echo >&5
20618 _ACEOF
20620 # Files that config.status was made for.
20621 if test -n "$ac_config_files"; then
20622 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20625 if test -n "$ac_config_headers"; then
20626 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20629 if test -n "$ac_config_links"; then
20630 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20633 if test -n "$ac_config_commands"; then
20634 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20637 cat >>$CONFIG_STATUS <<\_ACEOF
20639 ac_cs_usage="\
20640 \`$as_me' instantiates files from templates according to the
20641 current configuration.
20643 Usage: $0 [OPTIONS] [FILE]...
20645 -h, --help print this help, then exit
20646 -V, --version print version number, then exit
20647 -q, --quiet do not print progress messages
20648 -d, --debug don't remove temporary files
20649 --recheck update $as_me by reconfiguring in the same conditions
20650 --file=FILE[:TEMPLATE]
20651 instantiate the configuration file FILE
20652 --header=FILE[:TEMPLATE]
20653 instantiate the configuration header FILE
20655 Configuration files:
20656 $config_files
20658 Configuration headers:
20659 $config_headers
20661 Configuration commands:
20662 $config_commands
20664 Report bugs to <bug-autoconf@gnu.org>."
20665 _ACEOF
20667 cat >>$CONFIG_STATUS <<_ACEOF
20668 ac_cs_version="\\
20669 Wine config.status 20041019
20670 configured by $0, generated by GNU Autoconf 2.59,
20671 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20673 Copyright (C) 2003 Free Software Foundation, Inc.
20674 This config.status script is free software; the Free Software Foundation
20675 gives unlimited permission to copy, distribute and modify it."
20676 srcdir=$srcdir
20677 INSTALL="$INSTALL"
20678 _ACEOF
20680 cat >>$CONFIG_STATUS <<\_ACEOF
20681 # If no file are specified by the user, then we need to provide default
20682 # value. By we need to know if files were specified by the user.
20683 ac_need_defaults=:
20684 while test $# != 0
20686 case $1 in
20687 --*=*)
20688 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20689 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20690 ac_shift=:
20693 ac_option=$1
20694 ac_optarg=$2
20695 ac_shift=shift
20697 *) # This is not an option, so the user has probably given explicit
20698 # arguments.
20699 ac_option=$1
20700 ac_need_defaults=false;;
20701 esac
20703 case $ac_option in
20704 # Handling of the options.
20705 _ACEOF
20706 cat >>$CONFIG_STATUS <<\_ACEOF
20707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20708 ac_cs_recheck=: ;;
20709 --version | --vers* | -V )
20710 echo "$ac_cs_version"; exit 0 ;;
20711 --he | --h)
20712 # Conflict between --help and --header
20713 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20714 Try \`$0 --help' for more information." >&5
20715 echo "$as_me: error: ambiguous option: $1
20716 Try \`$0 --help' for more information." >&2;}
20717 { (exit 1); exit 1; }; };;
20718 --help | --hel | -h )
20719 echo "$ac_cs_usage"; exit 0 ;;
20720 --debug | --d* | -d )
20721 debug=: ;;
20722 --file | --fil | --fi | --f )
20723 $ac_shift
20724 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20725 ac_need_defaults=false;;
20726 --header | --heade | --head | --hea )
20727 $ac_shift
20728 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20729 ac_need_defaults=false;;
20730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20731 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20732 ac_cs_silent=: ;;
20734 # This is an error.
20735 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20736 Try \`$0 --help' for more information." >&5
20737 echo "$as_me: error: unrecognized option: $1
20738 Try \`$0 --help' for more information." >&2;}
20739 { (exit 1); exit 1; }; } ;;
20741 *) ac_config_targets="$ac_config_targets $1" ;;
20743 esac
20744 shift
20745 done
20747 ac_configure_extra_args=
20749 if $ac_cs_silent; then
20750 exec 6>/dev/null
20751 ac_configure_extra_args="$ac_configure_extra_args --silent"
20754 _ACEOF
20755 cat >>$CONFIG_STATUS <<_ACEOF
20756 if \$ac_cs_recheck; then
20757 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20758 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20761 _ACEOF
20767 cat >>$CONFIG_STATUS <<\_ACEOF
20768 for ac_config_target in $ac_config_targets
20770 case "$ac_config_target" in
20771 # Handling of arguments.
20772 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20773 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20774 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20775 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20776 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20777 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20778 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20779 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20780 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20781 "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20782 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20783 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20784 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20785 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20786 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20787 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20788 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20789 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20790 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20791 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20792 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20793 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20794 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20795 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20796 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20797 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20798 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20799 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20800 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20801 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20802 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20803 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20804 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20805 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20806 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20807 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20808 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20809 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20810 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20811 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20812 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20813 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20814 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20815 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20816 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20817 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20818 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20819 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20820 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20821 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20822 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20823 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20824 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20825 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20826 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20827 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20828 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20829 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20830 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20831 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20832 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20833 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20834 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20835 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20836 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20837 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20838 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20839 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20840 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20841 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20842 "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20843 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20844 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20845 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20846 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20847 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20848 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20849 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20850 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20851 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20852 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20853 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20854 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20855 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20856 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20857 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20858 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20859 "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20860 "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20861 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20862 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20863 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20864 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20865 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20866 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20867 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20868 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20869 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20870 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20871 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20872 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20873 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20874 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20875 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20876 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20877 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20878 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20879 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20880 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20881 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20882 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20883 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20884 "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20885 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20886 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20887 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20888 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20889 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20890 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20891 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20892 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20893 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20894 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20895 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20896 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20897 "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20898 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20899 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20900 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20901 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20902 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20903 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20904 "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20905 "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
20906 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20907 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20908 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20909 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20910 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20911 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20912 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20913 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20914 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20915 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20916 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20917 "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20918 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20919 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20920 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20921 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20922 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20923 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20924 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20925 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20926 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20927 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20928 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20929 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20930 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20931 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20932 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20933 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20934 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20935 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20936 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20937 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20938 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20939 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20940 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20941 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20942 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20943 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20944 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20945 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20946 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20947 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20948 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20949 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20950 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20951 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20952 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20953 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20954 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20955 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20956 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20957 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20958 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20959 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20960 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20961 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20962 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20963 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20964 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20965 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20966 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20967 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20968 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20969 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20970 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20971 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20972 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20973 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20974 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20975 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20976 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20977 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20978 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20979 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20980 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20981 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20982 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20983 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20984 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20985 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20986 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20987 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20988 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20989 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20990 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20991 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20992 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20993 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20994 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20995 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20996 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20997 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20998 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20999 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21000 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21001 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21002 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
21003 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21004 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21005 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21006 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21007 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21008 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21009 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21010 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21011 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21012 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21013 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21014 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
21015 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21016 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21017 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21018 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21019 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21020 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
21021 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
21022 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
21023 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
21024 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
21025 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
21026 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
21027 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
21028 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
21029 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
21030 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
21031 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
21032 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21033 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
21034 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
21035 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
21036 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21037 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21038 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21039 { (exit 1); exit 1; }; };;
21040 esac
21041 done
21043 # If the user did not use the arguments to specify the items to instantiate,
21044 # then the envvar interface is used. Set only those that are not.
21045 # We use the long form for the default assignment because of an extremely
21046 # bizarre bug on SunOS 4.1.3.
21047 if $ac_need_defaults; then
21048 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21049 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21050 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21053 # Have a temporary directory for convenience. Make it in the build tree
21054 # simply because there is no reason to put it here, and in addition,
21055 # creating and moving files from /tmp can sometimes cause problems.
21056 # Create a temporary directory, and hook for its removal unless debugging.
21057 $debug ||
21059 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21060 trap '{ (exit 1); exit 1; }' 1 2 13 15
21063 # Create a (secure) tmp directory for tmp files.
21066 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21067 test -n "$tmp" && test -d "$tmp"
21068 } ||
21070 tmp=./confstat$$-$RANDOM
21071 (umask 077 && mkdir $tmp)
21072 } ||
21074 echo "$me: cannot create a temporary directory in ." >&2
21075 { (exit 1); exit 1; }
21078 _ACEOF
21080 cat >>$CONFIG_STATUS <<_ACEOF
21083 # CONFIG_FILES section.
21086 # No need to generate the scripts if there are no CONFIG_FILES.
21087 # This happens for instance when ./config.status config.h
21088 if test -n "\$CONFIG_FILES"; then
21089 # Protect against being on the right side of a sed subst in config.status.
21090 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21091 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21092 s,@SHELL@,$SHELL,;t t
21093 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21094 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21095 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21096 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21097 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21098 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21099 s,@exec_prefix@,$exec_prefix,;t t
21100 s,@prefix@,$prefix,;t t
21101 s,@program_transform_name@,$program_transform_name,;t t
21102 s,@bindir@,$bindir,;t t
21103 s,@sbindir@,$sbindir,;t t
21104 s,@libexecdir@,$libexecdir,;t t
21105 s,@datadir@,$datadir,;t t
21106 s,@sysconfdir@,$sysconfdir,;t t
21107 s,@sharedstatedir@,$sharedstatedir,;t t
21108 s,@localstatedir@,$localstatedir,;t t
21109 s,@libdir@,$libdir,;t t
21110 s,@includedir@,$includedir,;t t
21111 s,@oldincludedir@,$oldincludedir,;t t
21112 s,@infodir@,$infodir,;t t
21113 s,@mandir@,$mandir,;t t
21114 s,@build_alias@,$build_alias,;t t
21115 s,@host_alias@,$host_alias,;t t
21116 s,@target_alias@,$target_alias,;t t
21117 s,@DEFS@,$DEFS,;t t
21118 s,@ECHO_C@,$ECHO_C,;t t
21119 s,@ECHO_N@,$ECHO_N,;t t
21120 s,@ECHO_T@,$ECHO_T,;t t
21121 s,@LIBS@,$LIBS,;t t
21122 s,@WIN16_FILES@,$WIN16_FILES,;t t
21123 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
21124 s,@DLLDEFS@,$DLLDEFS,;t t
21125 s,@build@,$build,;t t
21126 s,@build_cpu@,$build_cpu,;t t
21127 s,@build_vendor@,$build_vendor,;t t
21128 s,@build_os@,$build_os,;t t
21129 s,@host@,$host,;t t
21130 s,@host_cpu@,$host_cpu,;t t
21131 s,@host_vendor@,$host_vendor,;t t
21132 s,@host_os@,$host_os,;t t
21133 s,@SET_MAKE@,$SET_MAKE,;t t
21134 s,@CC@,$CC,;t t
21135 s,@CFLAGS@,$CFLAGS,;t t
21136 s,@LDFLAGS@,$LDFLAGS,;t t
21137 s,@CPPFLAGS@,$CPPFLAGS,;t t
21138 s,@ac_ct_CC@,$ac_ct_CC,;t t
21139 s,@EXEEXT@,$EXEEXT,;t t
21140 s,@OBJEXT@,$OBJEXT,;t t
21141 s,@CXX@,$CXX,;t t
21142 s,@CXXFLAGS@,$CXXFLAGS,;t t
21143 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21144 s,@CPPBIN@,$CPPBIN,;t t
21145 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
21146 s,@TOOLSDIR@,$TOOLSDIR,;t t
21147 s,@CPP@,$CPP,;t t
21148 s,@X_CFLAGS@,$X_CFLAGS,;t t
21149 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21150 s,@X_LIBS@,$X_LIBS,;t t
21151 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21152 s,@LEX@,$LEX,;t t
21153 s,@LEXLIB@,$LEXLIB,;t t
21154 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
21155 s,@XLEX@,$XLEX,;t t
21156 s,@BISON@,$BISON,;t t
21157 s,@AS@,$AS,;t t
21158 s,@ac_ct_AS@,$ac_ct_AS,;t t
21159 s,@LD@,$LD,;t t
21160 s,@ac_ct_LD@,$ac_ct_LD,;t t
21161 s,@AR@,$AR,;t t
21162 s,@ac_ct_AR@,$ac_ct_AR,;t t
21163 s,@RANLIB@,$RANLIB,;t t
21164 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21165 s,@STRIP@,$STRIP,;t t
21166 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21167 s,@WINDRES@,$WINDRES,;t t
21168 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21169 s,@LN_S@,$LN_S,;t t
21170 s,@LN@,$LN,;t t
21171 s,@EGREP@,$EGREP,;t t
21172 s,@LDCONFIG@,$LDCONFIG,;t t
21173 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21174 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21175 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21176 s,@LINT@,$LINT,;t t
21177 s,@LINTFLAGS@,$LINTFLAGS,;t t
21178 s,@DB2HTML@,$DB2HTML,;t t
21179 s,@DB2PDF@,$DB2PDF,;t t
21180 s,@DB2PS@,$DB2PS,;t t
21181 s,@DB2TXT@,$DB2TXT,;t t
21182 s,@FONTFORGE@,$FONTFORGE,;t t
21183 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
21184 s,@XLIB@,$XLIB,;t t
21185 s,@XFILES@,$XFILES,;t t
21186 s,@OPENGLFILES@,$OPENGLFILES,;t t
21187 s,@GLU32FILES@,$GLU32FILES,;t t
21188 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
21189 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21190 s,@GLUT32FILES@,$GLUT32FILES,;t t
21191 s,@NASLIBS@,$NASLIBS,;t t
21192 s,@CURSESLIBS@,$CURSESLIBS,;t t
21193 s,@sane_devel@,$sane_devel,;t t
21194 s,@SANELIBS@,$SANELIBS,;t t
21195 s,@SANEINCL@,$SANEINCL,;t t
21196 s,@ICULIBS@,$ICULIBS,;t t
21197 s,@ft_devel@,$ft_devel,;t t
21198 s,@ft_devel2@,$ft_devel2,;t t
21199 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
21200 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
21201 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
21202 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21203 s,@ARTSLIBS@,$ARTSLIBS,;t t
21204 s,@ARTSINCL@,$ARTSINCL,;t t
21205 s,@ALSALIBS@,$ALSALIBS,;t t
21206 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
21207 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
21208 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
21209 s,@DLLEXT@,$DLLEXT,;t t
21210 s,@DLLFLAGS@,$DLLFLAGS,;t t
21211 s,@DLLIBS@,$DLLIBS,;t t
21212 s,@LDSHARED@,$LDSHARED,;t t
21213 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
21214 s,@LIBEXT@,$LIBEXT,;t t
21215 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21216 s,@DLLTOOL@,$DLLTOOL,;t t
21217 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21218 s,@DLLWRAP@,$DLLWRAP,;t t
21219 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
21220 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
21221 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
21222 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
21223 s,@IOKITLIB@,$IOKITLIB,;t t
21224 s,@CROSSTEST@,$CROSSTEST,;t t
21225 s,@CROSSCC@,$CROSSCC,;t t
21226 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
21227 s,@LDPATH@,$LDPATH,;t t
21228 s,@CRTLIBS@,$CRTLIBS,;t t
21229 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
21230 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21231 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
21232 s,@LDD@,$LDD,;t t
21233 s,@ALLOCA@,$ALLOCA,;t t
21234 s,@LIBOBJS@,$LIBOBJS,;t t
21235 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21236 /@MAKE_RULES@/r $MAKE_RULES
21237 s,@MAKE_RULES@,,;t t
21238 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21239 s,@MAKE_DLL_RULES@,,;t t
21240 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21241 s,@MAKE_TEST_RULES@,,;t t
21242 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21243 s,@MAKE_LIB_RULES@,,;t t
21244 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21245 s,@MAKE_PROG_RULES@,,;t t
21246 CEOF
21248 _ACEOF
21250 cat >>$CONFIG_STATUS <<\_ACEOF
21251 # Split the substitutions into bite-sized pieces for seds with
21252 # small command number limits, like on Digital OSF/1 and HP-UX.
21253 ac_max_sed_lines=48
21254 ac_sed_frag=1 # Number of current file.
21255 ac_beg=1 # First line for current file.
21256 ac_end=$ac_max_sed_lines # Line after last line for current file.
21257 ac_more_lines=:
21258 ac_sed_cmds=
21259 while $ac_more_lines; do
21260 if test $ac_beg -gt 1; then
21261 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21262 else
21263 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21265 if test ! -s $tmp/subs.frag; then
21266 ac_more_lines=false
21267 else
21268 # The purpose of the label and of the branching condition is to
21269 # speed up the sed processing (if there are no `@' at all, there
21270 # is no need to browse any of the substitutions).
21271 # These are the two extra sed commands mentioned above.
21272 (echo ':t
21273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21274 if test -z "$ac_sed_cmds"; then
21275 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21276 else
21277 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21279 ac_sed_frag=`expr $ac_sed_frag + 1`
21280 ac_beg=$ac_end
21281 ac_end=`expr $ac_end + $ac_max_sed_lines`
21283 done
21284 if test -z "$ac_sed_cmds"; then
21285 ac_sed_cmds=cat
21287 fi # test -n "$CONFIG_FILES"
21289 _ACEOF
21290 cat >>$CONFIG_STATUS <<\_ACEOF
21291 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21293 case $ac_file in
21294 - | *:- | *:-:* ) # input from stdin
21295 cat >$tmp/stdin
21296 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21297 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21298 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21300 * ) ac_file_in=$ac_file.in ;;
21301 esac
21303 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21304 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21306 X"$ac_file" : 'X\(//\)[^/]' \| \
21307 X"$ac_file" : 'X\(//\)$' \| \
21308 X"$ac_file" : 'X\(/\)' \| \
21309 . : '\(.\)' 2>/dev/null ||
21310 echo X"$ac_file" |
21311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21313 /^X\(\/\/\)$/{ s//\1/; q; }
21314 /^X\(\/\).*/{ s//\1/; q; }
21315 s/.*/./; q'`
21316 { if $as_mkdir_p; then
21317 mkdir -p "$ac_dir"
21318 else
21319 as_dir="$ac_dir"
21320 as_dirs=
21321 while test ! -d "$as_dir"; do
21322 as_dirs="$as_dir $as_dirs"
21323 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21325 X"$as_dir" : 'X\(//\)[^/]' \| \
21326 X"$as_dir" : 'X\(//\)$' \| \
21327 X"$as_dir" : 'X\(/\)' \| \
21328 . : '\(.\)' 2>/dev/null ||
21329 echo X"$as_dir" |
21330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21332 /^X\(\/\/\)$/{ s//\1/; q; }
21333 /^X\(\/\).*/{ s//\1/; q; }
21334 s/.*/./; q'`
21335 done
21336 test ! -n "$as_dirs" || mkdir $as_dirs
21337 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21338 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21339 { (exit 1); exit 1; }; }; }
21341 ac_builddir=.
21343 if test "$ac_dir" != .; then
21344 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21345 # A "../" for each directory in $ac_dir_suffix.
21346 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21347 else
21348 ac_dir_suffix= ac_top_builddir=
21351 case $srcdir in
21352 .) # No --srcdir option. We are building in place.
21353 ac_srcdir=.
21354 if test -z "$ac_top_builddir"; then
21355 ac_top_srcdir=.
21356 else
21357 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21358 fi ;;
21359 [\\/]* | ?:[\\/]* ) # Absolute path.
21360 ac_srcdir=$srcdir$ac_dir_suffix;
21361 ac_top_srcdir=$srcdir ;;
21362 *) # Relative path.
21363 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21364 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21365 esac
21367 # Do not use `cd foo && pwd` to compute absolute paths, because
21368 # the directories may not exist.
21369 case `pwd` in
21370 .) ac_abs_builddir="$ac_dir";;
21372 case "$ac_dir" in
21373 .) ac_abs_builddir=`pwd`;;
21374 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21375 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21376 esac;;
21377 esac
21378 case $ac_abs_builddir in
21379 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21381 case ${ac_top_builddir}. in
21382 .) ac_abs_top_builddir=$ac_abs_builddir;;
21383 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21384 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21385 esac;;
21386 esac
21387 case $ac_abs_builddir in
21388 .) ac_abs_srcdir=$ac_srcdir;;
21390 case $ac_srcdir in
21391 .) ac_abs_srcdir=$ac_abs_builddir;;
21392 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21393 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21394 esac;;
21395 esac
21396 case $ac_abs_builddir in
21397 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21399 case $ac_top_srcdir in
21400 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21401 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21402 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21403 esac;;
21404 esac
21407 case $INSTALL in
21408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21409 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21410 esac
21412 # Let's still pretend it is `configure' which instantiates (i.e., don't
21413 # use $as_me), people would be surprised to read:
21414 # /* config.h. Generated by config.status. */
21415 if test x"$ac_file" = x-; then
21416 configure_input=
21417 else
21418 configure_input="$ac_file. "
21420 configure_input=$configure_input"Generated from `echo $ac_file_in |
21421 sed 's,.*/,,'` by configure."
21423 # First look for the input files in the build tree, otherwise in the
21424 # src tree.
21425 ac_file_inputs=`IFS=:
21426 for f in $ac_file_in; do
21427 case $f in
21428 -) echo $tmp/stdin ;;
21429 [\\/$]*)
21430 # Absolute (can't be DOS-style, as IFS=:)
21431 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21432 echo "$as_me: error: cannot find input file: $f" >&2;}
21433 { (exit 1); exit 1; }; }
21434 echo "$f";;
21435 *) # Relative
21436 if test -f "$f"; then
21437 # Build tree
21438 echo "$f"
21439 elif test -f "$srcdir/$f"; then
21440 # Source tree
21441 echo "$srcdir/$f"
21442 else
21443 # /dev/null tree
21444 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21445 echo "$as_me: error: cannot find input file: $f" >&2;}
21446 { (exit 1); exit 1; }; }
21447 fi;;
21448 esac
21449 done` || { (exit 1); exit 1; }
21451 if test x"$ac_file" != x-; then
21452 { echo "$as_me:$LINENO: creating $ac_file" >&5
21453 echo "$as_me: creating $ac_file" >&6;}
21454 rm -f "$ac_file"
21456 _ACEOF
21457 cat >>$CONFIG_STATUS <<_ACEOF
21458 sed "$ac_vpsub
21459 $extrasub
21460 _ACEOF
21461 cat >>$CONFIG_STATUS <<\_ACEOF
21463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21464 s,@configure_input@,$configure_input,;t t
21465 s,@srcdir@,$ac_srcdir,;t t
21466 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21467 s,@top_srcdir@,$ac_top_srcdir,;t t
21468 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21469 s,@builddir@,$ac_builddir,;t t
21470 s,@abs_builddir@,$ac_abs_builddir,;t t
21471 s,@top_builddir@,$ac_top_builddir,;t t
21472 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21473 s,@INSTALL@,$ac_INSTALL,;t t
21474 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21475 rm -f $tmp/stdin
21476 if test x"$ac_file" != x-; then
21477 mv $tmp/out $ac_file
21478 else
21479 cat $tmp/out
21480 rm -f $tmp/out
21483 done
21484 _ACEOF
21485 cat >>$CONFIG_STATUS <<\_ACEOF
21488 # CONFIG_HEADER section.
21491 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21492 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21494 # ac_d sets the value in "#define NAME VALUE" lines.
21495 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21496 ac_dB='[ ].*$,\1#\2'
21497 ac_dC=' '
21498 ac_dD=',;t'
21499 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21500 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21501 ac_uB='$,\1#\2define\3'
21502 ac_uC=' '
21503 ac_uD=',;t'
21505 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21506 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21507 case $ac_file in
21508 - | *:- | *:-:* ) # input from stdin
21509 cat >$tmp/stdin
21510 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21511 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21512 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21513 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21514 * ) ac_file_in=$ac_file.in ;;
21515 esac
21517 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21518 echo "$as_me: creating $ac_file" >&6;}
21520 # First look for the input files in the build tree, otherwise in the
21521 # src tree.
21522 ac_file_inputs=`IFS=:
21523 for f in $ac_file_in; do
21524 case $f in
21525 -) echo $tmp/stdin ;;
21526 [\\/$]*)
21527 # Absolute (can't be DOS-style, as IFS=:)
21528 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21529 echo "$as_me: error: cannot find input file: $f" >&2;}
21530 { (exit 1); exit 1; }; }
21531 # Do quote $f, to prevent DOS paths from being IFS'd.
21532 echo "$f";;
21533 *) # Relative
21534 if test -f "$f"; then
21535 # Build tree
21536 echo "$f"
21537 elif test -f "$srcdir/$f"; then
21538 # Source tree
21539 echo "$srcdir/$f"
21540 else
21541 # /dev/null tree
21542 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21543 echo "$as_me: error: cannot find input file: $f" >&2;}
21544 { (exit 1); exit 1; }; }
21545 fi;;
21546 esac
21547 done` || { (exit 1); exit 1; }
21548 # Remove the trailing spaces.
21549 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21551 _ACEOF
21553 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21554 # `conftest.undefs', that substitutes the proper values into
21555 # config.h.in to produce config.h. The first handles `#define'
21556 # templates, and the second `#undef' templates.
21557 # And first: Protect against being on the right side of a sed subst in
21558 # config.status. Protect against being in an unquoted here document
21559 # in config.status.
21560 rm -f conftest.defines conftest.undefs
21561 # Using a here document instead of a string reduces the quoting nightmare.
21562 # Putting comments in sed scripts is not portable.
21564 # `end' is used to avoid that the second main sed command (meant for
21565 # 0-ary CPP macros) applies to n-ary macro definitions.
21566 # See the Autoconf documentation for `clear'.
21567 cat >confdef2sed.sed <<\_ACEOF
21568 s/[\\&,]/\\&/g
21569 s,[\\$`],\\&,g
21570 t clear
21571 : clear
21572 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21573 t end
21574 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21575 : end
21576 _ACEOF
21577 # If some macros were called several times there might be several times
21578 # the same #defines, which is useless. Nevertheless, we may not want to
21579 # sort them, since we want the *last* AC-DEFINE to be honored.
21580 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21581 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21582 rm -f confdef2sed.sed
21584 # This sed command replaces #undef with comments. This is necessary, for
21585 # example, in the case of _POSIX_SOURCE, which is predefined and required
21586 # on some systems where configure will not decide to define it.
21587 cat >>conftest.undefs <<\_ACEOF
21588 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21589 _ACEOF
21591 # Break up conftest.defines because some shells have a limit on the size
21592 # of here documents, and old seds have small limits too (100 cmds).
21593 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21594 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21595 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21596 echo ' :' >>$CONFIG_STATUS
21597 rm -f conftest.tail
21598 while grep . conftest.defines >/dev/null
21600 # Write a limited-size here document to $tmp/defines.sed.
21601 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21602 # Speed up: don't consider the non `#define' lines.
21603 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21604 # Work around the forget-to-reset-the-flag bug.
21605 echo 't clr' >>$CONFIG_STATUS
21606 echo ': clr' >>$CONFIG_STATUS
21607 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21608 echo 'CEOF
21609 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21610 rm -f $tmp/in
21611 mv $tmp/out $tmp/in
21612 ' >>$CONFIG_STATUS
21613 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21614 rm -f conftest.defines
21615 mv conftest.tail conftest.defines
21616 done
21617 rm -f conftest.defines
21618 echo ' fi # grep' >>$CONFIG_STATUS
21619 echo >>$CONFIG_STATUS
21621 # Break up conftest.undefs because some shells have a limit on the size
21622 # of here documents, and old seds have small limits too (100 cmds).
21623 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21624 rm -f conftest.tail
21625 while grep . conftest.undefs >/dev/null
21627 # Write a limited-size here document to $tmp/undefs.sed.
21628 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21629 # Speed up: don't consider the non `#undef'
21630 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21631 # Work around the forget-to-reset-the-flag bug.
21632 echo 't clr' >>$CONFIG_STATUS
21633 echo ': clr' >>$CONFIG_STATUS
21634 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21635 echo 'CEOF
21636 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21637 rm -f $tmp/in
21638 mv $tmp/out $tmp/in
21639 ' >>$CONFIG_STATUS
21640 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21641 rm -f conftest.undefs
21642 mv conftest.tail conftest.undefs
21643 done
21644 rm -f conftest.undefs
21646 cat >>$CONFIG_STATUS <<\_ACEOF
21647 # Let's still pretend it is `configure' which instantiates (i.e., don't
21648 # use $as_me), people would be surprised to read:
21649 # /* config.h. Generated by config.status. */
21650 if test x"$ac_file" = x-; then
21651 echo "/* Generated by configure. */" >$tmp/config.h
21652 else
21653 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21655 cat $tmp/in >>$tmp/config.h
21656 rm -f $tmp/in
21657 if test x"$ac_file" != x-; then
21658 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21659 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21660 echo "$as_me: $ac_file is unchanged" >&6;}
21661 else
21662 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21663 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21664 X"$ac_file" : 'X\(//\)[^/]' \| \
21665 X"$ac_file" : 'X\(//\)$' \| \
21666 X"$ac_file" : 'X\(/\)' \| \
21667 . : '\(.\)' 2>/dev/null ||
21668 echo X"$ac_file" |
21669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21671 /^X\(\/\/\)$/{ s//\1/; q; }
21672 /^X\(\/\).*/{ s//\1/; q; }
21673 s/.*/./; q'`
21674 { if $as_mkdir_p; then
21675 mkdir -p "$ac_dir"
21676 else
21677 as_dir="$ac_dir"
21678 as_dirs=
21679 while test ! -d "$as_dir"; do
21680 as_dirs="$as_dir $as_dirs"
21681 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21683 X"$as_dir" : 'X\(//\)[^/]' \| \
21684 X"$as_dir" : 'X\(//\)$' \| \
21685 X"$as_dir" : 'X\(/\)' \| \
21686 . : '\(.\)' 2>/dev/null ||
21687 echo X"$as_dir" |
21688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21689 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21690 /^X\(\/\/\)$/{ s//\1/; q; }
21691 /^X\(\/\).*/{ s//\1/; q; }
21692 s/.*/./; q'`
21693 done
21694 test ! -n "$as_dirs" || mkdir $as_dirs
21695 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21696 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21697 { (exit 1); exit 1; }; }; }
21699 rm -f $ac_file
21700 mv $tmp/config.h $ac_file
21702 else
21703 cat $tmp/config.h
21704 rm -f $tmp/config.h
21706 done
21707 _ACEOF
21708 cat >>$CONFIG_STATUS <<\_ACEOF
21711 # CONFIG_COMMANDS section.
21713 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21714 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21715 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21716 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21717 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21718 X"$ac_dest" : 'X\(//\)[^/]' \| \
21719 X"$ac_dest" : 'X\(//\)$' \| \
21720 X"$ac_dest" : 'X\(/\)' \| \
21721 . : '\(.\)' 2>/dev/null ||
21722 echo X"$ac_dest" |
21723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21725 /^X\(\/\/\)$/{ s//\1/; q; }
21726 /^X\(\/\).*/{ s//\1/; q; }
21727 s/.*/./; q'`
21728 { if $as_mkdir_p; then
21729 mkdir -p "$ac_dir"
21730 else
21731 as_dir="$ac_dir"
21732 as_dirs=
21733 while test ! -d "$as_dir"; do
21734 as_dirs="$as_dir $as_dirs"
21735 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21737 X"$as_dir" : 'X\(//\)[^/]' \| \
21738 X"$as_dir" : 'X\(//\)$' \| \
21739 X"$as_dir" : 'X\(/\)' \| \
21740 . : '\(.\)' 2>/dev/null ||
21741 echo X"$as_dir" |
21742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21744 /^X\(\/\/\)$/{ s//\1/; q; }
21745 /^X\(\/\).*/{ s//\1/; q; }
21746 s/.*/./; q'`
21747 done
21748 test ! -n "$as_dirs" || mkdir $as_dirs
21749 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21750 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21751 { (exit 1); exit 1; }; }; }
21753 ac_builddir=.
21755 if test "$ac_dir" != .; then
21756 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21757 # A "../" for each directory in $ac_dir_suffix.
21758 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21759 else
21760 ac_dir_suffix= ac_top_builddir=
21763 case $srcdir in
21764 .) # No --srcdir option. We are building in place.
21765 ac_srcdir=.
21766 if test -z "$ac_top_builddir"; then
21767 ac_top_srcdir=.
21768 else
21769 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21770 fi ;;
21771 [\\/]* | ?:[\\/]* ) # Absolute path.
21772 ac_srcdir=$srcdir$ac_dir_suffix;
21773 ac_top_srcdir=$srcdir ;;
21774 *) # Relative path.
21775 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21776 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21777 esac
21779 # Do not use `cd foo && pwd` to compute absolute paths, because
21780 # the directories may not exist.
21781 case `pwd` in
21782 .) ac_abs_builddir="$ac_dir";;
21784 case "$ac_dir" in
21785 .) ac_abs_builddir=`pwd`;;
21786 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21787 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21788 esac;;
21789 esac
21790 case $ac_abs_builddir in
21791 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21793 case ${ac_top_builddir}. in
21794 .) ac_abs_top_builddir=$ac_abs_builddir;;
21795 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21796 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21797 esac;;
21798 esac
21799 case $ac_abs_builddir in
21800 .) ac_abs_srcdir=$ac_srcdir;;
21802 case $ac_srcdir in
21803 .) ac_abs_srcdir=$ac_abs_builddir;;
21804 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21805 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21806 esac;;
21807 esac
21808 case $ac_abs_builddir in
21809 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21811 case $ac_top_srcdir in
21812 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21813 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21814 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21815 esac;;
21816 esac
21819 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21820 echo "$as_me: executing $ac_dest commands" >&6;}
21821 case $ac_dest in
21822 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21823 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21824 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21825 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21826 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21827 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21828 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21829 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21830 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21831 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21832 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21833 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21834 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21835 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21836 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21837 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21838 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21839 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21840 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21841 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21842 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21843 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21844 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21845 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21846 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21847 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21848 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21849 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21850 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21851 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21852 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21853 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21854 esac
21855 done
21856 _ACEOF
21858 cat >>$CONFIG_STATUS <<\_ACEOF
21860 { (exit 0); exit 0; }
21861 _ACEOF
21862 chmod +x $CONFIG_STATUS
21863 ac_clean_files=$ac_clean_files_save
21866 # configure is writing to config.log, and then calls config.status.
21867 # config.status does its own redirection, appending to config.log.
21868 # Unfortunately, on DOS this fails, as config.log is still kept open
21869 # by configure, so config.status won't be able to write to it; its
21870 # output is simply discarded. So we exec the FD to /dev/null,
21871 # effectively closing config.log, so it can be properly (re)opened and
21872 # appended to by config.status. When coming back to configure, we
21873 # need to make the FD available again.
21874 if test "$no_create" != yes; then
21875 ac_cs_success=:
21876 ac_config_status_args=
21877 test "$silent" = yes &&
21878 ac_config_status_args="$ac_config_status_args --quiet"
21879 exec 5>/dev/null
21880 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21881 exec 5>>config.log
21882 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21883 # would make configure fail if this is the last instruction.
21884 $ac_cs_success || { (exit 1); exit 1; }
21888 if test "$have_x" = "no"
21889 then
21890 echo
21891 echo "*** Warning: X development files not found. Wine will be built without"
21892 echo "*** X support, which currently does not work, and would probably not be"
21893 echo "*** what you want anyway. You will need to install devel packages of"
21894 echo "*** Xlib/Xfree86 at the very least."
21897 if test "$wine_cv_opengl_version_OK" = "no"
21898 then
21899 echo
21900 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21901 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21904 if test "$wine_cv_msg_freetype" = "yes"
21905 then
21906 echo
21907 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21908 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21909 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21910 echo "*** enable Wine to use TrueType fonts."
21913 echo
21914 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
21915 echo