Add support for include/msvcrt. Fixes a bunch of spurious warnings.
[wine/wine-kai.git] / configure
blobda7b3325210f5c5cecade943b0b9e387fc9be8be
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"
7998 done
8000 if test "x$with_opengl" != "xno"
8001 then
8002 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8003 then
8004 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8005 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8006 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8007 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8008 { (exit 1); exit 1; }; }
8013 for ac_header in GL/gl.h GL/glx.h
8015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8017 echo "$as_me:$LINENO: checking for $ac_header" >&5
8018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8024 else
8025 # Is the header compilable?
8026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h. */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 $ac_includes_default
8035 #include <$ac_header>
8036 _ACEOF
8037 rm -f conftest.$ac_objext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039 (eval $ac_compile) 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; } &&
8052 { ac_try='test -s conftest.$ac_objext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 ac_header_compiler=yes
8059 else
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8063 ac_header_compiler=no
8065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8067 echo "${ECHO_T}$ac_header_compiler" >&6
8069 # Is the header present?
8070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h. */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 #include <$ac_header>
8079 _ACEOF
8080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } >/dev/null; then
8088 if test -s conftest.err; then
8089 ac_cpp_err=$ac_c_preproc_warn_flag
8090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8091 else
8092 ac_cpp_err=
8094 else
8095 ac_cpp_err=yes
8097 if test -z "$ac_cpp_err"; then
8098 ac_header_preproc=yes
8099 else
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8103 ac_header_preproc=no
8105 rm -f conftest.err conftest.$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8107 echo "${ECHO_T}$ac_header_preproc" >&6
8109 # So? What about this header?
8110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8111 yes:no: )
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8116 ac_header_preproc=yes
8118 no:yes:* )
8119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8132 cat <<\_ASBOX
8133 ## ------------------------------------ ##
8134 ## Report this to wine-devel@winehq.org ##
8135 ## ------------------------------------ ##
8136 _ASBOX
8138 sed "s/^/$as_me: WARNING: /" >&2
8140 esac
8141 echo "$as_me:$LINENO: checking for $ac_header" >&5
8142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146 eval "$as_ac_Header=\$ac_header_preproc"
8148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8153 cat >>confdefs.h <<_ACEOF
8154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8155 _ACEOF
8159 done
8161 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8162 then
8164 for ac_header in GL/glext.h
8166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8167 echo "$as_me:$LINENO: checking for $ac_header" >&5
8168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172 cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h. */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8178 #include <GL/glx.h>
8180 #include <$ac_header>
8181 _ACEOF
8182 rm -f conftest.$ac_objext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8184 (eval $ac_compile) 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } &&
8191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; } &&
8197 { ac_try='test -s conftest.$ac_objext'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 (eval $ac_try) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8203 eval "$as_ac_Header=yes"
8204 else
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 eval "$as_ac_Header=no"
8210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8215 cat >>confdefs.h <<_ACEOF
8216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8217 _ACEOF
8221 done
8223 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8224 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8225 if test "${wine_cv_opengl_version_OK+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h. */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 #include <GL/gl.h>
8236 main ()
8238 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8240 return 0;
8242 _ACEOF
8243 rm -f conftest.$ac_objext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8245 (eval $ac_compile) 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 wine_cv_opengl_version_OK="yes"
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 wine_cv_opengl_version_OK="no"
8272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8275 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8276 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8278 if test "$wine_cv_opengl_version_OK" = "yes"
8279 then
8280 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8281 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8282 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8284 else
8285 ac_check_lib_save_LIBS=$LIBS
8286 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8287 cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h. */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8294 /* Override any gcc2 internal prototype to avoid an error. */
8295 #ifdef __cplusplus
8296 extern "C"
8297 #endif
8298 /* We use char because int might match the return type of a gcc2
8299 builtin and then its argument prototype would still apply. */
8300 char glXCreateContext ();
8302 main ()
8304 glXCreateContext ();
8306 return 0;
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_lib_GL_glXCreateContext=yes
8331 else
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 ac_cv_lib_GL_glXCreateContext=no
8337 rm -f conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8339 LIBS=$ac_check_lib_save_LIBS
8341 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8342 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8343 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8344 OPENGL_LIBS="-lGL"
8349 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8350 then
8351 OPENGLFILES='$(OPENGLFILES)'
8353 cat >>confdefs.h <<\_ACEOF
8354 #define HAVE_OPENGL 1
8355 _ACEOF
8358 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8359 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8360 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363 ac_check_lib_save_LIBS=$LIBS
8364 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8372 /* Override any gcc2 internal prototype to avoid an error. */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8378 char glXGetProcAddressARB ();
8380 main ()
8382 glXGetProcAddressARB ();
8384 return 0;
8386 _ACEOF
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>conftest.er1
8390 ac_status=$?
8391 grep -v '^ *+' conftest.er1 >conftest.err
8392 rm -f conftest.er1
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 (eval $ac_try) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_lib_GL_glXGetProcAddressARB=yes
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_cv_lib_GL_glXGetProcAddressARB=no
8415 rm -f conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8419 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8420 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8421 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8423 cat >>confdefs.h <<\_ACEOF
8424 #define HAVE_GLX_GETPROCADDRESS 1
8425 _ACEOF
8430 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8431 then
8432 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8433 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8434 if test "${wine_cv_extension_prototypes+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437 cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h. */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8443 #include <GL/gl.h>
8444 #ifdef HAVE_GL_GLEXT_H
8445 # include <GL/glext.h>
8446 #endif
8449 main ()
8451 PFNGLCOLORTABLEEXTPROC test_proc;
8453 return 0;
8455 _ACEOF
8456 rm -f conftest.$ac_objext
8457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8458 (eval $ac_compile) 2>conftest.er1
8459 ac_status=$?
8460 grep -v '^ *+' conftest.er1 >conftest.err
8461 rm -f conftest.er1
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } &&
8465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 (eval $ac_try) 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; } &&
8471 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8477 wine_cv_extension_prototypes="yes"
8478 else
8479 echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8482 wine_cv_extension_prototypes="no"
8485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8488 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8489 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8490 if test "$wine_cv_extension_prototypes" = "yes"
8491 then
8493 cat >>confdefs.h <<\_ACEOF
8494 #define HAVE_GLEXT_PROTOTYPES 1
8495 _ACEOF
8501 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8502 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8503 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506 ac_check_lib_save_LIBS=$LIBS
8507 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8508 $LIBS"
8509 cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h. */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8516 /* Override any gcc2 internal prototype to avoid an error. */
8517 #ifdef __cplusplus
8518 extern "C"
8519 #endif
8520 /* We use char because int might match the return type of a gcc2
8521 builtin and then its argument prototype would still apply. */
8522 char gluLookAt ();
8524 main ()
8526 gluLookAt ();
8528 return 0;
8530 _ACEOF
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533 (eval $ac_link) 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_exeext'
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 ac_cv_lib_GLU_gluLookAt=yes
8553 else
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 ac_cv_lib_GLU_gluLookAt=no
8559 rm -f conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
8561 LIBS=$ac_check_lib_save_LIBS
8563 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8564 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8565 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8566 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8567 GLU32FILES='$(GLU32FILES)'
8573 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8574 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8575 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578 ac_check_lib_save_LIBS=$LIBS
8579 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8580 cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h. */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8587 /* Override any gcc2 internal prototype to avoid an error. */
8588 #ifdef __cplusplus
8589 extern "C"
8590 #endif
8591 /* We use char because int might match the return type of a gcc2
8592 builtin and then its argument prototype would still apply. */
8593 char glutMainLoop ();
8595 main ()
8597 glutMainLoop ();
8599 return 0;
8601 _ACEOF
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604 (eval $ac_link) 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; } &&
8617 { ac_try='test -s conftest$ac_exeext'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 (eval $ac_try) 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; }; then
8623 ac_cv_lib_glut_glutMainLoop=yes
8624 else
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8628 ac_cv_lib_glut_glutMainLoop=no
8630 rm -f conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8632 LIBS=$ac_check_lib_save_LIBS
8634 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8635 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8636 if test $ac_cv_lib_glut_glutMainLoop = yes; then
8637 GLUT_LIBS="-lglut -lXmu -lXi"
8639 GLUT32FILES='$(GLUT32FILES)'
8646 NASLIBS=""
8649 for ac_header in audio/audiolib.h
8651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8653 echo "$as_me:$LINENO: checking for $ac_header" >&5
8654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8660 else
8661 # Is the header compilable?
8662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8664 cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h. */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 $ac_includes_default
8671 #include <$ac_header>
8672 _ACEOF
8673 rm -f conftest.$ac_objext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8675 (eval $ac_compile) 2>conftest.er1
8676 ac_status=$?
8677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 (eval $ac_try) 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; } &&
8688 { ac_try='test -s conftest.$ac_objext'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; }; then
8694 ac_header_compiler=yes
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_header_compiler=no
8701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8703 echo "${ECHO_T}$ac_header_compiler" >&6
8705 # Is the header present?
8706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8708 cat >conftest.$ac_ext <<_ACEOF
8709 /* confdefs.h. */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8714 #include <$ac_header>
8715 _ACEOF
8716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } >/dev/null; then
8724 if test -s conftest.err; then
8725 ac_cpp_err=$ac_c_preproc_warn_flag
8726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8727 else
8728 ac_cpp_err=
8730 else
8731 ac_cpp_err=yes
8733 if test -z "$ac_cpp_err"; then
8734 ac_header_preproc=yes
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 ac_header_preproc=no
8741 rm -f conftest.err conftest.$ac_ext
8742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8743 echo "${ECHO_T}$ac_header_preproc" >&6
8745 # So? What about this header?
8746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8747 yes:no: )
8748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8752 ac_header_preproc=yes
8754 no:yes:* )
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8768 cat <<\_ASBOX
8769 ## ------------------------------------ ##
8770 ## Report this to wine-devel@winehq.org ##
8771 ## ------------------------------------ ##
8772 _ASBOX
8774 sed "s/^/$as_me: WARNING: /" >&2
8776 esac
8777 echo "$as_me:$LINENO: checking for $ac_header" >&5
8778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 else
8782 eval "$as_ac_Header=\$ac_header_preproc"
8784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8789 cat >>confdefs.h <<_ACEOF
8790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8791 _ACEOF
8793 for ac_header in audio/soundlib.h
8795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8796 echo "$as_me:$LINENO: checking for $ac_header" >&5
8797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 #include <audio/audiolib.h>
8809 #include <$ac_header>
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813 (eval $ac_compile) 2>conftest.er1
8814 ac_status=$?
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; } &&
8826 { ac_try='test -s conftest.$ac_objext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 eval "$as_ac_Header=yes"
8833 else
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8837 eval "$as_ac_Header=no"
8839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8844 cat >>confdefs.h <<_ACEOF
8845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8846 _ACEOF
8850 done
8852 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8853 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8854 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857 ac_check_lib_save_LIBS=$LIBS
8858 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8866 /* Override any gcc2 internal prototype to avoid an error. */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 /* We use char because int might match the return type of a gcc2
8871 builtin and then its argument prototype would still apply. */
8872 char AuCreateFlow ();
8874 main ()
8876 AuCreateFlow ();
8878 return 0;
8880 _ACEOF
8881 rm -f conftest.$ac_objext conftest$ac_exeext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883 (eval $ac_link) 2>conftest.er1
8884 ac_status=$?
8885 grep -v '^ *+' conftest.er1 >conftest.err
8886 rm -f conftest.er1
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 (eval $ac_try) 2>&5
8893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; } &&
8896 { ac_try='test -s conftest$ac_exeext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_lib_audio_AuCreateFlow=yes
8903 else
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 ac_cv_lib_audio_AuCreateFlow=no
8909 rm -f conftest.err conftest.$ac_objext \
8910 conftest$ac_exeext conftest.$ac_ext
8911 LIBS=$ac_check_lib_save_LIBS
8913 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8914 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8915 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_NAS 1
8919 _ACEOF
8921 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8926 done
8929 CPPFLAGS="$ac_save_CPPFLAGS"
8930 XFILES='$(XFILES)'
8931 else
8932 XLIB=""
8933 X_CFLAGS=""
8934 X_LIBS=""
8937 CURSESLIBS=""
8938 if test "x$with_curses" != "xno"
8939 then
8941 for ac_header in ncurses.h
8943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8945 echo "$as_me:$LINENO: checking for $ac_header" >&5
8946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8952 else
8953 # Is the header compilable?
8954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8956 cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h. */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 $ac_includes_default
8963 #include <$ac_header>
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967 (eval $ac_compile) 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try='test -s conftest.$ac_objext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_header_compiler=yes
8987 else
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 ac_header_compiler=no
8993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8995 echo "${ECHO_T}$ac_header_compiler" >&6
8997 # Is the header present?
8998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h. */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9006 #include <$ac_header>
9007 _ACEOF
9008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9010 ac_status=$?
9011 grep -v '^ *+' conftest.er1 >conftest.err
9012 rm -f conftest.er1
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } >/dev/null; then
9016 if test -s conftest.err; then
9017 ac_cpp_err=$ac_c_preproc_warn_flag
9018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9019 else
9020 ac_cpp_err=
9022 else
9023 ac_cpp_err=yes
9025 if test -z "$ac_cpp_err"; then
9026 ac_header_preproc=yes
9027 else
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_header_preproc=no
9033 rm -f conftest.err conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9035 echo "${ECHO_T}$ac_header_preproc" >&6
9037 # So? What about this header?
9038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9039 yes:no: )
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9044 ac_header_preproc=yes
9046 no:yes:* )
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9060 cat <<\_ASBOX
9061 ## ------------------------------------ ##
9062 ## Report this to wine-devel@winehq.org ##
9063 ## ------------------------------------ ##
9064 _ASBOX
9066 sed "s/^/$as_me: WARNING: /" >&2
9068 esac
9069 echo "$as_me:$LINENO: checking for $ac_header" >&5
9070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074 eval "$as_ac_Header=\$ac_header_preproc"
9076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9081 cat >>confdefs.h <<_ACEOF
9082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9083 _ACEOF
9084 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9085 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9086 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089 ac_check_lib_save_LIBS=$LIBS
9090 LIBS="-lncurses $LIBS"
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h. */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9098 /* Override any gcc2 internal prototype to avoid an error. */
9099 #ifdef __cplusplus
9100 extern "C"
9101 #endif
9102 /* We use char because int might match the return type of a gcc2
9103 builtin and then its argument prototype would still apply. */
9104 char waddch ();
9106 main ()
9108 waddch ();
9110 return 0;
9112 _ACEOF
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9115 (eval $ac_link) 2>conftest.er1
9116 ac_status=$?
9117 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } &&
9122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; } &&
9128 { ac_try='test -s conftest$ac_exeext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 ac_cv_lib_ncurses_waddch=yes
9135 else
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9139 ac_cv_lib_ncurses_waddch=no
9141 rm -f conftest.err conftest.$ac_objext \
9142 conftest$ac_exeext conftest.$ac_ext
9143 LIBS=$ac_check_lib_save_LIBS
9145 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9146 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9147 if test $ac_cv_lib_ncurses_waddch = yes; then
9149 cat >>confdefs.h <<\_ACEOF
9150 #define HAVE_LIBNCURSES 1
9151 _ACEOF
9153 CURSESLIBS="-lncurses"
9154 else
9156 for ac_header in curses.h
9158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9160 echo "$as_me:$LINENO: checking for $ac_header" >&5
9161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9167 else
9168 # Is the header compilable?
9169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9171 cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h. */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 $ac_includes_default
9178 #include <$ac_header>
9179 _ACEOF
9180 rm -f conftest.$ac_objext
9181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9182 (eval $ac_compile) 2>conftest.er1
9183 ac_status=$?
9184 grep -v '^ *+' conftest.er1 >conftest.err
9185 rm -f conftest.er1
9186 cat conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } &&
9189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 (eval $ac_try) 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; } &&
9195 { ac_try='test -s conftest.$ac_objext'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 (eval $ac_try) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; }; then
9201 ac_header_compiler=yes
9202 else
9203 echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9206 ac_header_compiler=no
9208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9210 echo "${ECHO_T}$ac_header_compiler" >&6
9212 # Is the header present?
9213 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h. */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 #include <$ac_header>
9222 _ACEOF
9223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } >/dev/null; then
9231 if test -s conftest.err; then
9232 ac_cpp_err=$ac_c_preproc_warn_flag
9233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9234 else
9235 ac_cpp_err=
9237 else
9238 ac_cpp_err=yes
9240 if test -z "$ac_cpp_err"; then
9241 ac_header_preproc=yes
9242 else
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9246 ac_header_preproc=no
9248 rm -f conftest.err conftest.$ac_ext
9249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9250 echo "${ECHO_T}$ac_header_preproc" >&6
9252 # So? What about this header?
9253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9254 yes:no: )
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9259 ac_header_preproc=yes
9261 no:yes:* )
9262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9269 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9275 cat <<\_ASBOX
9276 ## ------------------------------------ ##
9277 ## Report this to wine-devel@winehq.org ##
9278 ## ------------------------------------ ##
9279 _ASBOX
9281 sed "s/^/$as_me: WARNING: /" >&2
9283 esac
9284 echo "$as_me:$LINENO: checking for $ac_header" >&5
9285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289 eval "$as_ac_Header=\$ac_header_preproc"
9291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9296 cat >>confdefs.h <<_ACEOF
9297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9298 _ACEOF
9299 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9300 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9301 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304 ac_check_lib_save_LIBS=$LIBS
9305 LIBS="-lcurses $LIBS"
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h. */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9313 /* Override any gcc2 internal prototype to avoid an error. */
9314 #ifdef __cplusplus
9315 extern "C"
9316 #endif
9317 /* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9319 char waddch ();
9321 main ()
9323 waddch ();
9325 return 0;
9327 _ACEOF
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; } &&
9343 { ac_try='test -s conftest$ac_exeext'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 (eval $ac_try) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 ac_cv_lib_curses_waddch=yes
9350 else
9351 echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9354 ac_cv_lib_curses_waddch=no
9356 rm -f conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext conftest.$ac_ext
9358 LIBS=$ac_check_lib_save_LIBS
9360 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9361 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9362 if test $ac_cv_lib_curses_waddch = yes; then
9364 cat >>confdefs.h <<\_ACEOF
9365 #define HAVE_LIBCURSES 1
9366 _ACEOF
9368 CURSESLIBS="-lcurses"
9373 done
9379 done
9381 saved_libs="$LIBS"
9382 LIBS="$CURSESLIBS $LIBS"
9385 for ac_func in getbkgd resizeterm
9387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9388 echo "$as_me:$LINENO: checking for $ac_func" >&5
9389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9390 if eval "test \"\${$as_ac_var+set}\" = set"; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393 cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h. */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9401 #define $ac_func innocuous_$ac_func
9403 /* System header to define __stub macros and hopefully few prototypes,
9404 which can conflict with char $ac_func (); below.
9405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9406 <limits.h> exists even on freestanding compilers. */
9408 #ifdef __STDC__
9409 # include <limits.h>
9410 #else
9411 # include <assert.h>
9412 #endif
9414 #undef $ac_func
9416 /* Override any gcc2 internal prototype to avoid an error. */
9417 #ifdef __cplusplus
9418 extern "C"
9420 #endif
9421 /* We use char because int might match the return type of a gcc2
9422 builtin and then its argument prototype would still apply. */
9423 char $ac_func ();
9424 /* The GNU C library defines this for functions which it implements
9425 to always fail with ENOSYS. Some functions are actually named
9426 something starting with __ and the normal name is an alias. */
9427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9428 choke me
9429 #else
9430 char (*f) () = $ac_func;
9431 #endif
9432 #ifdef __cplusplus
9434 #endif
9437 main ()
9439 return f != $ac_func;
9441 return 0;
9443 _ACEOF
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446 (eval $ac_link) 2>conftest.er1
9447 ac_status=$?
9448 grep -v '^ *+' conftest.er1 >conftest.err
9449 rm -f conftest.er1
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest$ac_exeext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 eval "$as_ac_var=yes"
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9470 eval "$as_ac_var=no"
9472 rm -f conftest.err conftest.$ac_objext \
9473 conftest$ac_exeext conftest.$ac_ext
9475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9477 if test `eval echo '${'$as_ac_var'}'` = yes; then
9478 cat >>confdefs.h <<_ACEOF
9479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9480 _ACEOF
9483 done
9485 LIBS="$saved_libs"
9489 # Extract the first word of "sane-config", so it can be a program name with args.
9490 set dummy sane-config; ac_word=$2
9491 echo "$as_me:$LINENO: checking for $ac_word" >&5
9492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9493 if test "${ac_cv_prog_sane_devel+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496 if test -n "$sane_devel"; then
9497 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9498 else
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9506 ac_cv_prog_sane_devel="sane-config"
9507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9510 done
9511 done
9513 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9516 sane_devel=$ac_cv_prog_sane_devel
9517 if test -n "$sane_devel"; then
9518 echo "$as_me:$LINENO: result: $sane_devel" >&5
9519 echo "${ECHO_T}$sane_devel" >&6
9520 else
9521 echo "$as_me:$LINENO: result: no" >&5
9522 echo "${ECHO_T}no" >&6
9525 if test "$sane_devel" = "no"
9526 then
9527 SANELIBS=""
9528 SANEINCL=""
9529 else
9530 SANELIBS="`$sane_devel --libs`"
9531 SANEINCL="`$sane_devel --cflags`"
9532 ac_save_CPPFLAGS="$CPPFLAGS"
9533 ac_save_LIBS="$LIBS"
9534 CPPFLAGS="$CPPFLAGS $SANEINCL"
9535 LIBS="$LIBS $SANELIBS"
9536 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9537 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9538 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9539 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9543 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9544 else
9545 # Is the header compilable?
9546 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9547 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h. */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 $ac_includes_default
9555 #include <sane/sane.h>
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559 (eval $ac_compile) 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 (eval $ac_try) 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try='test -s conftest.$ac_objext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_header_compiler=yes
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9583 ac_header_compiler=no
9585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9587 echo "${ECHO_T}$ac_header_compiler" >&6
9589 # Is the header present?
9590 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9591 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9592 cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h. */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9598 #include <sane/sane.h>
9599 _ACEOF
9600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } >/dev/null; then
9608 if test -s conftest.err; then
9609 ac_cpp_err=$ac_c_preproc_warn_flag
9610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9611 else
9612 ac_cpp_err=
9614 else
9615 ac_cpp_err=yes
9617 if test -z "$ac_cpp_err"; then
9618 ac_header_preproc=yes
9619 else
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_header_preproc=no
9625 rm -f conftest.err conftest.$ac_ext
9626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9627 echo "${ECHO_T}$ac_header_preproc" >&6
9629 # So? What about this header?
9630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9631 yes:no: )
9632 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9633 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9635 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9636 ac_header_preproc=yes
9638 no:yes:* )
9639 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9640 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9641 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9642 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9643 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9644 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9645 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
9646 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
9647 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9648 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9650 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
9652 cat <<\_ASBOX
9653 ## ------------------------------------ ##
9654 ## Report this to wine-devel@winehq.org ##
9655 ## ------------------------------------ ##
9656 _ASBOX
9658 sed "s/^/$as_me: WARNING: /" >&2
9660 esac
9661 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9662 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9663 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 ac_cv_header_sane_sane_h=$ac_header_preproc
9668 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9669 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9672 if test $ac_cv_header_sane_sane_h = yes; then
9673 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9674 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9675 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678 ac_check_lib_save_LIBS=$LIBS
9679 LIBS="-lsane $LIBS"
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h. */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9687 /* Override any gcc2 internal prototype to avoid an error. */
9688 #ifdef __cplusplus
9689 extern "C"
9690 #endif
9691 /* We use char because int might match the return type of a gcc2
9692 builtin and then its argument prototype would still apply. */
9693 char sane_open ();
9695 main ()
9697 sane_open ();
9699 return 0;
9701 _ACEOF
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704 (eval $ac_link) 2>conftest.er1
9705 ac_status=$?
9706 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -f conftest.er1
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } &&
9711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_cv_lib_sane_sane_open=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_cv_lib_sane_sane_open=no
9730 rm -f conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732 LIBS=$ac_check_lib_save_LIBS
9734 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9735 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9736 if test $ac_cv_lib_sane_sane_open = yes; then
9738 cat >>confdefs.h <<\_ACEOF
9739 #define HAVE_SANE 1
9740 _ACEOF
9742 else
9743 SANELIBS=""
9744 SANEINCL=""
9747 else
9748 SANELIBS=""
9749 SANEINCL=""
9753 LIBS="$ac_save_LIBS"
9754 CPPFLAGS="$ac_save_CPPFLAGS"
9760 for ac_header in unicode/ubidi.h
9762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9764 echo "$as_me:$LINENO: checking for $ac_header" >&5
9765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9771 else
9772 # Is the header compilable?
9773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h. */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 $ac_includes_default
9782 #include <$ac_header>
9783 _ACEOF
9784 rm -f conftest.$ac_objext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9786 (eval $ac_compile) 2>conftest.er1
9787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 (eval $ac_try) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; } &&
9799 { ac_try='test -s conftest.$ac_objext'
9800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 (eval $ac_try) 2>&5
9802 ac_status=$?
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; }; then
9805 ac_header_compiler=yes
9806 else
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_header_compiler=no
9812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9814 echo "${ECHO_T}$ac_header_compiler" >&6
9816 # Is the header present?
9817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h. */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 #include <$ac_header>
9826 _ACEOF
9827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } >/dev/null; then
9835 if test -s conftest.err; then
9836 ac_cpp_err=$ac_c_preproc_warn_flag
9837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9838 else
9839 ac_cpp_err=
9841 else
9842 ac_cpp_err=yes
9844 if test -z "$ac_cpp_err"; then
9845 ac_header_preproc=yes
9846 else
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_header_preproc=no
9852 rm -f conftest.err conftest.$ac_ext
9853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9854 echo "${ECHO_T}$ac_header_preproc" >&6
9856 # So? What about this header?
9857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9858 yes:no: )
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9863 ac_header_preproc=yes
9865 no:yes:* )
9866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9879 cat <<\_ASBOX
9880 ## ------------------------------------ ##
9881 ## Report this to wine-devel@winehq.org ##
9882 ## ------------------------------------ ##
9883 _ASBOX
9885 sed "s/^/$as_me: WARNING: /" >&2
9887 esac
9888 echo "$as_me:$LINENO: checking for $ac_header" >&5
9889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893 eval "$as_ac_Header=\$ac_header_preproc"
9895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9900 cat >>confdefs.h <<_ACEOF
9901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9902 _ACEOF
9906 done
9908 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9909 then
9910 saved_libs="$LIBS"
9911 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9912 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9913 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9914 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9915 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
9916 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h. */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9923 #include <unicode/ubidi.h>
9925 main ()
9927 ubidi_open()
9929 return 0;
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest$ac_exeext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 (eval $ac_try) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9954 cat >>confdefs.h <<\_ACEOF
9955 #define HAVE_ICU 1
9956 _ACEOF
9958 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9960 echo "$as_me:$LINENO: result: yes" >&5
9961 echo "${ECHO_T}yes" >&6
9962 else
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9966 echo "$as_me:$LINENO: result: no" >&5
9967 echo "${ECHO_T}no" >&6
9969 rm -f conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9971 LIBS="$saved_libs"
9974 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9975 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9976 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979 ac_check_lib_save_LIBS=$LIBS
9980 LIBS="-lfreetype $X_LIBS $LIBS"
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9988 /* Override any gcc2 internal prototype to avoid an error. */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9994 char FT_Init_FreeType ();
9996 main ()
9998 FT_Init_FreeType ();
10000 return 0;
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005 (eval $ac_link) 2>conftest.er1
10006 ac_status=$?
10007 grep -v '^ *+' conftest.er1 >conftest.err
10008 rm -f conftest.er1
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; } &&
10018 { ac_try='test -s conftest$ac_exeext'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10024 ac_cv_lib_freetype_FT_Init_FreeType=yes
10025 else
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10029 ac_cv_lib_freetype_FT_Init_FreeType=no
10031 rm -f conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 LIBS=$ac_check_lib_save_LIBS
10035 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10036 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10037 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10038 ft_lib=yes
10039 else
10040 ft_lib=no
10043 if test "$ft_lib" = "no"
10044 then
10045 FREETYPELIBS=""
10046 FREETYPEINCL=""
10047 wine_cv_msg_freetype=no
10048 else
10049 # Extract the first word of "freetype-config", so it can be a program name with args.
10050 set dummy freetype-config; ac_word=$2
10051 echo "$as_me:$LINENO: checking for $ac_word" >&5
10052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10053 if test "${ac_cv_prog_ft_devel+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056 if test -n "$ft_devel"; then
10057 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10058 else
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10062 IFS=$as_save_IFS
10063 test -z "$as_dir" && as_dir=.
10064 for ac_exec_ext in '' $ac_executable_extensions; do
10065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10066 ac_cv_prog_ft_devel="freetype-config"
10067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10068 break 2
10070 done
10071 done
10073 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10076 ft_devel=$ac_cv_prog_ft_devel
10077 if test -n "$ft_devel"; then
10078 echo "$as_me:$LINENO: result: $ft_devel" >&5
10079 echo "${ECHO_T}$ft_devel" >&6
10080 else
10081 echo "$as_me:$LINENO: result: no" >&5
10082 echo "${ECHO_T}no" >&6
10085 if test "$ft_devel" = "no"
10086 then
10087 # Extract the first word of "freetype2-config", so it can be a program name with args.
10088 set dummy freetype2-config; ac_word=$2
10089 echo "$as_me:$LINENO: checking for $ac_word" >&5
10090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10091 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 else
10094 if test -n "$ft_devel2"; then
10095 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10096 else
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104 ac_cv_prog_ft_devel2="freetype2-config"
10105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 break 2
10108 done
10109 done
10111 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10114 ft_devel2=$ac_cv_prog_ft_devel2
10115 if test -n "$ft_devel2"; then
10116 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10117 echo "${ECHO_T}$ft_devel2" >&6
10118 else
10119 echo "$as_me:$LINENO: result: no" >&5
10120 echo "${ECHO_T}no" >&6
10123 if test "$ft_devel2" = "freetype2-config"
10124 then
10125 ft_devel=$ft_devel2
10128 if test "$ft_devel" = "no"
10129 then
10130 FREETYPELIBS=""
10131 FREETYPEINCL=""
10132 wine_cv_msg_freetype=yes
10133 else
10134 FREETYPELIBS=`$ft_devel --libs`
10135 FREETYPEINCL=`$ft_devel --cflags`
10136 ac_save_CPPFLAGS="$CPPFLAGS"
10137 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10148 for ac_header in ft2build.h \
10149 freetype/freetype.h \
10150 freetype/ftglyph.h \
10151 freetype/tttables.h \
10152 freetype/ftnames.h \
10153 freetype/ftsnames.h \
10154 freetype/ttnameid.h \
10155 freetype/ftoutln.h \
10156 freetype/ftwinfnt.h \
10157 freetype/internal/sfnt.h
10159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10160 echo "$as_me:$LINENO: checking for $ac_header" >&5
10161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165 cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h. */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10171 #if HAVE_FT2BUILD_H
10172 #include <ft2build.h>
10173 #endif
10175 #include <$ac_header>
10176 _ACEOF
10177 rm -f conftest.$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 2>conftest.er1
10180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; } &&
10192 { ac_try='test -s conftest.$ac_objext'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; }; then
10198 eval "$as_ac_Header=yes"
10199 else
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10203 eval "$as_ac_Header=no"
10205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10210 cat >>confdefs.h <<_ACEOF
10211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10212 _ACEOF
10216 done
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h. */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224 #include <ft2build.h>
10225 #include <freetype/fttrigon.h>
10226 _ACEOF
10227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } >/dev/null; then
10235 if test -s conftest.err; then
10236 ac_cpp_err=$ac_c_preproc_warn_flag
10237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10238 else
10239 ac_cpp_err=
10241 else
10242 ac_cpp_err=yes
10244 if test -z "$ac_cpp_err"; then
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_FREETYPE_FTTRIGON_H 1
10248 _ACEOF
10250 wine_cv_fttrigon=yes
10251 else
10252 echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10255 wine_cv_fttrigon=no
10257 rm -f conftest.err conftest.$ac_ext
10258 CPPFLAGS="$ac_save_CPPFLAGS"
10259 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10260 then
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_FREETYPE 1
10264 _ACEOF
10266 wine_cv_msg_freetype=no
10267 else
10268 FREETYPELIBS=""
10269 FREETYPEINCL=""
10270 wine_cv_msg_freetype=yes
10277 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10278 then
10279 FONTSSUBDIRS="fonts"
10283 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10284 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10285 if test "${ac_cv_c_ppdev+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h. */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294 #include <linux/ppdev.h>
10296 main ()
10298 ioctl (1,PPCLAIM,0)
10300 return 0;
10302 _ACEOF
10303 rm -f conftest.$ac_objext
10304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10305 (eval $ac_compile) 2>conftest.er1
10306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest.$ac_objext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 ac_cv_c_ppdev="yes"
10325 else
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_cv_c_ppdev="no"
10331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10334 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10335 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10336 if test "$ac_cv_c_ppdev" = "yes"
10337 then
10339 cat >>confdefs.h <<\_ACEOF
10340 #define HAVE_PPDEV 1
10341 _ACEOF
10345 echo "$as_me:$LINENO: checking for va_copy" >&5
10346 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10347 if test "${ac_cv_c_va_copy+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 else
10350 cat >conftest.$ac_ext <<_ACEOF
10351 /* confdefs.h. */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10356 #include <stdarg.h>
10358 main ()
10360 va_list ap1, ap2;
10361 va_copy(ap1,ap2);
10364 return 0;
10366 _ACEOF
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10369 (eval $ac_link) 2>conftest.er1
10370 ac_status=$?
10371 grep -v '^ *+' conftest.er1 >conftest.err
10372 rm -f conftest.er1
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } &&
10376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378 (eval $ac_try) 2>&5
10379 ac_status=$?
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; } &&
10382 { ac_try='test -s conftest$ac_exeext'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; }; then
10388 ac_cv_c_va_copy="yes"
10389 else
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10393 ac_cv_c_va_copy="no"
10395 rm -f conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
10399 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10400 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10401 if test "$ac_cv_c_va_copy" = "yes"
10402 then
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_VA_COPY 1
10406 _ACEOF
10409 echo "$as_me:$LINENO: checking for __va_copy" >&5
10410 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10411 if test "${ac_cv_c___va_copy+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414 cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h. */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 #include <stdarg.h>
10422 main ()
10424 va_list ap1, ap2;
10425 __va_copy(ap1,ap2);
10428 return 0;
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>conftest.er1
10434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; } &&
10446 { ac_try='test -s conftest$ac_exeext'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 ac_cv_c___va_copy="yes"
10453 else
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10457 ac_cv_c___va_copy="no"
10459 rm -f conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10463 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10464 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10465 if test "$ac_cv_c___va_copy" = "yes"
10466 then
10468 cat >>confdefs.h <<\_ACEOF
10469 #define HAVE___VA_COPY 1
10470 _ACEOF
10474 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10475 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10476 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479 cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h. */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 #include <setjmp.h>
10487 main ()
10489 sigjmp_buf buf;
10490 sigsetjmp( buf, 1 );
10491 siglongjmp( buf, 1 );
10493 return 0;
10495 _ACEOF
10496 rm -f conftest.$ac_objext conftest$ac_exeext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest$ac_exeext'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10517 ac_cv_c_sigsetjmp="yes"
10518 else
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10522 ac_cv_c_sigsetjmp="no"
10524 rm -f conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10528 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10529 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10530 if test "$ac_cv_c_sigsetjmp" = "yes"
10531 then
10533 cat >>confdefs.h <<\_ACEOF
10534 #define HAVE_SIGSETJMP 1
10535 _ACEOF
10539 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10540 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10541 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544 cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h. */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550 #define _GNU_SOURCE
10551 #include <pthread.h>
10554 main ()
10556 if ((pthread_rwlock_t *) 0)
10557 return 0;
10558 if (sizeof (pthread_rwlock_t))
10559 return 0;
10561 return 0;
10563 _ACEOF
10564 rm -f conftest.$ac_objext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10566 (eval $ac_compile) 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try='test -s conftest.$ac_objext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 ac_cv_type_pthread_rwlock_t=yes
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10590 ac_cv_type_pthread_rwlock_t=no
10592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10594 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10595 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10596 if test $ac_cv_type_pthread_rwlock_t = yes; then
10598 cat >>confdefs.h <<_ACEOF
10599 #define HAVE_PTHREAD_RWLOCK_T 1
10600 _ACEOF
10604 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10605 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10606 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 else
10609 cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h. */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 #define _GNU_SOURCE
10616 #include <pthread.h>
10619 main ()
10621 if ((pthread_rwlockattr_t *) 0)
10622 return 0;
10623 if (sizeof (pthread_rwlockattr_t))
10624 return 0;
10626 return 0;
10628 _ACEOF
10629 rm -f conftest.$ac_objext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10631 (eval $ac_compile) 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest.$ac_objext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_type_pthread_rwlockattr_t=yes
10651 else
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 ac_cv_type_pthread_rwlockattr_t=no
10657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10659 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10660 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10661 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10663 cat >>confdefs.h <<_ACEOF
10664 #define HAVE_PTHREAD_RWLOCKATTR_T 1
10665 _ACEOF
10671 ac_save_LIBS="$LIBS"
10672 LIBS="$LIBS $LIBPTHREAD"
10676 for ac_func in \
10677 pthread_getattr_np \
10678 pthread_get_stackaddr_np \
10679 pthread_get_stacksize_np \
10682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10683 echo "$as_me:$LINENO: checking for $ac_func" >&5
10684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10685 if eval "test \"\${$as_ac_var+set}\" = set"; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10696 #define $ac_func innocuous_$ac_func
10698 /* System header to define __stub macros and hopefully few prototypes,
10699 which can conflict with char $ac_func (); below.
10700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10701 <limits.h> exists even on freestanding compilers. */
10703 #ifdef __STDC__
10704 # include <limits.h>
10705 #else
10706 # include <assert.h>
10707 #endif
10709 #undef $ac_func
10711 /* Override any gcc2 internal prototype to avoid an error. */
10712 #ifdef __cplusplus
10713 extern "C"
10715 #endif
10716 /* We use char because int might match the return type of a gcc2
10717 builtin and then its argument prototype would still apply. */
10718 char $ac_func ();
10719 /* The GNU C library defines this for functions which it implements
10720 to always fail with ENOSYS. Some functions are actually named
10721 something starting with __ and the normal name is an alias. */
10722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10723 choke me
10724 #else
10725 char (*f) () = $ac_func;
10726 #endif
10727 #ifdef __cplusplus
10729 #endif
10732 main ()
10734 return f != $ac_func;
10736 return 0;
10738 _ACEOF
10739 rm -f conftest.$ac_objext conftest$ac_exeext
10740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10741 (eval $ac_link) 2>conftest.er1
10742 ac_status=$?
10743 grep -v '^ *+' conftest.er1 >conftest.err
10744 rm -f conftest.er1
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; } &&
10754 { ac_try='test -s conftest$ac_exeext'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 eval "$as_ac_var=yes"
10761 else
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 eval "$as_ac_var=no"
10767 rm -f conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10772 if test `eval echo '${'$as_ac_var'}'` = yes; then
10773 cat >>confdefs.h <<_ACEOF
10774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10775 _ACEOF
10778 done
10780 LIBS="$ac_save_LIBS"
10785 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10789 echo "$as_me:$LINENO: checking for $ac_header" >&5
10790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10796 else
10797 # Is the header compilable?
10798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10800 cat >conftest.$ac_ext <<_ACEOF
10801 /* confdefs.h. */
10802 _ACEOF
10803 cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h. */
10806 $ac_includes_default
10807 #include <$ac_header>
10808 _ACEOF
10809 rm -f conftest.$ac_objext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811 (eval $ac_compile) 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest.$ac_objext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_header_compiler=yes
10831 else
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10835 ac_header_compiler=no
10837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10839 echo "${ECHO_T}$ac_header_compiler" >&6
10841 # Is the header present?
10842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10845 /* confdefs.h. */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 #include <$ac_header>
10851 _ACEOF
10852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10854 ac_status=$?
10855 grep -v '^ *+' conftest.er1 >conftest.err
10856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } >/dev/null; then
10860 if test -s conftest.err; then
10861 ac_cpp_err=$ac_c_preproc_warn_flag
10862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10863 else
10864 ac_cpp_err=
10866 else
10867 ac_cpp_err=yes
10869 if test -z "$ac_cpp_err"; then
10870 ac_header_preproc=yes
10871 else
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10875 ac_header_preproc=no
10877 rm -f conftest.err conftest.$ac_ext
10878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10879 echo "${ECHO_T}$ac_header_preproc" >&6
10881 # So? What about this header?
10882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10883 yes:no: )
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10888 ac_header_preproc=yes
10890 no:yes:* )
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10904 cat <<\_ASBOX
10905 ## ------------------------------------ ##
10906 ## Report this to wine-devel@winehq.org ##
10907 ## ------------------------------------ ##
10908 _ASBOX
10910 sed "s/^/$as_me: WARNING: /" >&2
10912 esac
10913 echo "$as_me:$LINENO: checking for $ac_header" >&5
10914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10918 eval "$as_ac_Header=\$ac_header_preproc"
10920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10925 cat >>confdefs.h <<_ACEOF
10926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10927 _ACEOF
10928 break
10931 done
10934 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10935 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10936 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h. */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10946 #if defined(HAVE_SYS_SOUNDCARD_H)
10947 #include <sys/soundcard.h>
10948 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10949 #include <machine/soundcard.h>
10950 #elif defined(HAVE_SOUNDCARD_H)
10951 #include <soundcard.h>
10952 #endif
10955 main ()
10959 /* check for one of the Open Sound System specific SNDCTL_ defines */
10960 #if !defined(SNDCTL_DSP_STEREO)
10961 #error No open sound system
10962 #endif
10965 return 0;
10967 _ACEOF
10968 rm -f conftest.$ac_objext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10970 (eval $ac_compile) 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest.$ac_objext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 ac_cv_c_opensoundsystem="yes"
10990 else
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_cv_c_opensoundsystem="no"
10996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10998 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10999 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11001 if test "$ac_cv_c_opensoundsystem" = "yes"
11002 then
11004 cat >>confdefs.h <<\_ACEOF
11005 #define HAVE_OSS 1
11006 _ACEOF
11010 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11011 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11012 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11022 #if defined(HAVE_SYS_SOUNDCARD_H)
11023 #include <sys/soundcard.h>
11024 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11025 #include <machine/soundcard.h>
11026 #elif defined(HAVE_SOUNDCARD_H)
11027 #include <soundcard.h>
11028 #endif
11031 main ()
11035 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11036 #if !defined(SNDCTL_SEQ_SYNC)
11037 #error No open sound system MIDI interface
11038 #endif
11041 return 0;
11043 _ACEOF
11044 rm -f conftest.$ac_objext
11045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11046 (eval $ac_compile) 2>conftest.er1
11047 ac_status=$?
11048 grep -v '^ *+' conftest.er1 >conftest.err
11049 rm -f conftest.er1
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } &&
11053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; } &&
11059 { ac_try='test -s conftest.$ac_objext'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 ac_cv_c_opensoundsystem_midi="yes"
11066 else
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11070 ac_cv_c_opensoundsystem_midi="no"
11072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11074 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11075 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11077 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11078 then
11080 cat >>confdefs.h <<\_ACEOF
11081 #define HAVE_OSS_MIDI 1
11082 _ACEOF
11086 # Extract the first word of "artsc-config", so it can be a program name with args.
11087 set dummy artsc-config; ac_word=$2
11088 echo "$as_me:$LINENO: checking for $ac_word" >&5
11089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11090 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093 case $ARTSCCONFIG in
11094 [\\/]* | ?:[\\/]*)
11095 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099 for as_dir in $PATH
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11105 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11107 break 2
11109 done
11110 done
11113 esac
11115 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11117 if test -n "$ARTSCCONFIG"; then
11118 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11119 echo "${ECHO_T}$ARTSCCONFIG" >&6
11120 else
11121 echo "$as_me:$LINENO: result: no" >&5
11122 echo "${ECHO_T}no" >&6
11125 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11126 then
11127 ARTSC_CFLAGS=""
11128 for i in `$ARTSCCONFIG --cflags`
11130 case "$i" in
11131 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11132 esac
11133 done
11134 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11135 save_CFLAGS="$CFLAGS"
11136 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11137 cat >conftest.$ac_ext <<_ACEOF
11138 /* confdefs.h. */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11143 #include <artsc.h>
11145 main ()
11147 arts_stream_t stream;
11149 return 0;
11151 _ACEOF
11152 rm -f conftest.$ac_objext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11154 (eval $ac_compile) 2>conftest.er1
11155 ac_status=$?
11156 grep -v '^ *+' conftest.er1 >conftest.err
11157 rm -f conftest.er1
11158 cat conftest.err >&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } &&
11161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest.$ac_objext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ARTSLIBS=$ARTSC_LIBS
11175 ARTSINCL=$ARTSC_CFLAGS
11178 cat >>confdefs.h <<\_ACEOF
11179 #define HAVE_ARTS 1
11180 _ACEOF
11182 else
11183 echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11188 CFLAGS="$save_CFLAGS"
11191 ALSALIBS=""
11195 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11199 echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11206 else
11207 # Is the header compilable?
11208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 $ac_includes_default
11217 #include <$ac_header>
11218 _ACEOF
11219 rm -f conftest.$ac_objext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>conftest.er1
11222 ac_status=$?
11223 grep -v '^ *+' conftest.er1 >conftest.err
11224 rm -f conftest.er1
11225 cat conftest.err >&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; } &&
11234 { ac_try='test -s conftest.$ac_objext'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 ac_header_compiler=yes
11241 else
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11245 ac_header_compiler=no
11247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11249 echo "${ECHO_T}$ac_header_compiler" >&6
11251 # Is the header present?
11252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h. */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 #include <$ac_header>
11261 _ACEOF
11262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } >/dev/null; then
11270 if test -s conftest.err; then
11271 ac_cpp_err=$ac_c_preproc_warn_flag
11272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11273 else
11274 ac_cpp_err=
11276 else
11277 ac_cpp_err=yes
11279 if test -z "$ac_cpp_err"; then
11280 ac_header_preproc=yes
11281 else
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11285 ac_header_preproc=no
11287 rm -f conftest.err conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289 echo "${ECHO_T}$ac_header_preproc" >&6
11291 # So? What about this header?
11292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11293 yes:no: )
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11298 ac_header_preproc=yes
11300 no:yes:* )
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11314 cat <<\_ASBOX
11315 ## ------------------------------------ ##
11316 ## Report this to wine-devel@winehq.org ##
11317 ## ------------------------------------ ##
11318 _ASBOX
11320 sed "s/^/$as_me: WARNING: /" >&2
11322 esac
11323 echo "$as_me:$LINENO: checking for $ac_header" >&5
11324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328 eval "$as_ac_Header=\$ac_header_preproc"
11330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11335 cat >>confdefs.h <<_ACEOF
11336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11337 _ACEOF
11338 break
11341 done
11343 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11344 then
11345 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11346 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11347 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350 ac_check_lib_save_LIBS=$LIBS
11351 LIBS="-lasound $LIBS"
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h. */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11359 /* Override any gcc2 internal prototype to avoid an error. */
11360 #ifdef __cplusplus
11361 extern "C"
11362 #endif
11363 /* We use char because int might match the return type of a gcc2
11364 builtin and then its argument prototype would still apply. */
11365 char snd_pcm_open ();
11367 main ()
11369 snd_pcm_open ();
11371 return 0;
11373 _ACEOF
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11376 (eval $ac_link) 2>conftest.er1
11377 ac_status=$?
11378 grep -v '^ *+' conftest.er1 >conftest.err
11379 rm -f conftest.er1
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
11383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_cv_lib_asound_snd_pcm_open=yes
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 ac_cv_lib_asound_snd_pcm_open=no
11402 rm -f conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404 LIBS=$ac_check_lib_save_LIBS
11406 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11407 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11408 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11410 cat >>confdefs.h <<\_ACEOF
11411 #define HAVE_ALSA 1
11412 _ACEOF
11414 ALSALIBS="-lasound"
11420 AUDIOIOLIBS=""
11423 for ac_header in libaudioio.h
11425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11427 echo "$as_me:$LINENO: checking for $ac_header" >&5
11428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11434 else
11435 # Is the header compilable?
11436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11438 cat >conftest.$ac_ext <<_ACEOF
11439 /* confdefs.h. */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11444 $ac_includes_default
11445 #include <$ac_header>
11446 _ACEOF
11447 rm -f conftest.$ac_objext
11448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11449 (eval $ac_compile) 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
11456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; } &&
11462 { ac_try='test -s conftest.$ac_objext'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; }; then
11468 ac_header_compiler=yes
11469 else
11470 echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11473 ac_header_compiler=no
11475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11477 echo "${ECHO_T}$ac_header_compiler" >&6
11479 # Is the header present?
11480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h. */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 #include <$ac_header>
11489 _ACEOF
11490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } >/dev/null; then
11498 if test -s conftest.err; then
11499 ac_cpp_err=$ac_c_preproc_warn_flag
11500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11501 else
11502 ac_cpp_err=
11504 else
11505 ac_cpp_err=yes
11507 if test -z "$ac_cpp_err"; then
11508 ac_header_preproc=yes
11509 else
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ac_header_preproc=no
11515 rm -f conftest.err conftest.$ac_ext
11516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11517 echo "${ECHO_T}$ac_header_preproc" >&6
11519 # So? What about this header?
11520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11521 yes:no: )
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11526 ac_header_preproc=yes
11528 no:yes:* )
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11536 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11542 cat <<\_ASBOX
11543 ## ------------------------------------ ##
11544 ## Report this to wine-devel@winehq.org ##
11545 ## ------------------------------------ ##
11546 _ASBOX
11548 sed "s/^/$as_me: WARNING: /" >&2
11550 esac
11551 echo "$as_me:$LINENO: checking for $ac_header" >&5
11552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 else
11556 eval "$as_ac_Header=\$ac_header_preproc"
11558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11563 cat >>confdefs.h <<_ACEOF
11564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565 _ACEOF
11566 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11567 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11568 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571 ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-laudioio $LIBS"
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11580 /* Override any gcc2 internal prototype to avoid an error. */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 /* We use char because int might match the return type of a gcc2
11585 builtin and then its argument prototype would still apply. */
11586 char AudioIOGetVersion ();
11588 main ()
11590 AudioIOGetVersion ();
11592 return 0;
11594 _ACEOF
11595 rm -f conftest.$ac_objext conftest$ac_exeext
11596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11597 (eval $ac_link) 2>conftest.er1
11598 ac_status=$?
11599 grep -v '^ *+' conftest.er1 >conftest.err
11600 rm -f conftest.er1
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
11604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; } &&
11610 { ac_try='test -s conftest$ac_exeext'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_cv_lib_audioio_AudioIOGetVersion=yes
11617 else
11618 echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11621 ac_cv_lib_audioio_AudioIOGetVersion=no
11623 rm -f conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11625 LIBS=$ac_check_lib_save_LIBS
11627 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11628 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11629 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11630 AUDIOIOLIBS="-laudioio"
11632 cat >>confdefs.h <<\_ACEOF
11633 #define HAVE_LIBAUDIOIO 1
11634 _ACEOF
11640 done
11645 for ac_header in capi20.h
11647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11649 echo "$as_me:$LINENO: checking for $ac_header" >&5
11650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11656 else
11657 # Is the header compilable?
11658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 $ac_includes_default
11667 #include <$ac_header>
11668 _ACEOF
11669 rm -f conftest.$ac_objext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671 (eval $ac_compile) 2>conftest.er1
11672 ac_status=$?
11673 grep -v '^ *+' conftest.er1 >conftest.err
11674 rm -f conftest.er1
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; } &&
11684 { ac_try='test -s conftest.$ac_objext'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11690 ac_header_compiler=yes
11691 else
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11695 ac_header_compiler=no
11697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11699 echo "${ECHO_T}$ac_header_compiler" >&6
11701 # Is the header present?
11702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11704 cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h. */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 #include <$ac_header>
11711 _ACEOF
11712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11714 ac_status=$?
11715 grep -v '^ *+' conftest.er1 >conftest.err
11716 rm -f conftest.er1
11717 cat conftest.err >&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } >/dev/null; then
11720 if test -s conftest.err; then
11721 ac_cpp_err=$ac_c_preproc_warn_flag
11722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11723 else
11724 ac_cpp_err=
11726 else
11727 ac_cpp_err=yes
11729 if test -z "$ac_cpp_err"; then
11730 ac_header_preproc=yes
11731 else
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11735 ac_header_preproc=no
11737 rm -f conftest.err conftest.$ac_ext
11738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11739 echo "${ECHO_T}$ac_header_preproc" >&6
11741 # So? What about this header?
11742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11743 yes:no: )
11744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11748 ac_header_preproc=yes
11750 no:yes:* )
11751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11764 cat <<\_ASBOX
11765 ## ------------------------------------ ##
11766 ## Report this to wine-devel@winehq.org ##
11767 ## ------------------------------------ ##
11768 _ASBOX
11770 sed "s/^/$as_me: WARNING: /" >&2
11772 esac
11773 echo "$as_me:$LINENO: checking for $ac_header" >&5
11774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 else
11778 eval "$as_ac_Header=\$ac_header_preproc"
11780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11785 cat >>confdefs.h <<_ACEOF
11786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11787 _ACEOF
11790 for ac_header in linux/capi.h
11792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11794 echo "$as_me:$LINENO: checking for $ac_header" >&5
11795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11801 else
11802 # Is the header compilable?
11803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h. */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 $ac_includes_default
11812 #include <$ac_header>
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest.$ac_objext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_header_compiler=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 ac_header_compiler=no
11842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11844 echo "${ECHO_T}$ac_header_compiler" >&6
11846 # Is the header present?
11847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h. */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 #include <$ac_header>
11856 _ACEOF
11857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11859 ac_status=$?
11860 grep -v '^ *+' conftest.er1 >conftest.err
11861 rm -f conftest.er1
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } >/dev/null; then
11865 if test -s conftest.err; then
11866 ac_cpp_err=$ac_c_preproc_warn_flag
11867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11868 else
11869 ac_cpp_err=
11871 else
11872 ac_cpp_err=yes
11874 if test -z "$ac_cpp_err"; then
11875 ac_header_preproc=yes
11876 else
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 ac_header_preproc=no
11882 rm -f conftest.err conftest.$ac_ext
11883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 echo "${ECHO_T}$ac_header_preproc" >&6
11886 # So? What about this header?
11887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11888 yes:no: )
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893 ac_header_preproc=yes
11895 no:yes:* )
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11909 cat <<\_ASBOX
11910 ## ------------------------------------ ##
11911 ## Report this to wine-devel@winehq.org ##
11912 ## ------------------------------------ ##
11913 _ASBOX
11915 sed "s/^/$as_me: WARNING: /" >&2
11917 esac
11918 echo "$as_me:$LINENO: checking for $ac_header" >&5
11919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923 eval "$as_ac_Header=\$ac_header_preproc"
11925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11930 cat >>confdefs.h <<_ACEOF
11931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11932 _ACEOF
11934 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11935 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
11936 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939 ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-lcapi20 $LIBS"
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h. */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11948 /* Override any gcc2 internal prototype to avoid an error. */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 /* We use char because int might match the return type of a gcc2
11953 builtin and then its argument prototype would still apply. */
11954 char capi20_register ();
11956 main ()
11958 capi20_register ();
11960 return 0;
11962 _ACEOF
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11965 (eval $ac_link) 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest$ac_exeext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_cv_lib_capi20_capi20_register=yes
11985 else
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11989 ac_cv_lib_capi20_capi20_register=no
11991 rm -f conftest.err conftest.$ac_objext \
11992 conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11995 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
11996 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
11997 if test $ac_cv_lib_capi20_capi20_register = yes; then
12000 cat >>confdefs.h <<\_ACEOF
12001 #define HAVE_CAPI4LINUX 1
12002 _ACEOF
12004 CAPI4LINUXLIBS="-lcapi20"
12012 done
12017 done
12021 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12022 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12023 if test "${ac_cv_mmap64_works+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026 if test "$cross_compiling" = yes; then
12027 ac_cv_mmap64_works="no"
12028 else
12029 cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h. */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12036 #define _FILE_OFFSET_BITS 64
12037 #include <stdio.h>
12038 #include <unistd.h>
12039 #include <fcntl.h>
12040 #include <sys/mman.h>
12041 #include <errno.h>
12043 int main(int argc,char **argv) {
12044 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12045 if (fd == -1) exit(1);
12047 unlink("conftest.map");
12049 write(fd,"test",4);
12051 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12052 (errno == EINVAL)
12054 exit(1);
12056 close(fd);
12057 fprintf(stderr,"success!\n");
12058 exit(0);
12062 _ACEOF
12063 rm -f conftest$ac_exeext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065 (eval $ac_link) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; }; then
12074 ac_cv_mmap64_works="yes"
12075 else
12076 echo "$as_me: program exited with status $ac_status" >&5
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 ( exit $ac_status )
12081 ac_cv_mmap64_works="no"
12083 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12086 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12087 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12089 if test "$ac_cv_mmap64_works" = "yes"
12090 then
12092 cat >>confdefs.h <<\_ACEOF
12093 #define _FILE_OFFSET_BITS 64
12094 _ACEOF
12099 EXTRACFLAGS=""
12101 if test "x${GCC}" = "xyes"
12102 then
12103 EXTRACFLAGS="-Wall -pipe"
12105 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12106 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12107 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 else
12110 if test "$cross_compiling" = yes; then
12111 ac_cv_c_gcc_strength_bug="yes"
12112 else
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h. */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12120 int L[4] = {0,1,2,3};
12121 int main(void) {
12122 static int Array[3];
12123 unsigned int B = 3;
12124 int i;
12125 for(i=0; i<B; i++) Array[i] = i - 3;
12126 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12127 L[i] = 4;
12129 exit( Array[1] != -2 || L[2] != 3);
12131 _ACEOF
12132 rm -f conftest$ac_exeext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12134 (eval $ac_link) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12140 ac_status=$?
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 ac_cv_c_gcc_strength_bug="no"
12144 else
12145 echo "$as_me: program exited with status $ac_status" >&5
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12149 ( exit $ac_status )
12150 ac_cv_c_gcc_strength_bug="yes"
12152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12155 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12156 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12157 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12158 then
12159 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12162 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12163 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12164 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167 ac_wine_try_cflags_saved=$CFLAGS
12168 CFLAGS="$CFLAGS -fshort-wchar"
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12177 main ()
12181 return 0;
12183 _ACEOF
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12186 (eval $ac_link) 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest$ac_exeext'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_cv_c_gcc_fshort_wchar="yes"
12206 else
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12210 ac_cv_c_gcc_fshort_wchar="no"
12212 rm -f conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214 CFLAGS=$ac_wine_try_cflags_saved
12216 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12217 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12218 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12219 then
12221 cat >>confdefs.h <<\_ACEOF
12222 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12223 _ACEOF
12227 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12228 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12229 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232 ac_wine_try_cflags_saved=$CFLAGS
12233 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h. */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12242 main ()
12246 return 0;
12248 _ACEOF
12249 rm -f conftest.$ac_objext conftest$ac_exeext
12250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12251 (eval $ac_link) 2>conftest.er1
12252 ac_status=$?
12253 grep -v '^ *+' conftest.er1 >conftest.err
12254 rm -f conftest.er1
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } &&
12258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try='test -s conftest$ac_exeext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_cv_c_gcc_stack_boundary="yes"
12271 else
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_cv_c_gcc_stack_boundary="no"
12277 rm -f conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 CFLAGS=$ac_wine_try_cflags_saved
12281 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12282 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12283 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12284 then
12285 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12288 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12289 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12290 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293 ac_wine_try_cflags_saved=$CFLAGS
12294 CFLAGS="$CFLAGS -fno-strict-aliasing"
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h. */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12303 main ()
12307 return 0;
12309 _ACEOF
12310 rm -f conftest.$ac_objext conftest$ac_exeext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12312 (eval $ac_link) 2>conftest.er1
12313 ac_status=$?
12314 grep -v '^ *+' conftest.er1 >conftest.err
12315 rm -f conftest.er1
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; } &&
12325 { ac_try='test -s conftest$ac_exeext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12331 ac_cv_c_gcc_no_strict_aliasing="yes"
12332 else
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ac_cv_c_gcc_no_strict_aliasing="no"
12338 rm -f conftest.err conftest.$ac_objext \
12339 conftest$ac_exeext conftest.$ac_ext
12340 CFLAGS=$ac_wine_try_cflags_saved
12342 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12343 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12344 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12345 then
12346 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12349 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12350 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12351 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354 ac_wine_try_cflags_saved=$CFLAGS
12355 CFLAGS="$CFLAGS -gstabs+"
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h. */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12364 main ()
12368 return 0;
12370 _ACEOF
12371 rm -f conftest.$ac_objext conftest$ac_exeext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12373 (eval $ac_link) 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
12380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; } &&
12386 { ac_try='test -s conftest$ac_exeext'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; }; then
12392 ac_cv_c_gcc_gstabs="yes"
12393 else
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 ac_cv_c_gcc_gstabs="no"
12399 rm -f conftest.err conftest.$ac_objext \
12400 conftest$ac_exeext conftest.$ac_ext
12401 CFLAGS=$ac_wine_try_cflags_saved
12403 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12404 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12405 if test "$ac_cv_c_gcc_gstabs" = "yes"
12406 then
12407 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12410 saved_CFLAGS="$CFLAGS"
12411 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12412 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12413 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12414 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h. */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 #include <string.h>
12425 main ()
12429 return 0;
12431 _ACEOF
12432 rm -f conftest.$ac_objext
12433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12434 (eval $ac_compile) 2>conftest.er1
12435 ac_status=$?
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
12441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12444 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; } &&
12447 { ac_try='test -s conftest.$ac_objext'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 ac_cv_c_string_h_warnings=no
12454 else
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 ac_cv_c_string_h_warnings=yes
12460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12462 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12463 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12464 CFLAGS="$saved_CFLAGS"
12465 if test "$ac_cv_c_string_h_warnings" = "no"
12466 then
12467 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12472 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12473 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12474 if test "${ac_cv_asm_func_def+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h. */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12483 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"); }
12486 main ()
12490 return 0;
12492 _ACEOF
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495 (eval $ac_link) 2>conftest.er1
12496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try='test -s conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_cv_asm_func_def=".def"
12515 else
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h. */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12528 main ()
12532 return 0;
12534 _ACEOF
12535 rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537 (eval $ac_link) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest$ac_exeext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_cv_asm_func_def=".type @function"
12557 else
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h. */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12570 main ()
12574 return 0;
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579 (eval $ac_link) 2>conftest.er1
12580 ac_status=$?
12581 grep -v '^ *+' conftest.er1 >conftest.err
12582 rm -f conftest.er1
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12589 ac_status=$?
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; } &&
12592 { ac_try='test -s conftest$ac_exeext'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; }; then
12598 ac_cv_asm_func_def=".type 2"
12599 else
12600 echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12603 ac_cv_asm_func_def="unknown"
12605 rm -f conftest.err conftest.$ac_objext \
12606 conftest$ac_exeext conftest.$ac_ext
12608 rm -f conftest.err conftest.$ac_objext \
12609 conftest$ac_exeext conftest.$ac_ext
12611 rm -f conftest.err conftest.$ac_objext \
12612 conftest$ac_exeext conftest.$ac_ext
12614 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12615 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
12619 case "$ac_cv_asm_func_def" in
12620 ".def")
12621 cat >>confdefs.h <<\_ACEOF
12622 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
12623 _ACEOF
12625 ".type @function")
12626 cat >>confdefs.h <<\_ACEOF
12627 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12628 _ACEOF
12630 ".type 2")
12631 cat >>confdefs.h <<\_ACEOF
12632 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12633 _ACEOF
12636 cat >>confdefs.h <<\_ACEOF
12637 #define __ASM_FUNC(name) ""
12638 _ACEOF
12640 esac
12643 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
12644 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12645 if test "${ac_cv_c_extern_prefix+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648 cat >conftest.$ac_ext <<_ACEOF
12649 /* confdefs.h. */
12650 _ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
12655 extern int ac_test;
12657 main ()
12659 if (ac_test) return 1
12661 return 0;
12663 _ACEOF
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666 (eval $ac_link) 2>conftest.er1
12667 ac_status=$?
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } &&
12673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest$ac_exeext'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_c_extern_prefix="yes"
12686 else
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12690 ac_cv_c_extern_prefix="no"
12692 rm -f conftest.err conftest.$ac_objext \
12693 conftest$ac_exeext conftest.$ac_ext
12695 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
12696 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
12700 if test "$ac_cv_c_extern_prefix" = "yes"
12701 then
12702 cat >>confdefs.h <<\_ACEOF
12703 #define __ASM_NAME(name) "_" name
12704 _ACEOF
12706 else
12707 cat >>confdefs.h <<\_ACEOF
12708 #define __ASM_NAME(name) name
12709 _ACEOF
12714 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12715 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
12716 if test "${ac_cv_c_asm_string+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719 cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h. */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
12728 main ()
12732 return 0;
12734 _ACEOF
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12737 (eval $ac_link) 2>conftest.er1
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; } &&
12750 { ac_try='test -s conftest$ac_exeext'
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 ac_cv_c_asm_string=".string"
12757 else
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h. */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12767 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12770 main ()
12774 return 0;
12776 _ACEOF
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779 (eval $ac_link) 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_c_asm_string=".asciz"
12799 else
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12803 cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h. */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12809 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12812 main ()
12816 return 0;
12818 _ACEOF
12819 rm -f conftest.$ac_objext conftest$ac_exeext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12821 (eval $ac_link) 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
12828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; } &&
12834 { ac_try='test -s conftest$ac_exeext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 ac_cv_c_asm_string=".ascii"
12841 else
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12845 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
12846 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
12847 { (exit 1); exit 1; }; }
12849 rm -f conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
12852 rm -f conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
12855 rm -f conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
12858 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
12859 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
12862 cat >>confdefs.h <<_ACEOF
12863 #define __ASM_STRING "$ac_cv_c_asm_string"
12864 _ACEOF
12868 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
12869 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
12870 if test "${ac_cv_c_asm_short+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 else
12873 cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h. */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
12882 main ()
12886 return 0;
12888 _ACEOF
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12891 (eval $ac_link) 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
12910 ac_cv_c_asm_short=".short"
12911 else
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 cat >conftest.$ac_ext <<_ACEOF
12916 /* confdefs.h. */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12921 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
12924 main ()
12928 return 0;
12930 _ACEOF
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933 (eval $ac_link) 2>conftest.er1
12934 ac_status=$?
12935 grep -v '^ *+' conftest.er1 >conftest.err
12936 rm -f conftest.er1
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } &&
12940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; } &&
12946 { ac_try='test -s conftest$ac_exeext'
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; }; then
12952 ac_cv_c_asm_short=".half"
12953 else
12954 echo "$as_me: failed program was:" >&5
12955 sed 's/^/| /' conftest.$ac_ext >&5
12957 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
12958 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
12959 { (exit 1); exit 1; }; }
12961 rm -f conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext conftest.$ac_ext
12964 rm -f conftest.err conftest.$ac_objext \
12965 conftest$ac_exeext conftest.$ac_ext
12967 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
12968 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
12971 cat >>confdefs.h <<_ACEOF
12972 #define __ASM_SHORT "$ac_cv_c_asm_short"
12973 _ACEOF
12977 echo "$as_me:$LINENO: checking for .size in assembler" >&5
12978 echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
12979 if test "${ac_cv_c_asm_size+set}" = set; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 else
12982 cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h. */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
12991 main ()
12995 return 0;
12997 _ACEOF
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13000 (eval $ac_link) 2>conftest.er1
13001 ac_status=$?
13002 grep -v '^ *+' conftest.er1 >conftest.err
13003 rm -f conftest.er1
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; } &&
13013 { ac_try='test -s conftest$ac_exeext'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_c_asm_size="yes"
13020 else
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13024 ac_cv_c_asm_size="no"
13026 rm -f conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext conftest.$ac_ext
13029 echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13030 echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13032 if test "$ac_cv_c_asm_size" = "yes"
13033 then
13035 cat >>confdefs.h <<\_ACEOF
13036 #define HAVE_ASM_DOT_SIZE 1
13037 _ACEOF
13042 DLLEXT=""
13044 DLLFLAGS="-D_REENTRANT"
13046 DLLIBS=""
13048 LDSHARED=""
13050 LDDLLFLAGS=""
13052 LIBEXT="so"
13054 IMPLIBEXT="def"
13057 case $host_os in
13058 cygwin*|mingw32*)
13059 if test -n "$ac_tool_prefix"; then
13060 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13061 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13062 echo "$as_me:$LINENO: checking for $ac_word" >&5
13063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13064 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067 if test -n "$DLLTOOL"; then
13068 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13069 else
13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13077 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 break 2
13081 done
13082 done
13086 DLLTOOL=$ac_cv_prog_DLLTOOL
13087 if test -n "$DLLTOOL"; then
13088 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13089 echo "${ECHO_T}$DLLTOOL" >&6
13090 else
13091 echo "$as_me:$LINENO: result: no" >&5
13092 echo "${ECHO_T}no" >&6
13096 if test -z "$ac_cv_prog_DLLTOOL"; then
13097 ac_ct_DLLTOOL=$DLLTOOL
13098 # Extract the first word of "dlltool", so it can be a program name with args.
13099 set dummy dlltool; ac_word=$2
13100 echo "$as_me:$LINENO: checking for $ac_word" >&5
13101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13102 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105 if test -n "$ac_ct_DLLTOOL"; then
13106 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13107 else
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13111 IFS=$as_save_IFS
13112 test -z "$as_dir" && as_dir=.
13113 for ac_exec_ext in '' $ac_executable_extensions; do
13114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13115 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13117 break 2
13119 done
13120 done
13122 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13125 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13126 if test -n "$ac_ct_DLLTOOL"; then
13127 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13128 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13129 else
13130 echo "$as_me:$LINENO: result: no" >&5
13131 echo "${ECHO_T}no" >&6
13134 DLLTOOL=$ac_ct_DLLTOOL
13135 else
13136 DLLTOOL="$ac_cv_prog_DLLTOOL"
13139 if test -n "$ac_tool_prefix"; then
13140 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13141 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13142 echo "$as_me:$LINENO: checking for $ac_word" >&5
13143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13144 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147 if test -n "$DLLWRAP"; then
13148 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13149 else
13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151 for as_dir in $PATH
13153 IFS=$as_save_IFS
13154 test -z "$as_dir" && as_dir=.
13155 for ac_exec_ext in '' $ac_executable_extensions; do
13156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13157 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13159 break 2
13161 done
13162 done
13166 DLLWRAP=$ac_cv_prog_DLLWRAP
13167 if test -n "$DLLWRAP"; then
13168 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13169 echo "${ECHO_T}$DLLWRAP" >&6
13170 else
13171 echo "$as_me:$LINENO: result: no" >&5
13172 echo "${ECHO_T}no" >&6
13176 if test -z "$ac_cv_prog_DLLWRAP"; then
13177 ac_ct_DLLWRAP=$DLLWRAP
13178 # Extract the first word of "dllwrap", so it can be a program name with args.
13179 set dummy dllwrap; ac_word=$2
13180 echo "$as_me:$LINENO: checking for $ac_word" >&5
13181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13182 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185 if test -n "$ac_ct_DLLWRAP"; then
13186 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13187 else
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in $PATH
13191 IFS=$as_save_IFS
13192 test -z "$as_dir" && as_dir=.
13193 for ac_exec_ext in '' $ac_executable_extensions; do
13194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13195 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13197 break 2
13199 done
13200 done
13202 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13205 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13206 if test -n "$ac_ct_DLLWRAP"; then
13207 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13208 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13209 else
13210 echo "$as_me:$LINENO: result: no" >&5
13211 echo "${ECHO_T}no" >&6
13214 DLLWRAP=$ac_ct_DLLWRAP
13215 else
13216 DLLWRAP="$ac_cv_prog_DLLWRAP"
13219 if test "$DLLWRAP" = "false"; then
13220 LIBEXT="a"
13221 else
13222 LIBEXT="dll"
13224 IMPLIBEXT="a"
13225 WIN16_FILES=""
13226 WIN16_INSTALL=""
13230 for ac_header in dlfcn.h
13232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13234 echo "$as_me:$LINENO: checking for $ac_header" >&5
13235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13241 else
13242 # Is the header compilable?
13243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13245 cat >conftest.$ac_ext <<_ACEOF
13246 /* confdefs.h. */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13251 $ac_includes_default
13252 #include <$ac_header>
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try='test -s conftest.$ac_objext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_header_compiler=yes
13276 else
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ac_header_compiler=no
13282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13284 echo "${ECHO_T}$ac_header_compiler" >&6
13286 # Is the header present?
13287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 #include <$ac_header>
13296 _ACEOF
13297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13299 ac_status=$?
13300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } >/dev/null; then
13305 if test -s conftest.err; then
13306 ac_cpp_err=$ac_c_preproc_warn_flag
13307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13308 else
13309 ac_cpp_err=
13311 else
13312 ac_cpp_err=yes
13314 if test -z "$ac_cpp_err"; then
13315 ac_header_preproc=yes
13316 else
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_header_preproc=no
13322 rm -f conftest.err conftest.$ac_ext
13323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13324 echo "${ECHO_T}$ac_header_preproc" >&6
13326 # So? What about this header?
13327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13328 yes:no: )
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13333 ac_header_preproc=yes
13335 no:yes:* )
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13349 cat <<\_ASBOX
13350 ## ------------------------------------ ##
13351 ## Report this to wine-devel@winehq.org ##
13352 ## ------------------------------------ ##
13353 _ASBOX
13355 sed "s/^/$as_me: WARNING: /" >&2
13357 esac
13358 echo "$as_me:$LINENO: checking for $ac_header" >&5
13359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363 eval "$as_ac_Header=\$ac_header_preproc"
13365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13370 cat >>confdefs.h <<_ACEOF
13371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13372 _ACEOF
13374 for ac_func in dlopen
13376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13377 echo "$as_me:$LINENO: checking for $ac_func" >&5
13378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13379 if eval "test \"\${$as_ac_var+set}\" = set"; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h. */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13390 #define $ac_func innocuous_$ac_func
13392 /* System header to define __stub macros and hopefully few prototypes,
13393 which can conflict with char $ac_func (); below.
13394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13395 <limits.h> exists even on freestanding compilers. */
13397 #ifdef __STDC__
13398 # include <limits.h>
13399 #else
13400 # include <assert.h>
13401 #endif
13403 #undef $ac_func
13405 /* Override any gcc2 internal prototype to avoid an error. */
13406 #ifdef __cplusplus
13407 extern "C"
13409 #endif
13410 /* We use char because int might match the return type of a gcc2
13411 builtin and then its argument prototype would still apply. */
13412 char $ac_func ();
13413 /* The GNU C library defines this for functions which it implements
13414 to always fail with ENOSYS. Some functions are actually named
13415 something starting with __ and the normal name is an alias. */
13416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13417 choke me
13418 #else
13419 char (*f) () = $ac_func;
13420 #endif
13421 #ifdef __cplusplus
13423 #endif
13426 main ()
13428 return f != $ac_func;
13430 return 0;
13432 _ACEOF
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435 (eval $ac_link) 2>conftest.er1
13436 ac_status=$?
13437 grep -v '^ *+' conftest.er1 >conftest.err
13438 rm -f conftest.er1
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13445 ac_status=$?
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; } &&
13448 { ac_try='test -s conftest$ac_exeext'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 eval "$as_ac_var=yes"
13455 else
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13459 eval "$as_ac_var=no"
13461 rm -f conftest.err conftest.$ac_objext \
13462 conftest$ac_exeext conftest.$ac_ext
13464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13466 if test `eval echo '${'$as_ac_var'}'` = yes; then
13467 cat >>confdefs.h <<_ACEOF
13468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13469 _ACEOF
13471 else
13472 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13473 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13474 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477 ac_check_lib_save_LIBS=$LIBS
13478 LIBS="-ldl $LIBS"
13479 cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h. */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13486 /* Override any gcc2 internal prototype to avoid an error. */
13487 #ifdef __cplusplus
13488 extern "C"
13489 #endif
13490 /* We use char because int might match the return type of a gcc2
13491 builtin and then its argument prototype would still apply. */
13492 char dlopen ();
13494 main ()
13496 dlopen ();
13498 return 0;
13500 _ACEOF
13501 rm -f conftest.$ac_objext conftest$ac_exeext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13503 (eval $ac_link) 2>conftest.er1
13504 ac_status=$?
13505 grep -v '^ *+' conftest.er1 >conftest.err
13506 rm -f conftest.er1
13507 cat conftest.err >&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; } &&
13516 { ac_try='test -s conftest$ac_exeext'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }; then
13522 ac_cv_lib_dl_dlopen=yes
13523 else
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13527 ac_cv_lib_dl_dlopen=no
13529 rm -f conftest.err conftest.$ac_objext \
13530 conftest$ac_exeext conftest.$ac_ext
13531 LIBS=$ac_check_lib_save_LIBS
13533 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13534 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13535 if test $ac_cv_lib_dl_dlopen = yes; then
13537 cat >>confdefs.h <<\_ACEOF
13538 #define HAVE_DLOPEN 1
13539 _ACEOF
13541 DLLIBS="-ldl"
13542 else
13543 LIBEXT="a"
13547 done
13549 else
13550 LIBEXT="a"
13553 done
13556 if test "$LIBEXT" = "so"
13557 then
13558 DLLFLAGS="$DLLFLAGS -fPIC"
13559 DLLEXT=".so"
13560 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13561 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13562 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13563 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 else
13565 ac_wine_try_cflags_saved=$CFLAGS
13566 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13567 cat >conftest.$ac_ext <<_ACEOF
13568 void myfunc() {}
13569 _ACEOF
13570 rm -f conftest.$ac_objext conftest$ac_exeext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13572 (eval $ac_link) 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13591 ac_cv_c_dll_gnuelf="yes"
13592 else
13593 echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13596 ac_cv_c_dll_gnuelf="no"
13598 rm -f conftest.err conftest.$ac_objext \
13599 conftest$ac_exeext conftest.$ac_ext
13600 CFLAGS=$ac_wine_try_cflags_saved
13602 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13603 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13604 if test "$ac_cv_c_dll_gnuelf" = "yes"
13605 then
13606 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13607 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13608 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13609 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13610 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613 ac_wine_try_cflags_saved=$CFLAGS
13614 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h. */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13623 main ()
13627 return 0;
13629 _ACEOF
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13632 (eval $ac_link) 2>conftest.er1
13633 ac_status=$?
13634 grep -v '^ *+' conftest.er1 >conftest.err
13635 rm -f conftest.er1
13636 cat conftest.err >&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } &&
13639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest$ac_exeext'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; }; then
13651 ac_cv_c_dll_zdefs="yes"
13652 else
13653 echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13656 ac_cv_c_dll_zdefs="no"
13658 rm -f conftest.err conftest.$ac_objext \
13659 conftest$ac_exeext conftest.$ac_ext
13660 CFLAGS=$ac_wine_try_cflags_saved
13662 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13663 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13664 if test "$ac_cv_c_dll_zdefs" = "yes"
13665 then
13666 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
13669 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13670 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13671 if test "${ac_cv_c_dll_init_fini+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674 ac_wine_try_cflags_saved=$CFLAGS
13675 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13676 cat >conftest.$ac_ext <<_ACEOF
13677 /* confdefs.h. */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13684 main ()
13688 return 0;
13690 _ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693 (eval $ac_link) 2>conftest.er1
13694 ac_status=$?
13695 grep -v '^ *+' conftest.er1 >conftest.err
13696 rm -f conftest.er1
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } &&
13700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; } &&
13706 { ac_try='test -s conftest$ac_exeext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13712 ac_cv_c_dll_init_fini="yes"
13713 else
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13717 ac_cv_c_dll_init_fini="no"
13719 rm -f conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13721 CFLAGS=$ac_wine_try_cflags_saved
13723 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13724 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13725 if test "$ac_cv_c_dll_init_fini" = "yes"
13726 then
13727 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
13730 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13731 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13732 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735 echo '{ global: *; };' >conftest.map
13736 ac_wine_try_cflags_saved=$CFLAGS
13737 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13738 cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h. */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13746 main ()
13750 return 0;
13752 _ACEOF
13753 rm -f conftest.$ac_objext conftest$ac_exeext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13755 (eval $ac_link) 2>conftest.er1
13756 ac_status=$?
13757 grep -v '^ *+' conftest.er1 >conftest.err
13758 rm -f conftest.er1
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } &&
13762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; } &&
13768 { ac_try='test -s conftest$ac_exeext'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_cv_c_ld_version_scripts="yes"
13775 else
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 ac_cv_c_ld_version_scripts="no"
13781 rm -f conftest.err conftest.$ac_objext \
13782 conftest$ac_exeext conftest.$ac_ext
13783 CFLAGS=$ac_wine_try_cflags_saved
13784 rm -f conftest.map
13786 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13787 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13788 if test "$ac_cv_c_ld_version_scripts" = "yes"
13789 then
13790 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13793 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13794 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13795 if test "${ac_cv_c_export_dynamic+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798 ac_wine_try_cflags_saved=$CFLAGS
13799 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h. */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13808 main ()
13812 return 0;
13814 _ACEOF
13815 rm -f conftest.$ac_objext conftest$ac_exeext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13817 (eval $ac_link) 2>conftest.er1
13818 ac_status=$?
13819 grep -v '^ *+' conftest.er1 >conftest.err
13820 rm -f conftest.er1
13821 cat conftest.err >&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
13824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest$ac_exeext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_c_export_dynamic="yes"
13837 else
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_c_export_dynamic="no"
13843 rm -f conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
13845 CFLAGS=$ac_wine_try_cflags_saved
13847 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13848 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13849 if test "$ac_cv_c_export_dynamic" = "yes"
13850 then
13851 LDEXECFLAGS="-Wl,--export-dynamic"
13855 case $host_cpu in
13856 *i[3456789]86*)
13857 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
13858 echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
13859 if test "${ac_cv_ld_reloc_exec+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 else
13862 ac_wine_try_cflags_saved=$CFLAGS
13863 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h. */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13872 main ()
13876 return 0;
13878 _ACEOF
13879 rm -f conftest.$ac_objext conftest$ac_exeext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13881 (eval $ac_link) 2>conftest.er1
13882 ac_status=$?
13883 grep -v '^ *+' conftest.er1 >conftest.err
13884 rm -f conftest.er1
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest$ac_exeext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_ld_reloc_exec="yes"
13901 else
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13905 ac_cv_ld_reloc_exec="no"
13907 rm -f conftest.err conftest.$ac_objext \
13908 conftest$ac_exeext conftest.$ac_ext
13909 CFLAGS=$ac_wine_try_cflags_saved
13911 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13912 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13913 if test "$ac_cv_ld_reloc_exec" = "yes"
13914 then
13915 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
13918 esac
13920 else
13921 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
13922 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13923 if test "${ac_cv_c_dll_unixware+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926 ac_wine_try_cflags_saved=$CFLAGS
13927 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13928 cat >conftest.$ac_ext <<_ACEOF
13929 void myfunc() {}
13930 _ACEOF
13931 rm -f conftest.$ac_objext conftest$ac_exeext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13933 (eval $ac_link) 2>conftest.er1
13934 ac_status=$?
13935 grep -v '^ *+' conftest.er1 >conftest.err
13936 rm -f conftest.er1
13937 cat conftest.err >&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
13940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; } &&
13946 { ac_try='test -s conftest$ac_exeext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 ac_cv_c_dll_unixware="yes"
13953 else
13954 echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13957 ac_cv_c_dll_unixware="no"
13959 rm -f conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13961 CFLAGS=$ac_wine_try_cflags_saved
13963 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
13964 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
13965 if test "$ac_cv_c_dll_unixware" = "yes"
13966 then
13967 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
13968 LDDLLFLAGS="-Wl,-G,-B,symbolic"
13970 else
13971 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13972 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13973 if test "${ac_cv_c_dll_macho+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976 ac_wine_try_cflags_saved=$CFLAGS
13977 CFLAGS="$CFLAGS -bundle"
13978 cat >conftest.$ac_ext <<_ACEOF
13979 void myfunc() {}
13980 _ACEOF
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; } &&
13996 { ac_try='test -s conftest$ac_exeext'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
13999 ac_status=$?
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; }; then
14002 ac_cv_c_dll_macho="yes"
14003 else
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14007 ac_cv_c_dll_macho="no"
14009 rm -f conftest.err conftest.$ac_objext \
14010 conftest$ac_exeext conftest.$ac_ext
14011 CFLAGS=$ac_wine_try_cflags_saved
14013 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14014 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14015 if test "$ac_cv_c_dll_macho" = "yes"
14016 then
14017 LIBEXT="dylib"
14018 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14019 LDSHARED="\$(CC) -dynamiclib"
14020 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14021 STRIP="$STRIP -u -r"
14022 LDEXECFLAGS="-seg1addr 0x120000"
14024 LDLIBWINEFLAGS="-seg1addr 0x140000"
14026 COREFOUNDATIONLIB="-framework CoreFoundation"
14028 IOKITLIB="-framework IOKit"
14030 IOKITLIB = "$IOKITLIB $COREFOUNDATIONLIB"
14031 else
14032 echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14033 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
14034 if test "${ac_cv_c_dll_hpux+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037 ac_wine_try_cflags_saved=$CFLAGS
14038 CFLAGS="$CFLAGS -shared"
14039 cat >conftest.$ac_ext <<_ACEOF
14040 void myfunc() {}
14041 _ACEOF
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044 (eval $ac_link) 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest$ac_exeext'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 ac_cv_c_dll_hpux="yes"
14064 else
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14068 ac_cv_c_dll_hpux="no"
14070 rm -f conftest.err conftest.$ac_objext \
14071 conftest$ac_exeext conftest.$ac_ext
14072 CFLAGS=$ac_wine_try_cflags_saved
14074 echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14075 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
14076 if test "$ac_cv_c_dll_hpux" = "yes"
14077 then
14078 LIBEXT="sl"
14079 DLLEXT=".sl"
14080 LDDLLFLAGS="-shared -fPIC"
14081 LDSHARED="\$(CC) -shared"
14088 CROSSTEST=""
14090 if test "$cross_compiling" = "no"
14091 then
14092 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14094 # Extract the first word of "$ac_prog", so it can be a program name with args.
14095 set dummy $ac_prog; ac_word=$2
14096 echo "$as_me:$LINENO: checking for $ac_word" >&5
14097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14098 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101 if test -n "$CROSSCC"; then
14102 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14103 else
14104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14105 for as_dir in $PATH
14107 IFS=$as_save_IFS
14108 test -z "$as_dir" && as_dir=.
14109 for ac_exec_ext in '' $ac_executable_extensions; do
14110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14111 ac_cv_prog_CROSSCC="$ac_prog"
14112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14113 break 2
14115 done
14116 done
14120 CROSSCC=$ac_cv_prog_CROSSCC
14121 if test -n "$CROSSCC"; then
14122 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14123 echo "${ECHO_T}$CROSSCC" >&6
14124 else
14125 echo "$as_me:$LINENO: result: no" >&5
14126 echo "${ECHO_T}no" >&6
14129 test -n "$CROSSCC" && break
14130 done
14131 test -n "$CROSSCC" || CROSSCC="false"
14133 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14135 # Extract the first word of "$ac_prog", so it can be a program name with args.
14136 set dummy $ac_prog; ac_word=$2
14137 echo "$as_me:$LINENO: checking for $ac_word" >&5
14138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14139 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142 if test -n "$DLLTOOL"; then
14143 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14144 else
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14148 IFS=$as_save_IFS
14149 test -z "$as_dir" && as_dir=.
14150 for ac_exec_ext in '' $ac_executable_extensions; do
14151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14152 ac_cv_prog_DLLTOOL="$ac_prog"
14153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14154 break 2
14156 done
14157 done
14161 DLLTOOL=$ac_cv_prog_DLLTOOL
14162 if test -n "$DLLTOOL"; then
14163 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14164 echo "${ECHO_T}$DLLTOOL" >&6
14165 else
14166 echo "$as_me:$LINENO: result: no" >&5
14167 echo "${ECHO_T}no" >&6
14170 test -n "$DLLTOOL" && break
14171 done
14172 test -n "$DLLTOOL" || DLLTOOL="false"
14174 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14176 # Extract the first word of "$ac_prog", so it can be a program name with args.
14177 set dummy $ac_prog; ac_word=$2
14178 echo "$as_me:$LINENO: checking for $ac_word" >&5
14179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14180 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14181 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183 if test -n "$CROSSWINDRES"; then
14184 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14185 else
14186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187 for as_dir in $PATH
14189 IFS=$as_save_IFS
14190 test -z "$as_dir" && as_dir=.
14191 for ac_exec_ext in '' $ac_executable_extensions; do
14192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14193 ac_cv_prog_CROSSWINDRES="$ac_prog"
14194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14195 break 2
14197 done
14198 done
14202 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14203 if test -n "$CROSSWINDRES"; then
14204 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14205 echo "${ECHO_T}$CROSSWINDRES" >&6
14206 else
14207 echo "$as_me:$LINENO: result: no" >&5
14208 echo "${ECHO_T}no" >&6
14211 test -n "$CROSSWINDRES" && break
14212 done
14213 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14215 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14218 esac
14220 if test "$LIBEXT" = "a"; then
14221 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14222 It is currently not possible to build Wine without shared library
14223 (.so) support to allow transparent switch between .so and .dll files.
14224 If you are using Linux, you will need a newer binutils.
14225 " >&5
14226 echo "$as_me: error: could not find a way to build shared libraries.
14227 It is currently not possible to build Wine without shared library
14228 (.so) support to allow transparent switch between .so and .dll files.
14229 If you are using Linux, you will need a newer binutils.
14230 " >&2;}
14231 { (exit 1); exit 1; }; }
14234 case $build_os in
14235 cygwin*|mingw32*)
14236 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14238 darwin*|macosx*)
14239 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14242 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14244 esac
14246 case $host_os in
14247 mingw32*)
14248 CRTLIBS="-lmsvcrt"
14250 SOCKETLIBS="-lws2_32"
14253 esac
14255 case $host_os in
14256 linux*)
14257 case $host_cpu in
14258 *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14260 *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14262 esac
14263 MAIN_BINARY="wine-glibc"
14266 darwin*)
14267 WINE_BINARIES="wine-pthread"
14269 MAIN_BINARY="wine-pthread"
14273 WINE_BINARIES="wine-kthread"
14275 MAIN_BINARY="wine-kthread"
14278 esac
14281 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14282 then
14283 # Extract the first word of "ldd", so it can be a program name with args.
14284 set dummy ldd; ac_word=$2
14285 echo "$as_me:$LINENO: checking for $ac_word" >&5
14286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14287 if test "${ac_cv_path_LDD+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290 case $LDD in
14291 [\\/]* | ?:[\\/]*)
14292 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296 as_dummy="/sbin:/usr/sbin:$PATH"
14297 for as_dir in $as_dummy
14299 IFS=$as_save_IFS
14300 test -z "$as_dir" && as_dir=.
14301 for ac_exec_ext in '' $ac_executable_extensions; do
14302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14303 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14305 break 2
14307 done
14308 done
14310 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14312 esac
14314 LDD=$ac_cv_path_LDD
14316 if test -n "$LDD"; then
14317 echo "$as_me:$LINENO: result: $LDD" >&5
14318 echo "${ECHO_T}$LDD" >&6
14319 else
14320 echo "$as_me:$LINENO: result: no" >&5
14321 echo "${ECHO_T}no" >&6
14325 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14326 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14327 if test "${ac_cv_lib_soname_X11+set}" = set; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330 ac_get_soname_save_LIBS=$LIBS
14331 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14332 cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h. */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14339 /* Override any gcc2 internal prototype to avoid an error. */
14340 #ifdef __cplusplus
14341 extern "C"
14342 #endif
14343 /* We use char because int might match the return type of a gcc2
14344 builtin and then its argument prototype would still apply. */
14345 char XCreateWindow ();
14347 main ()
14349 XCreateWindow ();
14351 return 0;
14353 _ACEOF
14354 rm -f conftest.$ac_objext conftest$ac_exeext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14356 (eval $ac_link) 2>conftest.er1
14357 ac_status=$?
14358 grep -v '^ *+' conftest.er1 >conftest.err
14359 rm -f conftest.er1
14360 cat conftest.err >&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } &&
14363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; } &&
14369 { ac_try='test -s conftest$ac_exeext'
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; }; then
14375 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"`
14376 if test "x$ac_cv_lib_soname_X11" = "x"
14377 then
14378 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14380 else
14381 echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14384 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14386 rm -f conftest.err conftest.$ac_objext \
14387 conftest$ac_exeext conftest.$ac_ext
14388 LIBS=$ac_get_soname_save_LIBS
14390 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14391 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14392 if test "x$ac_cv_lib_soname_X11" != xNONE
14393 then
14394 cat >>confdefs.h <<_ACEOF
14395 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14396 _ACEOF
14399 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14400 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14401 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14403 else
14404 ac_get_soname_save_LIBS=$LIBS
14405 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14406 cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h. */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14413 /* Override any gcc2 internal prototype to avoid an error. */
14414 #ifdef __cplusplus
14415 extern "C"
14416 #endif
14417 /* We use char because int might match the return type of a gcc2
14418 builtin and then its argument prototype would still apply. */
14419 char XextCreateExtension ();
14421 main ()
14423 XextCreateExtension ();
14425 return 0;
14427 _ACEOF
14428 rm -f conftest.$ac_objext conftest$ac_exeext
14429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14430 (eval $ac_link) 2>conftest.er1
14431 ac_status=$?
14432 grep -v '^ *+' conftest.er1 >conftest.err
14433 rm -f conftest.er1
14434 cat conftest.err >&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } &&
14437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } &&
14443 { ac_try='test -s conftest$ac_exeext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"`
14450 if test "x$ac_cv_lib_soname_Xext" = "x"
14451 then
14452 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14454 else
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14460 rm -f conftest.err conftest.$ac_objext \
14461 conftest$ac_exeext conftest.$ac_ext
14462 LIBS=$ac_get_soname_save_LIBS
14464 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14465 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14466 if test "x$ac_cv_lib_soname_Xext" != xNONE
14467 then
14468 cat >>confdefs.h <<_ACEOF
14469 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14470 _ACEOF
14473 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14474 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14475 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478 ac_get_soname_save_LIBS=$LIBS
14479 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14480 cat >conftest.$ac_ext <<_ACEOF
14481 /* confdefs.h. */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14487 /* Override any gcc2 internal prototype to avoid an error. */
14488 #ifdef __cplusplus
14489 extern "C"
14490 #endif
14491 /* We use char because int might match the return type of a gcc2
14492 builtin and then its argument prototype would still apply. */
14493 char XOpenDevice ();
14495 main ()
14497 XOpenDevice ();
14499 return 0;
14501 _ACEOF
14502 rm -f conftest.$ac_objext conftest$ac_exeext
14503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14504 (eval $ac_link) 2>conftest.er1
14505 ac_status=$?
14506 grep -v '^ *+' conftest.er1 >conftest.err
14507 rm -f conftest.er1
14508 cat conftest.err >&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); } &&
14511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14513 (eval $ac_try) 2>&5
14514 ac_status=$?
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); }; } &&
14517 { ac_try='test -s conftest$ac_exeext'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
14523 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"`
14524 if test "x$ac_cv_lib_soname_Xi" = "x"
14525 then
14526 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14528 else
14529 echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14532 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14534 rm -f conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536 LIBS=$ac_get_soname_save_LIBS
14538 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14539 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14540 if test "x$ac_cv_lib_soname_Xi" != xNONE
14541 then
14542 cat >>confdefs.h <<_ACEOF
14543 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14544 _ACEOF
14547 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14548 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14549 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552 ac_get_soname_save_LIBS=$LIBS
14553 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14554 cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h. */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14561 /* Override any gcc2 internal prototype to avoid an error. */
14562 #ifdef __cplusplus
14563 extern "C"
14564 #endif
14565 /* We use char because int might match the return type of a gcc2
14566 builtin and then its argument prototype would still apply. */
14567 char XRenderQueryExtension ();
14569 main ()
14571 XRenderQueryExtension ();
14573 return 0;
14575 _ACEOF
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578 (eval $ac_link) 2>conftest.er1
14579 ac_status=$?
14580 grep -v '^ *+' conftest.er1 >conftest.err
14581 rm -f conftest.er1
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } &&
14585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14588 ac_status=$?
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; } &&
14591 { ac_try='test -s conftest$ac_exeext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"`
14598 if test "x$ac_cv_lib_soname_Xrender" = "x"
14599 then
14600 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14602 else
14603 echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14606 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14608 rm -f conftest.err conftest.$ac_objext \
14609 conftest$ac_exeext conftest.$ac_ext
14610 LIBS=$ac_get_soname_save_LIBS
14612 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14613 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14614 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14615 then
14616 cat >>confdefs.h <<_ACEOF
14617 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14618 _ACEOF
14621 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14622 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14623 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 else
14626 ac_get_soname_save_LIBS=$LIBS
14627 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14628 cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h. */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14635 /* Override any gcc2 internal prototype to avoid an error. */
14636 #ifdef __cplusplus
14637 extern "C"
14638 #endif
14639 /* We use char because int might match the return type of a gcc2
14640 builtin and then its argument prototype would still apply. */
14641 char XRRQueryExtension ();
14643 main ()
14645 XRRQueryExtension ();
14647 return 0;
14649 _ACEOF
14650 rm -f conftest.$ac_objext conftest$ac_exeext
14651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14652 (eval $ac_link) 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest$ac_exeext'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14671 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"`
14672 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14673 then
14674 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14676 else
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14680 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
14682 rm -f conftest.err conftest.$ac_objext \
14683 conftest$ac_exeext conftest.$ac_ext
14684 LIBS=$ac_get_soname_save_LIBS
14686 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14687 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14688 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
14689 then
14690 cat >>confdefs.h <<_ACEOF
14691 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14692 _ACEOF
14695 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14696 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14697 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 else
14700 ac_get_soname_save_LIBS=$LIBS
14701 LIBS="-lfreetype $X_LIBS $LIBS"
14702 cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h. */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14709 /* Override any gcc2 internal prototype to avoid an error. */
14710 #ifdef __cplusplus
14711 extern "C"
14712 #endif
14713 /* We use char because int might match the return type of a gcc2
14714 builtin and then its argument prototype would still apply. */
14715 char FT_Init_FreeType ();
14717 main ()
14719 FT_Init_FreeType ();
14721 return 0;
14723 _ACEOF
14724 rm -f conftest.$ac_objext conftest$ac_exeext
14725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14726 (eval $ac_link) 2>conftest.er1
14727 ac_status=$?
14728 grep -v '^ *+' conftest.er1 >conftest.err
14729 rm -f conftest.er1
14730 cat conftest.err >&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } &&
14733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; } &&
14739 { ac_try='test -s conftest$ac_exeext'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14745 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"`
14746 if test "x$ac_cv_lib_soname_freetype" = "x"
14747 then
14748 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14750 else
14751 echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14754 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
14756 rm -f conftest.err conftest.$ac_objext \
14757 conftest$ac_exeext conftest.$ac_ext
14758 LIBS=$ac_get_soname_save_LIBS
14760 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14761 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14762 if test "x$ac_cv_lib_soname_freetype" != xNONE
14763 then
14764 cat >>confdefs.h <<_ACEOF
14765 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14766 _ACEOF
14769 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14770 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14771 if test "${ac_cv_lib_soname_GL+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774 ac_get_soname_save_LIBS=$LIBS
14775 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h. */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14783 /* Override any gcc2 internal prototype to avoid an error. */
14784 #ifdef __cplusplus
14785 extern "C"
14786 #endif
14787 /* We use char because int might match the return type of a gcc2
14788 builtin and then its argument prototype would still apply. */
14789 char glXQueryExtension ();
14791 main ()
14793 glXQueryExtension ();
14795 return 0;
14797 _ACEOF
14798 rm -f conftest.$ac_objext conftest$ac_exeext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800 (eval $ac_link) 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try='test -s conftest$ac_exeext'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"`
14820 if test "x$ac_cv_lib_soname_GL" = "x"
14821 then
14822 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14824 else
14825 echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14828 ac_cv_lib_soname_GL="libGL.$LIBEXT"
14830 rm -f conftest.err conftest.$ac_objext \
14831 conftest$ac_exeext conftest.$ac_ext
14832 LIBS=$ac_get_soname_save_LIBS
14834 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14835 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14836 if test "x$ac_cv_lib_soname_GL" != xNONE
14837 then
14838 cat >>confdefs.h <<_ACEOF
14839 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14840 _ACEOF
14843 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14844 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14845 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848 ac_get_soname_save_LIBS=$LIBS
14849 LIBS="-ltxc_dxtn $LIBS"
14850 cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h. */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14857 /* Override any gcc2 internal prototype to avoid an error. */
14858 #ifdef __cplusplus
14859 extern "C"
14860 #endif
14861 /* We use char because int might match the return type of a gcc2
14862 builtin and then its argument prototype would still apply. */
14863 char fetch_2d_texel_rgba_dxt1 ();
14865 main ()
14867 fetch_2d_texel_rgba_dxt1 ();
14869 return 0;
14871 _ACEOF
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14874 (eval $ac_link) 2>conftest.er1
14875 ac_status=$?
14876 grep -v '^ *+' conftest.er1 >conftest.err
14877 rm -f conftest.er1
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest$ac_exeext'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"`
14894 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14895 then
14896 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14898 else
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14902 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14904 rm -f conftest.err conftest.$ac_objext \
14905 conftest$ac_exeext conftest.$ac_ext
14906 LIBS=$ac_get_soname_save_LIBS
14908 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
14909 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
14910 if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
14911 then
14912 cat >>confdefs.h <<_ACEOF
14913 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
14914 _ACEOF
14917 echo "$as_me:$LINENO: checking for -lcups soname" >&5
14918 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14919 if test "${ac_cv_lib_soname_cups+set}" = set; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922 ac_get_soname_save_LIBS=$LIBS
14923 LIBS="-lcups $LIBS"
14924 cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h. */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14931 /* Override any gcc2 internal prototype to avoid an error. */
14932 #ifdef __cplusplus
14933 extern "C"
14934 #endif
14935 /* We use char because int might match the return type of a gcc2
14936 builtin and then its argument prototype would still apply. */
14937 char cupsGetDefault ();
14939 main ()
14941 cupsGetDefault ();
14943 return 0;
14945 _ACEOF
14946 rm -f conftest.$ac_objext conftest$ac_exeext
14947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14948 (eval $ac_link) 2>conftest.er1
14949 ac_status=$?
14950 grep -v '^ *+' conftest.er1 >conftest.err
14951 rm -f conftest.er1
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } &&
14955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; } &&
14961 { ac_try='test -s conftest$ac_exeext'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14967 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"`
14968 if test "x$ac_cv_lib_soname_cups" = "x"
14969 then
14970 ac_cv_lib_soname_cups="libcups.$LIBEXT"
14972 else
14973 echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14976 ac_cv_lib_soname_cups="libcups.$LIBEXT"
14978 rm -f conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
14980 LIBS=$ac_get_soname_save_LIBS
14982 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14983 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14984 if test "x$ac_cv_lib_soname_cups" != xNONE
14985 then
14986 cat >>confdefs.h <<_ACEOF
14987 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14988 _ACEOF
14991 echo "$as_me:$LINENO: checking for -ljack soname" >&5
14992 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14993 if test "${ac_cv_lib_soname_jack+set}" = set; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14996 ac_get_soname_save_LIBS=$LIBS
14997 LIBS="-ljack $LIBS"
14998 cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h. */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15005 /* Override any gcc2 internal prototype to avoid an error. */
15006 #ifdef __cplusplus
15007 extern "C"
15008 #endif
15009 /* We use char because int might match the return type of a gcc2
15010 builtin and then its argument prototype would still apply. */
15011 char jack_client_new ();
15013 main ()
15015 jack_client_new ();
15017 return 0;
15019 _ACEOF
15020 rm -f conftest.$ac_objext conftest$ac_exeext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15022 (eval $ac_link) 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; } &&
15035 { ac_try='test -s conftest$ac_exeext'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"`
15042 if test "x$ac_cv_lib_soname_jack" = "x"
15043 then
15044 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15046 else
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15050 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15052 rm -f conftest.err conftest.$ac_objext \
15053 conftest$ac_exeext conftest.$ac_ext
15054 LIBS=$ac_get_soname_save_LIBS
15056 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15057 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15058 if test "x$ac_cv_lib_soname_jack" != xNONE
15059 then
15060 cat >>confdefs.h <<_ACEOF
15061 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15062 _ACEOF
15065 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15066 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15067 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070 ac_get_soname_save_LIBS=$LIBS
15071 LIBS="-lfontconfig $LIBS"
15072 cat >conftest.$ac_ext <<_ACEOF
15073 /* confdefs.h. */
15074 _ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h. */
15079 /* Override any gcc2 internal prototype to avoid an error. */
15080 #ifdef __cplusplus
15081 extern "C"
15082 #endif
15083 /* We use char because int might match the return type of a gcc2
15084 builtin and then its argument prototype would still apply. */
15085 char FcInit ();
15087 main ()
15089 FcInit ();
15091 return 0;
15093 _ACEOF
15094 rm -f conftest.$ac_objext conftest$ac_exeext
15095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15096 (eval $ac_link) 2>conftest.er1
15097 ac_status=$?
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; } &&
15109 { ac_try='test -s conftest$ac_exeext'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; }; then
15115 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"`
15116 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15117 then
15118 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15120 else
15121 echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15124 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15126 rm -f conftest.err conftest.$ac_objext \
15127 conftest$ac_exeext conftest.$ac_ext
15128 LIBS=$ac_get_soname_save_LIBS
15130 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15131 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15132 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15133 then
15134 cat >>confdefs.h <<_ACEOF
15135 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15136 _ACEOF
15139 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15140 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15141 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15142 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 else
15144 ac_get_soname_save_LIBS=$LIBS
15145 LIBS="-lssl $LIBS"
15146 cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h. */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15153 /* Override any gcc2 internal prototype to avoid an error. */
15154 #ifdef __cplusplus
15155 extern "C"
15156 #endif
15157 /* We use char because int might match the return type of a gcc2
15158 builtin and then its argument prototype would still apply. */
15159 char SSL_library_init ();
15161 main ()
15163 SSL_library_init ();
15165 return 0;
15167 _ACEOF
15168 rm -f conftest.$ac_objext conftest$ac_exeext
15169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15170 (eval $ac_link) 2>conftest.er1
15171 ac_status=$?
15172 grep -v '^ *+' conftest.er1 >conftest.err
15173 rm -f conftest.er1
15174 cat conftest.err >&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
15177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest$ac_exeext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"`
15190 if test "x$ac_cv_lib_soname_ssl" = "x"
15191 then
15192 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15194 else
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15200 rm -f conftest.err conftest.$ac_objext \
15201 conftest$ac_exeext conftest.$ac_ext
15202 LIBS=$ac_get_soname_save_LIBS
15204 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15205 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15206 if test "x$ac_cv_lib_soname_ssl" != xNONE
15207 then
15208 cat >>confdefs.h <<_ACEOF
15209 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15210 _ACEOF
15213 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15214 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15215 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218 ac_get_soname_save_LIBS=$LIBS
15219 LIBS="-lcrypto $LIBS"
15220 cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h. */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15227 /* Override any gcc2 internal prototype to avoid an error. */
15228 #ifdef __cplusplus
15229 extern "C"
15230 #endif
15231 /* We use char because int might match the return type of a gcc2
15232 builtin and then its argument prototype would still apply. */
15233 char BIO_new_socket ();
15235 main ()
15237 BIO_new_socket ();
15239 return 0;
15241 _ACEOF
15242 rm -f conftest.$ac_objext conftest$ac_exeext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15244 (eval $ac_link) 2>conftest.er1
15245 ac_status=$?
15246 grep -v '^ *+' conftest.er1 >conftest.err
15247 rm -f conftest.er1
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } &&
15257 { ac_try='test -s conftest$ac_exeext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"`
15264 if test "x$ac_cv_lib_soname_crypto" = "x"
15265 then
15266 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15268 else
15269 echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15274 rm -f conftest.err conftest.$ac_objext \
15275 conftest$ac_exeext conftest.$ac_ext
15276 LIBS=$ac_get_soname_save_LIBS
15278 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15279 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15280 if test "x$ac_cv_lib_soname_crypto" != xNONE
15281 then
15282 cat >>confdefs.h <<_ACEOF
15283 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15284 _ACEOF
15287 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15288 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15289 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15290 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292 ac_get_soname_save_LIBS=$LIBS
15293 LIBS="-lncurses $LIBS"
15294 cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h. */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15301 /* Override any gcc2 internal prototype to avoid an error. */
15302 #ifdef __cplusplus
15303 extern "C"
15304 #endif
15305 /* We use char because int might match the return type of a gcc2
15306 builtin and then its argument prototype would still apply. */
15307 char waddch ();
15309 main ()
15311 waddch ();
15313 return 0;
15315 _ACEOF
15316 rm -f conftest.$ac_objext conftest$ac_exeext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15318 (eval $ac_link) 2>conftest.er1
15319 ac_status=$?
15320 grep -v '^ *+' conftest.er1 >conftest.err
15321 rm -f conftest.er1
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
15325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; } &&
15331 { ac_try='test -s conftest$ac_exeext'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
15337 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"`
15338 if test "x$ac_cv_lib_soname_ncurses" = "x"
15339 then
15340 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15342 else
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15346 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15348 rm -f conftest.err conftest.$ac_objext \
15349 conftest$ac_exeext conftest.$ac_ext
15350 LIBS=$ac_get_soname_save_LIBS
15352 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15353 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15354 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15355 then
15356 cat >>confdefs.h <<_ACEOF
15357 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15358 _ACEOF
15361 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15362 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15363 if test "${ac_cv_lib_soname_curses+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366 ac_get_soname_save_LIBS=$LIBS
15367 LIBS="-lcurses $LIBS"
15368 cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h. */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15375 /* Override any gcc2 internal prototype to avoid an error. */
15376 #ifdef __cplusplus
15377 extern "C"
15378 #endif
15379 /* We use char because int might match the return type of a gcc2
15380 builtin and then its argument prototype would still apply. */
15381 char waddch ();
15383 main ()
15385 waddch ();
15387 return 0;
15389 _ACEOF
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392 (eval $ac_link) 2>conftest.er1
15393 ac_status=$?
15394 grep -v '^ *+' conftest.er1 >conftest.err
15395 rm -f conftest.er1
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } &&
15399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401 (eval $ac_try) 2>&5
15402 ac_status=$?
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; } &&
15405 { ac_try='test -s conftest$ac_exeext'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15408 ac_status=$?
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; }; then
15411 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"`
15412 if test "x$ac_cv_lib_soname_curses" = "x"
15413 then
15414 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15416 else
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15422 rm -f conftest.err conftest.$ac_objext \
15423 conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_get_soname_save_LIBS
15426 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15427 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15428 if test "x$ac_cv_lib_soname_curses" != xNONE
15429 then
15430 cat >>confdefs.h <<_ACEOF
15431 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15432 _ACEOF
15435 echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15436 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15437 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 else
15440 ac_get_soname_save_LIBS=$LIBS
15441 LIBS="-ljpeg $LIBS"
15442 cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h. */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15449 /* Override any gcc2 internal prototype to avoid an error. */
15450 #ifdef __cplusplus
15451 extern "C"
15452 #endif
15453 /* We use char because int might match the return type of a gcc2
15454 builtin and then its argument prototype would still apply. */
15455 char jpeg_start_decompress ();
15457 main ()
15459 jpeg_start_decompress ();
15461 return 0;
15463 _ACEOF
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15466 (eval $ac_link) 2>conftest.er1
15467 ac_status=$?
15468 grep -v '^ *+' conftest.er1 >conftest.err
15469 rm -f conftest.er1
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; } &&
15479 { ac_try='test -s conftest$ac_exeext'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; }; then
15485 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"`
15486 if test "x$ac_cv_lib_soname_jpeg" = "x"
15487 then
15488 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15490 else
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15494 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15496 rm -f conftest.err conftest.$ac_objext \
15497 conftest$ac_exeext conftest.$ac_ext
15498 LIBS=$ac_get_soname_save_LIBS
15500 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15501 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15502 if test "x$ac_cv_lib_soname_jpeg" != xNONE
15503 then
15504 cat >>confdefs.h <<_ACEOF
15505 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15506 _ACEOF
15509 echo "$as_me:$LINENO: checking for -lungif soname" >&5
15510 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15511 if test "${ac_cv_lib_soname_ungif+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514 ac_get_soname_save_LIBS=$LIBS
15515 LIBS="-lungif $LIBS"
15516 cat >conftest.$ac_ext <<_ACEOF
15517 /* confdefs.h. */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h. */
15523 /* Override any gcc2 internal prototype to avoid an error. */
15524 #ifdef __cplusplus
15525 extern "C"
15526 #endif
15527 /* We use char because int might match the return type of a gcc2
15528 builtin and then its argument prototype would still apply. */
15529 char DGifOpen ();
15531 main ()
15533 DGifOpen ();
15535 return 0;
15537 _ACEOF
15538 rm -f conftest.$ac_objext conftest$ac_exeext
15539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15540 (eval $ac_link) 2>conftest.er1
15541 ac_status=$?
15542 grep -v '^ *+' conftest.er1 >conftest.err
15543 rm -f conftest.er1
15544 cat conftest.err >&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); } &&
15547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; } &&
15553 { ac_try='test -s conftest$ac_exeext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"`
15560 if test "x$ac_cv_lib_soname_ungif" = "x"
15561 then
15562 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15564 else
15565 echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15568 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15570 rm -f conftest.err conftest.$ac_objext \
15571 conftest$ac_exeext conftest.$ac_ext
15572 LIBS=$ac_get_soname_save_LIBS
15574 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15575 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15576 if test "x$ac_cv_lib_soname_ungif" != xNONE
15577 then
15578 cat >>confdefs.h <<_ACEOF
15579 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15580 _ACEOF
15583 echo "$as_me:$LINENO: checking for -lgif soname" >&5
15584 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15585 if test "${ac_cv_lib_soname_gif+set}" = set; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15587 else
15588 ac_get_soname_save_LIBS=$LIBS
15589 LIBS="-lgif $LIBS"
15590 cat >conftest.$ac_ext <<_ACEOF
15591 /* confdefs.h. */
15592 _ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h. */
15597 /* Override any gcc2 internal prototype to avoid an error. */
15598 #ifdef __cplusplus
15599 extern "C"
15600 #endif
15601 /* We use char because int might match the return type of a gcc2
15602 builtin and then its argument prototype would still apply. */
15603 char DGifOpen ();
15605 main ()
15607 DGifOpen ();
15609 return 0;
15611 _ACEOF
15612 rm -f conftest.$ac_objext conftest$ac_exeext
15613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15614 (eval $ac_link) 2>conftest.er1
15615 ac_status=$?
15616 grep -v '^ *+' conftest.er1 >conftest.err
15617 rm -f conftest.er1
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; } &&
15627 { ac_try='test -s conftest$ac_exeext'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; }; then
15633 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"`
15634 if test "x$ac_cv_lib_soname_gif" = "x"
15635 then
15636 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15638 else
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15642 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15644 rm -f conftest.err conftest.$ac_objext \
15645 conftest$ac_exeext conftest.$ac_ext
15646 LIBS=$ac_get_soname_save_LIBS
15648 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15649 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15650 if test "x$ac_cv_lib_soname_gif" != xNONE
15651 then
15652 cat >>confdefs.h <<_ACEOF
15653 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15654 _ACEOF
15657 echo "$as_me:$LINENO: checking for -llcms soname" >&5
15658 echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6
15659 if test "${ac_cv_lib_soname_lcms+set}" = set; then
15660 echo $ECHO_N "(cached) $ECHO_C" >&6
15661 else
15662 ac_get_soname_save_LIBS=$LIBS
15663 LIBS="-llcms $LIBS"
15664 cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h. */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15671 /* Override any gcc2 internal prototype to avoid an error. */
15672 #ifdef __cplusplus
15673 extern "C"
15674 #endif
15675 /* We use char because int might match the return type of a gcc2
15676 builtin and then its argument prototype would still apply. */
15677 char cmsOpenProfileFromFile ();
15679 main ()
15681 cmsOpenProfileFromFile ();
15683 return 0;
15685 _ACEOF
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15688 (eval $ac_link) 2>conftest.er1
15689 ac_status=$?
15690 grep -v '^ *+' conftest.er1 >conftest.err
15691 rm -f conftest.er1
15692 cat conftest.err >&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } &&
15695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; } &&
15701 { ac_try='test -s conftest$ac_exeext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^ ]*\).*$/\1/"`
15708 if test "x$ac_cv_lib_soname_lcms" = "x"
15709 then
15710 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15712 else
15713 echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15716 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15718 rm -f conftest.err conftest.$ac_objext \
15719 conftest$ac_exeext conftest.$ac_ext
15720 LIBS=$ac_get_soname_save_LIBS
15722 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5
15723 echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6
15724 if test "x$ac_cv_lib_soname_lcms" != xNONE
15725 then
15726 cat >>confdefs.h <<_ACEOF
15727 #define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms"
15728 _ACEOF
15734 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15735 # for constant arguments. Useless!
15736 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15737 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15738 if test "${ac_cv_working_alloca_h+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15741 cat >conftest.$ac_ext <<_ACEOF
15742 /* confdefs.h. */
15743 _ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15747 #include <alloca.h>
15749 main ()
15751 char *p = (char *) alloca (2 * sizeof (int));
15753 return 0;
15755 _ACEOF
15756 rm -f conftest.$ac_objext conftest$ac_exeext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15758 (eval $ac_link) 2>conftest.er1
15759 ac_status=$?
15760 grep -v '^ *+' conftest.er1 >conftest.err
15761 rm -f conftest.er1
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
15765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; } &&
15771 { ac_try='test -s conftest$ac_exeext'
15772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773 (eval $ac_try) 2>&5
15774 ac_status=$?
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); }; }; then
15777 ac_cv_working_alloca_h=yes
15778 else
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15782 ac_cv_working_alloca_h=no
15784 rm -f conftest.err conftest.$ac_objext \
15785 conftest$ac_exeext conftest.$ac_ext
15787 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15788 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15789 if test $ac_cv_working_alloca_h = yes; then
15791 cat >>confdefs.h <<\_ACEOF
15792 #define HAVE_ALLOCA_H 1
15793 _ACEOF
15797 echo "$as_me:$LINENO: checking for alloca" >&5
15798 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15799 if test "${ac_cv_func_alloca_works+set}" = set; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802 cat >conftest.$ac_ext <<_ACEOF
15803 /* confdefs.h. */
15804 _ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15808 #ifdef __GNUC__
15809 # define alloca __builtin_alloca
15810 #else
15811 # ifdef _MSC_VER
15812 # include <malloc.h>
15813 # define alloca _alloca
15814 # else
15815 # if HAVE_ALLOCA_H
15816 # include <alloca.h>
15817 # else
15818 # ifdef _AIX
15819 #pragma alloca
15820 # else
15821 # ifndef alloca /* predefined by HP cc +Olibcalls */
15822 char *alloca ();
15823 # endif
15824 # endif
15825 # endif
15826 # endif
15827 #endif
15830 main ()
15832 char *p = (char *) alloca (1);
15834 return 0;
15836 _ACEOF
15837 rm -f conftest.$ac_objext conftest$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839 (eval $ac_link) 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15852 { ac_try='test -s conftest$ac_exeext'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 ac_cv_func_alloca_works=yes
15859 else
15860 echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15863 ac_cv_func_alloca_works=no
15865 rm -f conftest.err conftest.$ac_objext \
15866 conftest$ac_exeext conftest.$ac_ext
15868 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15869 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15871 if test $ac_cv_func_alloca_works = yes; then
15873 cat >>confdefs.h <<\_ACEOF
15874 #define HAVE_ALLOCA 1
15875 _ACEOF
15877 else
15878 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15879 # that cause trouble. Some versions do not even contain alloca or
15880 # contain a buggy version. If you still want to use their alloca,
15881 # use ar to extract alloca.o from them instead of compiling alloca.c.
15883 ALLOCA=alloca.$ac_objext
15885 cat >>confdefs.h <<\_ACEOF
15886 #define C_ALLOCA 1
15887 _ACEOF
15890 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15891 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15892 if test "${ac_cv_os_cray+set}" = set; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 else
15895 cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h. */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 #if defined(CRAY) && ! defined(CRAY2)
15902 webecray
15903 #else
15904 wenotbecray
15905 #endif
15907 _ACEOF
15908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15909 $EGREP "webecray" >/dev/null 2>&1; then
15910 ac_cv_os_cray=yes
15911 else
15912 ac_cv_os_cray=no
15914 rm -f conftest*
15917 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15918 echo "${ECHO_T}$ac_cv_os_cray" >&6
15919 if test $ac_cv_os_cray = yes; then
15920 for ac_func in _getb67 GETB67 getb67; do
15921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15922 echo "$as_me:$LINENO: checking for $ac_func" >&5
15923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15924 if eval "test \"\${$as_ac_var+set}\" = set"; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927 cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h. */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15935 #define $ac_func innocuous_$ac_func
15937 /* System header to define __stub macros and hopefully few prototypes,
15938 which can conflict with char $ac_func (); below.
15939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15940 <limits.h> exists even on freestanding compilers. */
15942 #ifdef __STDC__
15943 # include <limits.h>
15944 #else
15945 # include <assert.h>
15946 #endif
15948 #undef $ac_func
15950 /* Override any gcc2 internal prototype to avoid an error. */
15951 #ifdef __cplusplus
15952 extern "C"
15954 #endif
15955 /* We use char because int might match the return type of a gcc2
15956 builtin and then its argument prototype would still apply. */
15957 char $ac_func ();
15958 /* The GNU C library defines this for functions which it implements
15959 to always fail with ENOSYS. Some functions are actually named
15960 something starting with __ and the normal name is an alias. */
15961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15962 choke me
15963 #else
15964 char (*f) () = $ac_func;
15965 #endif
15966 #ifdef __cplusplus
15968 #endif
15971 main ()
15973 return f != $ac_func;
15975 return 0;
15977 _ACEOF
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15980 (eval $ac_link) 2>conftest.er1
15981 ac_status=$?
15982 grep -v '^ *+' conftest.er1 >conftest.err
15983 rm -f conftest.er1
15984 cat conftest.err >&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } &&
15987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; } &&
15993 { ac_try='test -s conftest$ac_exeext'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
15999 eval "$as_ac_var=yes"
16000 else
16001 echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16004 eval "$as_ac_var=no"
16006 rm -f conftest.err conftest.$ac_objext \
16007 conftest$ac_exeext conftest.$ac_ext
16009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16011 if test `eval echo '${'$as_ac_var'}'` = yes; then
16013 cat >>confdefs.h <<_ACEOF
16014 #define CRAY_STACKSEG_END $ac_func
16015 _ACEOF
16017 break
16020 done
16023 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16024 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16025 if test "${ac_cv_c_stack_direction+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028 if test "$cross_compiling" = yes; then
16029 ac_cv_c_stack_direction=0
16030 else
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h. */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16038 find_stack_direction ()
16040 static char *addr = 0;
16041 auto char dummy;
16042 if (addr == 0)
16044 addr = &dummy;
16045 return find_stack_direction ();
16047 else
16048 return (&dummy > addr) ? 1 : -1;
16052 main ()
16054 exit (find_stack_direction () < 0);
16056 _ACEOF
16057 rm -f conftest$ac_exeext
16058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16059 (eval $ac_link) 2>&5
16060 ac_status=$?
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
16068 ac_cv_c_stack_direction=1
16069 else
16070 echo "$as_me: program exited with status $ac_status" >&5
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16074 ( exit $ac_status )
16075 ac_cv_c_stack_direction=-1
16077 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16080 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16081 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16083 cat >>confdefs.h <<_ACEOF
16084 #define STACK_DIRECTION $ac_cv_c_stack_direction
16085 _ACEOF
16152 for ac_func in \
16153 _lwp_create \
16154 _lwp_self \
16155 _pclose \
16156 _popen \
16157 _snprintf \
16158 _spawnvp \
16159 _stricmp \
16160 _strnicmp \
16161 _vsnprintf \
16162 chsize \
16163 clone \
16164 epoll_create \
16165 ffs \
16166 finite \
16167 fork \
16168 fpclass \
16169 fstatfs \
16170 fstatvfs \
16171 ftruncate \
16172 ftruncate64 \
16173 futimes \
16174 getnetbyaddr \
16175 getnetbyname \
16176 getopt_long \
16177 getpagesize \
16178 getprotobyname \
16179 getprotobynumber \
16180 getpwuid \
16181 getservbyport \
16182 gettid \
16183 gettimeofday \
16184 getuid \
16185 inet_network \
16186 lseek64 \
16187 lstat \
16188 memmove \
16189 mmap \
16190 pclose \
16191 popen \
16192 pread \
16193 pwrite \
16194 readlink \
16195 rfork \
16196 sched_yield \
16197 select \
16198 sendmsg \
16199 settimeofday \
16200 sigaltstack \
16201 snprintf \
16202 spawnvp \
16203 statfs \
16204 statvfs \
16205 strcasecmp \
16206 strerror \
16207 strncasecmp \
16208 tcgetattr \
16209 timegm \
16210 usleep \
16211 vfscanf \
16212 vsnprintf \
16213 wait4 \
16214 waitpid \
16217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16218 echo "$as_me:$LINENO: checking for $ac_func" >&5
16219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16220 if eval "test \"\${$as_ac_var+set}\" = set"; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16222 else
16223 cat >conftest.$ac_ext <<_ACEOF
16224 /* confdefs.h. */
16225 _ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16231 #define $ac_func innocuous_$ac_func
16233 /* System header to define __stub macros and hopefully few prototypes,
16234 which can conflict with char $ac_func (); below.
16235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16236 <limits.h> exists even on freestanding compilers. */
16238 #ifdef __STDC__
16239 # include <limits.h>
16240 #else
16241 # include <assert.h>
16242 #endif
16244 #undef $ac_func
16246 /* Override any gcc2 internal prototype to avoid an error. */
16247 #ifdef __cplusplus
16248 extern "C"
16250 #endif
16251 /* We use char because int might match the return type of a gcc2
16252 builtin and then its argument prototype would still apply. */
16253 char $ac_func ();
16254 /* The GNU C library defines this for functions which it implements
16255 to always fail with ENOSYS. Some functions are actually named
16256 something starting with __ and the normal name is an alias. */
16257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16258 choke me
16259 #else
16260 char (*f) () = $ac_func;
16261 #endif
16262 #ifdef __cplusplus
16264 #endif
16267 main ()
16269 return f != $ac_func;
16271 return 0;
16273 _ACEOF
16274 rm -f conftest.$ac_objext conftest$ac_exeext
16275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16276 (eval $ac_link) 2>conftest.er1
16277 ac_status=$?
16278 grep -v '^ *+' conftest.er1 >conftest.err
16279 rm -f conftest.er1
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } &&
16283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest$ac_exeext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 eval "$as_ac_var=yes"
16296 else
16297 echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16300 eval "$as_ac_var=no"
16302 rm -f conftest.err conftest.$ac_objext \
16303 conftest$ac_exeext conftest.$ac_ext
16305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16307 if test `eval echo '${'$as_ac_var'}'` = yes; then
16308 cat >>confdefs.h <<_ACEOF
16309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16310 _ACEOF
16313 done
16407 for ac_header in \
16408 arpa/inet.h \
16409 arpa/nameser.h \
16410 cups/cups.h \
16411 direct.h \
16412 elf.h \
16413 float.h \
16414 fontconfig/fontconfig.h \
16415 getopt.h \
16416 gif_lib.h \
16417 ieeefp.h \
16418 io.h \
16419 jack/jack.h \
16420 jpeglib.h \
16421 lcms.h \
16422 libio.h \
16423 libutil.h \
16424 link.h \
16425 linux/cdrom.h \
16426 linux/compiler.h \
16427 linux/hdreg.h \
16428 linux/input.h \
16429 linux/ioctl.h \
16430 linux/joystick.h \
16431 linux/major.h \
16432 linux/param.h \
16433 linux/serial.h \
16434 linux/ucdrom.h \
16435 machine/cpu.h \
16436 mntent.h \
16437 netdb.h \
16438 netinet/in.h \
16439 netinet/in_systm.h \
16440 netinet/tcp.h \
16441 netinet/tcp_fsm.h \
16442 openssl/ssl.h \
16443 process.h \
16444 pthread.h \
16445 pty.h \
16446 pwd.h \
16447 regex.h \
16448 sched.h \
16449 scsi/sg.h \
16450 scsi/scsi.h \
16451 scsi/scsi_ioctl.h \
16452 socket.h \
16453 stdint.h \
16454 strings.h \
16455 sys/cdio.h \
16456 sys/elf32.h \
16457 sys/errno.h \
16458 sys/epoll.h \
16459 sys/exec_elf.h \
16460 sys/file.h \
16461 sys/filio.h \
16462 sys/inttypes.h \
16463 sys/ioctl.h \
16464 sys/ipc.h \
16465 sys/link.h \
16466 sys/lwp.h \
16467 sys/mman.h \
16468 sys/modem.h \
16469 sys/msg.h \
16470 sys/param.h \
16471 sys/poll.h \
16472 sys/ptrace.h \
16473 sys/reg.h \
16474 sys/scsiio.h \
16475 sys/shm.h \
16476 sys/signal.h \
16477 sys/socket.h \
16478 sys/sockio.h \
16479 sys/statfs.h \
16480 sys/statvfs.h \
16481 sys/strtio.h \
16482 sys/syscall.h \
16483 sys/sysctl.h \
16484 sys/time.h \
16485 sys/times.h \
16486 sys/uio.h \
16487 sys/un.h \
16488 sys/v86.h \
16489 sys/v86intr.h \
16490 sys/vfs.h \
16491 sys/vm86.h \
16492 sys/wait.h \
16493 syscall.h \
16494 termios.h \
16495 unistd.h \
16496 utime.h \
16497 valgrind/memcheck.h
16500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16502 echo "$as_me:$LINENO: checking for $ac_header" >&5
16503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16509 else
16510 # Is the header compilable?
16511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16513 cat >conftest.$ac_ext <<_ACEOF
16514 /* confdefs.h. */
16515 _ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16519 $ac_includes_default
16520 #include <$ac_header>
16521 _ACEOF
16522 rm -f conftest.$ac_objext
16523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16524 (eval $ac_compile) 2>conftest.er1
16525 ac_status=$?
16526 grep -v '^ *+' conftest.er1 >conftest.err
16527 rm -f conftest.er1
16528 cat conftest.err >&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } &&
16531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; } &&
16537 { ac_try='test -s conftest.$ac_objext'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_header_compiler=yes
16544 else
16545 echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16548 ac_header_compiler=no
16550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16552 echo "${ECHO_T}$ac_header_compiler" >&6
16554 # Is the header present?
16555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16557 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h. */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 #include <$ac_header>
16564 _ACEOF
16565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16567 ac_status=$?
16568 grep -v '^ *+' conftest.er1 >conftest.err
16569 rm -f conftest.er1
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } >/dev/null; then
16573 if test -s conftest.err; then
16574 ac_cpp_err=$ac_c_preproc_warn_flag
16575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16576 else
16577 ac_cpp_err=
16579 else
16580 ac_cpp_err=yes
16582 if test -z "$ac_cpp_err"; then
16583 ac_header_preproc=yes
16584 else
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 ac_header_preproc=no
16590 rm -f conftest.err conftest.$ac_ext
16591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16592 echo "${ECHO_T}$ac_header_preproc" >&6
16594 # So? What about this header?
16595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16596 yes:no: )
16597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16601 ac_header_preproc=yes
16603 no:yes:* )
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16617 cat <<\_ASBOX
16618 ## ------------------------------------ ##
16619 ## Report this to wine-devel@winehq.org ##
16620 ## ------------------------------------ ##
16621 _ASBOX
16623 sed "s/^/$as_me: WARNING: /" >&2
16625 esac
16626 echo "$as_me:$LINENO: checking for $ac_header" >&5
16627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631 eval "$as_ac_Header=\$ac_header_preproc"
16633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16638 cat >>confdefs.h <<_ACEOF
16639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16640 _ACEOF
16644 done
16646 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16647 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16648 if test "${ac_cv_header_stat_broken+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651 cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h. */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 #include <sys/types.h>
16658 #include <sys/stat.h>
16660 #if defined(S_ISBLK) && defined(S_IFDIR)
16661 # if S_ISBLK (S_IFDIR)
16662 You lose.
16663 # endif
16664 #endif
16666 #if defined(S_ISBLK) && defined(S_IFCHR)
16667 # if S_ISBLK (S_IFCHR)
16668 You lose.
16669 # endif
16670 #endif
16672 #if defined(S_ISLNK) && defined(S_IFREG)
16673 # if S_ISLNK (S_IFREG)
16674 You lose.
16675 # endif
16676 #endif
16678 #if defined(S_ISSOCK) && defined(S_IFREG)
16679 # if S_ISSOCK (S_IFREG)
16680 You lose.
16681 # endif
16682 #endif
16684 _ACEOF
16685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16686 $EGREP "You lose" >/dev/null 2>&1; then
16687 ac_cv_header_stat_broken=yes
16688 else
16689 ac_cv_header_stat_broken=no
16691 rm -f conftest*
16694 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16695 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16696 if test $ac_cv_header_stat_broken = yes; then
16698 cat >>confdefs.h <<\_ACEOF
16699 #define STAT_MACROS_BROKEN 1
16700 _ACEOF
16708 for ac_header in sys/mount.h sys/user.h
16710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h. */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 #include <sys/types.h>
16723 #if HAVE_SYS_PARAM_H
16724 # include <sys/param.h>
16725 #endif
16727 #include <$ac_header>
16728 _ACEOF
16729 rm -f conftest.$ac_objext
16730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16731 (eval $ac_compile) 2>conftest.er1
16732 ac_status=$?
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest.$ac_objext'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 eval "$as_ac_Header=yes"
16751 else
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 eval "$as_ac_Header=no"
16757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16762 cat >>confdefs.h <<_ACEOF
16763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16764 _ACEOF
16768 done
16776 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16779 echo "$as_me:$LINENO: checking for $ac_header" >&5
16780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16783 else
16784 cat >conftest.$ac_ext <<_ACEOF
16785 /* confdefs.h. */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16790 #include <sys/types.h>
16791 #if HAVE_SYS_SOCKET_H
16792 # include <sys/socket.h>
16793 #endif
16795 #include <$ac_header>
16796 _ACEOF
16797 rm -f conftest.$ac_objext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799 (eval $ac_compile) 2>conftest.er1
16800 ac_status=$?
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
16806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest.$ac_objext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 eval "$as_ac_Header=yes"
16819 else
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16823 eval "$as_ac_Header=no"
16825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16830 cat >>confdefs.h <<_ACEOF
16831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16832 _ACEOF
16836 done
16840 for ac_header in resolv.h
16842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16843 echo "$as_me:$LINENO: checking for $ac_header" >&5
16844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848 cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h. */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 #include <sys/types.h>
16855 #if HAVE_SYS_SOCKET_H
16856 # include <sys/socket.h>
16857 #endif
16858 #if HAVE_NETINET_IN_H
16859 # include <netinet/in.h>
16860 #endif
16861 #if HAVE_ARPA_NAMESER_H
16862 # include <arpa/nameser.h>
16863 #endif
16865 #include <$ac_header>
16866 _ACEOF
16867 rm -f conftest.$ac_objext
16868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16869 (eval $ac_compile) 2>conftest.er1
16870 ac_status=$?
16871 grep -v '^ *+' conftest.er1 >conftest.err
16872 rm -f conftest.er1
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try='test -s conftest.$ac_objext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16885 ac_status=$?
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 eval "$as_ac_Header=yes"
16889 else
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 eval "$as_ac_Header=no"
16895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16900 cat >>confdefs.h <<_ACEOF
16901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16902 _ACEOF
16906 done
16910 for ac_header in netinet/ip.h
16912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16913 echo "$as_me:$LINENO: checking for $ac_header" >&5
16914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918 cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h. */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 #include <sys/types.h>
16925 #if HAVE_SYS_SOCKET_H
16926 # include <sys/socket.h>
16927 #endif
16928 #if HAVE_NETINET_IN_SYSTM_H
16929 # include <netinet/in_systm.h>
16930 #endif
16932 #include <$ac_header>
16933 _ACEOF
16934 rm -f conftest.$ac_objext
16935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16936 (eval $ac_compile) 2>conftest.er1
16937 ac_status=$?
16938 grep -v '^ *+' conftest.er1 >conftest.err
16939 rm -f conftest.er1
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest.$ac_objext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 eval "$as_ac_Header=yes"
16956 else
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16960 eval "$as_ac_Header=no"
16962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16967 cat >>confdefs.h <<_ACEOF
16968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16969 _ACEOF
16973 done
16977 for ac_header in ucontext.h
16979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16980 echo "$as_me:$LINENO: checking for $ac_header" >&5
16981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 else
16985 cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h. */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991 #include <signal.h>
16993 #include <$ac_header>
16994 _ACEOF
16995 rm -f conftest.$ac_objext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16997 (eval $ac_compile) 2>conftest.er1
16998 ac_status=$?
16999 grep -v '^ *+' conftest.er1 >conftest.err
17000 rm -f conftest.er1
17001 cat conftest.err >&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } &&
17010 { ac_try='test -s conftest.$ac_objext'
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 eval "$as_ac_Header=yes"
17017 else
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17021 eval "$as_ac_Header=no"
17023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17028 cat >>confdefs.h <<_ACEOF
17029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17030 _ACEOF
17034 done
17038 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
17039 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
17040 if test "${ac_cv_c_ipx_gnu+set}" = set; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17042 else
17043 cat >conftest.$ac_ext <<_ACEOF
17044 /* confdefs.h. */
17045 _ACEOF
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h. */
17049 #include <sys/types.h>
17050 #ifdef HAVE_SYS_SOCKET_H
17051 # include <sys/socket.h>
17052 #endif
17053 #include <netipx/ipx.h>
17055 main ()
17057 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17059 return 0;
17061 _ACEOF
17062 rm -f conftest.$ac_objext
17063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17064 (eval $ac_compile) 2>conftest.er1
17065 ac_status=$?
17066 grep -v '^ *+' conftest.er1 >conftest.err
17067 rm -f conftest.er1
17068 cat conftest.err >&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } &&
17071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; } &&
17077 { ac_try='test -s conftest.$ac_objext'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 ac_cv_c_ipx_gnu="yes"
17084 else
17085 echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17088 ac_cv_c_ipx_gnu="no"
17090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17093 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17094 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17095 if test "$ac_cv_c_ipx_gnu" = "yes"
17096 then
17098 cat >>confdefs.h <<\_ACEOF
17099 #define HAVE_IPX_GNU 1
17100 _ACEOF
17104 if test "$ac_cv_c_ipx_gnu" = "no"
17105 then
17106 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17107 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17108 if test "${ac_cv_c_ipx_linux+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 else
17111 cat >conftest.$ac_ext <<_ACEOF
17112 /* confdefs.h. */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17117 #include <sys/types.h>
17118 #ifdef HAVE_SYS_SOCKET_H
17119 # include <sys/socket.h>
17120 #endif
17121 #include <asm/types.h>
17122 #include <linux/ipx.h>
17124 main ()
17126 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17128 return 0;
17130 _ACEOF
17131 rm -f conftest.$ac_objext
17132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17133 (eval $ac_compile) 2>conftest.er1
17134 ac_status=$?
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17143 ac_status=$?
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; } &&
17146 { ac_try='test -s conftest.$ac_objext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 ac_cv_c_ipx_linux="yes"
17153 else
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17157 ac_cv_c_ipx_linux="no"
17159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17162 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17163 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17164 if test "$ac_cv_c_ipx_linux" = "yes"
17165 then
17167 cat >>confdefs.h <<\_ACEOF
17168 #define HAVE_IPX_LINUX 1
17169 _ACEOF
17175 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17176 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17177 if test "${ac_cv_c_const+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 else
17180 cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h. */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17188 main ()
17190 /* FIXME: Include the comments suggested by Paul. */
17191 #ifndef __cplusplus
17192 /* Ultrix mips cc rejects this. */
17193 typedef int charset[2];
17194 const charset x;
17195 /* SunOS 4.1.1 cc rejects this. */
17196 char const *const *ccp;
17197 char **p;
17198 /* NEC SVR4.0.2 mips cc rejects this. */
17199 struct point {int x, y;};
17200 static struct point const zero = {0,0};
17201 /* AIX XL C 1.02.0.0 rejects this.
17202 It does not let you subtract one const X* pointer from another in
17203 an arm of an if-expression whose if-part is not a constant
17204 expression */
17205 const char *g = "string";
17206 ccp = &g + (g ? g-g : 0);
17207 /* HPUX 7.0 cc rejects these. */
17208 ++ccp;
17209 p = (char**) ccp;
17210 ccp = (char const *const *) p;
17211 { /* SCO 3.2v4 cc rejects this. */
17212 char *t;
17213 char const *s = 0 ? (char *) 0 : (char const *) 0;
17215 *t++ = 0;
17217 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17218 int x[] = {25, 17};
17219 const int *foo = &x[0];
17220 ++foo;
17222 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17223 typedef const int *iptr;
17224 iptr p = 0;
17225 ++p;
17227 { /* AIX XL C 1.02.0.0 rejects this saying
17228 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17229 struct s { int j; const int *ap[3]; };
17230 struct s *b; b->j = 5;
17232 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17233 const int foo = 10;
17235 #endif
17238 return 0;
17240 _ACEOF
17241 rm -f conftest.$ac_objext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243 (eval $ac_compile) 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest.$ac_objext'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
17262 ac_cv_c_const=yes
17263 else
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ac_cv_c_const=no
17269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17271 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17272 echo "${ECHO_T}$ac_cv_c_const" >&6
17273 if test $ac_cv_c_const = no; then
17275 cat >>confdefs.h <<\_ACEOF
17276 #define const
17277 _ACEOF
17281 echo "$as_me:$LINENO: checking for inline" >&5
17282 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17283 if test "${ac_cv_c_inline+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 else
17286 ac_cv_c_inline=no
17287 for ac_kw in inline __inline__ __inline; do
17288 cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h. */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17294 #ifndef __cplusplus
17295 typedef int foo_t;
17296 static $ac_kw foo_t static_foo () {return 0; }
17297 $ac_kw foo_t foo () {return 0; }
17298 #endif
17300 _ACEOF
17301 rm -f conftest.$ac_objext
17302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17303 (eval $ac_compile) 2>conftest.er1
17304 ac_status=$?
17305 grep -v '^ *+' conftest.er1 >conftest.err
17306 rm -f conftest.er1
17307 cat conftest.err >&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } &&
17310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } &&
17316 { ac_try='test -s conftest.$ac_objext'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; }; then
17322 ac_cv_c_inline=$ac_kw; break
17323 else
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17329 done
17332 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17333 echo "${ECHO_T}$ac_cv_c_inline" >&6
17336 case $ac_cv_c_inline in
17337 inline | yes) ;;
17339 case $ac_cv_c_inline in
17340 no) ac_val=;;
17341 *) ac_val=$ac_cv_c_inline;;
17342 esac
17343 cat >>confdefs.h <<_ACEOF
17344 #ifndef __cplusplus
17345 #define inline $ac_val
17346 #endif
17347 _ACEOF
17349 esac
17351 echo "$as_me:$LINENO: checking for mode_t" >&5
17352 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17353 if test "${ac_cv_type_mode_t+set}" = set; then
17354 echo $ECHO_N "(cached) $ECHO_C" >&6
17355 else
17356 cat >conftest.$ac_ext <<_ACEOF
17357 /* confdefs.h. */
17358 _ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17362 $ac_includes_default
17364 main ()
17366 if ((mode_t *) 0)
17367 return 0;
17368 if (sizeof (mode_t))
17369 return 0;
17371 return 0;
17373 _ACEOF
17374 rm -f conftest.$ac_objext
17375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17376 (eval $ac_compile) 2>conftest.er1
17377 ac_status=$?
17378 grep -v '^ *+' conftest.er1 >conftest.err
17379 rm -f conftest.er1
17380 cat conftest.err >&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
17383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest.$ac_objext'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 ac_cv_type_mode_t=yes
17396 else
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17400 ac_cv_type_mode_t=no
17402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17404 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17405 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17406 if test $ac_cv_type_mode_t = yes; then
17408 cat >>confdefs.h <<_ACEOF
17409 #define HAVE_MODE_T 1
17410 _ACEOF
17414 echo "$as_me:$LINENO: checking for off_t" >&5
17415 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17416 if test "${ac_cv_type_off_t+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419 cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h. */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17425 $ac_includes_default
17427 main ()
17429 if ((off_t *) 0)
17430 return 0;
17431 if (sizeof (off_t))
17432 return 0;
17434 return 0;
17436 _ACEOF
17437 rm -f conftest.$ac_objext
17438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17439 (eval $ac_compile) 2>conftest.er1
17440 ac_status=$?
17441 grep -v '^ *+' conftest.er1 >conftest.err
17442 rm -f conftest.er1
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } &&
17446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; } &&
17452 { ac_try='test -s conftest.$ac_objext'
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; }; then
17458 ac_cv_type_off_t=yes
17459 else
17460 echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17463 ac_cv_type_off_t=no
17465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17467 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17468 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17469 if test $ac_cv_type_off_t = yes; then
17471 cat >>confdefs.h <<_ACEOF
17472 #define HAVE_OFF_T 1
17473 _ACEOF
17477 echo "$as_me:$LINENO: checking for pid_t" >&5
17478 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17479 if test "${ac_cv_type_pid_t+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 else
17482 cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h. */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 $ac_includes_default
17490 main ()
17492 if ((pid_t *) 0)
17493 return 0;
17494 if (sizeof (pid_t))
17495 return 0;
17497 return 0;
17499 _ACEOF
17500 rm -f conftest.$ac_objext
17501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17502 (eval $ac_compile) 2>conftest.er1
17503 ac_status=$?
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
17509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest.$ac_objext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_type_pid_t=yes
17522 else
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 ac_cv_type_pid_t=no
17528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17531 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17532 if test $ac_cv_type_pid_t = yes; then
17534 cat >>confdefs.h <<_ACEOF
17535 #define HAVE_PID_T 1
17536 _ACEOF
17540 echo "$as_me:$LINENO: checking for size_t" >&5
17541 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17542 if test "${ac_cv_type_size_t+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 else
17545 cat >conftest.$ac_ext <<_ACEOF
17546 /* confdefs.h. */
17547 _ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h. */
17551 $ac_includes_default
17553 main ()
17555 if ((size_t *) 0)
17556 return 0;
17557 if (sizeof (size_t))
17558 return 0;
17560 return 0;
17562 _ACEOF
17563 rm -f conftest.$ac_objext
17564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17565 (eval $ac_compile) 2>conftest.er1
17566 ac_status=$?
17567 grep -v '^ *+' conftest.er1 >conftest.err
17568 rm -f conftest.er1
17569 cat conftest.err >&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } &&
17572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; } &&
17578 { ac_try='test -s conftest.$ac_objext'
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17581 ac_status=$?
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; }; then
17584 ac_cv_type_size_t=yes
17585 else
17586 echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17589 ac_cv_type_size_t=no
17591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17593 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17594 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17595 if test $ac_cv_type_size_t = yes; then
17597 cat >>confdefs.h <<_ACEOF
17598 #define HAVE_SIZE_T 1
17599 _ACEOF
17603 echo "$as_me:$LINENO: checking for ssize_t" >&5
17604 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17605 if test "${ac_cv_type_ssize_t+set}" = set; then
17606 echo $ECHO_N "(cached) $ECHO_C" >&6
17607 else
17608 cat >conftest.$ac_ext <<_ACEOF
17609 /* confdefs.h. */
17610 _ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17614 $ac_includes_default
17616 main ()
17618 if ((ssize_t *) 0)
17619 return 0;
17620 if (sizeof (ssize_t))
17621 return 0;
17623 return 0;
17625 _ACEOF
17626 rm -f conftest.$ac_objext
17627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17628 (eval $ac_compile) 2>conftest.er1
17629 ac_status=$?
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
17635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637 (eval $ac_try) 2>&5
17638 ac_status=$?
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; } &&
17641 { ac_try='test -s conftest.$ac_objext'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; }; then
17647 ac_cv_type_ssize_t=yes
17648 else
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ac_cv_type_ssize_t=no
17654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17656 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17657 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17658 if test $ac_cv_type_ssize_t = yes; then
17660 cat >>confdefs.h <<_ACEOF
17661 #define HAVE_SSIZE_T 1
17662 _ACEOF
17666 echo "$as_me:$LINENO: checking for long long" >&5
17667 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17668 if test "${ac_cv_type_long_long+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17670 else
17671 cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h. */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 $ac_includes_default
17679 main ()
17681 if ((long long *) 0)
17682 return 0;
17683 if (sizeof (long long))
17684 return 0;
17686 return 0;
17688 _ACEOF
17689 rm -f conftest.$ac_objext
17690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17691 (eval $ac_compile) 2>conftest.er1
17692 ac_status=$?
17693 grep -v '^ *+' conftest.er1 >conftest.err
17694 rm -f conftest.er1
17695 cat conftest.err >&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } &&
17698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; } &&
17704 { ac_try='test -s conftest.$ac_objext'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; }; then
17710 ac_cv_type_long_long=yes
17711 else
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17715 ac_cv_type_long_long=no
17717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17719 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17720 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17721 if test $ac_cv_type_long_long = yes; then
17723 cat >>confdefs.h <<_ACEOF
17724 #define HAVE_LONG_LONG 1
17725 _ACEOF
17729 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17730 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17731 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734 cat >conftest.$ac_ext <<_ACEOF
17735 /* confdefs.h. */
17736 _ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 $ac_includes_default
17742 main ()
17744 if ((fsblkcnt_t *) 0)
17745 return 0;
17746 if (sizeof (fsblkcnt_t))
17747 return 0;
17749 return 0;
17751 _ACEOF
17752 rm -f conftest.$ac_objext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17754 (eval $ac_compile) 2>conftest.er1
17755 ac_status=$?
17756 grep -v '^ *+' conftest.er1 >conftest.err
17757 rm -f conftest.er1
17758 cat conftest.err >&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } &&
17761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest.$ac_objext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_type_fsblkcnt_t=yes
17774 else
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17778 ac_cv_type_fsblkcnt_t=no
17780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17782 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17783 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17784 if test $ac_cv_type_fsblkcnt_t = yes; then
17786 cat >>confdefs.h <<_ACEOF
17787 #define HAVE_FSBLKCNT_T 1
17788 _ACEOF
17792 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17793 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17794 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17796 else
17797 cat >conftest.$ac_ext <<_ACEOF
17798 /* confdefs.h. */
17799 _ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17803 $ac_includes_default
17805 main ()
17807 if ((fsfilcnt_t *) 0)
17808 return 0;
17809 if (sizeof (fsfilcnt_t))
17810 return 0;
17812 return 0;
17814 _ACEOF
17815 rm -f conftest.$ac_objext
17816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17817 (eval $ac_compile) 2>conftest.er1
17818 ac_status=$?
17819 grep -v '^ *+' conftest.er1 >conftest.err
17820 rm -f conftest.er1
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
17824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 ac_cv_type_fsfilcnt_t=yes
17837 else
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 ac_cv_type_fsfilcnt_t=no
17843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17845 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17846 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17847 if test $ac_cv_type_fsfilcnt_t = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define HAVE_FSFILCNT_T 1
17851 _ACEOF
17857 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17858 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17859 if test "${wine_cv_linux_input_h+set}" = set; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 else
17862 cat >conftest.$ac_ext <<_ACEOF
17863 /* confdefs.h. */
17864 _ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h. */
17869 #include <linux/input.h>
17872 main ()
17875 int foo = EVIOCGBIT(EV_ABS,42);
17876 int bar = BTN_PINKIE;
17877 int fortytwo = 42;
17880 return 0;
17882 _ACEOF
17883 rm -f conftest.$ac_objext
17884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17885 (eval $ac_compile) 2>conftest.er1
17886 ac_status=$?
17887 grep -v '^ *+' conftest.er1 >conftest.err
17888 rm -f conftest.er1
17889 cat conftest.err >&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; } &&
17898 { ac_try='test -s conftest.$ac_objext'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; }; then
17904 wine_cv_linux_input_h=yes
17905 else
17906 echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17909 wine_cv_linux_input_h=no
17911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17914 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17915 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17916 if test "$wine_cv_linux_input_h" = "yes"
17917 then
17919 cat >>confdefs.h <<\_ACEOF
17920 #define HAVE_CORRECT_LINUXINPUT_H 1
17921 _ACEOF
17926 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17927 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17928 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 else
17931 cat >conftest.$ac_ext <<_ACEOF
17932 /* confdefs.h. */
17933 _ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17938 #include <netdb.h>
17941 main ()
17944 char *name=NULL;
17945 struct hostent he;
17946 struct hostent *result;
17947 char *buf=NULL;
17948 int bufsize=0;
17949 int res,errnr;
17950 char *addr=NULL;
17951 int addrlen=0;
17952 int addrtype=0;
17953 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17954 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17957 return 0;
17959 _ACEOF
17960 rm -f conftest.$ac_objext conftest$ac_exeext
17961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17962 (eval $ac_link) 2>conftest.er1
17963 ac_status=$?
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
17969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest$ac_exeext'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 wine_cv_linux_gethostbyname_r_6=yes
17982 else
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17986 wine_cv_linux_gethostbyname_r_6=no
17989 rm -f conftest.err conftest.$ac_objext \
17990 conftest$ac_exeext conftest.$ac_ext
17993 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17994 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17995 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17996 then
17998 cat >>confdefs.h <<\_ACEOF
17999 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
18000 _ACEOF
18004 if test "$ac_cv_header_linux_joystick_h" = "yes"
18005 then
18006 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
18007 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
18008 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011 cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h. */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18018 #include <sys/ioctl.h>
18019 #include <linux/joystick.h>
18021 struct js_event blub;
18022 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18023 #error "no 2.2 header"
18024 #endif
18027 main ()
18029 /*empty*/
18031 return 0;
18033 _ACEOF
18034 rm -f conftest.$ac_objext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18036 (eval $ac_compile) 2>conftest.er1
18037 ac_status=$?
18038 grep -v '^ *+' conftest.er1 >conftest.err
18039 rm -f conftest.er1
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } &&
18043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045 (eval $ac_try) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; } &&
18049 { ac_try='test -s conftest.$ac_objext'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 wine_cv_linux_joystick_22_api=yes
18056 else
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 wine_cv_linux_joystick_22_api=no
18062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18065 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18066 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
18067 if test "$wine_cv_linux_joystick_22_api" = "yes"
18068 then
18070 cat >>confdefs.h <<\_ACEOF
18071 #define HAVE_LINUX_22_JOYSTICK_API 1
18072 _ACEOF
18078 if test "$ac_cv_header_sys_vfs_h" = "yes"
18079 then
18080 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
18081 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18082 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18083 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 else
18085 cat >conftest.$ac_ext <<_ACEOF
18086 /* confdefs.h. */
18087 _ACEOF
18088 cat confdefs.h >>conftest.$ac_ext
18089 cat >>conftest.$ac_ext <<_ACEOF
18090 /* end confdefs.h. */
18092 #include <sys/types.h>
18093 #ifdef HAVE_SYS_PARAM_H
18094 # include <sys/param.h>
18095 #endif
18096 #include <sys/vfs.h>
18099 main ()
18102 struct statfs stfs;
18104 memset(&stfs,0,sizeof(stfs));
18107 return 0;
18109 _ACEOF
18110 rm -f conftest.$ac_objext
18111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18112 (eval $ac_compile) 2>conftest.er1
18113 ac_status=$?
18114 grep -v '^ *+' conftest.er1 >conftest.err
18115 rm -f conftest.er1
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest.$ac_objext'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 wine_cv_sys_vfs_has_statfs=yes
18132 else
18133 echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18136 wine_cv_sys_vfs_has_statfs=no
18139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18142 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18143 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18144 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18145 then
18147 cat >>confdefs.h <<\_ACEOF
18148 #define STATFS_DEFINED_BY_SYS_VFS 1
18149 _ACEOF
18154 if test "$ac_cv_header_sys_statfs_h" = "yes"
18155 then
18156 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18157 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18158 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18160 else
18161 cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h. */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18168 #include <sys/types.h>
18169 #ifdef HAVE_SYS_PARAM_H
18170 # include <sys/param.h>
18171 #endif
18172 #include <sys/statfs.h>
18175 main ()
18178 struct statfs stfs;
18181 return 0;
18183 _ACEOF
18184 rm -f conftest.$ac_objext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18186 (eval $ac_compile) 2>conftest.er1
18187 ac_status=$?
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
18193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest.$ac_objext'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205 wine_cv_sys_statfs_has_statfs=yes
18206 else
18207 echo "$as_me: failed program was:" >&5
18208 sed 's/^/| /' conftest.$ac_ext >&5
18210 wine_cv_sys_statfs_has_statfs=no
18213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18216 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18217 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18218 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18219 then
18221 cat >>confdefs.h <<\_ACEOF
18222 #define STATFS_DEFINED_BY_SYS_STATFS 1
18223 _ACEOF
18228 if test "$ac_cv_header_sys_mount_h" = "yes"
18229 then
18230 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18231 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18232 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 else
18235 cat >conftest.$ac_ext <<_ACEOF
18236 /* confdefs.h. */
18237 _ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18242 #include <sys/types.h>
18243 #ifdef HAVE_SYS_PARAM_H
18244 # include <sys/param.h>
18245 #endif
18246 #include <sys/mount.h>
18249 main ()
18252 struct statfs stfs;
18255 return 0;
18257 _ACEOF
18258 rm -f conftest.$ac_objext
18259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18260 (eval $ac_compile) 2>conftest.er1
18261 ac_status=$?
18262 grep -v '^ *+' conftest.er1 >conftest.err
18263 rm -f conftest.er1
18264 cat conftest.err >&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } &&
18267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest.$ac_objext'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18279 wine_cv_sys_mount_has_statfs=yes
18280 else
18281 echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.$ac_ext >&5
18284 wine_cv_sys_mount_has_statfs=no
18287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18290 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18291 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18292 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18293 then
18295 cat >>confdefs.h <<\_ACEOF
18296 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18297 _ACEOF
18303 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18304 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18305 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 else
18308 cat >conftest.$ac_ext <<_ACEOF
18309 /* confdefs.h. */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 #include <sys/types.h>
18315 #ifdef HAVE_SYS_PARAM_H
18316 # include <sys/param.h>
18317 #endif
18318 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18319 # include <sys/mount.h>
18320 #else
18321 # ifdef STATFS_DEFINED_BY_SYS_VFS
18322 # include <sys/vfs.h>
18323 # else
18324 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18325 # include <sys/statfs.h>
18326 # endif
18327 # endif
18328 #endif
18331 main ()
18333 static struct statfs ac_aggr;
18334 if (ac_aggr.f_bfree)
18335 return 0;
18337 return 0;
18339 _ACEOF
18340 rm -f conftest.$ac_objext
18341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18342 (eval $ac_compile) 2>conftest.er1
18343 ac_status=$?
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
18349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } &&
18355 { ac_try='test -s conftest.$ac_objext'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
18361 ac_cv_member_struct_statfs_f_bfree=yes
18362 else
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 #include <sys/types.h>
18373 #ifdef HAVE_SYS_PARAM_H
18374 # include <sys/param.h>
18375 #endif
18376 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18377 # include <sys/mount.h>
18378 #else
18379 # ifdef STATFS_DEFINED_BY_SYS_VFS
18380 # include <sys/vfs.h>
18381 # else
18382 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18383 # include <sys/statfs.h>
18384 # endif
18385 # endif
18386 #endif
18389 main ()
18391 static struct statfs ac_aggr;
18392 if (sizeof ac_aggr.f_bfree)
18393 return 0;
18395 return 0;
18397 _ACEOF
18398 rm -f conftest.$ac_objext
18399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18400 (eval $ac_compile) 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } &&
18407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18409 (eval $ac_try) 2>&5
18410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; } &&
18413 { ac_try='test -s conftest.$ac_objext'
18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415 (eval $ac_try) 2>&5
18416 ac_status=$?
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; }; then
18419 ac_cv_member_struct_statfs_f_bfree=yes
18420 else
18421 echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18424 ac_cv_member_struct_statfs_f_bfree=no
18426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18430 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18431 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18432 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18434 cat >>confdefs.h <<_ACEOF
18435 #define HAVE_STRUCT_STATFS_F_BFREE 1
18436 _ACEOF
18440 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18441 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18442 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445 cat >conftest.$ac_ext <<_ACEOF
18446 /* confdefs.h. */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18451 #include <sys/types.h>
18452 #ifdef HAVE_SYS_PARAM_H
18453 # include <sys/param.h>
18454 #endif
18455 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18456 # include <sys/mount.h>
18457 #else
18458 # ifdef STATFS_DEFINED_BY_SYS_VFS
18459 # include <sys/vfs.h>
18460 # else
18461 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18462 # include <sys/statfs.h>
18463 # endif
18464 # endif
18465 #endif
18468 main ()
18470 static struct statfs ac_aggr;
18471 if (ac_aggr.f_bavail)
18472 return 0;
18474 return 0;
18476 _ACEOF
18477 rm -f conftest.$ac_objext
18478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18479 (eval $ac_compile) 2>conftest.er1
18480 ac_status=$?
18481 grep -v '^ *+' conftest.er1 >conftest.err
18482 rm -f conftest.er1
18483 cat conftest.err >&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18489 ac_status=$?
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; } &&
18492 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18498 ac_cv_member_struct_statfs_f_bavail=yes
18499 else
18500 echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h. */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 #include <sys/types.h>
18510 #ifdef HAVE_SYS_PARAM_H
18511 # include <sys/param.h>
18512 #endif
18513 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18514 # include <sys/mount.h>
18515 #else
18516 # ifdef STATFS_DEFINED_BY_SYS_VFS
18517 # include <sys/vfs.h>
18518 # else
18519 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18520 # include <sys/statfs.h>
18521 # endif
18522 # endif
18523 #endif
18526 main ()
18528 static struct statfs ac_aggr;
18529 if (sizeof ac_aggr.f_bavail)
18530 return 0;
18532 return 0;
18534 _ACEOF
18535 rm -f conftest.$ac_objext
18536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18537 (eval $ac_compile) 2>conftest.er1
18538 ac_status=$?
18539 grep -v '^ *+' conftest.er1 >conftest.err
18540 rm -f conftest.er1
18541 cat conftest.err >&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } &&
18544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; } &&
18550 { ac_try='test -s conftest.$ac_objext'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 ac_cv_member_struct_statfs_f_bavail=yes
18557 else
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18561 ac_cv_member_struct_statfs_f_bavail=no
18563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18567 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18568 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18569 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18571 cat >>confdefs.h <<_ACEOF
18572 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18573 _ACEOF
18577 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18578 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18579 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18581 else
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h. */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 #include <sys/types.h>
18589 #ifdef HAVE_SYS_PARAM_H
18590 # include <sys/param.h>
18591 #endif
18592 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18593 # include <sys/mount.h>
18594 #else
18595 # ifdef STATFS_DEFINED_BY_SYS_VFS
18596 # include <sys/vfs.h>
18597 # else
18598 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18599 # include <sys/statfs.h>
18600 # endif
18601 # endif
18602 #endif
18605 main ()
18607 static struct statfs ac_aggr;
18608 if (ac_aggr.f_frsize)
18609 return 0;
18611 return 0;
18613 _ACEOF
18614 rm -f conftest.$ac_objext
18615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18616 (eval $ac_compile) 2>conftest.er1
18617 ac_status=$?
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
18623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18635 ac_cv_member_struct_statfs_f_frsize=yes
18636 else
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18640 cat >conftest.$ac_ext <<_ACEOF
18641 /* confdefs.h. */
18642 _ACEOF
18643 cat confdefs.h >>conftest.$ac_ext
18644 cat >>conftest.$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18646 #include <sys/types.h>
18647 #ifdef HAVE_SYS_PARAM_H
18648 # include <sys/param.h>
18649 #endif
18650 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18651 # include <sys/mount.h>
18652 #else
18653 # ifdef STATFS_DEFINED_BY_SYS_VFS
18654 # include <sys/vfs.h>
18655 # else
18656 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18657 # include <sys/statfs.h>
18658 # endif
18659 # endif
18660 #endif
18663 main ()
18665 static struct statfs ac_aggr;
18666 if (sizeof ac_aggr.f_frsize)
18667 return 0;
18669 return 0;
18671 _ACEOF
18672 rm -f conftest.$ac_objext
18673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18674 (eval $ac_compile) 2>conftest.er1
18675 ac_status=$?
18676 grep -v '^ *+' conftest.er1 >conftest.err
18677 rm -f conftest.er1
18678 cat conftest.err >&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } &&
18681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest.$ac_objext'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18693 ac_cv_member_struct_statfs_f_frsize=yes
18694 else
18695 echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18698 ac_cv_member_struct_statfs_f_frsize=no
18700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18704 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18705 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18706 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18708 cat >>confdefs.h <<_ACEOF
18709 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18710 _ACEOF
18714 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18715 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18716 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718 else
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 #include <sys/types.h>
18726 #ifdef HAVE_SYS_PARAM_H
18727 # include <sys/param.h>
18728 #endif
18729 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18730 # include <sys/mount.h>
18731 #else
18732 # ifdef STATFS_DEFINED_BY_SYS_VFS
18733 # include <sys/vfs.h>
18734 # else
18735 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18736 # include <sys/statfs.h>
18737 # endif
18738 # endif
18739 #endif
18742 main ()
18744 static struct statfs ac_aggr;
18745 if (ac_aggr.f_ffree)
18746 return 0;
18748 return 0;
18750 _ACEOF
18751 rm -f conftest.$ac_objext
18752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18753 (eval $ac_compile) 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } &&
18760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18772 ac_cv_member_struct_statfs_f_ffree=yes
18773 else
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h. */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 #include <sys/types.h>
18784 #ifdef HAVE_SYS_PARAM_H
18785 # include <sys/param.h>
18786 #endif
18787 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18788 # include <sys/mount.h>
18789 #else
18790 # ifdef STATFS_DEFINED_BY_SYS_VFS
18791 # include <sys/vfs.h>
18792 # else
18793 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18794 # include <sys/statfs.h>
18795 # endif
18796 # endif
18797 #endif
18800 main ()
18802 static struct statfs ac_aggr;
18803 if (sizeof ac_aggr.f_ffree)
18804 return 0;
18806 return 0;
18808 _ACEOF
18809 rm -f conftest.$ac_objext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>conftest.er1
18812 ac_status=$?
18813 grep -v '^ *+' conftest.er1 >conftest.err
18814 rm -f conftest.er1
18815 cat conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest.$ac_objext'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18830 ac_cv_member_struct_statfs_f_ffree=yes
18831 else
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18835 ac_cv_member_struct_statfs_f_ffree=no
18837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18841 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18842 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18843 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18845 cat >>confdefs.h <<_ACEOF
18846 #define HAVE_STRUCT_STATFS_F_FFREE 1
18847 _ACEOF
18851 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18852 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18853 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18855 else
18856 cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h. */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18862 #include <sys/types.h>
18863 #ifdef HAVE_SYS_PARAM_H
18864 # include <sys/param.h>
18865 #endif
18866 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18867 # include <sys/mount.h>
18868 #else
18869 # ifdef STATFS_DEFINED_BY_SYS_VFS
18870 # include <sys/vfs.h>
18871 # else
18872 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18873 # include <sys/statfs.h>
18874 # endif
18875 # endif
18876 #endif
18879 main ()
18881 static struct statfs ac_aggr;
18882 if (ac_aggr.f_favail)
18883 return 0;
18885 return 0;
18887 _ACEOF
18888 rm -f conftest.$ac_objext
18889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18890 (eval $ac_compile) 2>conftest.er1
18891 ac_status=$?
18892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
18897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899 (eval $ac_try) 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; } &&
18903 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18909 ac_cv_member_struct_statfs_f_favail=yes
18910 else
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18914 cat >conftest.$ac_ext <<_ACEOF
18915 /* confdefs.h. */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h. */
18920 #include <sys/types.h>
18921 #ifdef HAVE_SYS_PARAM_H
18922 # include <sys/param.h>
18923 #endif
18924 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18925 # include <sys/mount.h>
18926 #else
18927 # ifdef STATFS_DEFINED_BY_SYS_VFS
18928 # include <sys/vfs.h>
18929 # else
18930 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18931 # include <sys/statfs.h>
18932 # endif
18933 # endif
18934 #endif
18937 main ()
18939 static struct statfs ac_aggr;
18940 if (sizeof ac_aggr.f_favail)
18941 return 0;
18943 return 0;
18945 _ACEOF
18946 rm -f conftest.$ac_objext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18948 (eval $ac_compile) 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest.$ac_objext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 ac_cv_member_struct_statfs_f_favail=yes
18968 else
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_cv_member_struct_statfs_f_favail=no
18974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18978 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18979 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18980 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18982 cat >>confdefs.h <<_ACEOF
18983 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18984 _ACEOF
18988 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18989 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18990 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 else
18993 cat >conftest.$ac_ext <<_ACEOF
18994 /* confdefs.h. */
18995 _ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
18999 #include <sys/types.h>
19000 #ifdef HAVE_SYS_PARAM_H
19001 # include <sys/param.h>
19002 #endif
19003 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19004 # include <sys/mount.h>
19005 #else
19006 # ifdef STATFS_DEFINED_BY_SYS_VFS
19007 # include <sys/vfs.h>
19008 # else
19009 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19010 # include <sys/statfs.h>
19011 # endif
19012 # endif
19013 #endif
19016 main ()
19018 static struct statfs ac_aggr;
19019 if (ac_aggr.f_namelen)
19020 return 0;
19022 return 0;
19024 _ACEOF
19025 rm -f conftest.$ac_objext
19026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19027 (eval $ac_compile) 2>conftest.er1
19028 ac_status=$?
19029 grep -v '^ *+' conftest.er1 >conftest.err
19030 rm -f conftest.er1
19031 cat conftest.err >&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); } &&
19034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; } &&
19040 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19046 ac_cv_member_struct_statfs_f_namelen=yes
19047 else
19048 echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19051 cat >conftest.$ac_ext <<_ACEOF
19052 /* confdefs.h. */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19057 #include <sys/types.h>
19058 #ifdef HAVE_SYS_PARAM_H
19059 # include <sys/param.h>
19060 #endif
19061 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19062 # include <sys/mount.h>
19063 #else
19064 # ifdef STATFS_DEFINED_BY_SYS_VFS
19065 # include <sys/vfs.h>
19066 # else
19067 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19068 # include <sys/statfs.h>
19069 # endif
19070 # endif
19071 #endif
19074 main ()
19076 static struct statfs ac_aggr;
19077 if (sizeof ac_aggr.f_namelen)
19078 return 0;
19080 return 0;
19082 _ACEOF
19083 rm -f conftest.$ac_objext
19084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19085 (eval $ac_compile) 2>conftest.er1
19086 ac_status=$?
19087 grep -v '^ *+' conftest.er1 >conftest.err
19088 rm -f conftest.er1
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } &&
19092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19095 ac_status=$?
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; } &&
19098 { ac_try='test -s conftest.$ac_objext'
19099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100 (eval $ac_try) 2>&5
19101 ac_status=$?
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); }; }; then
19104 ac_cv_member_struct_statfs_f_namelen=yes
19105 else
19106 echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19109 ac_cv_member_struct_statfs_f_namelen=no
19111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19115 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19116 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19117 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19119 cat >>confdefs.h <<_ACEOF
19120 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19121 _ACEOF
19127 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19128 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19129 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132 cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h. */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 #ifdef HAVE_SYS_STATVFS_H
19139 #include <sys/statvfs.h>
19140 #endif
19143 main ()
19145 static struct statvfs ac_aggr;
19146 if (ac_aggr.f_blocks)
19147 return 0;
19149 return 0;
19151 _ACEOF
19152 rm -f conftest.$ac_objext
19153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19154 (eval $ac_compile) 2>conftest.er1
19155 ac_status=$?
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } &&
19161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; } &&
19167 { ac_try='test -s conftest.$ac_objext'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19173 ac_cv_member_struct_statvfs_f_blocks=yes
19174 else
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19178 cat >conftest.$ac_ext <<_ACEOF
19179 /* confdefs.h. */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19184 #ifdef HAVE_SYS_STATVFS_H
19185 #include <sys/statvfs.h>
19186 #endif
19189 main ()
19191 static struct statvfs ac_aggr;
19192 if (sizeof ac_aggr.f_blocks)
19193 return 0;
19195 return 0;
19197 _ACEOF
19198 rm -f conftest.$ac_objext
19199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19200 (eval $ac_compile) 2>conftest.er1
19201 ac_status=$?
19202 grep -v '^ *+' conftest.er1 >conftest.err
19203 rm -f conftest.er1
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } &&
19207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209 (eval $ac_try) 2>&5
19210 ac_status=$?
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; } &&
19213 { ac_try='test -s conftest.$ac_objext'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19216 ac_status=$?
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; }; then
19219 ac_cv_member_struct_statvfs_f_blocks=yes
19220 else
19221 echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19224 ac_cv_member_struct_statvfs_f_blocks=no
19226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19230 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19231 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19232 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19234 cat >>confdefs.h <<_ACEOF
19235 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19236 _ACEOF
19242 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19243 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19244 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19246 else
19247 cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h. */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 #include <sys/types.h>
19254 #ifdef HAVE_SYS_SOCKET_H
19255 # include <sys/socket.h>
19256 #endif
19257 #ifdef HAVE_SYS_UN_H
19258 # include <sys/un.h>
19259 #endif
19262 main ()
19264 static struct msghdr ac_aggr;
19265 if (ac_aggr.msg_accrights)
19266 return 0;
19268 return 0;
19270 _ACEOF
19271 rm -f conftest.$ac_objext
19272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19273 (eval $ac_compile) 2>conftest.er1
19274 ac_status=$?
19275 grep -v '^ *+' conftest.er1 >conftest.err
19276 rm -f conftest.er1
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } &&
19280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; } &&
19286 { ac_try='test -s conftest.$ac_objext'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; }; then
19292 ac_cv_member_struct_msghdr_msg_accrights=yes
19293 else
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19297 cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h. */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19303 #include <sys/types.h>
19304 #ifdef HAVE_SYS_SOCKET_H
19305 # include <sys/socket.h>
19306 #endif
19307 #ifdef HAVE_SYS_UN_H
19308 # include <sys/un.h>
19309 #endif
19312 main ()
19314 static struct msghdr ac_aggr;
19315 if (sizeof ac_aggr.msg_accrights)
19316 return 0;
19318 return 0;
19320 _ACEOF
19321 rm -f conftest.$ac_objext
19322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19323 (eval $ac_compile) 2>conftest.er1
19324 ac_status=$?
19325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } &&
19330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try='test -s conftest.$ac_objext'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_cv_member_struct_msghdr_msg_accrights=yes
19343 else
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 ac_cv_member_struct_msghdr_msg_accrights=no
19349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19353 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19354 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19355 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19357 cat >>confdefs.h <<_ACEOF
19358 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19359 _ACEOF
19363 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19364 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19365 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
19368 cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h. */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 #include <sys/types.h>
19375 #ifdef HAVE_SYS_SOCKET_H
19376 # include <sys/socket.h>
19377 #endif
19378 #ifdef HAVE_SYS_UN_H
19379 # include <sys/un.h>
19380 #endif
19383 main ()
19385 static struct sockaddr ac_aggr;
19386 if (ac_aggr.sa_len)
19387 return 0;
19389 return 0;
19391 _ACEOF
19392 rm -f conftest.$ac_objext
19393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19394 (eval $ac_compile) 2>conftest.er1
19395 ac_status=$?
19396 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } &&
19401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; } &&
19407 { ac_try='test -s conftest.$ac_objext'
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
19413 ac_cv_member_struct_sockaddr_sa_len=yes
19414 else
19415 echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19418 cat >conftest.$ac_ext <<_ACEOF
19419 /* confdefs.h. */
19420 _ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h. */
19424 #include <sys/types.h>
19425 #ifdef HAVE_SYS_SOCKET_H
19426 # include <sys/socket.h>
19427 #endif
19428 #ifdef HAVE_SYS_UN_H
19429 # include <sys/un.h>
19430 #endif
19433 main ()
19435 static struct sockaddr ac_aggr;
19436 if (sizeof ac_aggr.sa_len)
19437 return 0;
19439 return 0;
19441 _ACEOF
19442 rm -f conftest.$ac_objext
19443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444 (eval $ac_compile) 2>conftest.er1
19445 ac_status=$?
19446 grep -v '^ *+' conftest.er1 >conftest.err
19447 rm -f conftest.er1
19448 cat conftest.err >&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } &&
19451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } &&
19457 { ac_try='test -s conftest.$ac_objext'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 ac_cv_member_struct_sockaddr_sa_len=yes
19464 else
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19468 ac_cv_member_struct_sockaddr_sa_len=no
19470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19474 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19475 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19476 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19478 cat >>confdefs.h <<_ACEOF
19479 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19480 _ACEOF
19484 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19485 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19486 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489 cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h. */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19495 #include <sys/types.h>
19496 #ifdef HAVE_SYS_SOCKET_H
19497 # include <sys/socket.h>
19498 #endif
19499 #ifdef HAVE_SYS_UN_H
19500 # include <sys/un.h>
19501 #endif
19504 main ()
19506 static struct sockaddr_un ac_aggr;
19507 if (ac_aggr.sun_len)
19508 return 0;
19510 return 0;
19512 _ACEOF
19513 rm -f conftest.$ac_objext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19515 (eval $ac_compile) 2>conftest.er1
19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; } &&
19528 { ac_try='test -s conftest.$ac_objext'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; }; then
19534 ac_cv_member_struct_sockaddr_un_sun_len=yes
19535 else
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19539 cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h. */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19545 #include <sys/types.h>
19546 #ifdef HAVE_SYS_SOCKET_H
19547 # include <sys/socket.h>
19548 #endif
19549 #ifdef HAVE_SYS_UN_H
19550 # include <sys/un.h>
19551 #endif
19554 main ()
19556 static struct sockaddr_un ac_aggr;
19557 if (sizeof ac_aggr.sun_len)
19558 return 0;
19560 return 0;
19562 _ACEOF
19563 rm -f conftest.$ac_objext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19565 (eval $ac_compile) 2>conftest.er1
19566 ac_status=$?
19567 grep -v '^ *+' conftest.er1 >conftest.err
19568 rm -f conftest.er1
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
19572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest.$ac_objext'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19581 ac_status=$?
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19584 ac_cv_member_struct_sockaddr_un_sun_len=yes
19585 else
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_cv_member_struct_sockaddr_un_sun_len=no
19591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19595 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19596 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19597 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19599 cat >>confdefs.h <<_ACEOF
19600 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19601 _ACEOF
19607 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19608 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19609 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612 cat >conftest.$ac_ext <<_ACEOF
19613 /* confdefs.h. */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h. */
19618 #include <signal.h>
19621 main ()
19623 static siginfo_t ac_aggr;
19624 if (ac_aggr.si_fd)
19625 return 0;
19627 return 0;
19629 _ACEOF
19630 rm -f conftest.$ac_objext
19631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632 (eval $ac_compile) 2>conftest.er1
19633 ac_status=$?
19634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
19639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest.$ac_objext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_cv_member_siginfo_t_si_fd=yes
19652 else
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 cat >conftest.$ac_ext <<_ACEOF
19657 /* confdefs.h. */
19658 _ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662 #include <signal.h>
19665 main ()
19667 static siginfo_t ac_aggr;
19668 if (sizeof ac_aggr.si_fd)
19669 return 0;
19671 return 0;
19673 _ACEOF
19674 rm -f conftest.$ac_objext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19676 (eval $ac_compile) 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest.$ac_objext'
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695 ac_cv_member_siginfo_t_si_fd=yes
19696 else
19697 echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19700 ac_cv_member_siginfo_t_si_fd=no
19702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19706 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19707 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19708 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19710 cat >>confdefs.h <<_ACEOF
19711 #define HAVE_SIGINFO_T_SI_FD 1
19712 _ACEOF
19718 echo "$as_me:$LINENO: checking for struct option.name" >&5
19719 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19720 if test "${ac_cv_member_struct_option_name+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19722 else
19723 cat >conftest.$ac_ext <<_ACEOF
19724 /* confdefs.h. */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h. */
19729 #ifdef HAVE_GETOPT_H
19730 #include <getopt.h>
19731 #endif
19734 main ()
19736 static struct option ac_aggr;
19737 if (ac_aggr.name)
19738 return 0;
19740 return 0;
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } &&
19752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19754 (eval $ac_try) 2>&5
19755 ac_status=$?
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; } &&
19758 { ac_try='test -s conftest.$ac_objext'
19759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760 (eval $ac_try) 2>&5
19761 ac_status=$?
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); }; }; then
19764 ac_cv_member_struct_option_name=yes
19765 else
19766 echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19769 cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h. */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 #ifdef HAVE_GETOPT_H
19776 #include <getopt.h>
19777 #endif
19780 main ()
19782 static struct option ac_aggr;
19783 if (sizeof ac_aggr.name)
19784 return 0;
19786 return 0;
19788 _ACEOF
19789 rm -f conftest.$ac_objext
19790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19791 (eval $ac_compile) 2>conftest.er1
19792 ac_status=$?
19793 grep -v '^ *+' conftest.er1 >conftest.err
19794 rm -f conftest.er1
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
19798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest.$ac_objext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 ac_cv_member_struct_option_name=yes
19811 else
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 ac_cv_member_struct_option_name=no
19817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19821 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19822 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19823 if test $ac_cv_member_struct_option_name = yes; then
19825 cat >>confdefs.h <<_ACEOF
19826 #define HAVE_STRUCT_OPTION_NAME 1
19827 _ACEOF
19833 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19834 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19835 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 else
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h. */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 $ac_includes_default
19846 main ()
19848 static struct stat ac_aggr;
19849 if (ac_aggr.st_blocks)
19850 return 0;
19852 return 0;
19854 _ACEOF
19855 rm -f conftest.$ac_objext
19856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19857 (eval $ac_compile) 2>conftest.er1
19858 ac_status=$?
19859 grep -v '^ *+' conftest.er1 >conftest.err
19860 rm -f conftest.er1
19861 cat conftest.err >&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } &&
19864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; } &&
19870 { ac_try='test -s conftest.$ac_objext'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19876 ac_cv_member_struct_stat_st_blocks=yes
19877 else
19878 echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19881 cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h. */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 $ac_includes_default
19889 main ()
19891 static struct stat ac_aggr;
19892 if (sizeof ac_aggr.st_blocks)
19893 return 0;
19895 return 0;
19897 _ACEOF
19898 rm -f conftest.$ac_objext
19899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19900 (eval $ac_compile) 2>conftest.er1
19901 ac_status=$?
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
19907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; } &&
19913 { ac_try='test -s conftest.$ac_objext'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19919 ac_cv_member_struct_stat_st_blocks=yes
19920 else
19921 echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19924 ac_cv_member_struct_stat_st_blocks=no
19926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19930 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19931 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19932 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19934 cat >>confdefs.h <<_ACEOF
19935 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19936 _ACEOF
19943 case $host_cpu in
19944 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19945 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19946 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19948 else
19949 cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h. */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h. */
19955 #ifndef __i386__
19957 #endif
19958 _ACEOF
19959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19960 $EGREP "yes" >/dev/null 2>&1; then
19961 ac_cv_cpp_def___i386__=yes
19962 else
19963 ac_cv_cpp_def___i386__=no
19965 rm -f conftest*
19968 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19969 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19970 if test $ac_cv_cpp_def___i386__ = yes; then
19971 CFLAGS="$CFLAGS -D__i386__"
19972 LINTFLAGS="$LINTFLAGS -D__i386__"
19975 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19976 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19977 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980 cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h. */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19986 #ifndef __ALPHA__
19988 #endif
19989 _ACEOF
19990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19991 $EGREP "yes" >/dev/null 2>&1; then
19992 ac_cv_cpp_def___ALPHA__=yes
19993 else
19994 ac_cv_cpp_def___ALPHA__=no
19996 rm -f conftest*
19999 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20000 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
20001 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20002 CFLAGS="$CFLAGS -D__ALPHA__"
20003 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20006 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20007 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
20008 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20009 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 else
20011 cat >conftest.$ac_ext <<_ACEOF
20012 /* confdefs.h. */
20013 _ACEOF
20014 cat confdefs.h >>conftest.$ac_ext
20015 cat >>conftest.$ac_ext <<_ACEOF
20016 /* end confdefs.h. */
20017 #ifndef __sparc__
20019 #endif
20020 _ACEOF
20021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20022 $EGREP "yes" >/dev/null 2>&1; then
20023 ac_cv_cpp_def___sparc__=yes
20024 else
20025 ac_cv_cpp_def___sparc__=no
20027 rm -f conftest*
20030 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20031 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20032 if test $ac_cv_cpp_def___sparc__ = yes; then
20033 CFLAGS="$CFLAGS -D__sparc__"
20034 LINTFLAGS="$LINTFLAGS -D__sparc__"
20037 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20038 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20039 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20040 echo $ECHO_N "(cached) $ECHO_C" >&6
20041 else
20042 cat >conftest.$ac_ext <<_ACEOF
20043 /* confdefs.h. */
20044 _ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h. */
20048 #ifndef __powerpc__
20050 #endif
20051 _ACEOF
20052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20053 $EGREP "yes" >/dev/null 2>&1; then
20054 ac_cv_cpp_def___powerpc__=yes
20055 else
20056 ac_cv_cpp_def___powerpc__=no
20058 rm -f conftest*
20061 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20062 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20063 if test $ac_cv_cpp_def___powerpc__ = yes; then
20064 CFLAGS="$CFLAGS -D__powerpc__"
20065 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20068 esac
20070 case $host_vendor in
20071 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20072 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
20073 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20074 echo $ECHO_N "(cached) $ECHO_C" >&6
20075 else
20076 cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h. */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082 #ifndef __sun__
20084 #endif
20085 _ACEOF
20086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20087 $EGREP "yes" >/dev/null 2>&1; then
20088 ac_cv_cpp_def___sun__=yes
20089 else
20090 ac_cv_cpp_def___sun__=no
20092 rm -f conftest*
20095 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20096 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20097 if test $ac_cv_cpp_def___sun__ = yes; then
20098 CFLAGS="$CFLAGS -D__sun__"
20099 LINTFLAGS="$LINTFLAGS -D__sun__"
20102 esac
20108 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
20110 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
20112 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
20114 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
20116 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
20118 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
20120 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
20122 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
20124 ac_config_commands="$ac_config_commands dlls/kernel/messages"
20126 ac_config_commands="$ac_config_commands dlls/user/dde"
20128 ac_config_commands="$ac_config_commands dlls/user/resources"
20130 ac_config_commands="$ac_config_commands dlls/wineps/data"
20132 ac_config_commands="$ac_config_commands include/wine"
20134 ac_config_commands="$ac_config_commands misc"
20136 ac_config_commands="$ac_config_commands programs/regedit/tests"
20138 ac_config_commands="$ac_config_commands windows"
20141 MAKE_RULES=Make.rules
20144 MAKE_DLL_RULES=dlls/Makedll.rules
20147 MAKE_TEST_RULES=dlls/Maketest.rules
20150 MAKE_LIB_RULES=libs/Makelib.rules
20153 MAKE_PROG_RULES=programs/Makeprog.rules
20156 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/secur32/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
20159 cat >confcache <<\_ACEOF
20160 # This file is a shell script that caches the results of configure
20161 # tests run on this system so they can be shared between configure
20162 # scripts and configure runs, see configure's option --config-cache.
20163 # It is not useful on other systems. If it contains results you don't
20164 # want to keep, you may remove or edit it.
20166 # config.status only pays attention to the cache file if you give it
20167 # the --recheck option to rerun configure.
20169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20171 # following values.
20173 _ACEOF
20175 # The following way of writing the cache mishandles newlines in values,
20176 # but we know of no workaround that is simple, portable, and efficient.
20177 # So, don't put newlines in cache variables' values.
20178 # Ultrix sh set writes to stderr and can't be redirected directly,
20179 # and sets the high bit in the cache file unless we assign to the vars.
20181 (set) 2>&1 |
20182 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20183 *ac_space=\ *)
20184 # `set' does not quote correctly, so add quotes (double-quote
20185 # substitution turns \\\\ into \\, and sed turns \\ into \).
20186 sed -n \
20187 "s/'/'\\\\''/g;
20188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20191 # `set' quotes correctly as required by POSIX, so do not add quotes.
20192 sed -n \
20193 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20195 esac;
20197 sed '
20198 t clear
20199 : clear
20200 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20201 t end
20202 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20203 : end' >>confcache
20204 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20205 if test -w $cache_file; then
20206 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20207 cat confcache >$cache_file
20208 else
20209 echo "not updating unwritable cache $cache_file"
20212 rm -f confcache
20214 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20215 # Let make expand exec_prefix.
20216 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20218 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20219 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20220 # trailing colons and then remove the whole line if VPATH becomes empty
20221 # (actually we leave an empty line to preserve line numbers).
20222 if test "x$srcdir" = x.; then
20223 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20224 s/:*\$(srcdir):*/:/;
20225 s/:*\${srcdir}:*/:/;
20226 s/:*@srcdir@:*/:/;
20227 s/^\([^=]*=[ ]*\):*/\1/;
20228 s/:*$//;
20229 s/^[^=]*=[ ]*$//;
20233 DEFS=-DHAVE_CONFIG_H
20235 ac_libobjs=
20236 ac_ltlibobjs=
20237 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20238 # 1. Remove the extension, and $U if already installed.
20239 ac_i=`echo "$ac_i" |
20240 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20241 # 2. Add them.
20242 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20243 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20244 done
20245 LIBOBJS=$ac_libobjs
20247 LTLIBOBJS=$ac_ltlibobjs
20251 : ${CONFIG_STATUS=./config.status}
20252 ac_clean_files_save=$ac_clean_files
20253 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20254 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20255 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20256 cat >$CONFIG_STATUS <<_ACEOF
20257 #! $SHELL
20258 # Generated by $as_me.
20259 # Run this file to recreate the current configuration.
20260 # Compiler output produced by configure, useful for debugging
20261 # configure, is in config.log if it exists.
20263 debug=false
20264 ac_cs_recheck=false
20265 ac_cs_silent=false
20266 SHELL=\${CONFIG_SHELL-$SHELL}
20267 _ACEOF
20269 cat >>$CONFIG_STATUS <<\_ACEOF
20270 ## --------------------- ##
20271 ## M4sh Initialization. ##
20272 ## --------------------- ##
20274 # Be Bourne compatible
20275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20276 emulate sh
20277 NULLCMD=:
20278 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20279 # is contrary to our usage. Disable this feature.
20280 alias -g '${1+"$@"}'='"$@"'
20281 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20282 set -o posix
20284 DUALCASE=1; export DUALCASE # for MKS sh
20286 # Support unset when possible.
20287 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20288 as_unset=unset
20289 else
20290 as_unset=false
20294 # Work around bugs in pre-3.0 UWIN ksh.
20295 $as_unset ENV MAIL MAILPATH
20296 PS1='$ '
20297 PS2='> '
20298 PS4='+ '
20300 # NLS nuisances.
20301 for as_var in \
20302 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20303 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20304 LC_TELEPHONE LC_TIME
20306 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20307 eval $as_var=C; export $as_var
20308 else
20309 $as_unset $as_var
20311 done
20313 # Required to use basename.
20314 if expr a : '\(a\)' >/dev/null 2>&1; then
20315 as_expr=expr
20316 else
20317 as_expr=false
20320 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20321 as_basename=basename
20322 else
20323 as_basename=false
20327 # Name of the executable.
20328 as_me=`$as_basename "$0" ||
20329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20330 X"$0" : 'X\(//\)$' \| \
20331 X"$0" : 'X\(/\)$' \| \
20332 . : '\(.\)' 2>/dev/null ||
20333 echo X/"$0" |
20334 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20335 /^X\/\(\/\/\)$/{ s//\1/; q; }
20336 /^X\/\(\/\).*/{ s//\1/; q; }
20337 s/.*/./; q'`
20340 # PATH needs CR, and LINENO needs CR and PATH.
20341 # Avoid depending upon Character Ranges.
20342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20345 as_cr_digits='0123456789'
20346 as_cr_alnum=$as_cr_Letters$as_cr_digits
20348 # The user is always right.
20349 if test "${PATH_SEPARATOR+set}" != set; then
20350 echo "#! /bin/sh" >conf$$.sh
20351 echo "exit 0" >>conf$$.sh
20352 chmod +x conf$$.sh
20353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20354 PATH_SEPARATOR=';'
20355 else
20356 PATH_SEPARATOR=:
20358 rm -f conf$$.sh
20362 as_lineno_1=$LINENO
20363 as_lineno_2=$LINENO
20364 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20365 test "x$as_lineno_1" != "x$as_lineno_2" &&
20366 test "x$as_lineno_3" = "x$as_lineno_2" || {
20367 # Find who we are. Look in the path if we contain no path at all
20368 # relative or not.
20369 case $0 in
20370 *[\\/]* ) as_myself=$0 ;;
20371 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20372 for as_dir in $PATH
20374 IFS=$as_save_IFS
20375 test -z "$as_dir" && as_dir=.
20376 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20377 done
20380 esac
20381 # We did not find ourselves, most probably we were run as `sh COMMAND'
20382 # in which case we are not to be found in the path.
20383 if test "x$as_myself" = x; then
20384 as_myself=$0
20386 if test ! -f "$as_myself"; then
20387 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20388 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20389 { (exit 1); exit 1; }; }
20391 case $CONFIG_SHELL in
20393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20394 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20396 IFS=$as_save_IFS
20397 test -z "$as_dir" && as_dir=.
20398 for as_base in sh bash ksh sh5; do
20399 case $as_dir in
20401 if ("$as_dir/$as_base" -c '
20402 as_lineno_1=$LINENO
20403 as_lineno_2=$LINENO
20404 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20405 test "x$as_lineno_1" != "x$as_lineno_2" &&
20406 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20407 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20408 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20409 CONFIG_SHELL=$as_dir/$as_base
20410 export CONFIG_SHELL
20411 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20412 fi;;
20413 esac
20414 done
20415 done
20417 esac
20419 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20420 # uniformly replaced by the line number. The first 'sed' inserts a
20421 # line-number line before each line; the second 'sed' does the real
20422 # work. The second script uses 'N' to pair each line-number line
20423 # with the numbered line, and appends trailing '-' during
20424 # substitution so that $LINENO is not a special case at line end.
20425 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20426 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20427 sed '=' <$as_myself |
20428 sed '
20430 s,$,-,
20431 : loop
20432 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20433 t loop
20434 s,-$,,
20435 s,^['$as_cr_digits']*\n,,
20436 ' >$as_me.lineno &&
20437 chmod +x $as_me.lineno ||
20438 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20439 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20440 { (exit 1); exit 1; }; }
20442 # Don't try to exec as it changes $[0], causing all sort of problems
20443 # (the dirname of $[0] is not the place where we might find the
20444 # original and so on. Autoconf is especially sensible to this).
20445 . ./$as_me.lineno
20446 # Exit status is that of the last command.
20447 exit
20451 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20452 *c*,-n*) ECHO_N= ECHO_C='
20453 ' ECHO_T=' ' ;;
20454 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20455 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20456 esac
20458 if expr a : '\(a\)' >/dev/null 2>&1; then
20459 as_expr=expr
20460 else
20461 as_expr=false
20464 rm -f conf$$ conf$$.exe conf$$.file
20465 echo >conf$$.file
20466 if ln -s conf$$.file conf$$ 2>/dev/null; then
20467 # We could just check for DJGPP; but this test a) works b) is more generic
20468 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20469 if test -f conf$$.exe; then
20470 # Don't use ln at all; we don't have any links
20471 as_ln_s='cp -p'
20472 else
20473 as_ln_s='ln -s'
20475 elif ln conf$$.file conf$$ 2>/dev/null; then
20476 as_ln_s=ln
20477 else
20478 as_ln_s='cp -p'
20480 rm -f conf$$ conf$$.exe conf$$.file
20482 if mkdir -p . 2>/dev/null; then
20483 as_mkdir_p=:
20484 else
20485 test -d ./-p && rmdir ./-p
20486 as_mkdir_p=false
20489 as_executable_p="test -f"
20491 # Sed expression to map a string onto a valid CPP name.
20492 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20494 # Sed expression to map a string onto a valid variable name.
20495 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20498 # IFS
20499 # We need space, tab and new line, in precisely that order.
20500 as_nl='
20502 IFS=" $as_nl"
20504 # CDPATH.
20505 $as_unset CDPATH
20507 exec 6>&1
20509 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20510 # report actual input values of CONFIG_FILES etc. instead of their
20511 # values after options handling. Logging --version etc. is OK.
20512 exec 5>>config.log
20514 echo
20515 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20516 ## Running $as_me. ##
20517 _ASBOX
20518 } >&5
20519 cat >&5 <<_CSEOF
20521 This file was extended by Wine $as_me 20041019, which was
20522 generated by GNU Autoconf 2.59. Invocation command line was
20524 CONFIG_FILES = $CONFIG_FILES
20525 CONFIG_HEADERS = $CONFIG_HEADERS
20526 CONFIG_LINKS = $CONFIG_LINKS
20527 CONFIG_COMMANDS = $CONFIG_COMMANDS
20528 $ $0 $@
20530 _CSEOF
20531 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20532 echo >&5
20533 _ACEOF
20535 # Files that config.status was made for.
20536 if test -n "$ac_config_files"; then
20537 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20540 if test -n "$ac_config_headers"; then
20541 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20544 if test -n "$ac_config_links"; then
20545 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20548 if test -n "$ac_config_commands"; then
20549 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20552 cat >>$CONFIG_STATUS <<\_ACEOF
20554 ac_cs_usage="\
20555 \`$as_me' instantiates files from templates according to the
20556 current configuration.
20558 Usage: $0 [OPTIONS] [FILE]...
20560 -h, --help print this help, then exit
20561 -V, --version print version number, then exit
20562 -q, --quiet do not print progress messages
20563 -d, --debug don't remove temporary files
20564 --recheck update $as_me by reconfiguring in the same conditions
20565 --file=FILE[:TEMPLATE]
20566 instantiate the configuration file FILE
20567 --header=FILE[:TEMPLATE]
20568 instantiate the configuration header FILE
20570 Configuration files:
20571 $config_files
20573 Configuration headers:
20574 $config_headers
20576 Configuration commands:
20577 $config_commands
20579 Report bugs to <bug-autoconf@gnu.org>."
20580 _ACEOF
20582 cat >>$CONFIG_STATUS <<_ACEOF
20583 ac_cs_version="\\
20584 Wine config.status 20041019
20585 configured by $0, generated by GNU Autoconf 2.59,
20586 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20588 Copyright (C) 2003 Free Software Foundation, Inc.
20589 This config.status script is free software; the Free Software Foundation
20590 gives unlimited permission to copy, distribute and modify it."
20591 srcdir=$srcdir
20592 INSTALL="$INSTALL"
20593 _ACEOF
20595 cat >>$CONFIG_STATUS <<\_ACEOF
20596 # If no file are specified by the user, then we need to provide default
20597 # value. By we need to know if files were specified by the user.
20598 ac_need_defaults=:
20599 while test $# != 0
20601 case $1 in
20602 --*=*)
20603 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20604 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20605 ac_shift=:
20608 ac_option=$1
20609 ac_optarg=$2
20610 ac_shift=shift
20612 *) # This is not an option, so the user has probably given explicit
20613 # arguments.
20614 ac_option=$1
20615 ac_need_defaults=false;;
20616 esac
20618 case $ac_option in
20619 # Handling of the options.
20620 _ACEOF
20621 cat >>$CONFIG_STATUS <<\_ACEOF
20622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20623 ac_cs_recheck=: ;;
20624 --version | --vers* | -V )
20625 echo "$ac_cs_version"; exit 0 ;;
20626 --he | --h)
20627 # Conflict between --help and --header
20628 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20629 Try \`$0 --help' for more information." >&5
20630 echo "$as_me: error: ambiguous option: $1
20631 Try \`$0 --help' for more information." >&2;}
20632 { (exit 1); exit 1; }; };;
20633 --help | --hel | -h )
20634 echo "$ac_cs_usage"; exit 0 ;;
20635 --debug | --d* | -d )
20636 debug=: ;;
20637 --file | --fil | --fi | --f )
20638 $ac_shift
20639 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20640 ac_need_defaults=false;;
20641 --header | --heade | --head | --hea )
20642 $ac_shift
20643 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20644 ac_need_defaults=false;;
20645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20646 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20647 ac_cs_silent=: ;;
20649 # This is an error.
20650 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20651 Try \`$0 --help' for more information." >&5
20652 echo "$as_me: error: unrecognized option: $1
20653 Try \`$0 --help' for more information." >&2;}
20654 { (exit 1); exit 1; }; } ;;
20656 *) ac_config_targets="$ac_config_targets $1" ;;
20658 esac
20659 shift
20660 done
20662 ac_configure_extra_args=
20664 if $ac_cs_silent; then
20665 exec 6>/dev/null
20666 ac_configure_extra_args="$ac_configure_extra_args --silent"
20669 _ACEOF
20670 cat >>$CONFIG_STATUS <<_ACEOF
20671 if \$ac_cs_recheck; then
20672 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20673 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20676 _ACEOF
20682 cat >>$CONFIG_STATUS <<\_ACEOF
20683 for ac_config_target in $ac_config_targets
20685 case "$ac_config_target" in
20686 # Handling of arguments.
20687 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20688 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20689 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20690 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20691 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20692 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20693 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20694 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20695 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20696 "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
20697 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20698 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20699 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20700 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20701 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20702 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20703 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20704 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20705 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20706 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20707 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20708 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20709 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20710 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20711 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20712 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20713 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20714 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20715 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20716 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20717 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20718 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20719 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20720 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20721 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20722 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20723 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20724 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20725 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20726 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20727 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20728 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20729 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20730 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20731 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20732 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20733 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20734 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20735 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20736 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20737 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20738 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20739 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20740 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20741 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20742 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20743 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20744 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20745 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20746 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20747 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20748 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20749 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20750 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20751 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20752 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20753 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20754 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20755 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20756 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20757 "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
20758 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20759 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20760 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20761 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20762 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20763 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20764 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20765 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20766 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20767 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20768 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20769 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20770 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20771 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20772 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20773 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20774 "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
20775 "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
20776 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20777 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20778 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20779 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20780 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20781 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20782 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20783 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20784 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20785 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20786 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20787 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20788 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20789 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20790 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20791 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20792 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20793 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20794 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20795 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20796 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20797 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20798 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20799 "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
20800 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20801 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20802 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20803 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20804 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20805 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20806 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20807 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20808 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20809 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20810 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20811 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20812 "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
20813 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20814 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20815 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20816 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20817 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20818 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20819 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20820 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20821 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20822 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20823 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20824 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20825 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20826 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20827 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20828 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20829 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20830 "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
20831 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20832 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20833 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20834 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20835 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20836 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20837 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20838 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20839 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20840 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20841 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20842 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20843 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20844 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20845 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20846 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20847 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20848 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20849 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20850 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20851 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20852 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20853 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20854 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20855 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20856 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20857 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20858 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20859 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20860 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20861 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20862 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20863 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20864 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20865 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20866 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20867 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20868 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20869 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20870 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20871 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20872 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20873 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20874 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20875 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20876 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20877 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20878 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20879 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20880 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20881 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20882 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20883 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20884 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20885 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
20886 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20887 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20888 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20889 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20890 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20891 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20892 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20893 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20894 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20895 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20896 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20897 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20898 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20899 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
20900 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20901 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20902 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20903 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20904 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20905 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20906 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20907 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20908 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20909 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20910 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20911 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20912 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20913 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20914 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20915 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20916 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20917 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20918 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20919 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20920 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20921 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20922 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20923 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20924 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20925 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20926 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20927 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20928 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20929 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20930 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20931 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20932 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20933 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20934 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20935 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20936 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20937 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20938 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20939 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20940 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20941 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20942 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20943 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20944 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20945 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20946 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20947 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20948 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20949 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20950 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20951 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20952 { (exit 1); exit 1; }; };;
20953 esac
20954 done
20956 # If the user did not use the arguments to specify the items to instantiate,
20957 # then the envvar interface is used. Set only those that are not.
20958 # We use the long form for the default assignment because of an extremely
20959 # bizarre bug on SunOS 4.1.3.
20960 if $ac_need_defaults; then
20961 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20962 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20963 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20966 # Have a temporary directory for convenience. Make it in the build tree
20967 # simply because there is no reason to put it here, and in addition,
20968 # creating and moving files from /tmp can sometimes cause problems.
20969 # Create a temporary directory, and hook for its removal unless debugging.
20970 $debug ||
20972 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20973 trap '{ (exit 1); exit 1; }' 1 2 13 15
20976 # Create a (secure) tmp directory for tmp files.
20979 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20980 test -n "$tmp" && test -d "$tmp"
20981 } ||
20983 tmp=./confstat$$-$RANDOM
20984 (umask 077 && mkdir $tmp)
20985 } ||
20987 echo "$me: cannot create a temporary directory in ." >&2
20988 { (exit 1); exit 1; }
20991 _ACEOF
20993 cat >>$CONFIG_STATUS <<_ACEOF
20996 # CONFIG_FILES section.
20999 # No need to generate the scripts if there are no CONFIG_FILES.
21000 # This happens for instance when ./config.status config.h
21001 if test -n "\$CONFIG_FILES"; then
21002 # Protect against being on the right side of a sed subst in config.status.
21003 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21004 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21005 s,@SHELL@,$SHELL,;t t
21006 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21007 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21008 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21009 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21010 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21011 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21012 s,@exec_prefix@,$exec_prefix,;t t
21013 s,@prefix@,$prefix,;t t
21014 s,@program_transform_name@,$program_transform_name,;t t
21015 s,@bindir@,$bindir,;t t
21016 s,@sbindir@,$sbindir,;t t
21017 s,@libexecdir@,$libexecdir,;t t
21018 s,@datadir@,$datadir,;t t
21019 s,@sysconfdir@,$sysconfdir,;t t
21020 s,@sharedstatedir@,$sharedstatedir,;t t
21021 s,@localstatedir@,$localstatedir,;t t
21022 s,@libdir@,$libdir,;t t
21023 s,@includedir@,$includedir,;t t
21024 s,@oldincludedir@,$oldincludedir,;t t
21025 s,@infodir@,$infodir,;t t
21026 s,@mandir@,$mandir,;t t
21027 s,@build_alias@,$build_alias,;t t
21028 s,@host_alias@,$host_alias,;t t
21029 s,@target_alias@,$target_alias,;t t
21030 s,@DEFS@,$DEFS,;t t
21031 s,@ECHO_C@,$ECHO_C,;t t
21032 s,@ECHO_N@,$ECHO_N,;t t
21033 s,@ECHO_T@,$ECHO_T,;t t
21034 s,@LIBS@,$LIBS,;t t
21035 s,@WIN16_FILES@,$WIN16_FILES,;t t
21036 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
21037 s,@DLLDEFS@,$DLLDEFS,;t t
21038 s,@build@,$build,;t t
21039 s,@build_cpu@,$build_cpu,;t t
21040 s,@build_vendor@,$build_vendor,;t t
21041 s,@build_os@,$build_os,;t t
21042 s,@host@,$host,;t t
21043 s,@host_cpu@,$host_cpu,;t t
21044 s,@host_vendor@,$host_vendor,;t t
21045 s,@host_os@,$host_os,;t t
21046 s,@SET_MAKE@,$SET_MAKE,;t t
21047 s,@CC@,$CC,;t t
21048 s,@CFLAGS@,$CFLAGS,;t t
21049 s,@LDFLAGS@,$LDFLAGS,;t t
21050 s,@CPPFLAGS@,$CPPFLAGS,;t t
21051 s,@ac_ct_CC@,$ac_ct_CC,;t t
21052 s,@EXEEXT@,$EXEEXT,;t t
21053 s,@OBJEXT@,$OBJEXT,;t t
21054 s,@CXX@,$CXX,;t t
21055 s,@CXXFLAGS@,$CXXFLAGS,;t t
21056 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21057 s,@CPPBIN@,$CPPBIN,;t t
21058 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
21059 s,@TOOLSDIR@,$TOOLSDIR,;t t
21060 s,@CPP@,$CPP,;t t
21061 s,@X_CFLAGS@,$X_CFLAGS,;t t
21062 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21063 s,@X_LIBS@,$X_LIBS,;t t
21064 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21065 s,@LEX@,$LEX,;t t
21066 s,@LEXLIB@,$LEXLIB,;t t
21067 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
21068 s,@XLEX@,$XLEX,;t t
21069 s,@BISON@,$BISON,;t t
21070 s,@AS@,$AS,;t t
21071 s,@ac_ct_AS@,$ac_ct_AS,;t t
21072 s,@LD@,$LD,;t t
21073 s,@ac_ct_LD@,$ac_ct_LD,;t t
21074 s,@AR@,$AR,;t t
21075 s,@ac_ct_AR@,$ac_ct_AR,;t t
21076 s,@RANLIB@,$RANLIB,;t t
21077 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21078 s,@STRIP@,$STRIP,;t t
21079 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21080 s,@WINDRES@,$WINDRES,;t t
21081 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21082 s,@LN_S@,$LN_S,;t t
21083 s,@LN@,$LN,;t t
21084 s,@EGREP@,$EGREP,;t t
21085 s,@LDCONFIG@,$LDCONFIG,;t t
21086 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21087 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21088 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21089 s,@LINT@,$LINT,;t t
21090 s,@LINTFLAGS@,$LINTFLAGS,;t t
21091 s,@DB2HTML@,$DB2HTML,;t t
21092 s,@DB2PDF@,$DB2PDF,;t t
21093 s,@DB2PS@,$DB2PS,;t t
21094 s,@DB2TXT@,$DB2TXT,;t t
21095 s,@FONTFORGE@,$FONTFORGE,;t t
21096 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
21097 s,@XLIB@,$XLIB,;t t
21098 s,@XFILES@,$XFILES,;t t
21099 s,@OPENGLFILES@,$OPENGLFILES,;t t
21100 s,@GLU32FILES@,$GLU32FILES,;t t
21101 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
21102 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21103 s,@GLUT32FILES@,$GLUT32FILES,;t t
21104 s,@NASLIBS@,$NASLIBS,;t t
21105 s,@CURSESLIBS@,$CURSESLIBS,;t t
21106 s,@sane_devel@,$sane_devel,;t t
21107 s,@SANELIBS@,$SANELIBS,;t t
21108 s,@SANEINCL@,$SANEINCL,;t t
21109 s,@ICULIBS@,$ICULIBS,;t t
21110 s,@ft_devel@,$ft_devel,;t t
21111 s,@ft_devel2@,$ft_devel2,;t t
21112 s,@FREETYPELIBS@,$FREETYPELIBS,;t t
21113 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
21114 s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
21115 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21116 s,@ARTSLIBS@,$ARTSLIBS,;t t
21117 s,@ARTSINCL@,$ARTSINCL,;t t
21118 s,@ALSALIBS@,$ALSALIBS,;t t
21119 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
21120 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
21121 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
21122 s,@DLLEXT@,$DLLEXT,;t t
21123 s,@DLLFLAGS@,$DLLFLAGS,;t t
21124 s,@DLLIBS@,$DLLIBS,;t t
21125 s,@LDSHARED@,$LDSHARED,;t t
21126 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
21127 s,@LIBEXT@,$LIBEXT,;t t
21128 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21129 s,@DLLTOOL@,$DLLTOOL,;t t
21130 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21131 s,@DLLWRAP@,$DLLWRAP,;t t
21132 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
21133 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
21134 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
21135 s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
21136 s,@IOKITLIB@,$IOKITLIB,;t t
21137 s,@CROSSTEST@,$CROSSTEST,;t t
21138 s,@CROSSCC@,$CROSSCC,;t t
21139 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
21140 s,@LDPATH@,$LDPATH,;t t
21141 s,@CRTLIBS@,$CRTLIBS,;t t
21142 s,@SOCKETLIBS@,$SOCKETLIBS,;t t
21143 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21144 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
21145 s,@LDD@,$LDD,;t t
21146 s,@ALLOCA@,$ALLOCA,;t t
21147 s,@LIBOBJS@,$LIBOBJS,;t t
21148 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21149 /@MAKE_RULES@/r $MAKE_RULES
21150 s,@MAKE_RULES@,,;t t
21151 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21152 s,@MAKE_DLL_RULES@,,;t t
21153 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21154 s,@MAKE_TEST_RULES@,,;t t
21155 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21156 s,@MAKE_LIB_RULES@,,;t t
21157 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21158 s,@MAKE_PROG_RULES@,,;t t
21159 CEOF
21161 _ACEOF
21163 cat >>$CONFIG_STATUS <<\_ACEOF
21164 # Split the substitutions into bite-sized pieces for seds with
21165 # small command number limits, like on Digital OSF/1 and HP-UX.
21166 ac_max_sed_lines=48
21167 ac_sed_frag=1 # Number of current file.
21168 ac_beg=1 # First line for current file.
21169 ac_end=$ac_max_sed_lines # Line after last line for current file.
21170 ac_more_lines=:
21171 ac_sed_cmds=
21172 while $ac_more_lines; do
21173 if test $ac_beg -gt 1; then
21174 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21175 else
21176 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21178 if test ! -s $tmp/subs.frag; then
21179 ac_more_lines=false
21180 else
21181 # The purpose of the label and of the branching condition is to
21182 # speed up the sed processing (if there are no `@' at all, there
21183 # is no need to browse any of the substitutions).
21184 # These are the two extra sed commands mentioned above.
21185 (echo ':t
21186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21187 if test -z "$ac_sed_cmds"; then
21188 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21189 else
21190 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21192 ac_sed_frag=`expr $ac_sed_frag + 1`
21193 ac_beg=$ac_end
21194 ac_end=`expr $ac_end + $ac_max_sed_lines`
21196 done
21197 if test -z "$ac_sed_cmds"; then
21198 ac_sed_cmds=cat
21200 fi # test -n "$CONFIG_FILES"
21202 _ACEOF
21203 cat >>$CONFIG_STATUS <<\_ACEOF
21204 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21205 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21206 case $ac_file in
21207 - | *:- | *:-:* ) # input from stdin
21208 cat >$tmp/stdin
21209 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21210 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21211 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21212 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21213 * ) ac_file_in=$ac_file.in ;;
21214 esac
21216 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21217 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21219 X"$ac_file" : 'X\(//\)[^/]' \| \
21220 X"$ac_file" : 'X\(//\)$' \| \
21221 X"$ac_file" : 'X\(/\)' \| \
21222 . : '\(.\)' 2>/dev/null ||
21223 echo X"$ac_file" |
21224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21226 /^X\(\/\/\)$/{ s//\1/; q; }
21227 /^X\(\/\).*/{ s//\1/; q; }
21228 s/.*/./; q'`
21229 { if $as_mkdir_p; then
21230 mkdir -p "$ac_dir"
21231 else
21232 as_dir="$ac_dir"
21233 as_dirs=
21234 while test ! -d "$as_dir"; do
21235 as_dirs="$as_dir $as_dirs"
21236 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21238 X"$as_dir" : 'X\(//\)[^/]' \| \
21239 X"$as_dir" : 'X\(//\)$' \| \
21240 X"$as_dir" : 'X\(/\)' \| \
21241 . : '\(.\)' 2>/dev/null ||
21242 echo X"$as_dir" |
21243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21245 /^X\(\/\/\)$/{ s//\1/; q; }
21246 /^X\(\/\).*/{ s//\1/; q; }
21247 s/.*/./; q'`
21248 done
21249 test ! -n "$as_dirs" || mkdir $as_dirs
21250 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21251 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21252 { (exit 1); exit 1; }; }; }
21254 ac_builddir=.
21256 if test "$ac_dir" != .; then
21257 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21258 # A "../" for each directory in $ac_dir_suffix.
21259 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21260 else
21261 ac_dir_suffix= ac_top_builddir=
21264 case $srcdir in
21265 .) # No --srcdir option. We are building in place.
21266 ac_srcdir=.
21267 if test -z "$ac_top_builddir"; then
21268 ac_top_srcdir=.
21269 else
21270 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21271 fi ;;
21272 [\\/]* | ?:[\\/]* ) # Absolute path.
21273 ac_srcdir=$srcdir$ac_dir_suffix;
21274 ac_top_srcdir=$srcdir ;;
21275 *) # Relative path.
21276 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21277 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21278 esac
21280 # Do not use `cd foo && pwd` to compute absolute paths, because
21281 # the directories may not exist.
21282 case `pwd` in
21283 .) ac_abs_builddir="$ac_dir";;
21285 case "$ac_dir" in
21286 .) ac_abs_builddir=`pwd`;;
21287 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21288 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21289 esac;;
21290 esac
21291 case $ac_abs_builddir in
21292 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21294 case ${ac_top_builddir}. in
21295 .) ac_abs_top_builddir=$ac_abs_builddir;;
21296 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21297 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21298 esac;;
21299 esac
21300 case $ac_abs_builddir in
21301 .) ac_abs_srcdir=$ac_srcdir;;
21303 case $ac_srcdir in
21304 .) ac_abs_srcdir=$ac_abs_builddir;;
21305 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21306 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21307 esac;;
21308 esac
21309 case $ac_abs_builddir in
21310 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21312 case $ac_top_srcdir in
21313 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21314 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21315 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21316 esac;;
21317 esac
21320 case $INSTALL in
21321 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21322 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21323 esac
21325 # Let's still pretend it is `configure' which instantiates (i.e., don't
21326 # use $as_me), people would be surprised to read:
21327 # /* config.h. Generated by config.status. */
21328 if test x"$ac_file" = x-; then
21329 configure_input=
21330 else
21331 configure_input="$ac_file. "
21333 configure_input=$configure_input"Generated from `echo $ac_file_in |
21334 sed 's,.*/,,'` by configure."
21336 # First look for the input files in the build tree, otherwise in the
21337 # src tree.
21338 ac_file_inputs=`IFS=:
21339 for f in $ac_file_in; do
21340 case $f in
21341 -) echo $tmp/stdin ;;
21342 [\\/$]*)
21343 # Absolute (can't be DOS-style, as IFS=:)
21344 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21345 echo "$as_me: error: cannot find input file: $f" >&2;}
21346 { (exit 1); exit 1; }; }
21347 echo "$f";;
21348 *) # Relative
21349 if test -f "$f"; then
21350 # Build tree
21351 echo "$f"
21352 elif test -f "$srcdir/$f"; then
21353 # Source tree
21354 echo "$srcdir/$f"
21355 else
21356 # /dev/null tree
21357 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21358 echo "$as_me: error: cannot find input file: $f" >&2;}
21359 { (exit 1); exit 1; }; }
21360 fi;;
21361 esac
21362 done` || { (exit 1); exit 1; }
21364 if test x"$ac_file" != x-; then
21365 { echo "$as_me:$LINENO: creating $ac_file" >&5
21366 echo "$as_me: creating $ac_file" >&6;}
21367 rm -f "$ac_file"
21369 _ACEOF
21370 cat >>$CONFIG_STATUS <<_ACEOF
21371 sed "$ac_vpsub
21372 $extrasub
21373 _ACEOF
21374 cat >>$CONFIG_STATUS <<\_ACEOF
21376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21377 s,@configure_input@,$configure_input,;t t
21378 s,@srcdir@,$ac_srcdir,;t t
21379 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21380 s,@top_srcdir@,$ac_top_srcdir,;t t
21381 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21382 s,@builddir@,$ac_builddir,;t t
21383 s,@abs_builddir@,$ac_abs_builddir,;t t
21384 s,@top_builddir@,$ac_top_builddir,;t t
21385 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21386 s,@INSTALL@,$ac_INSTALL,;t t
21387 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21388 rm -f $tmp/stdin
21389 if test x"$ac_file" != x-; then
21390 mv $tmp/out $ac_file
21391 else
21392 cat $tmp/out
21393 rm -f $tmp/out
21396 done
21397 _ACEOF
21398 cat >>$CONFIG_STATUS <<\_ACEOF
21401 # CONFIG_HEADER section.
21404 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21405 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21407 # ac_d sets the value in "#define NAME VALUE" lines.
21408 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21409 ac_dB='[ ].*$,\1#\2'
21410 ac_dC=' '
21411 ac_dD=',;t'
21412 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21413 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21414 ac_uB='$,\1#\2define\3'
21415 ac_uC=' '
21416 ac_uD=',;t'
21418 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21419 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21420 case $ac_file in
21421 - | *:- | *:-:* ) # input from stdin
21422 cat >$tmp/stdin
21423 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21424 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21425 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21426 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21427 * ) ac_file_in=$ac_file.in ;;
21428 esac
21430 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21431 echo "$as_me: creating $ac_file" >&6;}
21433 # First look for the input files in the build tree, otherwise in the
21434 # src tree.
21435 ac_file_inputs=`IFS=:
21436 for f in $ac_file_in; do
21437 case $f in
21438 -) echo $tmp/stdin ;;
21439 [\\/$]*)
21440 # Absolute (can't be DOS-style, as IFS=:)
21441 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21442 echo "$as_me: error: cannot find input file: $f" >&2;}
21443 { (exit 1); exit 1; }; }
21444 # Do quote $f, to prevent DOS paths from being IFS'd.
21445 echo "$f";;
21446 *) # Relative
21447 if test -f "$f"; then
21448 # Build tree
21449 echo "$f"
21450 elif test -f "$srcdir/$f"; then
21451 # Source tree
21452 echo "$srcdir/$f"
21453 else
21454 # /dev/null tree
21455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21456 echo "$as_me: error: cannot find input file: $f" >&2;}
21457 { (exit 1); exit 1; }; }
21458 fi;;
21459 esac
21460 done` || { (exit 1); exit 1; }
21461 # Remove the trailing spaces.
21462 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21464 _ACEOF
21466 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21467 # `conftest.undefs', that substitutes the proper values into
21468 # config.h.in to produce config.h. The first handles `#define'
21469 # templates, and the second `#undef' templates.
21470 # And first: Protect against being on the right side of a sed subst in
21471 # config.status. Protect against being in an unquoted here document
21472 # in config.status.
21473 rm -f conftest.defines conftest.undefs
21474 # Using a here document instead of a string reduces the quoting nightmare.
21475 # Putting comments in sed scripts is not portable.
21477 # `end' is used to avoid that the second main sed command (meant for
21478 # 0-ary CPP macros) applies to n-ary macro definitions.
21479 # See the Autoconf documentation for `clear'.
21480 cat >confdef2sed.sed <<\_ACEOF
21481 s/[\\&,]/\\&/g
21482 s,[\\$`],\\&,g
21483 t clear
21484 : clear
21485 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21486 t end
21487 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21488 : end
21489 _ACEOF
21490 # If some macros were called several times there might be several times
21491 # the same #defines, which is useless. Nevertheless, we may not want to
21492 # sort them, since we want the *last* AC-DEFINE to be honored.
21493 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21494 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21495 rm -f confdef2sed.sed
21497 # This sed command replaces #undef with comments. This is necessary, for
21498 # example, in the case of _POSIX_SOURCE, which is predefined and required
21499 # on some systems where configure will not decide to define it.
21500 cat >>conftest.undefs <<\_ACEOF
21501 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21502 _ACEOF
21504 # Break up conftest.defines because some shells have a limit on the size
21505 # of here documents, and old seds have small limits too (100 cmds).
21506 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21507 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21508 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21509 echo ' :' >>$CONFIG_STATUS
21510 rm -f conftest.tail
21511 while grep . conftest.defines >/dev/null
21513 # Write a limited-size here document to $tmp/defines.sed.
21514 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21515 # Speed up: don't consider the non `#define' lines.
21516 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21517 # Work around the forget-to-reset-the-flag bug.
21518 echo 't clr' >>$CONFIG_STATUS
21519 echo ': clr' >>$CONFIG_STATUS
21520 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21521 echo 'CEOF
21522 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21523 rm -f $tmp/in
21524 mv $tmp/out $tmp/in
21525 ' >>$CONFIG_STATUS
21526 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21527 rm -f conftest.defines
21528 mv conftest.tail conftest.defines
21529 done
21530 rm -f conftest.defines
21531 echo ' fi # grep' >>$CONFIG_STATUS
21532 echo >>$CONFIG_STATUS
21534 # Break up conftest.undefs because some shells have a limit on the size
21535 # of here documents, and old seds have small limits too (100 cmds).
21536 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21537 rm -f conftest.tail
21538 while grep . conftest.undefs >/dev/null
21540 # Write a limited-size here document to $tmp/undefs.sed.
21541 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21542 # Speed up: don't consider the non `#undef'
21543 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21544 # Work around the forget-to-reset-the-flag bug.
21545 echo 't clr' >>$CONFIG_STATUS
21546 echo ': clr' >>$CONFIG_STATUS
21547 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21548 echo 'CEOF
21549 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21550 rm -f $tmp/in
21551 mv $tmp/out $tmp/in
21552 ' >>$CONFIG_STATUS
21553 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21554 rm -f conftest.undefs
21555 mv conftest.tail conftest.undefs
21556 done
21557 rm -f conftest.undefs
21559 cat >>$CONFIG_STATUS <<\_ACEOF
21560 # Let's still pretend it is `configure' which instantiates (i.e., don't
21561 # use $as_me), people would be surprised to read:
21562 # /* config.h. Generated by config.status. */
21563 if test x"$ac_file" = x-; then
21564 echo "/* Generated by configure. */" >$tmp/config.h
21565 else
21566 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21568 cat $tmp/in >>$tmp/config.h
21569 rm -f $tmp/in
21570 if test x"$ac_file" != x-; then
21571 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21572 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21573 echo "$as_me: $ac_file is unchanged" >&6;}
21574 else
21575 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21577 X"$ac_file" : 'X\(//\)[^/]' \| \
21578 X"$ac_file" : 'X\(//\)$' \| \
21579 X"$ac_file" : 'X\(/\)' \| \
21580 . : '\(.\)' 2>/dev/null ||
21581 echo X"$ac_file" |
21582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21584 /^X\(\/\/\)$/{ s//\1/; q; }
21585 /^X\(\/\).*/{ s//\1/; q; }
21586 s/.*/./; q'`
21587 { if $as_mkdir_p; then
21588 mkdir -p "$ac_dir"
21589 else
21590 as_dir="$ac_dir"
21591 as_dirs=
21592 while test ! -d "$as_dir"; do
21593 as_dirs="$as_dir $as_dirs"
21594 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21596 X"$as_dir" : 'X\(//\)[^/]' \| \
21597 X"$as_dir" : 'X\(//\)$' \| \
21598 X"$as_dir" : 'X\(/\)' \| \
21599 . : '\(.\)' 2>/dev/null ||
21600 echo X"$as_dir" |
21601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21603 /^X\(\/\/\)$/{ s//\1/; q; }
21604 /^X\(\/\).*/{ s//\1/; q; }
21605 s/.*/./; q'`
21606 done
21607 test ! -n "$as_dirs" || mkdir $as_dirs
21608 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21610 { (exit 1); exit 1; }; }; }
21612 rm -f $ac_file
21613 mv $tmp/config.h $ac_file
21615 else
21616 cat $tmp/config.h
21617 rm -f $tmp/config.h
21619 done
21620 _ACEOF
21621 cat >>$CONFIG_STATUS <<\_ACEOF
21624 # CONFIG_COMMANDS section.
21626 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21627 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21628 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21629 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21630 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21631 X"$ac_dest" : 'X\(//\)[^/]' \| \
21632 X"$ac_dest" : 'X\(//\)$' \| \
21633 X"$ac_dest" : 'X\(/\)' \| \
21634 . : '\(.\)' 2>/dev/null ||
21635 echo X"$ac_dest" |
21636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21638 /^X\(\/\/\)$/{ s//\1/; q; }
21639 /^X\(\/\).*/{ s//\1/; q; }
21640 s/.*/./; q'`
21641 { if $as_mkdir_p; then
21642 mkdir -p "$ac_dir"
21643 else
21644 as_dir="$ac_dir"
21645 as_dirs=
21646 while test ! -d "$as_dir"; do
21647 as_dirs="$as_dir $as_dirs"
21648 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21650 X"$as_dir" : 'X\(//\)[^/]' \| \
21651 X"$as_dir" : 'X\(//\)$' \| \
21652 X"$as_dir" : 'X\(/\)' \| \
21653 . : '\(.\)' 2>/dev/null ||
21654 echo X"$as_dir" |
21655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21657 /^X\(\/\/\)$/{ s//\1/; q; }
21658 /^X\(\/\).*/{ s//\1/; q; }
21659 s/.*/./; q'`
21660 done
21661 test ! -n "$as_dirs" || mkdir $as_dirs
21662 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21663 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21664 { (exit 1); exit 1; }; }; }
21666 ac_builddir=.
21668 if test "$ac_dir" != .; then
21669 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21670 # A "../" for each directory in $ac_dir_suffix.
21671 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21672 else
21673 ac_dir_suffix= ac_top_builddir=
21676 case $srcdir in
21677 .) # No --srcdir option. We are building in place.
21678 ac_srcdir=.
21679 if test -z "$ac_top_builddir"; then
21680 ac_top_srcdir=.
21681 else
21682 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21683 fi ;;
21684 [\\/]* | ?:[\\/]* ) # Absolute path.
21685 ac_srcdir=$srcdir$ac_dir_suffix;
21686 ac_top_srcdir=$srcdir ;;
21687 *) # Relative path.
21688 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21689 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21690 esac
21692 # Do not use `cd foo && pwd` to compute absolute paths, because
21693 # the directories may not exist.
21694 case `pwd` in
21695 .) ac_abs_builddir="$ac_dir";;
21697 case "$ac_dir" in
21698 .) ac_abs_builddir=`pwd`;;
21699 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21700 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21701 esac;;
21702 esac
21703 case $ac_abs_builddir in
21704 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21706 case ${ac_top_builddir}. in
21707 .) ac_abs_top_builddir=$ac_abs_builddir;;
21708 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21709 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21710 esac;;
21711 esac
21712 case $ac_abs_builddir in
21713 .) ac_abs_srcdir=$ac_srcdir;;
21715 case $ac_srcdir in
21716 .) ac_abs_srcdir=$ac_abs_builddir;;
21717 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21718 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21719 esac;;
21720 esac
21721 case $ac_abs_builddir in
21722 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21724 case $ac_top_srcdir in
21725 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21726 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21727 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21728 esac;;
21729 esac
21732 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21733 echo "$as_me: executing $ac_dest commands" >&6;}
21734 case $ac_dest in
21735 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21736 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21737 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21738 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21739 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21740 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21741 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21742 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21743 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21744 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21745 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21746 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21747 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21748 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21749 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21750 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21751 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21752 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21753 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21754 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21755 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21756 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21757 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21758 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21759 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21760 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21761 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21762 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21763 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21764 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21765 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21766 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21767 esac
21768 done
21769 _ACEOF
21771 cat >>$CONFIG_STATUS <<\_ACEOF
21773 { (exit 0); exit 0; }
21774 _ACEOF
21775 chmod +x $CONFIG_STATUS
21776 ac_clean_files=$ac_clean_files_save
21779 # configure is writing to config.log, and then calls config.status.
21780 # config.status does its own redirection, appending to config.log.
21781 # Unfortunately, on DOS this fails, as config.log is still kept open
21782 # by configure, so config.status won't be able to write to it; its
21783 # output is simply discarded. So we exec the FD to /dev/null,
21784 # effectively closing config.log, so it can be properly (re)opened and
21785 # appended to by config.status. When coming back to configure, we
21786 # need to make the FD available again.
21787 if test "$no_create" != yes; then
21788 ac_cs_success=:
21789 ac_config_status_args=
21790 test "$silent" = yes &&
21791 ac_config_status_args="$ac_config_status_args --quiet"
21792 exec 5>/dev/null
21793 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21794 exec 5>>config.log
21795 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21796 # would make configure fail if this is the last instruction.
21797 $ac_cs_success || { (exit 1); exit 1; }
21801 if test "$have_x" = "no"
21802 then
21803 echo
21804 echo "*** Warning: X development files not found. Wine will be built without"
21805 echo "*** X support, which currently does not work, and would probably not be"
21806 echo "*** what you want anyway. You will need to install devel packages of"
21807 echo "*** Xlib/Xfree86 at the very least."
21810 if test "$wine_cv_opengl_version_OK" = "no"
21811 then
21812 echo
21813 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21814 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21817 if test "$wine_cv_msg_freetype" = "yes"
21818 then
21819 echo
21820 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21821 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21822 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21823 echo "*** enable Wine to use TrueType fonts."
21826 echo
21827 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
21828 echo