Fixed a couple of crashes.
[wine.git] / configure
blobd2ec53329f8fd2192074ce4861bc9de5f0410cfd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20040213.
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='20040213'
273 PACKAGE_STRING='Wine 20040213'
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 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 YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX 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 LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS 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 20040213 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 20040213:";;
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
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-opengl do not use OpenGL
871 --without-curses do not use curses
872 --with-wine-tools=<dir> use Wine tools from directory <dir>
873 --with-x use the X Window System
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CXX C++ compiler command
883 CXXFLAGS C++ compiler flags
884 CPP C preprocessor
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <wine-devel@winehq.org>.
890 _ACEOF
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905 ac_dir_suffix= ac_top_builddir=
908 case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961 esac
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 cd "$ac_popdir"
979 done
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984 cat <<\_ACEOF
985 Wine configure 20040213
986 generated by GNU Autoconf 2.59
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992 exit 0
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
999 It was created by Wine $as_me 20040213, which was
1000 generated by GNU Autoconf 2.59. Invocation command line was
1002 $ $0 $@
1004 _ACEOF
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028 _ASUNAME
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036 done
1038 } >&5
1040 cat >&5 <<_ACEOF
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1047 _ACEOF
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1062 for ac_arg
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1095 esac
1096 done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log. We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1109 echo
1111 cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 esac;
1132 echo
1134 cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1180 for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1190 # Predefined preprocessor variables.
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226 for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1233 done
1235 if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1246 else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276 echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278 echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1294 done
1295 if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336 ac_config_headers="$ac_config_headers include/config.h"
1338 ac_aux_dir=
1339 for ac_dir in tools $srcdir/tools; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1353 done
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365 # Check whether --enable-win16 or --disable-win16 was given.
1366 if test "${enable_win16+set}" = set; then
1367 enableval="$enable_win16"
1370 # Check whether --enable-debug or --disable-debug was given.
1371 if test "${enable_debug+set}" = set; then
1372 enableval="$enable_debug"
1375 # Check whether --enable-trace or --disable-trace was given.
1376 if test "${enable_trace+set}" = set; then
1377 enableval="$enable_trace"
1382 # Check whether --with-opengl or --without-opengl was given.
1383 if test "${with_opengl+set}" = set; then
1384 withval="$with_opengl"
1388 # Check whether --with-curses or --without-curses was given.
1389 if test "${with_curses+set}" = set; then
1390 withval="$with_curses"
1394 # Check whether --with-wine-tools or --without-wine-tools was given.
1395 if test "${with_wine_tools+set}" = set; then
1396 withval="$with_wine_tools"
1400 WIN16_FILES="\$(WIN16_FILES)"
1402 WIN16_INSTALL="\$(WIN16_INSTALL)"
1404 if test "x$enable_win16" = "xno"
1405 then
1406 WIN16_FILES=""
1407 WIN16_INSTALL=""
1409 if test "x$enable_debug" = "xno"
1410 then
1412 cat >>confdefs.h <<\_ACEOF
1413 #define NO_DEBUG_MSGS 1
1414 _ACEOF
1417 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1418 then
1420 cat >>confdefs.h <<\_ACEOF
1421 #define NO_TRACE_MSGS 1
1422 _ACEOF
1427 # Make sure we can run config.sub.
1428 $ac_config_sub sun4 >/dev/null 2>&1 ||
1429 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1430 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1431 { (exit 1); exit 1; }; }
1433 echo "$as_me:$LINENO: checking build system type" >&5
1434 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1435 if test "${ac_cv_build+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 ac_cv_build_alias=$build_alias
1439 test -z "$ac_cv_build_alias" &&
1440 ac_cv_build_alias=`$ac_config_guess`
1441 test -z "$ac_cv_build_alias" &&
1442 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1444 { (exit 1); exit 1; }; }
1445 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1446 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1448 { (exit 1); exit 1; }; }
1451 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1452 echo "${ECHO_T}$ac_cv_build" >&6
1453 build=$ac_cv_build
1454 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459 echo "$as_me:$LINENO: checking host system type" >&5
1460 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1461 if test "${ac_cv_host+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464 ac_cv_host_alias=$host_alias
1465 test -z "$ac_cv_host_alias" &&
1466 ac_cv_host_alias=$ac_cv_build_alias
1467 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1468 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1469 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1470 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1474 echo "${ECHO_T}$ac_cv_host" >&6
1475 host=$ac_cv_host
1476 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1482 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1483 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1484 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 cat >conftest.make <<\_ACEOF
1488 all:
1489 @echo 'ac_maketemp="$(MAKE)"'
1490 _ACEOF
1491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1492 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1493 if test -n "$ac_maketemp"; then
1494 eval ac_cv_prog_make_${ac_make}_set=yes
1495 else
1496 eval ac_cv_prog_make_${ac_make}_set=no
1498 rm -f conftest.make
1500 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1501 echo "$as_me:$LINENO: result: yes" >&5
1502 echo "${ECHO_T}yes" >&6
1503 SET_MAKE=
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 SET_MAKE="MAKE=${MAKE-make}"
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "gcc", so it can be a program name with args.
1555 set dummy gcc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="gcc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1575 done
1576 done
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1594 if test -z "$CC"; then
1595 if test -n "$ac_tool_prefix"; then
1596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1597 set dummy ${ac_tool_prefix}cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_CC="${ac_tool_prefix}cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1617 done
1618 done
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624 echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1632 if test -z "$ac_cv_prog_CC"; then
1633 ac_ct_CC=$CC
1634 # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="cc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1655 done
1656 done
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1669 CC=$ac_ct_CC
1670 else
1671 CC="$ac_cv_prog_CC"
1675 if test -z "$CC"; then
1676 # Extract the first word of "cc", so it can be a program name with args.
1677 set dummy cc; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 if test -n "$CC"; then
1684 ac_cv_prog_CC="$CC" # Let the user override the test.
1685 else
1686 ac_prog_rejected=no
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1695 ac_prog_rejected=yes
1696 continue
1698 ac_cv_prog_CC="cc"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1702 done
1703 done
1705 if test $ac_prog_rejected = yes; then
1706 # We found a bogon in the path, so make sure we never use it.
1707 set dummy $ac_cv_prog_CC
1708 shift
1709 if test $# != 0; then
1710 # We chose a different compiler from the bogus one.
1711 # However, it has the same basename, so the bogon will be chosen
1712 # first if we set CC to just the basename; use the full file name.
1713 shift
1714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1719 CC=$ac_cv_prog_CC
1720 if test -n "$CC"; then
1721 echo "$as_me:$LINENO: result: $CC" >&5
1722 echo "${ECHO_T}$CC" >&6
1723 else
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1729 if test -z "$CC"; then
1730 if test -n "$ac_tool_prefix"; then
1731 for ac_prog in cl
1733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 if test -n "$CC"; then
1741 ac_cv_prog_CC="$CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1754 done
1755 done
1759 CC=$ac_cv_prog_CC
1760 if test -n "$CC"; then
1761 echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$CC" && break
1769 done
1771 if test -z "$CC"; then
1772 ac_ct_CC=$CC
1773 for ac_prog in cl
1775 # Extract the first word of "$ac_prog", so it can be a program name with args.
1776 set dummy $ac_prog; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="$ac_prog"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 break 2
1796 done
1797 done
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1810 test -n "$ac_ct_CC" && break
1811 done
1813 CC=$ac_ct_CC
1819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1820 See \`config.log' for more details." >&5
1821 echo "$as_me: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&2;}
1823 { (exit 1); exit 1; }; }
1825 # Provide some information about the compiler.
1826 echo "$as_me:$LINENO:" \
1827 "checking for C compiler version" >&5
1828 ac_compiler=`set X $ac_compile; echo $2`
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1830 (eval $ac_compiler --version </dev/null >&5) 2>&5
1831 ac_status=$?
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1835 (eval $ac_compiler -v </dev/null >&5) 2>&5
1836 ac_status=$?
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1840 (eval $ac_compiler -V </dev/null >&5) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1845 cat >conftest.$ac_ext <<_ACEOF
1846 /* confdefs.h. */
1847 _ACEOF
1848 cat confdefs.h >>conftest.$ac_ext
1849 cat >>conftest.$ac_ext <<_ACEOF
1850 /* end confdefs.h. */
1853 main ()
1857 return 0;
1859 _ACEOF
1860 ac_clean_files_save=$ac_clean_files
1861 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1862 # Try to create an executable without -o first, disregard a.out.
1863 # It will help us diagnose broken compilers, and finding out an intuition
1864 # of exeext.
1865 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1866 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1867 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1868 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1869 (eval $ac_link_default) 2>&5
1870 ac_status=$?
1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872 (exit $ac_status); }; then
1873 # Find the output, starting from the most likely. This scheme is
1874 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1875 # resort.
1877 # Be careful to initialize this variable, since it used to be cached.
1878 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1879 ac_cv_exeext=
1880 # b.out is created by i960 compilers.
1881 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1883 test -f "$ac_file" || continue
1884 case $ac_file in
1885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1887 conftest.$ac_ext )
1888 # This is the source file.
1890 [ab].out )
1891 # We found the default executable, but exeext='' is most
1892 # certainly right.
1893 break;;
1894 *.* )
1895 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 # FIXME: I believe we export ac_cv_exeext for Libtool,
1897 # but it would be cool to find out if it's true. Does anybody
1898 # maintain Libtool? --akim.
1899 export ac_cv_exeext
1900 break;;
1902 break;;
1903 esac
1904 done
1905 else
1906 echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: C compiler cannot create executables
1912 See \`config.log' for more details." >&2;}
1913 { (exit 77); exit 77; }; }
1916 ac_exeext=$ac_cv_exeext
1917 echo "$as_me:$LINENO: result: $ac_file" >&5
1918 echo "${ECHO_T}$ac_file" >&6
1920 # Check the compiler produces executables we can run. If not, either
1921 # the compiler is broken, or we cross compile.
1922 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1923 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1924 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1925 # If not cross compiling, check that we can run a simple program.
1926 if test "$cross_compiling" != yes; then
1927 if { ac_try='./$ac_file'
1928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929 (eval $ac_try) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }; }; then
1933 cross_compiling=no
1934 else
1935 if test "$cross_compiling" = maybe; then
1936 cross_compiling=yes
1937 else
1938 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1939 If you meant to cross compile, use \`--host'.
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }
1948 echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6
1951 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1952 ac_clean_files=$ac_clean_files_save
1953 # Check the compiler produces executables we can run. If not, either
1954 # the compiler is broken, or we cross compile.
1955 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1956 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1957 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1958 echo "${ECHO_T}$cross_compiling" >&6
1960 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1961 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1963 (eval $ac_link) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; then
1967 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1968 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1969 # work properly (i.e., refer to `conftest.exe'), while it won't with
1970 # `rm'.
1971 for ac_file in conftest.exe conftest conftest.*; do
1972 test -f "$ac_file" || continue
1973 case $ac_file in
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1976 export ac_cv_exeext
1977 break;;
1978 * ) break;;
1979 esac
1980 done
1981 else
1982 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1983 See \`config.log' for more details." >&5
1984 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1985 See \`config.log' for more details." >&2;}
1986 { (exit 1); exit 1; }; }
1989 rm -f conftest$ac_cv_exeext
1990 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1991 echo "${ECHO_T}$ac_cv_exeext" >&6
1993 rm -f conftest.$ac_ext
1994 EXEEXT=$ac_cv_exeext
1995 ac_exeext=$EXEEXT
1996 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1997 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1998 if test "${ac_cv_objext+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 cat >conftest.$ac_ext <<_ACEOF
2002 /* confdefs.h. */
2003 _ACEOF
2004 cat confdefs.h >>conftest.$ac_ext
2005 cat >>conftest.$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2009 main ()
2013 return 0;
2015 _ACEOF
2016 rm -f conftest.o conftest.obj
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018 (eval $ac_compile) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; then
2022 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2023 case $ac_file in
2024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2026 break;;
2027 esac
2028 done
2029 else
2030 echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2036 See \`config.log' for more details." >&2;}
2037 { (exit 1); exit 1; }; }
2040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2042 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2043 echo "${ECHO_T}$ac_cv_objext" >&6
2044 OBJEXT=$ac_cv_objext
2045 ac_objext=$OBJEXT
2046 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 cat >conftest.$ac_ext <<_ACEOF
2052 /* confdefs.h. */
2053 _ACEOF
2054 cat confdefs.h >>conftest.$ac_ext
2055 cat >>conftest.$ac_ext <<_ACEOF
2056 /* end confdefs.h. */
2059 main ()
2061 #ifndef __GNUC__
2062 choke me
2063 #endif
2066 return 0;
2068 _ACEOF
2069 rm -f conftest.$ac_objext
2070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>conftest.er1
2072 ac_status=$?
2073 grep -v '^ *+' conftest.er1 >conftest.err
2074 rm -f conftest.er1
2075 cat conftest.err >&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); } &&
2078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 (eval $ac_try) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2090 ac_compiler_gnu=yes
2091 else
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 ac_compiler_gnu=no
2097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2101 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2102 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2103 GCC=`test $ac_compiler_gnu = yes && echo yes`
2104 ac_test_CFLAGS=${CFLAGS+set}
2105 ac_save_CFLAGS=$CFLAGS
2106 CFLAGS="-g"
2107 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2108 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_g+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 cat >conftest.$ac_ext <<_ACEOF
2113 /* confdefs.h. */
2114 _ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h. */
2120 main ()
2124 return 0;
2126 _ACEOF
2127 rm -f conftest.$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129 (eval $ac_compile) 2>conftest.er1
2130 ac_status=$?
2131 grep -v '^ *+' conftest.er1 >conftest.err
2132 rm -f conftest.er1
2133 cat conftest.err >&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); } &&
2136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 (eval $ac_try) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; } &&
2142 { ac_try='test -s conftest.$ac_objext'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 (eval $ac_try) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; }; then
2148 ac_cv_prog_cc_g=yes
2149 else
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2153 ac_cv_prog_cc_g=no
2155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2158 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2159 if test "$ac_test_CFLAGS" = set; then
2160 CFLAGS=$ac_save_CFLAGS
2161 elif test $ac_cv_prog_cc_g = yes; then
2162 if test "$GCC" = yes; then
2163 CFLAGS="-g -O2"
2164 else
2165 CFLAGS="-g"
2167 else
2168 if test "$GCC" = yes; then
2169 CFLAGS="-O2"
2170 else
2171 CFLAGS=
2174 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2175 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179 ac_cv_prog_cc_stdc=no
2180 ac_save_CC=$CC
2181 cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h. */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h. */
2187 #include <stdarg.h>
2188 #include <stdio.h>
2189 #include <sys/types.h>
2190 #include <sys/stat.h>
2191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2192 struct buf { int x; };
2193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2194 static char *e (p, i)
2195 char **p;
2196 int i;
2198 return p[i];
2200 static char *f (char * (*g) (char **, int), char **p, ...)
2202 char *s;
2203 va_list v;
2204 va_start (v,p);
2205 s = g (p, va_arg (v,int));
2206 va_end (v);
2207 return s;
2210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2211 function prototypes and stuff, but not '\xHH' hex character constants.
2212 These don't provoke an error unfortunately, instead are silently treated
2213 as 'x'. The following induces an error, until -std1 is added to get
2214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2215 array size at least. It's necessary to write '\x00'==0 to get something
2216 that's true only with -std1. */
2217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2219 int test (int i, double x);
2220 struct s1 {int (*f) (int a);};
2221 struct s2 {int (*f) (double a);};
2222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2223 int argc;
2224 char **argv;
2226 main ()
2228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2230 return 0;
2232 _ACEOF
2233 # Don't try gcc -ansi; that turns off useful extensions and
2234 # breaks some systems' header files.
2235 # AIX -qlanglvl=ansi
2236 # Ultrix and OSF/1 -std1
2237 # HP-UX 10.20 and later -Ae
2238 # HP-UX older versions -Aa -D_HPUX_SOURCE
2239 # SVR4 -Xc -D__EXTENSIONS__
2240 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2242 CC="$ac_save_CC $ac_arg"
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2246 ac_status=$?
2247 grep -v '^ *+' conftest.er1 >conftest.err
2248 rm -f conftest.er1
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; } &&
2258 { ac_try='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 ac_cv_prog_cc_stdc=$ac_arg
2265 break
2266 else
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2271 rm -f conftest.err conftest.$ac_objext
2272 done
2273 rm -f conftest.$ac_ext conftest.$ac_objext
2274 CC=$ac_save_CC
2278 case "x$ac_cv_prog_cc_stdc" in
2279 x|xno)
2280 echo "$as_me:$LINENO: result: none needed" >&5
2281 echo "${ECHO_T}none needed" >&6 ;;
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2285 CC="$CC $ac_cv_prog_cc_stdc" ;;
2286 esac
2288 # Some people use a C++ compiler to compile C. Since we use `exit',
2289 # in C++ we need to declare it. In case someone uses the same compiler
2290 # for both compiling C and C++ we need to have the C++ compiler decide
2291 # the declaration of exit, since it's the most demanding environment.
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #ifndef __cplusplus
2294 choke me
2295 #endif
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>conftest.er1
2300 ac_status=$?
2301 grep -v '^ *+' conftest.er1 >conftest.err
2302 rm -f conftest.er1
2303 cat conftest.err >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); } &&
2306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 for ac_declaration in \
2319 '' \
2320 'extern "C" void std::exit (int) throw (); using std::exit;' \
2321 'extern "C" void std::exit (int); using std::exit;' \
2322 'extern "C" void exit (int) throw ();' \
2323 'extern "C" void exit (int);' \
2324 'void exit (int);'
2326 cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h. */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2332 $ac_declaration
2333 #include <stdlib.h>
2335 main ()
2337 exit (42);
2339 return 0;
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2368 continue
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2377 $ac_declaration
2379 main ()
2381 exit (42);
2383 return 0;
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 break
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 rm -f conftest*
2416 if test -n "$ac_declaration"; then
2417 echo '#ifdef __cplusplus' >>confdefs.h
2418 echo $ac_declaration >>confdefs.h
2419 echo '#endif' >>confdefs.h
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 ac_ext=cc
2435 ac_cpp='$CXXCPP $CPPFLAGS'
2436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CXX+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 if test -n "$CXX"; then
2450 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2463 done
2464 done
2468 CXX=$ac_cv_prog_CXX
2469 if test -n "$CXX"; then
2470 echo "$as_me:$LINENO: result: $CXX" >&5
2471 echo "${ECHO_T}$CXX" >&6
2472 else
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2477 test -n "$CXX" && break
2478 done
2480 if test -z "$CXX"; then
2481 ac_ct_CXX=$CXX
2482 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2484 # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491 if test -n "$ac_ct_CXX"; then
2492 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_ac_ct_CXX="$ac_prog"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2505 done
2506 done
2510 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2511 if test -n "$ac_ct_CXX"; then
2512 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2513 echo "${ECHO_T}$ac_ct_CXX" >&6
2514 else
2515 echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2519 test -n "$ac_ct_CXX" && break
2520 done
2521 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2523 CXX=$ac_ct_CXX
2527 # Provide some information about the compiler.
2528 echo "$as_me:$LINENO:" \
2529 "checking for C++ compiler version" >&5
2530 ac_compiler=`set X $ac_compile; echo $2`
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2532 (eval $ac_compiler --version </dev/null >&5) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2537 (eval $ac_compiler -v </dev/null >&5) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2542 (eval $ac_compiler -V </dev/null >&5) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }
2547 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2548 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2549 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h. */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2560 main ()
2562 #ifndef __GNUC__
2563 choke me
2564 #endif
2567 return 0;
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_compiler_gnu=yes
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2596 ac_compiler_gnu=no
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604 GXX=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CXXFLAGS=${CXXFLAGS+set}
2606 ac_save_CXXFLAGS=$CXXFLAGS
2607 CXXFLAGS="-g"
2608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cxx_g+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h. */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2621 main ()
2625 return 0;
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>conftest.er1
2631 ac_status=$?
2632 grep -v '^ *+' conftest.er1 >conftest.err
2633 rm -f conftest.er1
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_prog_cxx_g=yes
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2654 ac_cv_prog_cxx_g=no
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2660 if test "$ac_test_CXXFLAGS" = set; then
2661 CXXFLAGS=$ac_save_CXXFLAGS
2662 elif test $ac_cv_prog_cxx_g = yes; then
2663 if test "$GXX" = yes; then
2664 CXXFLAGS="-g -O2"
2665 else
2666 CXXFLAGS="-g"
2668 else
2669 if test "$GXX" = yes; then
2670 CXXFLAGS="-O2"
2671 else
2672 CXXFLAGS=
2675 for ac_declaration in \
2676 '' \
2677 'extern "C" void std::exit (int) throw (); using std::exit;' \
2678 'extern "C" void std::exit (int); using std::exit;' \
2679 'extern "C" void exit (int) throw ();' \
2680 'extern "C" void exit (int);' \
2681 'void exit (int);'
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2689 $ac_declaration
2690 #include <stdlib.h>
2692 main ()
2694 exit (42);
2696 return 0;
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2721 else
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 continue
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2734 $ac_declaration
2736 main ()
2738 exit (42);
2740 return 0;
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745 (eval $ac_compile) 2>conftest.er1
2746 ac_status=$?
2747 grep -v '^ *+' conftest.er1 >conftest.err
2748 rm -f conftest.er1
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 break
2765 else
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772 rm -f conftest*
2773 if test -n "$ac_declaration"; then
2774 echo '#ifdef __cplusplus' >>confdefs.h
2775 echo $ac_declaration >>confdefs.h
2776 echo '#endif' >>confdefs.h
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 if test -n "$CPPBIN"; then
2794 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2807 done
2808 done
2812 CPPBIN=$ac_cv_prog_CPPBIN
2813 if test -n "$CPPBIN"; then
2814 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2815 echo "${ECHO_T}$CPPBIN" >&6
2816 else
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2822 if test -z "$ac_cv_prog_CPPBIN"; then
2823 ac_ct_CPPBIN=$CPPBIN
2824 # Extract the first word of "cpp", so it can be a program name with args.
2825 set dummy cpp; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831 if test -n "$ac_ct_CPPBIN"; then
2832 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_CPPBIN="cpp"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2848 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2851 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2852 if test -n "$ac_ct_CPPBIN"; then
2853 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2854 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2855 else
2856 echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2860 CPPBIN=$ac_ct_CPPBIN
2861 else
2862 CPPBIN="$ac_cv_prog_CPPBIN"
2866 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2867 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2868 if test "${wine_cv_toolsdir+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 if test -z "$with_wine_tools"; then
2872 if test "$cross_compiling" = "yes"; then
2873 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2874 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2875 { (exit 1); exit 1; }; }
2876 else
2877 wine_cv_toolsdir="\$(TOPOBJDIR)"
2879 elif test -d "$with_wine_tools/tools/winebuild"; then
2880 case $with_wine_tools in
2881 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2882 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2883 esac
2884 else
2885 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2886 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2887 { (exit 1); exit 1; }; }
2890 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2891 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2892 TOOLSDIR=$wine_cv_toolsdir
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905 CPP=
2907 if test -z "$CPP"; then
2908 if test "${ac_cv_prog_CPP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 # Double quotes because CPP needs to be expanded
2912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2914 ac_preproc_ok=false
2915 for ac_c_preproc_warn_flag in '' yes
2917 # Use a header file that comes with gcc, so configuring glibc
2918 # with a fresh cross-compiler works.
2919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920 # <limits.h> exists even on freestanding compilers.
2921 # On the NeXT, cc -E runs the code through the compiler's parser,
2922 # not just through cpp. "Syntax error" is here to catch this case.
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2929 #ifdef __STDC__
2930 # include <limits.h>
2931 #else
2932 # include <assert.h>
2933 #endif
2934 Syntax error
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null; then
2944 if test -s conftest.err; then
2945 ac_cpp_err=$ac_c_preproc_warn_flag
2946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947 else
2948 ac_cpp_err=
2950 else
2951 ac_cpp_err=yes
2953 if test -z "$ac_cpp_err"; then
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 # Broken: fails on valid input.
2960 continue
2962 rm -f conftest.err conftest.$ac_ext
2964 # OK, works on sane cases. Now check whether non-existent headers
2965 # can be detected and how.
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <ac_nonexistent.h>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
2984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985 else
2986 ac_cpp_err=
2988 else
2989 ac_cpp_err=yes
2991 if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2993 continue
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 # Passes both tests.
2999 ac_preproc_ok=:
3000 break
3002 rm -f conftest.err conftest.$ac_ext
3004 done
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3008 break
3011 done
3012 ac_cv_prog_CPP=$CPP
3015 CPP=$ac_cv_prog_CPP
3016 else
3017 ac_cv_prog_CPP=$CPP
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041 Syntax error
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } >/dev/null; then
3051 if test -s conftest.err; then
3052 ac_cpp_err=$ac_c_preproc_warn_flag
3053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054 else
3055 ac_cpp_err=
3057 else
3058 ac_cpp_err=yes
3060 if test -z "$ac_cpp_err"; then
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3066 # Broken: fails on valid input.
3067 continue
3069 rm -f conftest.err conftest.$ac_ext
3071 # OK, works on sane cases. Now check whether non-existent headers
3072 # can be detected and how.
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 #include <ac_nonexistent.h>
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092 else
3093 ac_cpp_err=
3095 else
3096 ac_cpp_err=yes
3098 if test -z "$ac_cpp_err"; then
3099 # Broken: success on invalid input.
3100 continue
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3109 rm -f conftest.err conftest.$ac_ext
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3116 else
3117 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 echo "$as_me:$LINENO: checking for X" >&5
3132 echo $ECHO_N "checking for X... $ECHO_C" >&6
3135 # Check whether --with-x or --without-x was given.
3136 if test "${with_x+set}" = set; then
3137 withval="$with_x"
3140 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3141 if test "x$with_x" = xno; then
3142 # The user explicitly disabled X.
3143 have_x=disabled
3144 else
3145 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3146 # Both variables are already set.
3147 have_x=yes
3148 else
3149 if test "${ac_cv_have_x+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 # One or both of the vars are not set, and there is no cached value.
3153 ac_x_includes=no ac_x_libraries=no
3154 rm -fr conftest.dir
3155 if mkdir conftest.dir; then
3156 cd conftest.dir
3157 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3158 cat >Imakefile <<'_ACEOF'
3159 acfindx:
3160 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3161 _ACEOF
3162 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3163 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3164 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3165 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3166 for ac_extension in a so sl; do
3167 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3168 test -f $ac_im_libdir/libX11.$ac_extension; then
3169 ac_im_usrlibdir=$ac_im_libdir; break
3171 done
3172 # Screen out bogus values from the imake configuration. They are
3173 # bogus both because they are the default anyway, and because
3174 # using them would break gcc on systems where it needs fixed includes.
3175 case $ac_im_incroot in
3176 /usr/include) ;;
3177 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3178 esac
3179 case $ac_im_usrlibdir in
3180 /usr/lib | /lib) ;;
3181 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3182 esac
3184 cd ..
3185 rm -fr conftest.dir
3188 # Standard set of common directories for X headers.
3189 # Check X11 before X11Rn because it is often a symlink to the current release.
3190 ac_x_header_dirs='
3191 /usr/X11/include
3192 /usr/X11R6/include
3193 /usr/X11R5/include
3194 /usr/X11R4/include
3196 /usr/include/X11
3197 /usr/include/X11R6
3198 /usr/include/X11R5
3199 /usr/include/X11R4
3201 /usr/local/X11/include
3202 /usr/local/X11R6/include
3203 /usr/local/X11R5/include
3204 /usr/local/X11R4/include
3206 /usr/local/include/X11
3207 /usr/local/include/X11R6
3208 /usr/local/include/X11R5
3209 /usr/local/include/X11R4
3211 /usr/X386/include
3212 /usr/x386/include
3213 /usr/XFree86/include/X11
3215 /usr/include
3216 /usr/local/include
3217 /usr/unsupported/include
3218 /usr/athena/include
3219 /usr/local/x11r5/include
3220 /usr/lpp/Xamples/include
3222 /usr/openwin/include
3223 /usr/openwin/share/include'
3225 if test "$ac_x_includes" = no; then
3226 # Guess where to find include files, by looking for Intrinsic.h.
3227 # First, try using that file with no special directory specified.
3228 cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h. */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #include <X11/Intrinsic.h>
3235 _ACEOF
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3247 else
3248 ac_cpp_err=
3250 else
3251 ac_cpp_err=yes
3253 if test -z "$ac_cpp_err"; then
3254 # We can compile using X headers with no special include directory.
3255 ac_x_includes=
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 for ac_dir in $ac_x_header_dirs; do
3261 if test -r "$ac_dir/X11/Intrinsic.h"; then
3262 ac_x_includes=$ac_dir
3263 break
3265 done
3267 rm -f conftest.err conftest.$ac_ext
3268 fi # $ac_x_includes = no
3270 if test "$ac_x_libraries" = no; then
3271 # Check for the libraries.
3272 # See if we find them without any special options.
3273 # Don't add to $LIBS permanently.
3274 ac_save_LIBS=$LIBS
3275 LIBS="-lXt $LIBS"
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <X11/Intrinsic.h>
3284 main ()
3286 XtMalloc (0)
3288 return 0;
3290 _ACEOF
3291 rm -f conftest.$ac_objext conftest$ac_exeext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3293 (eval $ac_link) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 (eval $ac_try) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; } &&
3306 { ac_try='test -s conftest$ac_exeext'
3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 (eval $ac_try) 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 LIBS=$ac_save_LIBS
3313 # We can link X programs with no special library path.
3314 ac_x_libraries=
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 LIBS=$ac_save_LIBS
3320 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3322 # Don't even attempt the hair of trying to link an X program!
3323 for ac_extension in a so sl; do
3324 if test -r $ac_dir/libXt.$ac_extension; then
3325 ac_x_libraries=$ac_dir
3326 break 2
3328 done
3329 done
3331 rm -f conftest.err conftest.$ac_objext \
3332 conftest$ac_exeext conftest.$ac_ext
3333 fi # $ac_x_libraries = no
3335 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3336 # Didn't find X anywhere. Cache the known absence of X.
3337 ac_cv_have_x="have_x=no"
3338 else
3339 # Record where we found X for the cache.
3340 ac_cv_have_x="have_x=yes \
3341 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3346 eval "$ac_cv_have_x"
3347 fi # $with_x != no
3349 if test "$have_x" != yes; then
3350 echo "$as_me:$LINENO: result: $have_x" >&5
3351 echo "${ECHO_T}$have_x" >&6
3352 no_x=yes
3353 else
3354 # If each of the values was on the command line, it overrides each guess.
3355 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3356 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3357 # Update the cache value to reflect the command line values.
3358 ac_cv_have_x="have_x=yes \
3359 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3360 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3361 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3364 if test "$no_x" = yes; then
3365 # Not all programs may use this symbol, but it does not hurt to define it.
3367 cat >>confdefs.h <<\_ACEOF
3368 #define X_DISPLAY_MISSING 1
3369 _ACEOF
3371 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3372 else
3373 if test -n "$x_includes"; then
3374 X_CFLAGS="$X_CFLAGS -I$x_includes"
3377 # It would also be nice to do this for all -L options, not just this one.
3378 if test -n "$x_libraries"; then
3379 X_LIBS="$X_LIBS -L$x_libraries"
3380 # For Solaris; some versions of Sun CC require a space after -R and
3381 # others require no space. Words are not sufficient . . . .
3382 case `(uname -sr) 2>/dev/null` in
3383 "SunOS 5"*)
3384 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3385 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3386 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3395 main ()
3399 return 0;
3401 _ACEOF
3402 rm -f conftest.$ac_objext conftest$ac_exeext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3404 (eval $ac_link) 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; } &&
3417 { ac_try='test -s conftest$ac_exeext'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 (eval $ac_try) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3423 ac_R_nospace=yes
3424 else
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 ac_R_nospace=no
3430 rm -f conftest.err conftest.$ac_objext \
3431 conftest$ac_exeext conftest.$ac_ext
3432 if test $ac_R_nospace = yes; then
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3435 X_LIBS="$X_LIBS -R$x_libraries"
3436 else
3437 LIBS="$ac_xsave_LIBS -R $x_libraries"
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3446 main ()
3450 return 0;
3452 _ACEOF
3453 rm -f conftest.$ac_objext conftest$ac_exeext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3455 (eval $ac_link) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try='test -s conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_R_space=yes
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 ac_R_space=no
3481 rm -f conftest.err conftest.$ac_objext \
3482 conftest$ac_exeext conftest.$ac_ext
3483 if test $ac_R_space = yes; then
3484 echo "$as_me:$LINENO: result: yes" >&5
3485 echo "${ECHO_T}yes" >&6
3486 X_LIBS="$X_LIBS -R $x_libraries"
3487 else
3488 echo "$as_me:$LINENO: result: neither works" >&5
3489 echo "${ECHO_T}neither works" >&6
3492 LIBS=$ac_xsave_LIBS
3493 esac
3496 # Check for system-dependent libraries X programs must link with.
3497 # Do this before checking for the system-independent R6 libraries
3498 # (-lICE), since we may need -lsocket or whatever for X linking.
3500 if test "$ISC" = yes; then
3501 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3502 else
3503 # Martyn Johnson says this is needed for Ultrix, if the X
3504 # libraries were built with DECnet support. And Karl Berry says
3505 # the Alpha needs dnet_stub (dnet does not exist).
3506 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3514 /* Override any gcc2 internal prototype to avoid an error. */
3515 #ifdef __cplusplus
3516 extern "C"
3517 #endif
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3520 char XOpenDisplay ();
3522 main ()
3524 XOpenDisplay ();
3526 return 0;
3528 _ACEOF
3529 rm -f conftest.$ac_objext conftest$ac_exeext
3530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3531 (eval $ac_link) 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 (eval $ac_try) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest$ac_exeext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 (eval $ac_try) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3551 else
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3556 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3557 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 ac_check_lib_save_LIBS=$LIBS
3561 LIBS="-ldnet $LIBS"
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h. */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3569 /* Override any gcc2 internal prototype to avoid an error. */
3570 #ifdef __cplusplus
3571 extern "C"
3572 #endif
3573 /* We use char because int might match the return type of a gcc2
3574 builtin and then its argument prototype would still apply. */
3575 char dnet_ntoa ();
3577 main ()
3579 dnet_ntoa ();
3581 return 0;
3583 _ACEOF
3584 rm -f conftest.$ac_objext conftest$ac_exeext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3586 (eval $ac_link) 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } &&
3593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; } &&
3599 { ac_try='test -s conftest$ac_exeext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 ac_cv_lib_dnet_dnet_ntoa=yes
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 ac_cv_lib_dnet_dnet_ntoa=no
3612 rm -f conftest.err conftest.$ac_objext \
3613 conftest$ac_exeext conftest.$ac_ext
3614 LIBS=$ac_check_lib_save_LIBS
3616 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3617 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3618 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3619 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3622 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3623 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3624 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3625 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 ac_check_lib_save_LIBS=$LIBS
3629 LIBS="-ldnet_stub $LIBS"
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3637 /* Override any gcc2 internal prototype to avoid an error. */
3638 #ifdef __cplusplus
3639 extern "C"
3640 #endif
3641 /* We use char because int might match the return type of a gcc2
3642 builtin and then its argument prototype would still apply. */
3643 char dnet_ntoa ();
3645 main ()
3647 dnet_ntoa ();
3649 return 0;
3651 _ACEOF
3652 rm -f conftest.$ac_objext conftest$ac_exeext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654 (eval $ac_link) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest$ac_exeext'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3674 else
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 ac_cv_lib_dnet_stub_dnet_ntoa=no
3680 rm -f conftest.err conftest.$ac_objext \
3681 conftest$ac_exeext conftest.$ac_ext
3682 LIBS=$ac_check_lib_save_LIBS
3684 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3685 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3686 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3687 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3692 rm -f conftest.err conftest.$ac_objext \
3693 conftest$ac_exeext conftest.$ac_ext
3694 LIBS="$ac_xsave_LIBS"
3696 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3697 # to get the SysV transport functions.
3698 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3699 # needs -lnsl.
3700 # The nsl library prevents programs from opening the X display
3701 # on Irix 5.2, according to T.E. Dickey.
3702 # The functions gethostbyname, getservbyname, and inet_addr are
3703 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3704 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3705 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3706 if test "${ac_cv_func_gethostbyname+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3717 #define gethostbyname innocuous_gethostbyname
3719 /* System header to define __stub macros and hopefully few prototypes,
3720 which can conflict with char gethostbyname (); below.
3721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722 <limits.h> exists even on freestanding compilers. */
3724 #ifdef __STDC__
3725 # include <limits.h>
3726 #else
3727 # include <assert.h>
3728 #endif
3730 #undef gethostbyname
3732 /* Override any gcc2 internal prototype to avoid an error. */
3733 #ifdef __cplusplus
3734 extern "C"
3736 #endif
3737 /* We use char because int might match the return type of a gcc2
3738 builtin and then its argument prototype would still apply. */
3739 char gethostbyname ();
3740 /* The GNU C library defines this for functions which it implements
3741 to always fail with ENOSYS. Some functions are actually named
3742 something starting with __ and the normal name is an alias. */
3743 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3744 choke me
3745 #else
3746 char (*f) () = gethostbyname;
3747 #endif
3748 #ifdef __cplusplus
3750 #endif
3753 main ()
3755 return f != gethostbyname;
3757 return 0;
3759 _ACEOF
3760 rm -f conftest.$ac_objext conftest$ac_exeext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3762 (eval $ac_link) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; } &&
3775 { ac_try='test -s conftest$ac_exeext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 ac_cv_func_gethostbyname=yes
3782 else
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3786 ac_cv_func_gethostbyname=no
3788 rm -f conftest.err conftest.$ac_objext \
3789 conftest$ac_exeext conftest.$ac_ext
3791 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3792 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3794 if test $ac_cv_func_gethostbyname = no; then
3795 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3796 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3797 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 ac_check_lib_save_LIBS=$LIBS
3801 LIBS="-lnsl $LIBS"
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 #ifdef __cplusplus
3811 extern "C"
3812 #endif
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3815 char gethostbyname ();
3817 main ()
3819 gethostbyname ();
3821 return 0;
3823 _ACEOF
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826 (eval $ac_link) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest$ac_exeext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_cv_lib_nsl_gethostbyname=yes
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_cv_lib_nsl_gethostbyname=no
3852 rm -f conftest.err conftest.$ac_objext \
3853 conftest$ac_exeext conftest.$ac_ext
3854 LIBS=$ac_check_lib_save_LIBS
3856 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3857 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3858 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3862 if test $ac_cv_lib_nsl_gethostbyname = no; then
3863 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3864 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3865 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 ac_check_lib_save_LIBS=$LIBS
3869 LIBS="-lbsd $LIBS"
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3877 /* Override any gcc2 internal prototype to avoid an error. */
3878 #ifdef __cplusplus
3879 extern "C"
3880 #endif
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3883 char gethostbyname ();
3885 main ()
3887 gethostbyname ();
3889 return 0;
3891 _ACEOF
3892 rm -f conftest.$ac_objext conftest$ac_exeext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894 (eval $ac_link) 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 (eval $ac_try) 2>&5
3904 ac_status=$?
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; } &&
3907 { ac_try='test -s conftest$ac_exeext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 ac_cv_lib_bsd_gethostbyname=yes
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 ac_cv_lib_bsd_gethostbyname=no
3920 rm -f conftest.err conftest.$ac_objext \
3921 conftest$ac_exeext conftest.$ac_ext
3922 LIBS=$ac_check_lib_save_LIBS
3924 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3925 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3926 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3927 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3933 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3934 # socket/setsockopt and other routines are undefined under SCO ODT
3935 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3936 # on later versions), says Simon Leinen: it contains gethostby*
3937 # variants that don't use the name server (or something). -lsocket
3938 # must be given before -lnsl if both are needed. We assume that
3939 # if connect needs -lnsl, so does gethostbyname.
3940 echo "$as_me:$LINENO: checking for connect" >&5
3941 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3942 if test "${ac_cv_func_connect+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3953 #define connect innocuous_connect
3955 /* System header to define __stub macros and hopefully few prototypes,
3956 which can conflict with char connect (); below.
3957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958 <limits.h> exists even on freestanding compilers. */
3960 #ifdef __STDC__
3961 # include <limits.h>
3962 #else
3963 # include <assert.h>
3964 #endif
3966 #undef connect
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 #ifdef __cplusplus
3970 extern "C"
3972 #endif
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3975 char connect ();
3976 /* The GNU C library defines this for functions which it implements
3977 to always fail with ENOSYS. Some functions are actually named
3978 something starting with __ and the normal name is an alias. */
3979 #if defined (__stub_connect) || defined (__stub___connect)
3980 choke me
3981 #else
3982 char (*f) () = connect;
3983 #endif
3984 #ifdef __cplusplus
3986 #endif
3989 main ()
3991 return f != connect;
3993 return 0;
3995 _ACEOF
3996 rm -f conftest.$ac_objext conftest$ac_exeext
3997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998 (eval $ac_link) 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_cv_func_connect=yes
4018 else
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 ac_cv_func_connect=no
4024 rm -f conftest.err conftest.$ac_objext \
4025 conftest$ac_exeext conftest.$ac_ext
4027 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4028 echo "${ECHO_T}$ac_cv_func_connect" >&6
4030 if test $ac_cv_func_connect = no; then
4031 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4032 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4033 if test "${ac_cv_lib_socket_connect+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036 ac_check_lib_save_LIBS=$LIBS
4037 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4038 cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h. */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4045 /* Override any gcc2 internal prototype to avoid an error. */
4046 #ifdef __cplusplus
4047 extern "C"
4048 #endif
4049 /* We use char because int might match the return type of a gcc2
4050 builtin and then its argument prototype would still apply. */
4051 char connect ();
4053 main ()
4055 connect ();
4057 return 0;
4059 _ACEOF
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest$ac_exeext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 ac_cv_lib_socket_connect=yes
4082 else
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 ac_cv_lib_socket_connect=no
4088 rm -f conftest.err conftest.$ac_objext \
4089 conftest$ac_exeext conftest.$ac_ext
4090 LIBS=$ac_check_lib_save_LIBS
4092 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4093 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4094 if test $ac_cv_lib_socket_connect = yes; then
4095 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4100 # Guillermo Gomez says -lposix is necessary on A/UX.
4101 echo "$as_me:$LINENO: checking for remove" >&5
4102 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4103 if test "${ac_cv_func_remove+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h. */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4114 #define remove innocuous_remove
4116 /* System header to define __stub macros and hopefully few prototypes,
4117 which can conflict with char remove (); below.
4118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119 <limits.h> exists even on freestanding compilers. */
4121 #ifdef __STDC__
4122 # include <limits.h>
4123 #else
4124 # include <assert.h>
4125 #endif
4127 #undef remove
4129 /* Override any gcc2 internal prototype to avoid an error. */
4130 #ifdef __cplusplus
4131 extern "C"
4133 #endif
4134 /* We use char because int might match the return type of a gcc2
4135 builtin and then its argument prototype would still apply. */
4136 char remove ();
4137 /* The GNU C library defines this for functions which it implements
4138 to always fail with ENOSYS. Some functions are actually named
4139 something starting with __ and the normal name is an alias. */
4140 #if defined (__stub_remove) || defined (__stub___remove)
4141 choke me
4142 #else
4143 char (*f) () = remove;
4144 #endif
4145 #ifdef __cplusplus
4147 #endif
4150 main ()
4152 return f != remove;
4154 return 0;
4156 _ACEOF
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest$ac_exeext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 ac_cv_func_remove=yes
4179 else
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 ac_cv_func_remove=no
4185 rm -f conftest.err conftest.$ac_objext \
4186 conftest$ac_exeext conftest.$ac_ext
4188 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4189 echo "${ECHO_T}$ac_cv_func_remove" >&6
4191 if test $ac_cv_func_remove = no; then
4192 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4193 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4194 if test "${ac_cv_lib_posix_remove+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 ac_check_lib_save_LIBS=$LIBS
4198 LIBS="-lposix $LIBS"
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4206 /* Override any gcc2 internal prototype to avoid an error. */
4207 #ifdef __cplusplus
4208 extern "C"
4209 #endif
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212 char remove ();
4214 main ()
4216 remove ();
4218 return 0;
4220 _ACEOF
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223 (eval $ac_link) 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest$ac_exeext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_cv_lib_posix_remove=yes
4243 else
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 ac_cv_lib_posix_remove=no
4249 rm -f conftest.err conftest.$ac_objext \
4250 conftest$ac_exeext conftest.$ac_ext
4251 LIBS=$ac_check_lib_save_LIBS
4253 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4254 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4255 if test $ac_cv_lib_posix_remove = yes; then
4256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4261 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4262 echo "$as_me:$LINENO: checking for shmat" >&5
4263 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4264 if test "${ac_cv_func_shmat+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4275 #define shmat innocuous_shmat
4277 /* System header to define __stub macros and hopefully few prototypes,
4278 which can conflict with char shmat (); below.
4279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280 <limits.h> exists even on freestanding compilers. */
4282 #ifdef __STDC__
4283 # include <limits.h>
4284 #else
4285 # include <assert.h>
4286 #endif
4288 #undef shmat
4290 /* Override any gcc2 internal prototype to avoid an error. */
4291 #ifdef __cplusplus
4292 extern "C"
4294 #endif
4295 /* We use char because int might match the return type of a gcc2
4296 builtin and then its argument prototype would still apply. */
4297 char shmat ();
4298 /* The GNU C library defines this for functions which it implements
4299 to always fail with ENOSYS. Some functions are actually named
4300 something starting with __ and the normal name is an alias. */
4301 #if defined (__stub_shmat) || defined (__stub___shmat)
4302 choke me
4303 #else
4304 char (*f) () = shmat;
4305 #endif
4306 #ifdef __cplusplus
4308 #endif
4311 main ()
4313 return f != shmat;
4315 return 0;
4317 _ACEOF
4318 rm -f conftest.$ac_objext conftest$ac_exeext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4320 (eval $ac_link) 2>conftest.er1
4321 ac_status=$?
4322 grep -v '^ *+' conftest.er1 >conftest.err
4323 rm -f conftest.er1
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest$ac_exeext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 (eval $ac_try) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 ac_cv_func_shmat=yes
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_cv_func_shmat=no
4346 rm -f conftest.err conftest.$ac_objext \
4347 conftest$ac_exeext conftest.$ac_ext
4349 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4350 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4352 if test $ac_cv_func_shmat = no; then
4353 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4354 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4355 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 ac_check_lib_save_LIBS=$LIBS
4359 LIBS="-lipc $LIBS"
4360 cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h. */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4367 /* Override any gcc2 internal prototype to avoid an error. */
4368 #ifdef __cplusplus
4369 extern "C"
4370 #endif
4371 /* We use char because int might match the return type of a gcc2
4372 builtin and then its argument prototype would still apply. */
4373 char shmat ();
4375 main ()
4377 shmat ();
4379 return 0;
4381 _ACEOF
4382 rm -f conftest.$ac_objext conftest$ac_exeext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4384 (eval $ac_link) 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest$ac_exeext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 ac_cv_lib_ipc_shmat=yes
4404 else
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 ac_cv_lib_ipc_shmat=no
4410 rm -f conftest.err conftest.$ac_objext \
4411 conftest$ac_exeext conftest.$ac_ext
4412 LIBS=$ac_check_lib_save_LIBS
4414 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4415 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4416 if test $ac_cv_lib_ipc_shmat = yes; then
4417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4423 # Check for libraries that X11R6 Xt/Xaw programs need.
4424 ac_save_LDFLAGS=$LDFLAGS
4425 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4426 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4427 # check for ICE first), but we must link in the order -lSM -lICE or
4428 # we get undefined symbols. So assume we have SM if we have ICE.
4429 # These have to be linked with before -lX11, unlike the other
4430 # libraries we check for below, so use a different variable.
4431 # John Interrante, Karl Berry
4432 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4433 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4434 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 ac_check_lib_save_LIBS=$LIBS
4438 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 #ifdef __cplusplus
4448 extern "C"
4449 #endif
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4452 char IceConnectionNumber ();
4454 main ()
4456 IceConnectionNumber ();
4458 return 0;
4460 _ACEOF
4461 rm -f conftest.$ac_objext conftest$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; } &&
4476 { ac_try='test -s conftest$ac_exeext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 ac_cv_lib_ICE_IceConnectionNumber=yes
4483 else
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 ac_cv_lib_ICE_IceConnectionNumber=no
4489 rm -f conftest.err conftest.$ac_objext \
4490 conftest$ac_exeext conftest.$ac_ext
4491 LIBS=$ac_check_lib_save_LIBS
4493 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4494 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4495 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4496 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4499 LDFLAGS=$ac_save_LDFLAGS
4503 for ac_prog in 'bison -y' byacc
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4509 if test "${ac_cv_prog_YACC+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 if test -n "$YACC"; then
4513 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_YACC="$ac_prog"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4526 done
4527 done
4531 YACC=$ac_cv_prog_YACC
4532 if test -n "$YACC"; then
4533 echo "$as_me:$LINENO: result: $YACC" >&5
4534 echo "${ECHO_T}$YACC" >&6
4535 else
4536 echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6
4540 test -n "$YACC" && break
4541 done
4542 test -n "$YACC" || YACC="yacc"
4544 for ac_prog in flex lex
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy $ac_prog; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_LEX+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 if test -n "$LEX"; then
4554 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_LEX="$ac_prog"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4572 LEX=$ac_cv_prog_LEX
4573 if test -n "$LEX"; then
4574 echo "$as_me:$LINENO: result: $LEX" >&5
4575 echo "${ECHO_T}$LEX" >&6
4576 else
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4581 test -n "$LEX" && break
4582 done
4583 test -n "$LEX" || LEX=":"
4585 if test -z "$LEXLIB"
4586 then
4587 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4588 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4589 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592 ac_check_lib_save_LIBS=$LIBS
4593 LIBS="-lfl $LIBS"
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4601 /* Override any gcc2 internal prototype to avoid an error. */
4602 #ifdef __cplusplus
4603 extern "C"
4604 #endif
4605 /* We use char because int might match the return type of a gcc2
4606 builtin and then its argument prototype would still apply. */
4607 char yywrap ();
4609 main ()
4611 yywrap ();
4613 return 0;
4615 _ACEOF
4616 rm -f conftest.$ac_objext conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest$ac_exeext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 ac_cv_lib_fl_yywrap=yes
4638 else
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 ac_cv_lib_fl_yywrap=no
4644 rm -f conftest.err conftest.$ac_objext \
4645 conftest$ac_exeext conftest.$ac_ext
4646 LIBS=$ac_check_lib_save_LIBS
4648 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4649 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4650 if test $ac_cv_lib_fl_yywrap = yes; then
4651 LEXLIB="-lfl"
4652 else
4653 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4654 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4655 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 ac_check_lib_save_LIBS=$LIBS
4659 LIBS="-ll $LIBS"
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4667 /* Override any gcc2 internal prototype to avoid an error. */
4668 #ifdef __cplusplus
4669 extern "C"
4670 #endif
4671 /* We use char because int might match the return type of a gcc2
4672 builtin and then its argument prototype would still apply. */
4673 char yywrap ();
4675 main ()
4677 yywrap ();
4679 return 0;
4681 _ACEOF
4682 rm -f conftest.$ac_objext conftest$ac_exeext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4684 (eval $ac_link) 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; } &&
4697 { ac_try='test -s conftest$ac_exeext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 ac_cv_lib_l_yywrap=yes
4704 else
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 ac_cv_lib_l_yywrap=no
4710 rm -f conftest.err conftest.$ac_objext \
4711 conftest$ac_exeext conftest.$ac_ext
4712 LIBS=$ac_check_lib_save_LIBS
4714 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4715 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4716 if test $ac_cv_lib_l_yywrap = yes; then
4717 LEXLIB="-ll"
4724 if test "x$LEX" != "x:"; then
4725 echo "$as_me:$LINENO: checking lex output file root" >&5
4726 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4727 if test "${ac_cv_prog_lex_root+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730 # The minimal lex program is just a single line: %%. But some broken lexes
4731 # (Solaris, I think it was) want two %% lines, so accommodate them.
4732 cat >conftest.l <<_ACEOF
4735 _ACEOF
4736 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4737 (eval $LEX conftest.l) 2>&5
4738 ac_status=$?
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }
4741 if test -f lex.yy.c; then
4742 ac_cv_prog_lex_root=lex.yy
4743 elif test -f lexyy.c; then
4744 ac_cv_prog_lex_root=lexyy
4745 else
4746 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4747 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4748 { (exit 1); exit 1; }; }
4751 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4752 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4753 rm -f conftest.l
4754 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4756 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4757 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4758 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 # POSIX says lex can declare yytext either as a pointer or an array; the
4762 # default is implementation-dependent. Figure out which it is, since
4763 # not all implementations provide the %pointer and %array declarations.
4764 ac_cv_prog_lex_yytext_pointer=no
4765 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4766 ac_save_LIBS=$LIBS
4767 LIBS="$LIBS $LEXLIB"
4768 cat >conftest.$ac_ext <<_ACEOF
4769 `cat $LEX_OUTPUT_ROOT.c`
4770 _ACEOF
4771 rm -f conftest.$ac_objext conftest$ac_exeext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4773 (eval $ac_link) 2>conftest.er1
4774 ac_status=$?
4775 grep -v '^ *+' conftest.er1 >conftest.err
4776 rm -f conftest.er1
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; } &&
4786 { ac_try='test -s conftest$ac_exeext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 (eval $ac_try) 2>&5
4789 ac_status=$?
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 ac_cv_prog_lex_yytext_pointer=yes
4793 else
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4798 rm -f conftest.err conftest.$ac_objext \
4799 conftest$ac_exeext conftest.$ac_ext
4800 LIBS=$ac_save_LIBS
4801 rm -f "${LEX_OUTPUT_ROOT}.c"
4804 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4805 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4806 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4808 cat >>confdefs.h <<\_ACEOF
4809 #define YYTEXT_POINTER 1
4810 _ACEOF
4816 for ac_prog in $YACC bison yacc
4818 # Extract the first word of "$ac_prog", so it can be a program name with args.
4819 set dummy $ac_prog; ac_word=$2
4820 echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822 if test "${ac_cv_prog_XYACC+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 if test -n "$XYACC"; then
4826 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835 ac_cv_prog_XYACC="$ac_prog"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4839 done
4840 done
4844 XYACC=$ac_cv_prog_XYACC
4845 if test -n "$XYACC"; then
4846 echo "$as_me:$LINENO: result: $XYACC" >&5
4847 echo "${ECHO_T}$XYACC" >&6
4848 else
4849 echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6
4853 test -n "$XYACC" && break
4854 done
4855 test -n "$XYACC" || XYACC="none"
4857 if test "$XYACC" = "none"
4858 then
4859 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4860 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4861 { (exit 1); exit 1; }; }
4863 for ac_prog in $LEX flex lex
4865 # Extract the first word of "$ac_prog", so it can be a program name with args.
4866 set dummy $ac_prog; ac_word=$2
4867 echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4869 if test "${ac_cv_prog_XLEX+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872 if test -n "$XLEX"; then
4873 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_XLEX="$ac_prog"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4886 done
4887 done
4891 XLEX=$ac_cv_prog_XLEX
4892 if test -n "$XLEX"; then
4893 echo "$as_me:$LINENO: result: $XLEX" >&5
4894 echo "${ECHO_T}$XLEX" >&6
4895 else
4896 echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6
4900 test -n "$XLEX" && break
4901 done
4902 test -n "$XLEX" || XLEX="none"
4904 if test "$XLEX" = "none"
4905 then
4906 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4907 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4908 { (exit 1); exit 1; }; }
4911 if test -n "$ac_tool_prefix"; then
4912 for ac_prog in gas as
4914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4916 echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4918 if test "${ac_cv_prog_AS+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921 if test -n "$AS"; then
4922 ac_cv_prog_AS="$AS" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4935 done
4936 done
4940 AS=$ac_cv_prog_AS
4941 if test -n "$AS"; then
4942 echo "$as_me:$LINENO: result: $AS" >&5
4943 echo "${ECHO_T}$AS" >&6
4944 else
4945 echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6
4949 test -n "$AS" && break
4950 done
4952 if test -z "$AS"; then
4953 ac_ct_AS=$AS
4954 for ac_prog in gas as
4956 # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy $ac_prog; ac_word=$2
4958 echo "$as_me:$LINENO: checking for $ac_word" >&5
4959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4960 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4963 if test -n "$ac_ct_AS"; then
4964 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_ac_ct_AS="$ac_prog"
4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4982 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4983 if test -n "$ac_ct_AS"; then
4984 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4985 echo "${ECHO_T}$ac_ct_AS" >&6
4986 else
4987 echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6
4991 test -n "$ac_ct_AS" && break
4992 done
4993 test -n "$ac_ct_AS" || ac_ct_AS="as"
4995 AS=$ac_ct_AS
4998 if test -n "$ac_tool_prefix"; then
4999 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5000 set dummy ${ac_tool_prefix}ld; ac_word=$2
5001 echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5003 if test "${ac_cv_prog_LD+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 if test -n "$LD"; then
5007 ac_cv_prog_LD="$LD" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016 ac_cv_prog_LD="${ac_tool_prefix}ld"
5017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5020 done
5021 done
5025 LD=$ac_cv_prog_LD
5026 if test -n "$LD"; then
5027 echo "$as_me:$LINENO: result: $LD" >&5
5028 echo "${ECHO_T}$LD" >&6
5029 else
5030 echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6
5035 if test -z "$ac_cv_prog_LD"; then
5036 ac_ct_LD=$LD
5037 # Extract the first word of "ld", so it can be a program name with args.
5038 set dummy ld; ac_word=$2
5039 echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 if test -n "$ac_ct_LD"; then
5045 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_ac_ct_LD="ld"
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5058 done
5059 done
5061 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5064 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5065 if test -n "$ac_ct_LD"; then
5066 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5067 echo "${ECHO_T}$ac_ct_LD" >&6
5068 else
5069 echo "$as_me:$LINENO: result: no" >&5
5070 echo "${ECHO_T}no" >&6
5073 LD=$ac_ct_LD
5074 else
5075 LD="$ac_cv_prog_LD"
5078 if test -n "$ac_tool_prefix"; then
5079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5080 set dummy ${ac_tool_prefix}ar; ac_word=$2
5081 echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5083 if test "${ac_cv_prog_AR+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 if test -n "$AR"; then
5087 ac_cv_prog_AR="$AR" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096 ac_cv_prog_AR="${ac_tool_prefix}ar"
5097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5100 done
5101 done
5105 AR=$ac_cv_prog_AR
5106 if test -n "$AR"; then
5107 echo "$as_me:$LINENO: result: $AR" >&5
5108 echo "${ECHO_T}$AR" >&6
5109 else
5110 echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6
5115 if test -z "$ac_cv_prog_AR"; then
5116 ac_ct_AR=$AR
5117 # Extract the first word of "ar", so it can be a program name with args.
5118 set dummy ar; ac_word=$2
5119 echo "$as_me:$LINENO: checking for $ac_word" >&5
5120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5121 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 if test -n "$ac_ct_AR"; then
5125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134 ac_cv_prog_ac_ct_AR="ar"
5135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5138 done
5139 done
5141 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5145 if test -n "$ac_ct_AR"; then
5146 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5147 echo "${ECHO_T}$ac_ct_AR" >&6
5148 else
5149 echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6
5153 AR=$ac_ct_AR
5154 else
5155 AR="$ac_cv_prog_AR"
5158 if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5160 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5161 echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5163 if test "${ac_cv_prog_RANLIB+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 if test -n "$RANLIB"; then
5167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5180 done
5181 done
5185 RANLIB=$ac_cv_prog_RANLIB
5186 if test -n "$RANLIB"; then
5187 echo "$as_me:$LINENO: result: $RANLIB" >&5
5188 echo "${ECHO_T}$RANLIB" >&6
5189 else
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5195 if test -z "$ac_cv_prog_RANLIB"; then
5196 ac_ct_RANLIB=$RANLIB
5197 # Extract the first word of "ranlib", so it can be a program name with args.
5198 set dummy ranlib; ac_word=$2
5199 echo "$as_me:$LINENO: checking for $ac_word" >&5
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5201 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204 if test -n "$ac_ct_RANLIB"; then
5205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_ac_ct_RANLIB="ranlib"
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5218 done
5219 done
5221 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5224 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5225 if test -n "$ac_ct_RANLIB"; then
5226 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5227 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5228 else
5229 echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5233 RANLIB=$ac_ct_RANLIB
5234 else
5235 RANLIB="$ac_cv_prog_RANLIB"
5238 if test -n "$ac_tool_prefix"; then
5239 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5240 set dummy ${ac_tool_prefix}strip; ac_word=$2
5241 echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243 if test "${ac_cv_prog_STRIP+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 if test -n "$STRIP"; then
5247 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5260 done
5261 done
5265 STRIP=$ac_cv_prog_STRIP
5266 if test -n "$STRIP"; then
5267 echo "$as_me:$LINENO: result: $STRIP" >&5
5268 echo "${ECHO_T}$STRIP" >&6
5269 else
5270 echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6
5275 if test -z "$ac_cv_prog_STRIP"; then
5276 ac_ct_STRIP=$STRIP
5277 # Extract the first word of "strip", so it can be a program name with args.
5278 set dummy strip; ac_word=$2
5279 echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5281 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 if test -n "$ac_ct_STRIP"; then
5285 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_ac_ct_STRIP="strip"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5301 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5304 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5305 if test -n "$ac_ct_STRIP"; then
5306 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5307 echo "${ECHO_T}$ac_ct_STRIP" >&6
5308 else
5309 echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5313 STRIP=$ac_ct_STRIP
5314 else
5315 STRIP="$ac_cv_prog_STRIP"
5318 if test -n "$ac_tool_prefix"; then
5319 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5320 set dummy ${ac_tool_prefix}windres; ac_word=$2
5321 echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5323 if test "${ac_cv_prog_WINDRES+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 if test -n "$WINDRES"; then
5327 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5340 done
5341 done
5345 WINDRES=$ac_cv_prog_WINDRES
5346 if test -n "$WINDRES"; then
5347 echo "$as_me:$LINENO: result: $WINDRES" >&5
5348 echo "${ECHO_T}$WINDRES" >&6
5349 else
5350 echo "$as_me:$LINENO: result: no" >&5
5351 echo "${ECHO_T}no" >&6
5355 if test -z "$ac_cv_prog_WINDRES"; then
5356 ac_ct_WINDRES=$WINDRES
5357 # Extract the first word of "windres", so it can be a program name with args.
5358 set dummy windres; ac_word=$2
5359 echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5361 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 if test -n "$ac_ct_WINDRES"; then
5365 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_ac_ct_WINDRES="windres"
5375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5378 done
5379 done
5381 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5384 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5385 if test -n "$ac_ct_WINDRES"; then
5386 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5387 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5388 else
5389 echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6
5393 WINDRES=$ac_ct_WINDRES
5394 else
5395 WINDRES="$ac_cv_prog_WINDRES"
5398 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5399 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5400 LN_S=$as_ln_s
5401 if test "$LN_S" = "ln -s"; then
5402 echo "$as_me:$LINENO: result: yes" >&5
5403 echo "${ECHO_T}yes" >&6
5404 else
5405 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5406 echo "${ECHO_T}no, using $LN_S" >&6
5409 echo "$as_me:$LINENO: checking whether ln works" >&5
5410 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5411 rm -f conf$$ conf$$.file
5412 echo >conf$$.file
5413 if ln conf$$.file conf$$ 2>/dev/null; then
5414 LN=ln
5416 echo "$as_me:$LINENO: result: yes" >&5
5417 echo "${ECHO_T}yes" >&6
5418 else
5419 LN="cp -p"
5421 echo "$as_me:$LINENO: result: no, using $LN" >&5
5422 echo "${ECHO_T}no, using $LN" >&6
5424 rm -f conf$$ conf$$.file
5425 # Extract the first word of "ldconfig", so it can be a program name with args.
5426 set dummy ldconfig; ac_word=$2
5427 echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 case $LDCONFIG in
5433 [\\/]* | ?:[\\/]*)
5434 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in /sbin /usr/sbin $PATH
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5448 done
5449 done
5451 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5453 esac
5455 LDCONFIG=$ac_cv_path_LDCONFIG
5457 if test -n "$LDCONFIG"; then
5458 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5459 echo "${ECHO_T}$LDCONFIG" >&6
5460 else
5461 echo "$as_me:$LINENO: result: no" >&5
5462 echo "${ECHO_T}no" >&6
5465 # Find a good install program. We prefer a C program (faster),
5466 # so one script is as good as another. But avoid the broken or
5467 # incompatible versions:
5468 # SysV /etc/install, /usr/sbin/install
5469 # SunOS /usr/etc/install
5470 # IRIX /sbin/install
5471 # AIX /bin/install
5472 # AmigaOS /C/install, which installs bootblocks on floppy discs
5473 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5474 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5475 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5476 # OS/2's system install, which has a completely different semantic
5477 # ./install, which can be erroneously created by make from ./install.sh.
5478 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5479 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5480 if test -z "$INSTALL"; then
5481 if test "${ac_cv_path_install+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 # Account for people who put trailing slashes in PATH elements.
5490 case $as_dir/ in
5491 ./ | .// | /cC/* | \
5492 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5493 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5494 /usr/ucb/* ) ;;
5496 # OSF1 and SCO ODT 3.0 have their own names for install.
5497 # Don't use installbsd from OSF since it installs stuff as root
5498 # by default.
5499 for ac_prog in ginstall scoinst install; do
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5502 if test $ac_prog = install &&
5503 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5504 # AIX install. It has an incompatible calling convention.
5506 elif test $ac_prog = install &&
5507 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5508 # program-specific install script used by HP pwplus--don't use.
5510 else
5511 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5512 break 3
5515 done
5516 done
5518 esac
5519 done
5523 if test "${ac_cv_path_install+set}" = set; then
5524 INSTALL=$ac_cv_path_install
5525 else
5526 # As a last resort, use the slow shell script. We don't cache a
5527 # path for INSTALL within a source directory, because that will
5528 # break other packages using the cache if that directory is
5529 # removed, or if the path is relative.
5530 INSTALL=$ac_install_sh
5533 echo "$as_me:$LINENO: result: $INSTALL" >&5
5534 echo "${ECHO_T}$INSTALL" >&6
5536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5537 # It thinks the first close brace ends the variable substitution.
5538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5544 case "$INSTALL" in
5545 [\\/$]* | ?:[\\/]* ) ;;
5546 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5547 esac
5549 for ac_prog in lclint lint
5551 # Extract the first word of "$ac_prog", so it can be a program name with args.
5552 set dummy $ac_prog; ac_word=$2
5553 echo "$as_me:$LINENO: checking for $ac_word" >&5
5554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5555 if test "${ac_cv_prog_LINT+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558 if test -n "$LINT"; then
5559 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5560 else
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568 ac_cv_prog_LINT="$ac_prog"
5569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5570 break 2
5572 done
5573 done
5577 LINT=$ac_cv_prog_LINT
5578 if test -n "$LINT"; then
5579 echo "$as_me:$LINENO: result: $LINT" >&5
5580 echo "${ECHO_T}$LINT" >&6
5581 else
5582 echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5586 test -n "$LINT" && break
5587 done
5589 if test "$LINT" = "lint"
5590 then
5591 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5596 for ac_prog in docbook2html db2html
5598 # Extract the first word of "$ac_prog", so it can be a program name with args.
5599 set dummy $ac_prog; ac_word=$2
5600 echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605 if test -n "$DB2HTML"; then
5606 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_DB2HTML="$ac_prog"
5616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5619 done
5620 done
5624 DB2HTML=$ac_cv_prog_DB2HTML
5625 if test -n "$DB2HTML"; then
5626 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5627 echo "${ECHO_T}$DB2HTML" >&6
5628 else
5629 echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5633 test -n "$DB2HTML" && break
5634 done
5635 test -n "$DB2HTML" || DB2HTML="false"
5639 for ac_prog in docbook2pdf db2pdf
5641 # Extract the first word of "$ac_prog", so it can be a program name with args.
5642 set dummy $ac_prog; ac_word=$2
5643 echo "$as_me:$LINENO: checking for $ac_word" >&5
5644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5645 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648 if test -n "$DB2PDF"; then
5649 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_DB2PDF="$ac_prog"
5659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5662 done
5663 done
5667 DB2PDF=$ac_cv_prog_DB2PDF
5668 if test -n "$DB2PDF"; then
5669 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5670 echo "${ECHO_T}$DB2PDF" >&6
5671 else
5672 echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6
5676 test -n "$DB2PDF" && break
5677 done
5678 test -n "$DB2PDF" || DB2PDF="false"
5682 for ac_prog in docbook2ps db2ps
5684 # Extract the first word of "$ac_prog", so it can be a program name with args.
5685 set dummy $ac_prog; ac_word=$2
5686 echo "$as_me:$LINENO: checking for $ac_word" >&5
5687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5688 if test "${ac_cv_prog_DB2PS+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691 if test -n "$DB2PS"; then
5692 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_DB2PS="$ac_prog"
5702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5705 done
5706 done
5710 DB2PS=$ac_cv_prog_DB2PS
5711 if test -n "$DB2PS"; then
5712 echo "$as_me:$LINENO: result: $DB2PS" >&5
5713 echo "${ECHO_T}$DB2PS" >&6
5714 else
5715 echo "$as_me:$LINENO: result: no" >&5
5716 echo "${ECHO_T}no" >&6
5719 test -n "$DB2PS" && break
5720 done
5721 test -n "$DB2PS" || DB2PS="false"
5725 for ac_prog in docbook2txt db2txt
5727 # Extract the first word of "$ac_prog", so it can be a program name with args.
5728 set dummy $ac_prog; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 if test -n "$DB2TXT"; then
5735 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_DB2TXT="$ac_prog"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5748 done
5749 done
5753 DB2TXT=$ac_cv_prog_DB2TXT
5754 if test -n "$DB2TXT"; then
5755 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5756 echo "${ECHO_T}$DB2TXT" >&6
5757 else
5758 echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5762 test -n "$DB2TXT" && break
5763 done
5764 test -n "$DB2TXT" || DB2TXT="false"
5770 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5771 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5772 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775 ac_check_lib_save_LIBS=$LIBS
5776 LIBS="-lm $LIBS"
5777 cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h. */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5784 /* Override any gcc2 internal prototype to avoid an error. */
5785 #ifdef __cplusplus
5786 extern "C"
5787 #endif
5788 /* We use char because int might match the return type of a gcc2
5789 builtin and then its argument prototype would still apply. */
5790 char sqrt ();
5792 main ()
5794 sqrt ();
5796 return 0;
5798 _ACEOF
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801 (eval $ac_link) 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest$ac_exeext'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 (eval $ac_try) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_cv_lib_m_sqrt=yes
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 ac_cv_lib_m_sqrt=no
5827 rm -f conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5829 LIBS=$ac_check_lib_save_LIBS
5831 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5832 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5833 if test $ac_cv_lib_m_sqrt = yes; then
5834 cat >>confdefs.h <<_ACEOF
5835 #define HAVE_LIBM 1
5836 _ACEOF
5838 LIBS="-lm $LIBS"
5843 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5844 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5845 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848 ac_check_lib_save_LIBS=$LIBS
5849 LIBS="-li386 $LIBS"
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5857 /* Override any gcc2 internal prototype to avoid an error. */
5858 #ifdef __cplusplus
5859 extern "C"
5860 #endif
5861 /* We use char because int might match the return type of a gcc2
5862 builtin and then its argument prototype would still apply. */
5863 char i386_set_ldt ();
5865 main ()
5867 i386_set_ldt ();
5869 return 0;
5871 _ACEOF
5872 rm -f conftest.$ac_objext conftest$ac_exeext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5874 (eval $ac_link) 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 (eval $ac_try) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; } &&
5887 { ac_try='test -s conftest$ac_exeext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 (eval $ac_try) 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 ac_cv_lib_i386_i386_set_ldt=yes
5894 else
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5898 ac_cv_lib_i386_i386_set_ldt=no
5900 rm -f conftest.err conftest.$ac_objext \
5901 conftest$ac_exeext conftest.$ac_ext
5902 LIBS=$ac_check_lib_save_LIBS
5904 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5905 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5906 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5907 cat >>confdefs.h <<_ACEOF
5908 #define HAVE_LIBI386 1
5909 _ACEOF
5911 LIBS="-li386 $LIBS"
5916 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5917 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5918 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921 ac_check_lib_save_LIBS=$LIBS
5922 LIBS="-lossaudio $LIBS"
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5930 /* Override any gcc2 internal prototype to avoid an error. */
5931 #ifdef __cplusplus
5932 extern "C"
5933 #endif
5934 /* We use char because int might match the return type of a gcc2
5935 builtin and then its argument prototype would still apply. */
5936 char _oss_ioctl ();
5938 main ()
5940 _oss_ioctl ();
5942 return 0;
5944 _ACEOF
5945 rm -f conftest.$ac_objext conftest$ac_exeext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947 (eval $ac_link) 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 (eval $ac_try) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; } &&
5960 { ac_try='test -s conftest$ac_exeext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 (eval $ac_try) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 ac_cv_lib_ossaudio__oss_ioctl=yes
5967 else
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5971 ac_cv_lib_ossaudio__oss_ioctl=no
5973 rm -f conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5975 LIBS=$ac_check_lib_save_LIBS
5977 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5978 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5979 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5980 cat >>confdefs.h <<_ACEOF
5981 #define HAVE_LIBOSSAUDIO 1
5982 _ACEOF
5984 LIBS="-lossaudio $LIBS"
5989 for ac_func in iswalnum
5991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5992 echo "$as_me:$LINENO: checking for $ac_func" >&5
5993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5994 if eval "test \"\${$as_ac_var+set}\" = set"; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997 cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h. */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6005 #define $ac_func innocuous_$ac_func
6007 /* System header to define __stub macros and hopefully few prototypes,
6008 which can conflict with char $ac_func (); below.
6009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6010 <limits.h> exists even on freestanding compilers. */
6012 #ifdef __STDC__
6013 # include <limits.h>
6014 #else
6015 # include <assert.h>
6016 #endif
6018 #undef $ac_func
6020 /* Override any gcc2 internal prototype to avoid an error. */
6021 #ifdef __cplusplus
6022 extern "C"
6024 #endif
6025 /* We use char because int might match the return type of a gcc2
6026 builtin and then its argument prototype would still apply. */
6027 char $ac_func ();
6028 /* The GNU C library defines this for functions which it implements
6029 to always fail with ENOSYS. Some functions are actually named
6030 something starting with __ and the normal name is an alias. */
6031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6032 choke me
6033 #else
6034 char (*f) () = $ac_func;
6035 #endif
6036 #ifdef __cplusplus
6038 #endif
6041 main ()
6043 return f != $ac_func;
6045 return 0;
6047 _ACEOF
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050 (eval $ac_link) 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; } &&
6063 { ac_try='test -s conftest$ac_exeext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 eval "$as_ac_var=yes"
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 eval "$as_ac_var=no"
6076 rm -f conftest.err conftest.$ac_objext \
6077 conftest$ac_exeext conftest.$ac_ext
6079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6081 if test `eval echo '${'$as_ac_var'}'` = yes; then
6082 cat >>confdefs.h <<_ACEOF
6083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6084 _ACEOF
6086 else
6088 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
6089 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6090 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 ac_check_lib_save_LIBS=$LIBS
6094 LIBS="-lw $LIBS"
6095 cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h. */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6102 /* Override any gcc2 internal prototype to avoid an error. */
6103 #ifdef __cplusplus
6104 extern "C"
6105 #endif
6106 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6108 char iswalnum ();
6110 main ()
6112 iswalnum ();
6114 return 0;
6116 _ACEOF
6117 rm -f conftest.$ac_objext conftest$ac_exeext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6119 (eval $ac_link) 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; } &&
6132 { ac_try='test -s conftest$ac_exeext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_cv_lib_w_iswalnum=yes
6139 else
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 ac_cv_lib_w_iswalnum=no
6145 rm -f conftest.err conftest.$ac_objext \
6146 conftest$ac_exeext conftest.$ac_ext
6147 LIBS=$ac_check_lib_save_LIBS
6149 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6150 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6151 if test $ac_cv_lib_w_iswalnum = yes; then
6152 cat >>confdefs.h <<_ACEOF
6153 #define HAVE_LIBW 1
6154 _ACEOF
6156 LIBS="-lw $LIBS"
6161 done
6164 for ac_func in gethostbyname
6166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6167 echo "$as_me:$LINENO: checking for $ac_func" >&5
6168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6169 if eval "test \"\${$as_ac_var+set}\" = set"; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6180 #define $ac_func innocuous_$ac_func
6182 /* System header to define __stub macros and hopefully few prototypes,
6183 which can conflict with char $ac_func (); below.
6184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6185 <limits.h> exists even on freestanding compilers. */
6187 #ifdef __STDC__
6188 # include <limits.h>
6189 #else
6190 # include <assert.h>
6191 #endif
6193 #undef $ac_func
6195 /* Override any gcc2 internal prototype to avoid an error. */
6196 #ifdef __cplusplus
6197 extern "C"
6199 #endif
6200 /* We use char because int might match the return type of a gcc2
6201 builtin and then its argument prototype would still apply. */
6202 char $ac_func ();
6203 /* The GNU C library defines this for functions which it implements
6204 to always fail with ENOSYS. Some functions are actually named
6205 something starting with __ and the normal name is an alias. */
6206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6207 choke me
6208 #else
6209 char (*f) () = $ac_func;
6210 #endif
6211 #ifdef __cplusplus
6213 #endif
6216 main ()
6218 return f != $ac_func;
6220 return 0;
6222 _ACEOF
6223 rm -f conftest.$ac_objext conftest$ac_exeext
6224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6225 (eval $ac_link) 2>conftest.er1
6226 ac_status=$?
6227 grep -v '^ *+' conftest.er1 >conftest.err
6228 rm -f conftest.er1
6229 cat conftest.err >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; } &&
6238 { ac_try='test -s conftest$ac_exeext'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 (eval $ac_try) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; }; then
6244 eval "$as_ac_var=yes"
6245 else
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6249 eval "$as_ac_var=no"
6251 rm -f conftest.err conftest.$ac_objext \
6252 conftest$ac_exeext conftest.$ac_ext
6254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6256 if test `eval echo '${'$as_ac_var'}'` = yes; then
6257 cat >>confdefs.h <<_ACEOF
6258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6259 _ACEOF
6261 else
6263 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6264 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6265 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 ac_check_lib_save_LIBS=$LIBS
6269 LIBS="-lnsl $LIBS"
6270 cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h. */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 #ifdef __cplusplus
6279 extern "C"
6280 #endif
6281 /* We use char because int might match the return type of a gcc2
6282 builtin and then its argument prototype would still apply. */
6283 char gethostbyname ();
6285 main ()
6287 gethostbyname ();
6289 return 0;
6291 _ACEOF
6292 rm -f conftest.$ac_objext conftest$ac_exeext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6294 (eval $ac_link) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try='test -s conftest$ac_exeext'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 ac_cv_lib_nsl_gethostbyname=yes
6314 else
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6318 ac_cv_lib_nsl_gethostbyname=no
6320 rm -f conftest.err conftest.$ac_objext \
6321 conftest$ac_exeext conftest.$ac_ext
6322 LIBS=$ac_check_lib_save_LIBS
6324 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6325 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6326 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6327 cat >>confdefs.h <<_ACEOF
6328 #define HAVE_LIBNSL 1
6329 _ACEOF
6331 LIBS="-lnsl $LIBS"
6336 done
6339 for ac_func in connect
6341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6342 echo "$as_me:$LINENO: checking for $ac_func" >&5
6343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6344 if eval "test \"\${$as_ac_var+set}\" = set"; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347 cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h. */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6355 #define $ac_func innocuous_$ac_func
6357 /* System header to define __stub macros and hopefully few prototypes,
6358 which can conflict with char $ac_func (); below.
6359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6360 <limits.h> exists even on freestanding compilers. */
6362 #ifdef __STDC__
6363 # include <limits.h>
6364 #else
6365 # include <assert.h>
6366 #endif
6368 #undef $ac_func
6370 /* Override any gcc2 internal prototype to avoid an error. */
6371 #ifdef __cplusplus
6372 extern "C"
6374 #endif
6375 /* We use char because int might match the return type of a gcc2
6376 builtin and then its argument prototype would still apply. */
6377 char $ac_func ();
6378 /* The GNU C library defines this for functions which it implements
6379 to always fail with ENOSYS. Some functions are actually named
6380 something starting with __ and the normal name is an alias. */
6381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6382 choke me
6383 #else
6384 char (*f) () = $ac_func;
6385 #endif
6386 #ifdef __cplusplus
6388 #endif
6391 main ()
6393 return f != $ac_func;
6395 return 0;
6397 _ACEOF
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400 (eval $ac_link) 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; } &&
6413 { ac_try='test -s conftest$ac_exeext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6419 eval "$as_ac_var=yes"
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 eval "$as_ac_var=no"
6426 rm -f conftest.err conftest.$ac_objext \
6427 conftest$ac_exeext conftest.$ac_ext
6429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6431 if test `eval echo '${'$as_ac_var'}'` = yes; then
6432 cat >>confdefs.h <<_ACEOF
6433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6434 _ACEOF
6436 else
6438 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6439 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6440 if test "${ac_cv_lib_socket_connect+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 ac_check_lib_save_LIBS=$LIBS
6444 LIBS="-lsocket $LIBS"
6445 cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h. */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6452 /* Override any gcc2 internal prototype to avoid an error. */
6453 #ifdef __cplusplus
6454 extern "C"
6455 #endif
6456 /* We use char because int might match the return type of a gcc2
6457 builtin and then its argument prototype would still apply. */
6458 char connect ();
6460 main ()
6462 connect ();
6464 return 0;
6466 _ACEOF
6467 rm -f conftest.$ac_objext conftest$ac_exeext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6469 (eval $ac_link) 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; } &&
6482 { ac_try='test -s conftest$ac_exeext'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 (eval $ac_try) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 ac_cv_lib_socket_connect=yes
6489 else
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 ac_cv_lib_socket_connect=no
6495 rm -f conftest.err conftest.$ac_objext \
6496 conftest$ac_exeext conftest.$ac_ext
6497 LIBS=$ac_check_lib_save_LIBS
6499 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6500 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6501 if test $ac_cv_lib_socket_connect = yes; then
6502 cat >>confdefs.h <<_ACEOF
6503 #define HAVE_LIBSOCKET 1
6504 _ACEOF
6506 LIBS="-lsocket $LIBS"
6511 done
6514 for ac_func in inet_aton
6516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6517 echo "$as_me:$LINENO: checking for $ac_func" >&5
6518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6519 if eval "test \"\${$as_ac_var+set}\" = set"; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6530 #define $ac_func innocuous_$ac_func
6532 /* System header to define __stub macros and hopefully few prototypes,
6533 which can conflict with char $ac_func (); below.
6534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6535 <limits.h> exists even on freestanding compilers. */
6537 #ifdef __STDC__
6538 # include <limits.h>
6539 #else
6540 # include <assert.h>
6541 #endif
6543 #undef $ac_func
6545 /* Override any gcc2 internal prototype to avoid an error. */
6546 #ifdef __cplusplus
6547 extern "C"
6549 #endif
6550 /* We use char because int might match the return type of a gcc2
6551 builtin and then its argument prototype would still apply. */
6552 char $ac_func ();
6553 /* The GNU C library defines this for functions which it implements
6554 to always fail with ENOSYS. Some functions are actually named
6555 something starting with __ and the normal name is an alias. */
6556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6557 choke me
6558 #else
6559 char (*f) () = $ac_func;
6560 #endif
6561 #ifdef __cplusplus
6563 #endif
6566 main ()
6568 return f != $ac_func;
6570 return 0;
6572 _ACEOF
6573 rm -f conftest.$ac_objext conftest$ac_exeext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575 (eval $ac_link) 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest$ac_exeext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 eval "$as_ac_var=yes"
6595 else
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 eval "$as_ac_var=no"
6601 rm -f conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6606 if test `eval echo '${'$as_ac_var'}'` = yes; then
6607 cat >>confdefs.h <<_ACEOF
6608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6609 _ACEOF
6611 else
6613 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6614 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6615 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 ac_check_lib_save_LIBS=$LIBS
6619 LIBS="-lresolv $LIBS"
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h. */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6627 /* Override any gcc2 internal prototype to avoid an error. */
6628 #ifdef __cplusplus
6629 extern "C"
6630 #endif
6631 /* We use char because int might match the return type of a gcc2
6632 builtin and then its argument prototype would still apply. */
6633 char inet_aton ();
6635 main ()
6637 inet_aton ();
6639 return 0;
6641 _ACEOF
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>conftest.er1
6645 ac_status=$?
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } &&
6651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try='test -s conftest$ac_exeext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_lib_resolv_inet_aton=yes
6664 else
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6668 ac_cv_lib_resolv_inet_aton=no
6670 rm -f conftest.err conftest.$ac_objext \
6671 conftest$ac_exeext conftest.$ac_ext
6672 LIBS=$ac_check_lib_save_LIBS
6674 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6675 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6676 if test $ac_cv_lib_resolv_inet_aton = yes; then
6677 cat >>confdefs.h <<_ACEOF
6678 #define HAVE_LIBRESOLV 1
6679 _ACEOF
6681 LIBS="-lresolv $LIBS"
6686 done
6689 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6690 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6691 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694 ac_check_lib_save_LIBS=$LIBS
6695 LIBS="-lxpg4 $LIBS"
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6703 /* Override any gcc2 internal prototype to avoid an error. */
6704 #ifdef __cplusplus
6705 extern "C"
6706 #endif
6707 /* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6709 char _xpg4_setrunelocale ();
6711 main ()
6713 _xpg4_setrunelocale ();
6715 return 0;
6717 _ACEOF
6718 rm -f conftest.$ac_objext conftest$ac_exeext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720 (eval $ac_link) 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; } &&
6733 { ac_try='test -s conftest$ac_exeext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6740 else
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6746 rm -f conftest.err conftest.$ac_objext \
6747 conftest$ac_exeext conftest.$ac_ext
6748 LIBS=$ac_check_lib_save_LIBS
6750 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6751 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6752 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6753 cat >>confdefs.h <<_ACEOF
6754 #define HAVE_LIBXPG4 1
6755 _ACEOF
6757 LIBS="-lxpg4 $LIBS"
6762 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6763 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6764 if test "${ac_cv_lib_poll_poll+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 ac_check_lib_save_LIBS=$LIBS
6768 LIBS="-lpoll $LIBS"
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6776 /* Override any gcc2 internal prototype to avoid an error. */
6777 #ifdef __cplusplus
6778 extern "C"
6779 #endif
6780 /* We use char because int might match the return type of a gcc2
6781 builtin and then its argument prototype would still apply. */
6782 char poll ();
6784 main ()
6786 poll ();
6788 return 0;
6790 _ACEOF
6791 rm -f conftest.$ac_objext conftest$ac_exeext
6792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6793 (eval $ac_link) 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } &&
6800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 (eval $ac_try) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try='test -s conftest$ac_exeext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_cv_lib_poll_poll=yes
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 ac_cv_lib_poll_poll=no
6819 rm -f conftest.err conftest.$ac_objext \
6820 conftest$ac_exeext conftest.$ac_ext
6821 LIBS=$ac_check_lib_save_LIBS
6823 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6824 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6825 if test $ac_cv_lib_poll_poll = yes; then
6826 cat >>confdefs.h <<_ACEOF
6827 #define HAVE_LIBPOLL 1
6828 _ACEOF
6830 LIBS="-lpoll $LIBS"
6834 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6835 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6836 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839 ac_check_lib_save_LIBS=$LIBS
6840 LIBS="-lpthread $LIBS"
6841 cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h. */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6848 /* Override any gcc2 internal prototype to avoid an error. */
6849 #ifdef __cplusplus
6850 extern "C"
6851 #endif
6852 /* We use char because int might match the return type of a gcc2
6853 builtin and then its argument prototype would still apply. */
6854 char pthread_create ();
6856 main ()
6858 pthread_create ();
6860 return 0;
6862 _ACEOF
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865 (eval $ac_link) 2>conftest.er1
6866 ac_status=$?
6867 grep -v '^ *+' conftest.er1 >conftest.err
6868 rm -f conftest.er1
6869 cat conftest.err >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } &&
6872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 (eval $ac_try) 2>&5
6875 ac_status=$?
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; } &&
6878 { ac_try='test -s conftest$ac_exeext'
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 (eval $ac_try) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; }; then
6884 ac_cv_lib_pthread_pthread_create=yes
6885 else
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6889 ac_cv_lib_pthread_pthread_create=no
6891 rm -f conftest.err conftest.$ac_objext \
6892 conftest$ac_exeext conftest.$ac_ext
6893 LIBS=$ac_check_lib_save_LIBS
6895 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6896 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6897 if test $ac_cv_lib_pthread_pthread_create = yes; then
6898 LIBPTHREAD="-lpthread"
6903 JPEGLIB=""
6905 echo "$as_me:$LINENO: checking for egrep" >&5
6906 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6907 if test "${ac_cv_prog_egrep+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6911 then ac_cv_prog_egrep='grep -E'
6912 else ac_cv_prog_egrep='egrep'
6915 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6916 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6917 EGREP=$ac_cv_prog_egrep
6920 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6921 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6922 if test "${ac_cv_header_stdc+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <stdlib.h>
6932 #include <stdarg.h>
6933 #include <string.h>
6934 #include <float.h>
6937 main ()
6941 return 0;
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 (eval $ac_try) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try='test -s conftest.$ac_objext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 ac_cv_header_stdc=yes
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_header_stdc=no
6972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6974 if test $ac_cv_header_stdc = yes; then
6975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6976 cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h. */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6982 #include <string.h>
6984 _ACEOF
6985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6986 $EGREP "memchr" >/dev/null 2>&1; then
6988 else
6989 ac_cv_header_stdc=no
6991 rm -f conftest*
6995 if test $ac_cv_header_stdc = yes; then
6996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 #include <stdlib.h>
7005 _ACEOF
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 $EGREP "free" >/dev/null 2>&1; then
7009 else
7010 ac_cv_header_stdc=no
7012 rm -f conftest*
7016 if test $ac_cv_header_stdc = yes; then
7017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7018 if test "$cross_compiling" = yes; then
7020 else
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h. */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 #include <ctype.h>
7028 #if ((' ' & 0x0FF) == 0x020)
7029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7031 #else
7032 # define ISLOWER(c) \
7033 (('a' <= (c) && (c) <= 'i') \
7034 || ('j' <= (c) && (c) <= 'r') \
7035 || ('s' <= (c) && (c) <= 'z'))
7036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7037 #endif
7039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7041 main ()
7043 int i;
7044 for (i = 0; i < 256; i++)
7045 if (XOR (islower (i), ISLOWER (i))
7046 || toupper (i) != TOUPPER (i))
7047 exit(2);
7048 exit (0);
7050 _ACEOF
7051 rm -f conftest$ac_exeext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053 (eval $ac_link) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7063 else
7064 echo "$as_me: program exited with status $ac_status" >&5
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ( exit $ac_status )
7069 ac_cv_header_stdc=no
7071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7075 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7076 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7077 if test $ac_cv_header_stdc = yes; then
7079 cat >>confdefs.h <<\_ACEOF
7080 #define STDC_HEADERS 1
7081 _ACEOF
7085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7096 inttypes.h stdint.h unistd.h
7098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7099 echo "$as_me:$LINENO: checking for $ac_header" >&5
7100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104 cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h. */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 $ac_includes_default
7112 #include <$ac_header>
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7116 (eval $ac_compile) 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; } &&
7129 { ac_try='test -s conftest.$ac_objext'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 (eval $ac_try) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
7135 eval "$as_ac_Header=yes"
7136 else
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 eval "$as_ac_Header=no"
7142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7147 cat >>confdefs.h <<_ACEOF
7148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7149 _ACEOF
7153 done
7157 for ac_header in jpeglib.h
7159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7161 echo "$as_me:$LINENO: checking for $ac_header" >&5
7162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7168 else
7169 # Is the header compilable?
7170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7179 #include <$ac_header>
7180 _ACEOF
7181 rm -f conftest.$ac_objext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7183 (eval $ac_compile) 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; } &&
7196 { ac_try='test -s conftest.$ac_objext'
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 (eval $ac_try) 2>&5
7199 ac_status=$?
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; }; then
7202 ac_header_compiler=yes
7203 else
7204 echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7207 ac_header_compiler=no
7209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7211 echo "${ECHO_T}$ac_header_compiler" >&6
7213 # Is the header present?
7214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 #include <$ac_header>
7223 _ACEOF
7224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7226 ac_status=$?
7227 grep -v '^ *+' conftest.er1 >conftest.err
7228 rm -f conftest.er1
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } >/dev/null; then
7232 if test -s conftest.err; then
7233 ac_cpp_err=$ac_c_preproc_warn_flag
7234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7235 else
7236 ac_cpp_err=
7238 else
7239 ac_cpp_err=yes
7241 if test -z "$ac_cpp_err"; then
7242 ac_header_preproc=yes
7243 else
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7247 ac_header_preproc=no
7249 rm -f conftest.err conftest.$ac_ext
7250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7251 echo "${ECHO_T}$ac_header_preproc" >&6
7253 # So? What about this header?
7254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7255 yes:no: )
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7260 ac_header_preproc=yes
7262 no:yes:* )
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7276 cat <<\_ASBOX
7277 ## ------------------------------------ ##
7278 ## Report this to wine-devel@winehq.org ##
7279 ## ------------------------------------ ##
7280 _ASBOX
7282 sed "s/^/$as_me: WARNING: /" >&2
7284 esac
7285 echo "$as_me:$LINENO: checking for $ac_header" >&5
7286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290 eval "$as_ac_Header=\$ac_header_preproc"
7292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7297 cat >>confdefs.h <<_ACEOF
7298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7299 _ACEOF
7300 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
7301 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
7302 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305 ac_check_lib_save_LIBS=$LIBS
7306 LIBS="-ljpeg $LIBS"
7307 cat >conftest.$ac_ext <<_ACEOF
7308 /* confdefs.h. */
7309 _ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7314 /* Override any gcc2 internal prototype to avoid an error. */
7315 #ifdef __cplusplus
7316 extern "C"
7317 #endif
7318 /* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */
7320 char jpeg_start_decompress ();
7322 main ()
7324 jpeg_start_decompress ();
7326 return 0;
7328 _ACEOF
7329 rm -f conftest.$ac_objext conftest$ac_exeext
7330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7331 (eval $ac_link) 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 (eval $ac_try) 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; } &&
7344 { ac_try='test -s conftest$ac_exeext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 ac_cv_lib_jpeg_jpeg_start_decompress=yes
7351 else
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7355 ac_cv_lib_jpeg_jpeg_start_decompress=no
7357 rm -f conftest.err conftest.$ac_objext \
7358 conftest$ac_exeext conftest.$ac_ext
7359 LIBS=$ac_check_lib_save_LIBS
7361 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
7362 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
7363 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
7365 cat >>confdefs.h <<\_ACEOF
7366 #define HAVE_LIBJPEG 1
7367 _ACEOF
7369 JPEGLIB="-ljpeg"
7376 done
7379 GIFLIB=""
7382 for ac_header in gif_lib.h
7384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7386 echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7393 else
7394 # Is the header compilable?
7395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7404 #include <$ac_header>
7405 _ACEOF
7406 rm -f conftest.$ac_objext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408 (eval $ac_compile) 2>conftest.er1
7409 ac_status=$?
7410 grep -v '^ *+' conftest.er1 >conftest.err
7411 rm -f conftest.er1
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } &&
7415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 (eval $ac_try) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; } &&
7421 { ac_try='test -s conftest.$ac_objext'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 (eval $ac_try) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; }; then
7427 ac_header_compiler=yes
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7432 ac_header_compiler=no
7434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7436 echo "${ECHO_T}$ac_header_compiler" >&6
7438 # Is the header present?
7439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7441 cat >conftest.$ac_ext <<_ACEOF
7442 /* confdefs.h. */
7443 _ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7447 #include <$ac_header>
7448 _ACEOF
7449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7451 ac_status=$?
7452 grep -v '^ *+' conftest.er1 >conftest.err
7453 rm -f conftest.er1
7454 cat conftest.err >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } >/dev/null; then
7457 if test -s conftest.err; then
7458 ac_cpp_err=$ac_c_preproc_warn_flag
7459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7460 else
7461 ac_cpp_err=
7463 else
7464 ac_cpp_err=yes
7466 if test -z "$ac_cpp_err"; then
7467 ac_header_preproc=yes
7468 else
7469 echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7472 ac_header_preproc=no
7474 rm -f conftest.err conftest.$ac_ext
7475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7476 echo "${ECHO_T}$ac_header_preproc" >&6
7478 # So? What about this header?
7479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7480 yes:no: )
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7485 ac_header_preproc=yes
7487 no:yes:* )
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7501 cat <<\_ASBOX
7502 ## ------------------------------------ ##
7503 ## Report this to wine-devel@winehq.org ##
7504 ## ------------------------------------ ##
7505 _ASBOX
7507 sed "s/^/$as_me: WARNING: /" >&2
7509 esac
7510 echo "$as_me:$LINENO: checking for $ac_header" >&5
7511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515 eval "$as_ac_Header=\$ac_header_preproc"
7517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7522 cat >>confdefs.h <<_ACEOF
7523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7524 _ACEOF
7525 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
7526 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7527 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530 ac_check_lib_save_LIBS=$LIBS
7531 LIBS="-lungif $LIBS"
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7539 /* Override any gcc2 internal prototype to avoid an error. */
7540 #ifdef __cplusplus
7541 extern "C"
7542 #endif
7543 /* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7545 char DGifOpen ();
7547 main ()
7549 DGifOpen ();
7551 return 0;
7553 _ACEOF
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>conftest.er1
7557 ac_status=$?
7558 grep -v '^ *+' conftest.er1 >conftest.err
7559 rm -f conftest.er1
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 (eval $ac_try) 2>&5
7566 ac_status=$?
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; } &&
7569 { ac_try='test -s conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 ac_cv_lib_ungif_DGifOpen=yes
7576 else
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7580 ac_cv_lib_ungif_DGifOpen=no
7582 rm -f conftest.err conftest.$ac_objext \
7583 conftest$ac_exeext conftest.$ac_ext
7584 LIBS=$ac_check_lib_save_LIBS
7586 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
7587 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7588 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_LIBGIF 1
7592 _ACEOF
7594 GIFLIB="-lungif"
7595 else
7596 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
7597 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
7598 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601 ac_check_lib_save_LIBS=$LIBS
7602 LIBS="-lgif $LIBS"
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h. */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7610 /* Override any gcc2 internal prototype to avoid an error. */
7611 #ifdef __cplusplus
7612 extern "C"
7613 #endif
7614 /* We use char because int might match the return type of a gcc2
7615 builtin and then its argument prototype would still apply. */
7616 char DGifOpen ();
7618 main ()
7620 DGifOpen ();
7622 return 0;
7624 _ACEOF
7625 rm -f conftest.$ac_objext conftest$ac_exeext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7627 (eval $ac_link) 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try='test -s conftest$ac_exeext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 (eval $ac_try) 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_cv_lib_gif_DGifOpen=yes
7647 else
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 ac_cv_lib_gif_DGifOpen=no
7653 rm -f conftest.err conftest.$ac_objext \
7654 conftest$ac_exeext conftest.$ac_ext
7655 LIBS=$ac_check_lib_save_LIBS
7657 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
7658 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
7659 if test $ac_cv_lib_gif_DGifOpen = yes; then
7660 cat >>confdefs.h <<\_ACEOF
7661 #define HAVE_LIBGIF 1
7662 _ACEOF
7664 GIFLIB="-lgif"
7671 done
7676 XFILES=""
7678 OPENGLFILES=""
7680 GLU32FILES=""
7682 OPENGL_LIBS=""
7683 if test "$have_x" = "yes"
7684 then
7685 XLIB="-lXext -lX11"
7686 ac_save_CPPFLAGS="$CPPFLAGS"
7687 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7690 for ac_header in X11/Xlib.h
7692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7694 echo "$as_me:$LINENO: checking for $ac_header" >&5
7695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7701 else
7702 # Is the header compilable?
7703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 $ac_includes_default
7712 #include <$ac_header>
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7716 (eval $ac_compile) 2>conftest.er1
7717 ac_status=$?
7718 grep -v '^ *+' conftest.er1 >conftest.err
7719 rm -f conftest.er1
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } &&
7723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; } &&
7729 { ac_try='test -s conftest.$ac_objext'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then
7735 ac_header_compiler=yes
7736 else
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7740 ac_header_compiler=no
7742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7744 echo "${ECHO_T}$ac_header_compiler" >&6
7746 # Is the header present?
7747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #include <$ac_header>
7756 _ACEOF
7757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7759 ac_status=$?
7760 grep -v '^ *+' conftest.er1 >conftest.err
7761 rm -f conftest.er1
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } >/dev/null; then
7765 if test -s conftest.err; then
7766 ac_cpp_err=$ac_c_preproc_warn_flag
7767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7768 else
7769 ac_cpp_err=
7771 else
7772 ac_cpp_err=yes
7774 if test -z "$ac_cpp_err"; then
7775 ac_header_preproc=yes
7776 else
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ac_header_preproc=no
7782 rm -f conftest.err conftest.$ac_ext
7783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7784 echo "${ECHO_T}$ac_header_preproc" >&6
7786 # So? What about this header?
7787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7788 yes:no: )
7789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7793 ac_header_preproc=yes
7795 no:yes:* )
7796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7809 cat <<\_ASBOX
7810 ## ------------------------------------ ##
7811 ## Report this to wine-devel@winehq.org ##
7812 ## ------------------------------------ ##
7813 _ASBOX
7815 sed "s/^/$as_me: WARNING: /" >&2
7817 esac
7818 echo "$as_me:$LINENO: checking for $ac_header" >&5
7819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823 eval "$as_ac_Header=\$ac_header_preproc"
7825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7830 cat >>confdefs.h <<_ACEOF
7831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7832 _ACEOF
7844 for ac_header in X11/XKBlib.h \
7845 X11/Xutil.h \
7846 X11/extensions/shape.h \
7847 X11/extensions/XInput.h \
7848 X11/extensions/XShm.h \
7849 X11/extensions/Xrandr.h \
7850 X11/extensions/Xrender.h \
7851 X11/extensions/Xvlib.h \
7852 X11/extensions/xf86dga.h \
7853 X11/extensions/xf86vmode.h
7855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7856 echo "$as_me:$LINENO: checking for $ac_header" >&5
7857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <X11/Xlib.h>
7868 #ifdef HAVE_X11_XUTIL_H
7869 # include <X11/Xutil.h>
7870 #endif
7872 #include <$ac_header>
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest.$ac_objext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 eval "$as_ac_Header=yes"
7896 else
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 eval "$as_ac_Header=no"
7902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7907 cat >>confdefs.h <<_ACEOF
7908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7909 _ACEOF
7913 done
7916 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7917 then
7918 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7919 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7920 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923 ac_check_lib_save_LIBS=$LIBS
7924 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h. */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7932 /* Override any gcc2 internal prototype to avoid an error. */
7933 #ifdef __cplusplus
7934 extern "C"
7935 #endif
7936 /* We use char because int might match the return type of a gcc2
7937 builtin and then its argument prototype would still apply. */
7938 char XkbQueryExtension ();
7940 main ()
7942 XkbQueryExtension ();
7944 return 0;
7946 _ACEOF
7947 rm -f conftest.$ac_objext conftest$ac_exeext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949 (eval $ac_link) 2>conftest.er1
7950 ac_status=$?
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 (eval $ac_try) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; } &&
7962 { ac_try='test -s conftest$ac_exeext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_lib_X11_XkbQueryExtension=yes
7969 else
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_cv_lib_X11_XkbQueryExtension=no
7975 rm -f conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 LIBS=$ac_check_lib_save_LIBS
7979 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7980 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7981 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7983 cat >>confdefs.h <<\_ACEOF
7984 #define HAVE_XKB 1
7985 _ACEOF
7991 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7992 then
7993 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7994 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7995 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7998 ac_check_lib_save_LIBS=$LIBS
7999 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h. */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8007 /* Override any gcc2 internal prototype to avoid an error. */
8008 #ifdef __cplusplus
8009 extern "C"
8010 #endif
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8013 char XShmQueryExtension ();
8015 main ()
8017 XShmQueryExtension ();
8019 return 0;
8021 _ACEOF
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8024 (eval $ac_link) 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; } &&
8037 { ac_try='test -s conftest$ac_exeext'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 (eval $ac_try) 2>&5
8040 ac_status=$?
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; }; then
8043 ac_cv_lib_Xext_XShmQueryExtension=yes
8044 else
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 ac_cv_lib_Xext_XShmQueryExtension=no
8050 rm -f conftest.err conftest.$ac_objext \
8051 conftest$ac_exeext conftest.$ac_ext
8052 LIBS=$ac_check_lib_save_LIBS
8054 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8055 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
8056 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8058 cat >>confdefs.h <<\_ACEOF
8059 #define HAVE_LIBXXSHM 1
8060 _ACEOF
8066 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8067 then
8068 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8069 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8070 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073 ac_check_lib_save_LIBS=$LIBS
8074 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8082 /* Override any gcc2 internal prototype to avoid an error. */
8083 #ifdef __cplusplus
8084 extern "C"
8085 #endif
8086 /* We use char because int might match the return type of a gcc2
8087 builtin and then its argument prototype would still apply. */
8088 char XShapeQueryExtension ();
8090 main ()
8092 XShapeQueryExtension ();
8094 return 0;
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8099 (eval $ac_link) 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; } &&
8112 { ac_try='test -s conftest$ac_exeext'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 ac_cv_lib_Xext_XShapeQueryExtension=yes
8119 else
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8123 ac_cv_lib_Xext_XShapeQueryExtension=no
8125 rm -f conftest.err conftest.$ac_objext \
8126 conftest$ac_exeext conftest.$ac_ext
8127 LIBS=$ac_check_lib_save_LIBS
8129 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8130 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8131 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8133 cat >>confdefs.h <<\_ACEOF
8134 #define HAVE_LIBXSHAPE 1
8135 _ACEOF
8141 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8142 then
8143 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8144 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8145 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148 ac_check_lib_save_LIBS=$LIBS
8149 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8150 cat >conftest.$ac_ext <<_ACEOF
8151 /* confdefs.h. */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8157 /* Override any gcc2 internal prototype to avoid an error. */
8158 #ifdef __cplusplus
8159 extern "C"
8160 #endif
8161 /* We use char because int might match the return type of a gcc2
8162 builtin and then its argument prototype would still apply. */
8163 char XDGAQueryExtension ();
8165 main ()
8167 XDGAQueryExtension ();
8169 return 0;
8171 _ACEOF
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8174 (eval $ac_link) 2>conftest.er1
8175 ac_status=$?
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 (eval $ac_try) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest$ac_exeext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 (eval $ac_try) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8200 rm -f conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8202 LIBS=$ac_check_lib_save_LIBS
8204 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8205 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8206 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8208 cat >>confdefs.h <<\_ACEOF
8209 #define HAVE_LIBXXF86DGA2 1
8210 _ACEOF
8212 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8214 else
8215 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
8216 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8217 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220 ac_check_lib_save_LIBS=$LIBS
8221 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
8222 $LIBS"
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8230 /* Override any gcc2 internal prototype to avoid an error. */
8231 #ifdef __cplusplus
8232 extern "C"
8233 #endif
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8236 char XF86DGAQueryExtension ();
8238 main ()
8240 XF86DGAQueryExtension ();
8242 return 0;
8244 _ACEOF
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8247 (eval $ac_link) 2>conftest.er1
8248 ac_status=$?
8249 grep -v '^ *+' conftest.er1 >conftest.err
8250 rm -f conftest.er1
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try='test -s conftest$ac_exeext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
8267 else
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
8273 rm -f conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8275 LIBS=$ac_check_lib_save_LIBS
8277 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
8278 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
8279 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
8281 cat >>confdefs.h <<\_ACEOF
8282 #define HAVE_LIBXXF86DGA 1
8283 _ACEOF
8285 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8294 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8295 then
8296 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8297 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8298 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301 ac_check_lib_save_LIBS=$LIBS
8302 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8303 cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h. */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8310 /* Override any gcc2 internal prototype to avoid an error. */
8311 #ifdef __cplusplus
8312 extern "C"
8313 #endif
8314 /* We use char because int might match the return type of a gcc2
8315 builtin and then its argument prototype would still apply. */
8316 char XF86VidModeQueryExtension ();
8318 main ()
8320 XF86VidModeQueryExtension ();
8322 return 0;
8324 _ACEOF
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327 (eval $ac_link) 2>conftest.er1
8328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest$ac_exeext'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 (eval $ac_try) 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; }; then
8346 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8347 else
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8353 rm -f conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
8355 LIBS=$ac_check_lib_save_LIBS
8357 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8358 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8359 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8361 cat >>confdefs.h <<\_ACEOF
8362 #define HAVE_LIBXXF86VM 1
8363 _ACEOF
8365 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8371 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8372 then
8373 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
8374 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
8375 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378 ac_check_lib_save_LIBS=$LIBS
8379 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h. */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8387 /* Override any gcc2 internal prototype to avoid an error. */
8388 #ifdef __cplusplus
8389 extern "C"
8390 #endif
8391 /* We use char because int might match the return type of a gcc2
8392 builtin and then its argument prototype would still apply. */
8393 char XRRSetScreenConfigAndRate ();
8395 main ()
8397 XRRSetScreenConfigAndRate ();
8399 return 0;
8401 _ACEOF
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404 (eval $ac_link) 2>conftest.er1
8405 ac_status=$?
8406 grep -v '^ *+' conftest.er1 >conftest.err
8407 rm -f conftest.er1
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
8424 else
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
8430 rm -f conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
8432 LIBS=$ac_check_lib_save_LIBS
8434 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
8435 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
8436 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
8438 cat >>confdefs.h <<\_ACEOF
8439 #define HAVE_LIBXRANDR 1
8440 _ACEOF
8442 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
8448 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8449 then
8450 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8451 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8452 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455 ac_check_lib_save_LIBS=$LIBS
8456 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h. */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8464 /* Override any gcc2 internal prototype to avoid an error. */
8465 #ifdef __cplusplus
8466 extern "C"
8467 #endif
8468 /* We use char because int might match the return type of a gcc2
8469 builtin and then its argument prototype would still apply. */
8470 char XvShmCreateImage ();
8472 main ()
8474 XvShmCreateImage ();
8476 return 0;
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 (eval $ac_try) 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_lib_Xv_XvShmCreateImage=yes
8501 else
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8505 ac_cv_lib_Xv_XvShmCreateImage=no
8507 rm -f conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8509 LIBS=$ac_check_lib_save_LIBS
8511 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8512 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8513 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8515 cat >>confdefs.h <<\_ACEOF
8516 #define HAVE_XVIDEO 1
8517 _ACEOF
8519 X_PRE_LIBS="$X_PRE_LIBS -lXv"
8528 done
8530 if test "x$with_opengl" != "xno"
8531 then
8532 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8533 then
8534 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8535 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8536 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8537 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8538 { (exit 1); exit 1; }; }
8543 for ac_header in GL/gl.h GL/glx.h
8545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8547 echo "$as_me:$LINENO: checking for $ac_header" >&5
8548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8554 else
8555 # Is the header compilable?
8556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 $ac_includes_default
8565 #include <$ac_header>
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8569 (eval $ac_compile) 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 (eval $ac_try) 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest.$ac_objext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_header_compiler=yes
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_header_compiler=no
8595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8597 echo "${ECHO_T}$ac_header_compiler" >&6
8599 # Is the header present?
8600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8602 cat >conftest.$ac_ext <<_ACEOF
8603 /* confdefs.h. */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8608 #include <$ac_header>
8609 _ACEOF
8610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8612 ac_status=$?
8613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } >/dev/null; then
8618 if test -s conftest.err; then
8619 ac_cpp_err=$ac_c_preproc_warn_flag
8620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8621 else
8622 ac_cpp_err=
8624 else
8625 ac_cpp_err=yes
8627 if test -z "$ac_cpp_err"; then
8628 ac_header_preproc=yes
8629 else
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 ac_header_preproc=no
8635 rm -f conftest.err conftest.$ac_ext
8636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8637 echo "${ECHO_T}$ac_header_preproc" >&6
8639 # So? What about this header?
8640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8641 yes:no: )
8642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8646 ac_header_preproc=yes
8648 no:yes:* )
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8662 cat <<\_ASBOX
8663 ## ------------------------------------ ##
8664 ## Report this to wine-devel@winehq.org ##
8665 ## ------------------------------------ ##
8666 _ASBOX
8668 sed "s/^/$as_me: WARNING: /" >&2
8670 esac
8671 echo "$as_me:$LINENO: checking for $ac_header" >&5
8672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676 eval "$as_ac_Header=\$ac_header_preproc"
8678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8683 cat >>confdefs.h <<_ACEOF
8684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8685 _ACEOF
8689 done
8691 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8692 then
8694 for ac_header in GL/glext.h
8696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8697 echo "$as_me:$LINENO: checking for $ac_header" >&5
8698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702 cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h. */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 #include <GL/glx.h>
8710 #include <$ac_header>
8711 _ACEOF
8712 rm -f conftest.$ac_objext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8714 (eval $ac_compile) 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 (eval $ac_try) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 eval "$as_ac_Header=yes"
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 eval "$as_ac_Header=no"
8740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8745 cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8747 _ACEOF
8751 done
8753 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8754 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8755 if test "${wine_cv_opengl_version_OK+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758 cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h. */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 #include <GL/gl.h>
8766 main ()
8768 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8770 return 0;
8772 _ACEOF
8773 rm -f conftest.$ac_objext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8775 (eval $ac_compile) 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784 (eval $ac_try) 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; } &&
8788 { ac_try='test -s conftest.$ac_objext'
8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790 (eval $ac_try) 2>&5
8791 ac_status=$?
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
8794 wine_cv_opengl_version_OK="yes"
8795 else
8796 echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8799 wine_cv_opengl_version_OK="no"
8802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8805 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8806 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8808 if test "$wine_cv_opengl_version_OK" = "yes"
8809 then
8810 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8811 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8812 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815 ac_check_lib_save_LIBS=$LIBS
8816 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8817 cat >conftest.$ac_ext <<_ACEOF
8818 /* confdefs.h. */
8819 _ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8824 /* Override any gcc2 internal prototype to avoid an error. */
8825 #ifdef __cplusplus
8826 extern "C"
8827 #endif
8828 /* We use char because int might match the return type of a gcc2
8829 builtin and then its argument prototype would still apply. */
8830 char glXCreateContext ();
8832 main ()
8834 glXCreateContext ();
8836 return 0;
8838 _ACEOF
8839 rm -f conftest.$ac_objext conftest$ac_exeext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>conftest.er1
8842 ac_status=$?
8843 grep -v '^ *+' conftest.er1 >conftest.err
8844 rm -f conftest.er1
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; } &&
8854 { ac_try='test -s conftest$ac_exeext'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 (eval $ac_try) 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 ac_cv_lib_GL_glXCreateContext=yes
8861 else
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 ac_cv_lib_GL_glXCreateContext=no
8867 rm -f conftest.err conftest.$ac_objext \
8868 conftest$ac_exeext conftest.$ac_ext
8869 LIBS=$ac_check_lib_save_LIBS
8871 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8872 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8873 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8874 OPENGL_LIBS="-lGL"
8879 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8880 then
8881 OPENGLFILES='$(OPENGLFILES)'
8883 cat >>confdefs.h <<\_ACEOF
8884 #define HAVE_OPENGL 1
8885 _ACEOF
8888 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8889 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8890 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893 ac_check_lib_save_LIBS=$LIBS
8894 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8895 cat >conftest.$ac_ext <<_ACEOF
8896 /* confdefs.h. */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8902 /* Override any gcc2 internal prototype to avoid an error. */
8903 #ifdef __cplusplus
8904 extern "C"
8905 #endif
8906 /* We use char because int might match the return type of a gcc2
8907 builtin and then its argument prototype would still apply. */
8908 char glXGetProcAddressARB ();
8910 main ()
8912 glXGetProcAddressARB ();
8914 return 0;
8916 _ACEOF
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919 (eval $ac_link) 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 (eval $ac_try) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_lib_GL_glXGetProcAddressARB=yes
8939 else
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_cv_lib_GL_glXGetProcAddressARB=no
8945 rm -f conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 LIBS=$ac_check_lib_save_LIBS
8949 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8950 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8951 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8953 cat >>confdefs.h <<\_ACEOF
8954 #define HAVE_GLX_GETPROCADDRESS 1
8955 _ACEOF
8960 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8961 then
8962 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8963 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8964 if test "${wine_cv_extension_prototypes+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 else
8967 cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h. */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8973 #include <GL/gl.h>
8974 #ifdef HAVE_GL_GLEXT_H
8975 # include <GL/glext.h>
8976 #endif
8979 main ()
8981 PFNGLCOLORTABLEEXTPROC test_proc;
8983 return 0;
8985 _ACEOF
8986 rm -f conftest.$ac_objext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8988 (eval $ac_compile) 2>conftest.er1
8989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } &&
8995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest.$ac_objext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 wine_cv_extension_prototypes="yes"
9008 else
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 wine_cv_extension_prototypes="no"
9015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9018 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
9019 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
9020 if test "$wine_cv_extension_prototypes" = "yes"
9021 then
9023 cat >>confdefs.h <<\_ACEOF
9024 #define HAVE_GLEXT_PROTOTYPES 1
9025 _ACEOF
9031 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
9032 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
9033 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036 ac_check_lib_save_LIBS=$LIBS
9037 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
9038 $LIBS"
9039 cat >conftest.$ac_ext <<_ACEOF
9040 /* confdefs.h. */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9046 /* Override any gcc2 internal prototype to avoid an error. */
9047 #ifdef __cplusplus
9048 extern "C"
9049 #endif
9050 /* We use char because int might match the return type of a gcc2
9051 builtin and then its argument prototype would still apply. */
9052 char gluLookAt ();
9054 main ()
9056 gluLookAt ();
9058 return 0;
9060 _ACEOF
9061 rm -f conftest.$ac_objext conftest$ac_exeext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063 (eval $ac_link) 2>conftest.er1
9064 ac_status=$?
9065 grep -v '^ *+' conftest.er1 >conftest.err
9066 rm -f conftest.er1
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } &&
9070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; } &&
9076 { ac_try='test -s conftest$ac_exeext'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 (eval $ac_try) 2>&5
9079 ac_status=$?
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
9082 ac_cv_lib_GLU_gluLookAt=yes
9083 else
9084 echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9087 ac_cv_lib_GLU_gluLookAt=no
9089 rm -f conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9091 LIBS=$ac_check_lib_save_LIBS
9093 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9094 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
9095 if test $ac_cv_lib_GLU_gluLookAt = yes; then
9096 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
9097 GLU32FILES='$(GLU32FILES)'
9103 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9104 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
9105 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108 ac_check_lib_save_LIBS=$LIBS
9109 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h. */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9117 /* Override any gcc2 internal prototype to avoid an error. */
9118 #ifdef __cplusplus
9119 extern "C"
9120 #endif
9121 /* We use char because int might match the return type of a gcc2
9122 builtin and then its argument prototype would still apply. */
9123 char glutMainLoop ();
9125 main ()
9127 glutMainLoop ();
9129 return 0;
9131 _ACEOF
9132 rm -f conftest.$ac_objext conftest$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134 (eval $ac_link) 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
9141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 (eval $ac_try) 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; } &&
9147 { ac_try='test -s conftest$ac_exeext'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 (eval $ac_try) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 ac_cv_lib_glut_glutMainLoop=yes
9154 else
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 ac_cv_lib_glut_glutMainLoop=no
9160 rm -f conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 LIBS=$ac_check_lib_save_LIBS
9164 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9165 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
9166 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9167 GLUT_LIBS="-lglut -lXmu -lXi"
9169 GLUT32FILES='$(GLUT32FILES)'
9176 NASLIBS=""
9179 for ac_header in audio/audiolib.h
9181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9183 echo "$as_me:$LINENO: checking for $ac_header" >&5
9184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9190 else
9191 # Is the header compilable?
9192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9194 cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h. */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200 $ac_includes_default
9201 #include <$ac_header>
9202 _ACEOF
9203 rm -f conftest.$ac_objext
9204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9205 (eval $ac_compile) 2>conftest.er1
9206 ac_status=$?
9207 grep -v '^ *+' conftest.er1 >conftest.err
9208 rm -f conftest.er1
9209 cat conftest.err >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } &&
9212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 (eval $ac_try) 2>&5
9215 ac_status=$?
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); }; } &&
9218 { ac_try='test -s conftest.$ac_objext'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 (eval $ac_try) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; }; then
9224 ac_header_compiler=yes
9225 else
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9229 ac_header_compiler=no
9231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9233 echo "${ECHO_T}$ac_header_compiler" >&6
9235 # Is the header present?
9236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9238 cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h. */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 #include <$ac_header>
9245 _ACEOF
9246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } >/dev/null; then
9254 if test -s conftest.err; then
9255 ac_cpp_err=$ac_c_preproc_warn_flag
9256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9257 else
9258 ac_cpp_err=
9260 else
9261 ac_cpp_err=yes
9263 if test -z "$ac_cpp_err"; then
9264 ac_header_preproc=yes
9265 else
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9269 ac_header_preproc=no
9271 rm -f conftest.err conftest.$ac_ext
9272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9273 echo "${ECHO_T}$ac_header_preproc" >&6
9275 # So? What about this header?
9276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9277 yes:no: )
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9282 ac_header_preproc=yes
9284 no:yes:* )
9285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9298 cat <<\_ASBOX
9299 ## ------------------------------------ ##
9300 ## Report this to wine-devel@winehq.org ##
9301 ## ------------------------------------ ##
9302 _ASBOX
9304 sed "s/^/$as_me: WARNING: /" >&2
9306 esac
9307 echo "$as_me:$LINENO: checking for $ac_header" >&5
9308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312 eval "$as_ac_Header=\$ac_header_preproc"
9314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9319 cat >>confdefs.h <<_ACEOF
9320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9321 _ACEOF
9323 for ac_header in audio/soundlib.h
9325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9326 echo "$as_me:$LINENO: checking for $ac_header" >&5
9327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 else
9331 cat >conftest.$ac_ext <<_ACEOF
9332 /* confdefs.h. */
9333 _ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 #include <audio/audiolib.h>
9339 #include <$ac_header>
9340 _ACEOF
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343 (eval $ac_compile) 2>conftest.er1
9344 ac_status=$?
9345 grep -v '^ *+' conftest.er1 >conftest.err
9346 rm -f conftest.er1
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 (eval $ac_try) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; } &&
9356 { ac_try='test -s conftest.$ac_objext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 (eval $ac_try) 2>&5
9359 ac_status=$?
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 eval "$as_ac_Header=yes"
9363 else
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 eval "$as_ac_Header=no"
9369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9374 cat >>confdefs.h <<_ACEOF
9375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9376 _ACEOF
9380 done
9382 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9383 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9384 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387 ac_check_lib_save_LIBS=$LIBS
9388 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9389 cat >conftest.$ac_ext <<_ACEOF
9390 /* confdefs.h. */
9391 _ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h. */
9396 /* Override any gcc2 internal prototype to avoid an error. */
9397 #ifdef __cplusplus
9398 extern "C"
9399 #endif
9400 /* We use char because int might match the return type of a gcc2
9401 builtin and then its argument prototype would still apply. */
9402 char AuCreateFlow ();
9404 main ()
9406 AuCreateFlow ();
9408 return 0;
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 (eval $ac_try) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; } &&
9426 { ac_try='test -s conftest$ac_exeext'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 (eval $ac_try) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; }; then
9432 ac_cv_lib_audio_AuCreateFlow=yes
9433 else
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 ac_cv_lib_audio_AuCreateFlow=no
9439 rm -f conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441 LIBS=$ac_check_lib_save_LIBS
9443 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9444 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9445 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9447 cat >>confdefs.h <<\_ACEOF
9448 #define HAVE_NAS 1
9449 _ACEOF
9451 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9456 done
9459 CPPFLAGS="$ac_save_CPPFLAGS"
9460 XFILES='$(XFILES)'
9461 else
9462 XLIB=""
9463 X_CFLAGS=""
9464 X_LIBS=""
9467 CURSESLIBS=""
9468 if test "x$with_curses" != "xno"
9469 then
9471 for ac_header in ncurses.h
9473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9475 echo "$as_me:$LINENO: checking for $ac_header" >&5
9476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9482 else
9483 # Is the header compilable?
9484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h. */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492 $ac_includes_default
9493 #include <$ac_header>
9494 _ACEOF
9495 rm -f conftest.$ac_objext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9497 (eval $ac_compile) 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 (eval $ac_try) 2>&5
9507 ac_status=$?
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; } &&
9510 { ac_try='test -s conftest.$ac_objext'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 (eval $ac_try) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9516 ac_header_compiler=yes
9517 else
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 ac_header_compiler=no
9523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9525 echo "${ECHO_T}$ac_header_compiler" >&6
9527 # Is the header present?
9528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9530 cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h. */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 #include <$ac_header>
9537 _ACEOF
9538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } >/dev/null; then
9546 if test -s conftest.err; then
9547 ac_cpp_err=$ac_c_preproc_warn_flag
9548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9549 else
9550 ac_cpp_err=
9552 else
9553 ac_cpp_err=yes
9555 if test -z "$ac_cpp_err"; then
9556 ac_header_preproc=yes
9557 else
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9561 ac_header_preproc=no
9563 rm -f conftest.err conftest.$ac_ext
9564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9565 echo "${ECHO_T}$ac_header_preproc" >&6
9567 # So? What about this header?
9568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9569 yes:no: )
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9574 ac_header_preproc=yes
9576 no:yes:* )
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9590 cat <<\_ASBOX
9591 ## ------------------------------------ ##
9592 ## Report this to wine-devel@winehq.org ##
9593 ## ------------------------------------ ##
9594 _ASBOX
9596 sed "s/^/$as_me: WARNING: /" >&2
9598 esac
9599 echo "$as_me:$LINENO: checking for $ac_header" >&5
9600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604 eval "$as_ac_Header=\$ac_header_preproc"
9606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9611 cat >>confdefs.h <<_ACEOF
9612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9613 _ACEOF
9614 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9615 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9616 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 ac_check_lib_save_LIBS=$LIBS
9620 LIBS="-lncurses $LIBS"
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9628 /* Override any gcc2 internal prototype to avoid an error. */
9629 #ifdef __cplusplus
9630 extern "C"
9631 #endif
9632 /* We use char because int might match the return type of a gcc2
9633 builtin and then its argument prototype would still apply. */
9634 char waddch ();
9636 main ()
9638 waddch ();
9640 return 0;
9642 _ACEOF
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9645 (eval $ac_link) 2>conftest.er1
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } &&
9652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 (eval $ac_try) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest$ac_exeext'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 (eval $ac_try) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9664 ac_cv_lib_ncurses_waddch=yes
9665 else
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_cv_lib_ncurses_waddch=no
9671 rm -f conftest.err conftest.$ac_objext \
9672 conftest$ac_exeext conftest.$ac_ext
9673 LIBS=$ac_check_lib_save_LIBS
9675 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9676 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9677 if test $ac_cv_lib_ncurses_waddch = yes; then
9679 cat >>confdefs.h <<\_ACEOF
9680 #define HAVE_LIBNCURSES 1
9681 _ACEOF
9683 CURSESLIBS="-lncurses"
9684 else
9686 for ac_header in curses.h
9688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9690 echo "$as_me:$LINENO: checking for $ac_header" >&5
9691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9697 else
9698 # Is the header compilable?
9699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h. */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9708 #include <$ac_header>
9709 _ACEOF
9710 rm -f conftest.$ac_objext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9712 (eval $ac_compile) 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 (eval $ac_try) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest.$ac_objext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 ac_header_compiler=yes
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9736 ac_header_compiler=no
9738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9740 echo "${ECHO_T}$ac_header_compiler" >&6
9742 # Is the header present?
9743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h. */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 #include <$ac_header>
9752 _ACEOF
9753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } >/dev/null; then
9761 if test -s conftest.err; then
9762 ac_cpp_err=$ac_c_preproc_warn_flag
9763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9764 else
9765 ac_cpp_err=
9767 else
9768 ac_cpp_err=yes
9770 if test -z "$ac_cpp_err"; then
9771 ac_header_preproc=yes
9772 else
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 ac_header_preproc=no
9778 rm -f conftest.err conftest.$ac_ext
9779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9780 echo "${ECHO_T}$ac_header_preproc" >&6
9782 # So? What about this header?
9783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9784 yes:no: )
9785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9789 ac_header_preproc=yes
9791 no:yes:* )
9792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9805 cat <<\_ASBOX
9806 ## ------------------------------------ ##
9807 ## Report this to wine-devel@winehq.org ##
9808 ## ------------------------------------ ##
9809 _ASBOX
9811 sed "s/^/$as_me: WARNING: /" >&2
9813 esac
9814 echo "$as_me:$LINENO: checking for $ac_header" >&5
9815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819 eval "$as_ac_Header=\$ac_header_preproc"
9821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9826 cat >>confdefs.h <<_ACEOF
9827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9828 _ACEOF
9829 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9830 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9831 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834 ac_check_lib_save_LIBS=$LIBS
9835 LIBS="-lcurses $LIBS"
9836 cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h. */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9843 /* Override any gcc2 internal prototype to avoid an error. */
9844 #ifdef __cplusplus
9845 extern "C"
9846 #endif
9847 /* We use char because int might match the return type of a gcc2
9848 builtin and then its argument prototype would still apply. */
9849 char waddch ();
9851 main ()
9853 waddch ();
9855 return 0;
9857 _ACEOF
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_lib_curses_waddch=yes
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_cv_lib_curses_waddch=no
9886 rm -f conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9890 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9891 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9892 if test $ac_cv_lib_curses_waddch = yes; then
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_LIBCURSES 1
9896 _ACEOF
9898 CURSESLIBS="-lcurses"
9903 done
9909 done
9911 saved_libs="$LIBS"
9912 LIBS="$CURSESLIBS $LIBS"
9915 for ac_func in getbkgd resizeterm
9917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9918 echo "$as_me:$LINENO: checking for $ac_func" >&5
9919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9920 if eval "test \"\${$as_ac_var+set}\" = set"; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9931 #define $ac_func innocuous_$ac_func
9933 /* System header to define __stub macros and hopefully few prototypes,
9934 which can conflict with char $ac_func (); below.
9935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9936 <limits.h> exists even on freestanding compilers. */
9938 #ifdef __STDC__
9939 # include <limits.h>
9940 #else
9941 # include <assert.h>
9942 #endif
9944 #undef $ac_func
9946 /* Override any gcc2 internal prototype to avoid an error. */
9947 #ifdef __cplusplus
9948 extern "C"
9950 #endif
9951 /* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9953 char $ac_func ();
9954 /* The GNU C library defines this for functions which it implements
9955 to always fail with ENOSYS. Some functions are actually named
9956 something starting with __ and the normal name is an alias. */
9957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9958 choke me
9959 #else
9960 char (*f) () = $ac_func;
9961 #endif
9962 #ifdef __cplusplus
9964 #endif
9967 main ()
9969 return f != $ac_func;
9971 return 0;
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9976 (eval $ac_link) 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 eval "$as_ac_var=yes"
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 eval "$as_ac_var=no"
10002 rm -f conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10007 if test `eval echo '${'$as_ac_var'}'` = yes; then
10008 cat >>confdefs.h <<_ACEOF
10009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10010 _ACEOF
10013 done
10015 LIBS="$saved_libs"
10019 # Extract the first word of "sane-config", so it can be a program name with args.
10020 set dummy sane-config; ac_word=$2
10021 echo "$as_me:$LINENO: checking for $ac_word" >&5
10022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10023 if test "${ac_cv_prog_sane_devel+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026 if test -n "$sane_devel"; then
10027 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
10028 else
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in $PATH
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10036 ac_cv_prog_sane_devel="sane-config"
10037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 break 2
10040 done
10041 done
10043 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10046 sane_devel=$ac_cv_prog_sane_devel
10047 if test -n "$sane_devel"; then
10048 echo "$as_me:$LINENO: result: $sane_devel" >&5
10049 echo "${ECHO_T}$sane_devel" >&6
10050 else
10051 echo "$as_me:$LINENO: result: no" >&5
10052 echo "${ECHO_T}no" >&6
10055 if test "$sane_devel" = "no"
10056 then
10057 SANELIBS=""
10058 SANEINCL=""
10059 else
10060 SANELIBS="`$sane_devel --libs`"
10061 SANEINCL="`$sane_devel --cflags`"
10062 ac_save_CPPFLAGS="$CPPFLAGS"
10063 ac_save_LIBS="$LIBS"
10064 CPPFLAGS="$CPPFLAGS $SANEINCL"
10065 LIBS="$LIBS $SANELIBS"
10066 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10067 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10068 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10069 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10073 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10074 else
10075 # Is the header compilable?
10076 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10077 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 #include <sane/sane.h>
10086 _ACEOF
10087 rm -f conftest.$ac_objext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089 (eval $ac_compile) 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest.$ac_objext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 ac_header_compiler=yes
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_header_compiler=no
10115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10117 echo "${ECHO_T}$ac_header_compiler" >&6
10119 # Is the header present?
10120 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10121 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h. */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 #include <sane/sane.h>
10129 _ACEOF
10130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } >/dev/null; then
10138 if test -s conftest.err; then
10139 ac_cpp_err=$ac_c_preproc_warn_flag
10140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10141 else
10142 ac_cpp_err=
10144 else
10145 ac_cpp_err=yes
10147 if test -z "$ac_cpp_err"; then
10148 ac_header_preproc=yes
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_header_preproc=no
10155 rm -f conftest.err conftest.$ac_ext
10156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10157 echo "${ECHO_T}$ac_header_preproc" >&6
10159 # So? What about this header?
10160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10161 yes:no: )
10162 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10163 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10164 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10165 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10166 ac_header_preproc=yes
10168 no:yes:* )
10169 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10170 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10172 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10174 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10175 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10176 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10177 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10178 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10179 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10180 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10182 cat <<\_ASBOX
10183 ## ------------------------------------ ##
10184 ## Report this to wine-devel@winehq.org ##
10185 ## ------------------------------------ ##
10186 _ASBOX
10188 sed "s/^/$as_me: WARNING: /" >&2
10190 esac
10191 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10192 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10193 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196 ac_cv_header_sane_sane_h=$ac_header_preproc
10198 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10199 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10202 if test $ac_cv_header_sane_sane_h = yes; then
10203 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10204 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10205 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208 ac_check_lib_save_LIBS=$LIBS
10209 LIBS="-lsane $LIBS"
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h. */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10217 /* Override any gcc2 internal prototype to avoid an error. */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 /* We use char because int might match the return type of a gcc2
10222 builtin and then its argument prototype would still apply. */
10223 char sane_open ();
10225 main ()
10227 sane_open ();
10229 return 0;
10231 _ACEOF
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234 (eval $ac_link) 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest$ac_exeext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10253 ac_cv_lib_sane_sane_open=yes
10254 else
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ac_cv_lib_sane_sane_open=no
10260 rm -f conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10264 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10265 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10266 if test $ac_cv_lib_sane_sane_open = yes; then
10268 cat >>confdefs.h <<\_ACEOF
10269 #define HAVE_SANE 1
10270 _ACEOF
10272 else
10273 SANELIBS=""
10274 SANEINCL=""
10277 else
10278 SANELIBS=""
10279 SANEINCL=""
10283 LIBS="$ac_save_LIBS"
10284 CPPFLAGS="$ac_save_CPPFLAGS"
10290 for ac_header in unicode/ubidi.h
10292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10294 echo "$as_me:$LINENO: checking for $ac_header" >&5
10295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10301 else
10302 # Is the header compilable?
10303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10305 cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h. */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 $ac_includes_default
10312 #include <$ac_header>
10313 _ACEOF
10314 rm -f conftest.$ac_objext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest.$ac_objext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 ac_header_compiler=yes
10336 else
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_header_compiler=no
10342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10344 echo "${ECHO_T}$ac_header_compiler" >&6
10346 # Is the header present?
10347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10349 cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h. */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355 #include <$ac_header>
10356 _ACEOF
10357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10359 ac_status=$?
10360 grep -v '^ *+' conftest.er1 >conftest.err
10361 rm -f conftest.er1
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } >/dev/null; then
10365 if test -s conftest.err; then
10366 ac_cpp_err=$ac_c_preproc_warn_flag
10367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10368 else
10369 ac_cpp_err=
10371 else
10372 ac_cpp_err=yes
10374 if test -z "$ac_cpp_err"; then
10375 ac_header_preproc=yes
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_header_preproc=no
10382 rm -f conftest.err conftest.$ac_ext
10383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10384 echo "${ECHO_T}$ac_header_preproc" >&6
10386 # So? What about this header?
10387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10388 yes:no: )
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10393 ac_header_preproc=yes
10395 no:yes:* )
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10409 cat <<\_ASBOX
10410 ## ------------------------------------ ##
10411 ## Report this to wine-devel@winehq.org ##
10412 ## ------------------------------------ ##
10413 _ASBOX
10415 sed "s/^/$as_me: WARNING: /" >&2
10417 esac
10418 echo "$as_me:$LINENO: checking for $ac_header" >&5
10419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423 eval "$as_ac_Header=\$ac_header_preproc"
10425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10430 cat >>confdefs.h <<_ACEOF
10431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10432 _ACEOF
10436 done
10438 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10439 then
10440 saved_libs="$LIBS"
10441 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10442 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
10443 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
10444 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <unicode/ubidi.h>
10453 main ()
10455 ubidi_open()
10457 return 0;
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>conftest.er1
10463 ac_status=$?
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10482 cat >>confdefs.h <<\_ACEOF
10483 #define HAVE_ICU 1
10484 _ACEOF
10486 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10488 else
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10493 rm -f conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS="$saved_libs"
10498 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10499 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10500 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503 ac_check_lib_save_LIBS=$LIBS
10504 LIBS="-lfreetype $X_LIBS $LIBS"
10505 cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h. */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10512 /* Override any gcc2 internal prototype to avoid an error. */
10513 #ifdef __cplusplus
10514 extern "C"
10515 #endif
10516 /* We use char because int might match the return type of a gcc2
10517 builtin and then its argument prototype would still apply. */
10518 char FT_Init_FreeType ();
10520 main ()
10522 FT_Init_FreeType ();
10524 return 0;
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10529 (eval $ac_link) 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; } &&
10542 { ac_try='test -s conftest$ac_exeext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_cv_lib_freetype_FT_Init_FreeType=yes
10549 else
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_cv_lib_freetype_FT_Init_FreeType=no
10555 rm -f conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557 LIBS=$ac_check_lib_save_LIBS
10559 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10560 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10561 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10562 ft_lib=yes
10563 else
10564 ft_lib=no
10567 if test "$ft_lib" = "no"
10568 then
10569 FREETYPEINCL=""
10570 wine_cv_msg_freetype=no
10571 else
10572 # Extract the first word of "freetype-config", so it can be a program name with args.
10573 set dummy freetype-config; ac_word=$2
10574 echo "$as_me:$LINENO: checking for $ac_word" >&5
10575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10576 if test "${ac_cv_prog_ft_devel+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579 if test -n "$ft_devel"; then
10580 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10581 else
10582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583 for as_dir in $PATH
10585 IFS=$as_save_IFS
10586 test -z "$as_dir" && as_dir=.
10587 for ac_exec_ext in '' $ac_executable_extensions; do
10588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10589 ac_cv_prog_ft_devel="freetype-config"
10590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10591 break 2
10593 done
10594 done
10596 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10599 ft_devel=$ac_cv_prog_ft_devel
10600 if test -n "$ft_devel"; then
10601 echo "$as_me:$LINENO: result: $ft_devel" >&5
10602 echo "${ECHO_T}$ft_devel" >&6
10603 else
10604 echo "$as_me:$LINENO: result: no" >&5
10605 echo "${ECHO_T}no" >&6
10608 if test "$ft_devel" = "no"
10609 then
10610 # Extract the first word of "freetype2-config", so it can be a program name with args.
10611 set dummy freetype2-config; ac_word=$2
10612 echo "$as_me:$LINENO: checking for $ac_word" >&5
10613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10614 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617 if test -n "$ft_devel2"; then
10618 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10619 else
10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10627 ac_cv_prog_ft_devel2="freetype2-config"
10628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10629 break 2
10631 done
10632 done
10634 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10637 ft_devel2=$ac_cv_prog_ft_devel2
10638 if test -n "$ft_devel2"; then
10639 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10640 echo "${ECHO_T}$ft_devel2" >&6
10641 else
10642 echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6
10646 if test "$ft_devel2" = "freetype2-config"
10647 then
10648 ft_devel=$ft_devel2
10651 if test "$ft_devel" = "no"
10652 then
10653 FREETYPEINCL=""
10654 wine_cv_msg_freetype=yes
10655 else
10656 FREETYPEINCL=`$ft_devel --cflags`
10657 ac_save_CPPFLAGS="$CPPFLAGS"
10658 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10668 for ac_header in ft2build.h \
10669 freetype/freetype.h \
10670 freetype/ftglyph.h \
10671 freetype/tttables.h \
10672 freetype/ftnames.h \
10673 freetype/ftsnames.h \
10674 freetype/ttnameid.h \
10675 freetype/ftoutln.h \
10676 freetype/internal/sfnt.h
10678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10679 echo "$as_me:$LINENO: checking for $ac_header" >&5
10680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #if HAVE_FT2BUILD_H
10691 #include <ft2build.h>
10692 #endif
10694 #include <$ac_header>
10695 _ACEOF
10696 rm -f conftest.$ac_objext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10698 (eval $ac_compile) 2>conftest.er1
10699 ac_status=$?
10700 grep -v '^ *+' conftest.er1 >conftest.err
10701 rm -f conftest.er1
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; } &&
10711 { ac_try='test -s conftest.$ac_objext'
10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713 (eval $ac_try) 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 eval "$as_ac_Header=yes"
10718 else
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10722 eval "$as_ac_Header=no"
10724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10729 cat >>confdefs.h <<_ACEOF
10730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10731 _ACEOF
10735 done
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h. */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 #include <ft2build.h>
10744 #include <freetype/fttrigon.h>
10745 _ACEOF
10746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10748 ac_status=$?
10749 grep -v '^ *+' conftest.er1 >conftest.err
10750 rm -f conftest.er1
10751 cat conftest.err >&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } >/dev/null; then
10754 if test -s conftest.err; then
10755 ac_cpp_err=$ac_c_preproc_warn_flag
10756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10757 else
10758 ac_cpp_err=
10760 else
10761 ac_cpp_err=yes
10763 if test -z "$ac_cpp_err"; then
10765 cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_FREETYPE_FTTRIGON_H 1
10767 _ACEOF
10769 wine_cv_fttrigon=yes
10770 else
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 wine_cv_fttrigon=no
10776 rm -f conftest.err conftest.$ac_ext
10777 CPPFLAGS="$ac_save_CPPFLAGS"
10778 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10779 then
10781 cat >>confdefs.h <<\_ACEOF
10782 #define HAVE_FREETYPE 1
10783 _ACEOF
10785 wine_cv_msg_freetype=no
10786 else
10787 FREETYPEINCL=""
10788 wine_cv_msg_freetype=yes
10794 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10795 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10796 if test "${ac_cv_c_ppdev+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799 cat >conftest.$ac_ext <<_ACEOF
10800 /* confdefs.h. */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #include <linux/ppdev.h>
10807 main ()
10809 ioctl (1,PPCLAIM,0)
10811 return 0;
10813 _ACEOF
10814 rm -f conftest.$ac_objext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10816 (eval $ac_compile) 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest.$ac_objext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 ac_cv_c_ppdev="yes"
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 ac_cv_c_ppdev="no"
10842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10845 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10846 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10847 if test "$ac_cv_c_ppdev" = "yes"
10848 then
10850 cat >>confdefs.h <<\_ACEOF
10851 #define HAVE_PPDEV 1
10852 _ACEOF
10856 echo "$as_me:$LINENO: checking for va_copy" >&5
10857 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10858 if test "${ac_cv_c_va_copy+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861 cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h. */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10867 #include <stdarg.h>
10869 main ()
10871 va_list ap1, ap2;
10872 va_copy(ap1,ap2);
10875 return 0;
10877 _ACEOF
10878 rm -f conftest.$ac_objext conftest$ac_exeext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10880 (eval $ac_link) 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; } &&
10893 { ac_try='test -s conftest$ac_exeext'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10899 ac_cv_c_va_copy="yes"
10900 else
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 ac_cv_c_va_copy="no"
10906 rm -f conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10910 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10911 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10912 if test "$ac_cv_c_va_copy" = "yes"
10913 then
10915 cat >>confdefs.h <<\_ACEOF
10916 #define HAVE_VA_COPY 1
10917 _ACEOF
10920 echo "$as_me:$LINENO: checking for __va_copy" >&5
10921 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10922 if test "${ac_cv_c___va_copy+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h. */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 #include <stdarg.h>
10933 main ()
10935 va_list ap1, ap2;
10936 __va_copy(ap1,ap2);
10939 return 0;
10941 _ACEOF
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944 (eval $ac_link) 2>conftest.er1
10945 ac_status=$?
10946 grep -v '^ *+' conftest.er1 >conftest.err
10947 rm -f conftest.er1
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest$ac_exeext'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 ac_cv_c___va_copy="yes"
10964 else
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10968 ac_cv_c___va_copy="no"
10970 rm -f conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10974 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10975 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10976 if test "$ac_cv_c___va_copy" = "yes"
10977 then
10979 cat >>confdefs.h <<\_ACEOF
10980 #define HAVE___VA_COPY 1
10981 _ACEOF
10985 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10986 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10987 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990 cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h. */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 #include <setjmp.h>
10998 main ()
11000 sigjmp_buf buf;
11001 sigsetjmp( buf, 1 );
11002 siglongjmp( buf, 1 );
11004 return 0;
11006 _ACEOF
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11009 (eval $ac_link) 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; } &&
11022 { ac_try='test -s conftest$ac_exeext'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 ac_cv_c_sigsetjmp="yes"
11029 else
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11033 ac_cv_c_sigsetjmp="no"
11035 rm -f conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11039 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11040 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
11041 if test "$ac_cv_c_sigsetjmp" = "yes"
11042 then
11044 cat >>confdefs.h <<\_ACEOF
11045 #define HAVE_SIGSETJMP 1
11046 _ACEOF
11050 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11051 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
11052 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055 cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h. */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11061 #define _GNU_SOURCE
11062 #include <pthread.h>
11065 main ()
11067 if ((pthread_rwlock_t *) 0)
11068 return 0;
11069 if (sizeof (pthread_rwlock_t))
11070 return 0;
11072 return 0;
11074 _ACEOF
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077 (eval $ac_compile) 2>conftest.er1
11078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11087 ac_status=$?
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; } &&
11090 { ac_try='test -s conftest.$ac_objext'
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; }; then
11096 ac_cv_type_pthread_rwlock_t=yes
11097 else
11098 echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11101 ac_cv_type_pthread_rwlock_t=no
11103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11105 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11106 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
11107 if test $ac_cv_type_pthread_rwlock_t = yes; then
11109 cat >>confdefs.h <<_ACEOF
11110 #define HAVE_PTHREAD_RWLOCK_T 1
11111 _ACEOF
11115 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11116 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11117 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h. */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #define _GNU_SOURCE
11127 #include <pthread.h>
11130 main ()
11132 if ((pthread_rwlockattr_t *) 0)
11133 return 0;
11134 if (sizeof (pthread_rwlockattr_t))
11135 return 0;
11137 return 0;
11139 _ACEOF
11140 rm -f conftest.$ac_objext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11142 (eval $ac_compile) 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; } &&
11155 { ac_try='test -s conftest.$ac_objext'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; }; then
11161 ac_cv_type_pthread_rwlockattr_t=yes
11162 else
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 ac_cv_type_pthread_rwlockattr_t=no
11168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11170 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11171 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11172 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11174 cat >>confdefs.h <<_ACEOF
11175 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11176 _ACEOF
11182 ac_save_LIBS="$LIBS"
11183 LIBS="$LIBS $LIBPTHREAD"
11185 for ac_func in pthread_getattr_np
11187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11188 echo "$as_me:$LINENO: checking for $ac_func" >&5
11189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11190 if eval "test \"\${$as_ac_var+set}\" = set"; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11201 #define $ac_func innocuous_$ac_func
11203 /* System header to define __stub macros and hopefully few prototypes,
11204 which can conflict with char $ac_func (); below.
11205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11206 <limits.h> exists even on freestanding compilers. */
11208 #ifdef __STDC__
11209 # include <limits.h>
11210 #else
11211 # include <assert.h>
11212 #endif
11214 #undef $ac_func
11216 /* Override any gcc2 internal prototype to avoid an error. */
11217 #ifdef __cplusplus
11218 extern "C"
11220 #endif
11221 /* We use char because int might match the return type of a gcc2
11222 builtin and then its argument prototype would still apply. */
11223 char $ac_func ();
11224 /* The GNU C library defines this for functions which it implements
11225 to always fail with ENOSYS. Some functions are actually named
11226 something starting with __ and the normal name is an alias. */
11227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11228 choke me
11229 #else
11230 char (*f) () = $ac_func;
11231 #endif
11232 #ifdef __cplusplus
11234 #endif
11237 main ()
11239 return f != $ac_func;
11241 return 0;
11243 _ACEOF
11244 rm -f conftest.$ac_objext conftest$ac_exeext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11246 (eval $ac_link) 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11256 ac_status=$?
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; } &&
11259 { ac_try='test -s conftest$ac_exeext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 eval "$as_ac_var=yes"
11266 else
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11270 eval "$as_ac_var=no"
11272 rm -f conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11277 if test `eval echo '${'$as_ac_var'}'` = yes; then
11278 cat >>confdefs.h <<_ACEOF
11279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11280 _ACEOF
11283 done
11285 LIBS="$ac_save_LIBS"
11290 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
11292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11294 echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11301 else
11302 # Is the header compilable?
11303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11305 cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h. */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 $ac_includes_default
11312 #include <$ac_header>
11313 _ACEOF
11314 rm -f conftest.$ac_objext
11315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11316 (eval $ac_compile) 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest.$ac_objext'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_header_compiler=yes
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_compiler=no
11342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11344 echo "${ECHO_T}$ac_header_compiler" >&6
11346 # Is the header present?
11347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11349 cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h. */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #include <$ac_header>
11356 _ACEOF
11357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } >/dev/null; then
11365 if test -s conftest.err; then
11366 ac_cpp_err=$ac_c_preproc_warn_flag
11367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11368 else
11369 ac_cpp_err=
11371 else
11372 ac_cpp_err=yes
11374 if test -z "$ac_cpp_err"; then
11375 ac_header_preproc=yes
11376 else
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11380 ac_header_preproc=no
11382 rm -f conftest.err conftest.$ac_ext
11383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11384 echo "${ECHO_T}$ac_header_preproc" >&6
11386 # So? What about this header?
11387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11388 yes:no: )
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11393 ac_header_preproc=yes
11395 no:yes:* )
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11409 cat <<\_ASBOX
11410 ## ------------------------------------ ##
11411 ## Report this to wine-devel@winehq.org ##
11412 ## ------------------------------------ ##
11413 _ASBOX
11415 sed "s/^/$as_me: WARNING: /" >&2
11417 esac
11418 echo "$as_me:$LINENO: checking for $ac_header" >&5
11419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423 eval "$as_ac_Header=\$ac_header_preproc"
11425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11430 cat >>confdefs.h <<_ACEOF
11431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11432 _ACEOF
11433 break
11436 done
11439 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11440 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11441 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444 cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h. */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11451 #if defined(HAVE_SYS_SOUNDCARD_H)
11452 #include <sys/soundcard.h>
11453 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11454 #include <machine/soundcard.h>
11455 #elif defined(HAVE_SOUNDCARD_H)
11456 #include <soundcard.h>
11457 #endif
11460 main ()
11464 /* check for one of the Open Sound System specific SNDCTL_ defines */
11465 #if !defined(SNDCTL_DSP_STEREO)
11466 #error No open sound system
11467 #endif
11470 return 0;
11472 _ACEOF
11473 rm -f conftest.$ac_objext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>conftest.er1
11476 ac_status=$?
11477 grep -v '^ *+' conftest.er1 >conftest.err
11478 rm -f conftest.er1
11479 cat conftest.err >&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } &&
11482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest.$ac_objext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 ac_cv_c_opensoundsystem="yes"
11495 else
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_cv_c_opensoundsystem="no"
11501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11503 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11504 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11506 if test "$ac_cv_c_opensoundsystem" = "yes"
11507 then
11509 cat >>confdefs.h <<\_ACEOF
11510 #define HAVE_OSS 1
11511 _ACEOF
11515 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11516 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11517 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 else
11520 cat >conftest.$ac_ext <<_ACEOF
11521 /* confdefs.h. */
11522 _ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11527 #if defined(HAVE_SYS_SOUNDCARD_H)
11528 #include <sys/soundcard.h>
11529 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11530 #include <machine/soundcard.h>
11531 #elif defined(HAVE_SOUNDCARD_H)
11532 #include <soundcard.h>
11533 #endif
11536 main ()
11540 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11541 #if !defined(SNDCTL_SEQ_SYNC)
11542 #error No open sound system MIDI interface
11543 #endif
11546 return 0;
11548 _ACEOF
11549 rm -f conftest.$ac_objext
11550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11551 (eval $ac_compile) 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; } &&
11564 { ac_try='test -s conftest.$ac_objext'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; }; then
11570 ac_cv_c_opensoundsystem_midi="yes"
11571 else
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11575 ac_cv_c_opensoundsystem_midi="no"
11577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11579 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11580 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11582 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11583 then
11585 cat >>confdefs.h <<\_ACEOF
11586 #define HAVE_OSS_MIDI 1
11587 _ACEOF
11591 # Extract the first word of "artsc-config", so it can be a program name with args.
11592 set dummy artsc-config; ac_word=$2
11593 echo "$as_me:$LINENO: checking for $ac_word" >&5
11594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11595 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598 case $ARTSCCONFIG in
11599 [\\/]* | ?:[\\/]*)
11600 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604 for as_dir in $PATH
11606 IFS=$as_save_IFS
11607 test -z "$as_dir" && as_dir=.
11608 for ac_exec_ext in '' $ac_executable_extensions; do
11609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11610 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11612 break 2
11614 done
11615 done
11618 esac
11620 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11622 if test -n "$ARTSCCONFIG"; then
11623 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11624 echo "${ECHO_T}$ARTSCCONFIG" >&6
11625 else
11626 echo "$as_me:$LINENO: result: no" >&5
11627 echo "${ECHO_T}no" >&6
11630 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11631 then
11632 ARTSC_CFLAGS=""
11633 for i in `$ARTSCCONFIG --cflags`
11635 case "$i" in
11636 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11637 esac
11638 done
11639 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11640 save_CFLAGS="$CFLAGS"
11641 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 #include <artsc.h>
11650 main ()
11652 arts_stream_t stream;
11654 return 0;
11656 _ACEOF
11657 rm -f conftest.$ac_objext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11659 (eval $ac_compile) 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try='test -s conftest.$ac_objext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ARTSLIBS=$ARTSC_LIBS
11680 ARTSINCL=$ARTSC_CFLAGS
11683 cat >>confdefs.h <<\_ACEOF
11684 #define HAVE_ARTS 1
11685 _ACEOF
11687 else
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11693 CFLAGS="$save_CFLAGS"
11696 ALSALIBS=""
11700 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11704 echo "$as_me:$LINENO: checking for $ac_header" >&5
11705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11711 else
11712 # Is the header compilable?
11713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11715 cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h. */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 $ac_includes_default
11722 #include <$ac_header>
11723 _ACEOF
11724 rm -f conftest.$ac_objext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
11733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest.$ac_objext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 ac_header_compiler=yes
11746 else
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 ac_header_compiler=no
11752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11754 echo "${ECHO_T}$ac_header_compiler" >&6
11756 # Is the header present?
11757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11759 cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h. */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 #include <$ac_header>
11766 _ACEOF
11767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } >/dev/null; then
11775 if test -s conftest.err; then
11776 ac_cpp_err=$ac_c_preproc_warn_flag
11777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11778 else
11779 ac_cpp_err=
11781 else
11782 ac_cpp_err=yes
11784 if test -z "$ac_cpp_err"; then
11785 ac_header_preproc=yes
11786 else
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_header_preproc=no
11792 rm -f conftest.err conftest.$ac_ext
11793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11794 echo "${ECHO_T}$ac_header_preproc" >&6
11796 # So? What about this header?
11797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11798 yes:no: )
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11803 ac_header_preproc=yes
11805 no:yes:* )
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11819 cat <<\_ASBOX
11820 ## ------------------------------------ ##
11821 ## Report this to wine-devel@winehq.org ##
11822 ## ------------------------------------ ##
11823 _ASBOX
11825 sed "s/^/$as_me: WARNING: /" >&2
11827 esac
11828 echo "$as_me:$LINENO: checking for $ac_header" >&5
11829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 else
11833 eval "$as_ac_Header=\$ac_header_preproc"
11835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11840 cat >>confdefs.h <<_ACEOF
11841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11842 _ACEOF
11843 break
11846 done
11848 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11849 then
11850 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11851 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11852 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855 ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lasound $LIBS"
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11864 /* Override any gcc2 internal prototype to avoid an error. */
11865 #ifdef __cplusplus
11866 extern "C"
11867 #endif
11868 /* We use char because int might match the return type of a gcc2
11869 builtin and then its argument prototype would still apply. */
11870 char snd_pcm_open ();
11872 main ()
11874 snd_pcm_open ();
11876 return 0;
11878 _ACEOF
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11881 (eval $ac_link) 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest$ac_exeext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 ac_cv_lib_asound_snd_pcm_open=yes
11901 else
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_cv_lib_asound_snd_pcm_open=no
11907 rm -f conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11911 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11912 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11913 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11915 cat >>confdefs.h <<\_ACEOF
11916 #define HAVE_ALSA 1
11917 _ACEOF
11919 ALSALIBS="-lasound"
11925 AUDIOIOLIBS=""
11928 for ac_header in libaudioio.h
11930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11932 echo "$as_me:$LINENO: checking for $ac_header" >&5
11933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11939 else
11940 # Is the header compilable?
11941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 $ac_includes_default
11950 #include <$ac_header>
11951 _ACEOF
11952 rm -f conftest.$ac_objext
11953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11954 (eval $ac_compile) 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
11961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11964 ac_status=$?
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest.$ac_objext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 ac_header_compiler=yes
11974 else
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_header_compiler=no
11980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11982 echo "${ECHO_T}$ac_header_compiler" >&6
11984 # Is the header present?
11985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11987 cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h. */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 #include <$ac_header>
11994 _ACEOF
11995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11997 ac_status=$?
11998 grep -v '^ *+' conftest.er1 >conftest.err
11999 rm -f conftest.er1
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } >/dev/null; then
12003 if test -s conftest.err; then
12004 ac_cpp_err=$ac_c_preproc_warn_flag
12005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12006 else
12007 ac_cpp_err=
12009 else
12010 ac_cpp_err=yes
12012 if test -z "$ac_cpp_err"; then
12013 ac_header_preproc=yes
12014 else
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12018 ac_header_preproc=no
12020 rm -f conftest.err conftest.$ac_ext
12021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12022 echo "${ECHO_T}$ac_header_preproc" >&6
12024 # So? What about this header?
12025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12026 yes:no: )
12027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12031 ac_header_preproc=yes
12033 no:yes:* )
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12047 cat <<\_ASBOX
12048 ## ------------------------------------ ##
12049 ## Report this to wine-devel@winehq.org ##
12050 ## ------------------------------------ ##
12051 _ASBOX
12053 sed "s/^/$as_me: WARNING: /" >&2
12055 esac
12056 echo "$as_me:$LINENO: checking for $ac_header" >&5
12057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061 eval "$as_ac_Header=\$ac_header_preproc"
12063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12070 _ACEOF
12071 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12072 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
12073 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076 ac_check_lib_save_LIBS=$LIBS
12077 LIBS="-laudioio $LIBS"
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h. */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12085 /* Override any gcc2 internal prototype to avoid an error. */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 /* We use char because int might match the return type of a gcc2
12090 builtin and then its argument prototype would still apply. */
12091 char AudioIOGetVersion ();
12093 main ()
12095 AudioIOGetVersion ();
12097 return 0;
12099 _ACEOF
12100 rm -f conftest.$ac_objext conftest$ac_exeext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12102 (eval $ac_link) 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; } &&
12115 { ac_try='test -s conftest$ac_exeext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_cv_lib_audioio_AudioIOGetVersion=yes
12122 else
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 ac_cv_lib_audioio_AudioIOGetVersion=no
12128 rm -f conftest.err conftest.$ac_objext \
12129 conftest$ac_exeext conftest.$ac_ext
12130 LIBS=$ac_check_lib_save_LIBS
12132 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12133 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12134 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12135 AUDIOIOLIBS="-laudioio"
12137 cat >>confdefs.h <<\_ACEOF
12138 #define HAVE_LIBAUDIOIO 1
12139 _ACEOF
12145 done
12150 for ac_header in capi20.h
12152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12154 echo "$as_me:$LINENO: checking for $ac_header" >&5
12155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12161 else
12162 # Is the header compilable?
12163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12165 cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h. */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 $ac_includes_default
12172 #include <$ac_header>
12173 _ACEOF
12174 rm -f conftest.$ac_objext
12175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12176 (eval $ac_compile) 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; } &&
12189 { ac_try='test -s conftest.$ac_objext'
12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191 (eval $ac_try) 2>&5
12192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
12195 ac_header_compiler=yes
12196 else
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 ac_header_compiler=no
12202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12204 echo "${ECHO_T}$ac_header_compiler" >&6
12206 # Is the header present?
12207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12209 cat >conftest.$ac_ext <<_ACEOF
12210 /* confdefs.h. */
12211 _ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 #include <$ac_header>
12216 _ACEOF
12217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12219 ac_status=$?
12220 grep -v '^ *+' conftest.er1 >conftest.err
12221 rm -f conftest.er1
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } >/dev/null; then
12225 if test -s conftest.err; then
12226 ac_cpp_err=$ac_c_preproc_warn_flag
12227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12228 else
12229 ac_cpp_err=
12231 else
12232 ac_cpp_err=yes
12234 if test -z "$ac_cpp_err"; then
12235 ac_header_preproc=yes
12236 else
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240 ac_header_preproc=no
12242 rm -f conftest.err conftest.$ac_ext
12243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12244 echo "${ECHO_T}$ac_header_preproc" >&6
12246 # So? What about this header?
12247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12248 yes:no: )
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12253 ac_header_preproc=yes
12255 no:yes:* )
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12269 cat <<\_ASBOX
12270 ## ------------------------------------ ##
12271 ## Report this to wine-devel@winehq.org ##
12272 ## ------------------------------------ ##
12273 _ASBOX
12275 sed "s/^/$as_me: WARNING: /" >&2
12277 esac
12278 echo "$as_me:$LINENO: checking for $ac_header" >&5
12279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283 eval "$as_ac_Header=\$ac_header_preproc"
12285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12290 cat >>confdefs.h <<_ACEOF
12291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12292 _ACEOF
12295 for ac_header in linux/capi.h
12297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12299 echo "$as_me:$LINENO: checking for $ac_header" >&5
12300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12306 else
12307 # Is the header compilable?
12308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 $ac_includes_default
12317 #include <$ac_header>
12318 _ACEOF
12319 rm -f conftest.$ac_objext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12321 (eval $ac_compile) 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
12328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest.$ac_objext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 ac_header_compiler=yes
12341 else
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_header_compiler=no
12347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12349 echo "${ECHO_T}$ac_header_compiler" >&6
12351 # Is the header present?
12352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12354 cat >conftest.$ac_ext <<_ACEOF
12355 /* confdefs.h. */
12356 _ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h. */
12360 #include <$ac_header>
12361 _ACEOF
12362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } >/dev/null; then
12370 if test -s conftest.err; then
12371 ac_cpp_err=$ac_c_preproc_warn_flag
12372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12373 else
12374 ac_cpp_err=
12376 else
12377 ac_cpp_err=yes
12379 if test -z "$ac_cpp_err"; then
12380 ac_header_preproc=yes
12381 else
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12385 ac_header_preproc=no
12387 rm -f conftest.err conftest.$ac_ext
12388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12389 echo "${ECHO_T}$ac_header_preproc" >&6
12391 # So? What about this header?
12392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12393 yes:no: )
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12398 ac_header_preproc=yes
12400 no:yes:* )
12401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12414 cat <<\_ASBOX
12415 ## ------------------------------------ ##
12416 ## Report this to wine-devel@winehq.org ##
12417 ## ------------------------------------ ##
12418 _ASBOX
12420 sed "s/^/$as_me: WARNING: /" >&2
12422 esac
12423 echo "$as_me:$LINENO: checking for $ac_header" >&5
12424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 else
12428 eval "$as_ac_Header=\$ac_header_preproc"
12430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12435 cat >>confdefs.h <<_ACEOF
12436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12437 _ACEOF
12439 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12440 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12441 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444 ac_check_lib_save_LIBS=$LIBS
12445 LIBS="-lcapi20 $LIBS"
12446 cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h. */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12453 /* Override any gcc2 internal prototype to avoid an error. */
12454 #ifdef __cplusplus
12455 extern "C"
12456 #endif
12457 /* We use char because int might match the return type of a gcc2
12458 builtin and then its argument prototype would still apply. */
12459 char capi20_register ();
12461 main ()
12463 capi20_register ();
12465 return 0;
12467 _ACEOF
12468 rm -f conftest.$ac_objext conftest$ac_exeext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12470 (eval $ac_link) 2>conftest.er1
12471 ac_status=$?
12472 grep -v '^ *+' conftest.er1 >conftest.err
12473 rm -f conftest.er1
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try='test -s conftest$ac_exeext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_cv_lib_capi20_capi20_register=yes
12490 else
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12494 ac_cv_lib_capi20_capi20_register=no
12496 rm -f conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS
12500 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12501 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12502 if test $ac_cv_lib_capi20_capi20_register = yes; then
12505 cat >>confdefs.h <<\_ACEOF
12506 #define HAVE_CAPI4LINUX 1
12507 _ACEOF
12509 CAPI4LINUXLIBS="-lcapi20"
12517 done
12522 done
12526 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12527 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12528 if test "${ac_cv_mmap64_works+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531 if test "$cross_compiling" = yes; then
12532 ac_cv_mmap64_works="no"
12533 else
12534 cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h. */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12541 #define _FILE_OFFSET_BITS 64
12542 #include <stdio.h>
12543 #include <unistd.h>
12544 #include <fcntl.h>
12545 #include <sys/mman.h>
12546 #include <errno.h>
12548 int main(int argc,char **argv) {
12549 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12550 if (fd == -1) exit(1);
12552 unlink("conftest.map");
12554 write(fd,"test",4);
12556 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12557 (errno == EINVAL)
12559 exit(1);
12561 close(fd);
12562 fprintf(stderr,"success!\n");
12563 exit(0);
12567 _ACEOF
12568 rm -f conftest$ac_exeext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12570 (eval $ac_link) 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 ac_cv_mmap64_works="yes"
12580 else
12581 echo "$as_me: program exited with status $ac_status" >&5
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12585 ( exit $ac_status )
12586 ac_cv_mmap64_works="no"
12588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12591 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12592 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12594 if test "$ac_cv_mmap64_works" = "yes"
12595 then
12597 cat >>confdefs.h <<\_ACEOF
12598 #define _FILE_OFFSET_BITS 64
12599 _ACEOF
12604 EXTRACFLAGS=""
12606 if test "x${GCC}" = "xyes"
12607 then
12608 EXTRACFLAGS="-Wall -pipe"
12610 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12611 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12612 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615 if test "$cross_compiling" = yes; then
12616 ac_cv_c_gcc_strength_bug="yes"
12617 else
12618 cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h. */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12625 int L[4] = {0,1,2,3};
12626 int main(void) {
12627 static int Array[3];
12628 unsigned int B = 3;
12629 int i;
12630 for(i=0; i<B; i++) Array[i] = i - 3;
12631 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12632 L[i] = 4;
12634 exit( Array[1] != -2 || L[2] != 3);
12636 _ACEOF
12637 rm -f conftest$ac_exeext
12638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12639 (eval $ac_link) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 ac_cv_c_gcc_strength_bug="no"
12649 else
12650 echo "$as_me: program exited with status $ac_status" >&5
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12654 ( exit $ac_status )
12655 ac_cv_c_gcc_strength_bug="yes"
12657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12660 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12661 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12662 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12663 then
12664 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12667 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12668 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12669 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672 ac_wine_try_cflags_saved=$CFLAGS
12673 CFLAGS="$CFLAGS -fshort-wchar"
12674 cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h. */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12682 main ()
12686 return 0;
12688 _ACEOF
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691 (eval $ac_link) 2>conftest.er1
12692 ac_status=$?
12693 grep -v '^ *+' conftest.er1 >conftest.err
12694 rm -f conftest.er1
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_c_gcc_fshort_wchar="yes"
12711 else
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12715 ac_cv_c_gcc_fshort_wchar="no"
12717 rm -f conftest.err conftest.$ac_objext \
12718 conftest$ac_exeext conftest.$ac_ext
12719 CFLAGS=$ac_wine_try_cflags_saved
12721 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12722 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12723 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12724 then
12726 cat >>confdefs.h <<\_ACEOF
12727 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12728 _ACEOF
12732 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12733 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12734 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737 ac_wine_try_cflags_saved=$CFLAGS
12738 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h. */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12747 main ()
12751 return 0;
12753 _ACEOF
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 (eval $ac_link) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest$ac_exeext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_c_gcc_stack_boundary="yes"
12776 else
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ac_cv_c_gcc_stack_boundary="no"
12782 rm -f conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784 CFLAGS=$ac_wine_try_cflags_saved
12786 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12787 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12788 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12789 then
12790 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12793 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12794 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12795 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798 ac_wine_try_cflags_saved=$CFLAGS
12799 CFLAGS="$CFLAGS -fno-strict-aliasing"
12800 cat >conftest.$ac_ext <<_ACEOF
12801 /* confdefs.h. */
12802 _ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12808 main ()
12812 return 0;
12814 _ACEOF
12815 rm -f conftest.$ac_objext conftest$ac_exeext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12817 (eval $ac_link) 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; } &&
12830 { ac_try='test -s conftest$ac_exeext'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 ac_cv_c_gcc_no_strict_aliasing="yes"
12837 else
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12841 ac_cv_c_gcc_no_strict_aliasing="no"
12843 rm -f conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext conftest.$ac_ext
12845 CFLAGS=$ac_wine_try_cflags_saved
12847 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12848 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12849 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12850 then
12851 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12854 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12855 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12856 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859 ac_wine_try_cflags_saved=$CFLAGS
12860 CFLAGS="$CFLAGS -gstabs+"
12861 cat >conftest.$ac_ext <<_ACEOF
12862 /* confdefs.h. */
12863 _ACEOF
12864 cat confdefs.h >>conftest.$ac_ext
12865 cat >>conftest.$ac_ext <<_ACEOF
12866 /* end confdefs.h. */
12869 main ()
12873 return 0;
12875 _ACEOF
12876 rm -f conftest.$ac_objext conftest$ac_exeext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12878 (eval $ac_link) 2>conftest.er1
12879 ac_status=$?
12880 grep -v '^ *+' conftest.er1 >conftest.err
12881 rm -f conftest.er1
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
12885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; }; then
12897 ac_cv_c_gcc_gstabs="yes"
12898 else
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12902 ac_cv_c_gcc_gstabs="no"
12904 rm -f conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext conftest.$ac_ext
12906 CFLAGS=$ac_wine_try_cflags_saved
12908 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12909 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12910 if test "$ac_cv_c_gcc_gstabs" = "yes"
12911 then
12912 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12915 saved_CFLAGS="$CFLAGS"
12916 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12917 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12918 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12919 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12921 else
12922 cat >conftest.$ac_ext <<_ACEOF
12923 /* confdefs.h. */
12924 _ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12928 #include <string.h>
12930 main ()
12934 return 0;
12936 _ACEOF
12937 rm -f conftest.$ac_objext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12939 (eval $ac_compile) 2>conftest.er1
12940 ac_status=$?
12941 grep -v '^ *+' conftest.er1 >conftest.err
12942 rm -f conftest.er1
12943 cat conftest.err >&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } &&
12946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12952 { ac_try='test -s conftest.$ac_objext'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12958 ac_cv_c_string_h_warnings=no
12959 else
12960 echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12963 ac_cv_c_string_h_warnings=yes
12965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12967 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12968 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12969 CFLAGS="$saved_CFLAGS"
12970 if test "$ac_cv_c_string_h_warnings" = "no"
12971 then
12972 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12977 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12978 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12979 if test "${ac_cv_asm_func_def+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("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
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_asm_func_def=".def"
13020 else
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13024 cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h. */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13030 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
13033 main ()
13037 return 0;
13039 _ACEOF
13040 rm -f conftest.$ac_objext conftest$ac_exeext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13042 (eval $ac_link) 2>conftest.er1
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; } &&
13055 { ac_try='test -s conftest$ac_exeext'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; }; then
13061 ac_cv_asm_func_def=".type @function"
13062 else
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13066 cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h. */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
13075 main ()
13079 return 0;
13081 _ACEOF
13082 rm -f conftest.$ac_objext conftest$ac_exeext
13083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13084 (eval $ac_link) 2>conftest.er1
13085 ac_status=$?
13086 grep -v '^ *+' conftest.er1 >conftest.err
13087 rm -f conftest.er1
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; } &&
13097 { ac_try='test -s conftest$ac_exeext'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13103 ac_cv_asm_func_def=".type 2"
13104 else
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13108 ac_cv_asm_func_def="unknown"
13110 rm -f conftest.err conftest.$ac_objext \
13111 conftest$ac_exeext conftest.$ac_ext
13113 rm -f conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13116 rm -f conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13120 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
13124 case "$ac_cv_asm_func_def" in
13125 ".def")
13126 cat >>confdefs.h <<\_ACEOF
13127 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13128 _ACEOF
13130 ".type @function")
13131 cat >>confdefs.h <<\_ACEOF
13132 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13133 _ACEOF
13135 ".type 2")
13136 cat >>confdefs.h <<\_ACEOF
13137 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13138 _ACEOF
13141 cat >>confdefs.h <<\_ACEOF
13142 #define __ASM_FUNC(name) ""
13143 _ACEOF
13145 esac
13148 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13149 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
13150 if test "${ac_cv_c_extern_prefix+set}" = set; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 else
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13160 extern int ac_test;
13162 main ()
13164 if (ac_test) return 1
13166 return 0;
13168 _ACEOF
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171 (eval $ac_link) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest$ac_exeext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
13190 ac_cv_c_extern_prefix="yes"
13191 else
13192 echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13195 ac_cv_c_extern_prefix="no"
13197 rm -f conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
13200 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13201 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
13205 if test "$ac_cv_c_extern_prefix" = "yes"
13206 then
13207 cat >>confdefs.h <<\_ACEOF
13208 #define __ASM_NAME(name) "_" name
13209 _ACEOF
13211 else
13212 cat >>confdefs.h <<\_ACEOF
13213 #define __ASM_NAME(name) name
13214 _ACEOF
13219 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
13220 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
13221 if test "${ac_cv_c_asm_string+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224 cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h. */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
13233 main ()
13237 return 0;
13239 _ACEOF
13240 rm -f conftest.$ac_objext conftest$ac_exeext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242 (eval $ac_link) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 ac_cv_c_asm_string=".string"
13262 else
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h. */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
13275 main ()
13279 return 0;
13281 _ACEOF
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13284 (eval $ac_link) 2>conftest.er1
13285 ac_status=$?
13286 grep -v '^ *+' conftest.er1 >conftest.err
13287 rm -f conftest.er1
13288 cat conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } &&
13291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest$ac_exeext'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; }; then
13303 ac_cv_c_asm_string=".asciz"
13304 else
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h. */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13317 main ()
13321 return 0;
13323 _ACEOF
13324 rm -f conftest.$ac_objext conftest$ac_exeext
13325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13326 (eval $ac_link) 2>conftest.er1
13327 ac_status=$?
13328 grep -v '^ *+' conftest.er1 >conftest.err
13329 rm -f conftest.er1
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; } &&
13339 { ac_try='test -s conftest$ac_exeext'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13345 ac_cv_c_asm_string=".ascii"
13346 else
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13350 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13351 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13352 { (exit 1); exit 1; }; }
13354 rm -f conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13357 rm -f conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13360 rm -f conftest.err conftest.$ac_objext \
13361 conftest$ac_exeext conftest.$ac_ext
13363 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
13364 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
13367 cat >>confdefs.h <<_ACEOF
13368 #define __ASM_STRING "$ac_cv_c_asm_string"
13369 _ACEOF
13373 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13374 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
13375 if test "${ac_cv_c_asm_short+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378 cat >conftest.$ac_ext <<_ACEOF
13379 /* confdefs.h. */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13384 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
13387 main ()
13391 return 0;
13393 _ACEOF
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13396 (eval $ac_link) 2>conftest.er1
13397 ac_status=$?
13398 grep -v '^ *+' conftest.er1 >conftest.err
13399 rm -f conftest.er1
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } &&
13403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; } &&
13409 { ac_try='test -s conftest$ac_exeext'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13415 ac_cv_c_asm_short=".short"
13416 else
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h. */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13429 main ()
13433 return 0;
13435 _ACEOF
13436 rm -f conftest.$ac_objext conftest$ac_exeext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13438 (eval $ac_link) 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } &&
13445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; } &&
13451 { ac_try='test -s conftest$ac_exeext'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_cv_c_asm_short=".half"
13458 else
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13463 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13464 { (exit 1); exit 1; }; }
13466 rm -f conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13469 rm -f conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13472 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13473 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13476 cat >>confdefs.h <<_ACEOF
13477 #define __ASM_SHORT "$ac_cv_c_asm_short"
13478 _ACEOF
13482 DLLEXT=""
13484 DLLFLAGS="-D_REENTRANT"
13486 DLLIBS=""
13488 LDSHARED=""
13490 LDDLLFLAGS=""
13492 LIBEXT="so"
13494 IMPLIBEXT="def"
13497 case $host_os in
13498 cygwin*|mingw32*)
13499 if test -n "$ac_tool_prefix"; then
13500 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13501 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13502 echo "$as_me:$LINENO: checking for $ac_word" >&5
13503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13504 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507 if test -n "$DLLTOOL"; then
13508 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13509 else
13510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511 for as_dir in $PATH
13513 IFS=$as_save_IFS
13514 test -z "$as_dir" && as_dir=.
13515 for ac_exec_ext in '' $ac_executable_extensions; do
13516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13517 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13519 break 2
13521 done
13522 done
13526 DLLTOOL=$ac_cv_prog_DLLTOOL
13527 if test -n "$DLLTOOL"; then
13528 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13529 echo "${ECHO_T}$DLLTOOL" >&6
13530 else
13531 echo "$as_me:$LINENO: result: no" >&5
13532 echo "${ECHO_T}no" >&6
13536 if test -z "$ac_cv_prog_DLLTOOL"; then
13537 ac_ct_DLLTOOL=$DLLTOOL
13538 # Extract the first word of "dlltool", so it can be a program name with args.
13539 set dummy dlltool; ac_word=$2
13540 echo "$as_me:$LINENO: checking for $ac_word" >&5
13541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13542 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 else
13545 if test -n "$ac_ct_DLLTOOL"; then
13546 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13547 else
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in $PATH
13551 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13555 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2
13559 done
13560 done
13562 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13565 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13566 if test -n "$ac_ct_DLLTOOL"; then
13567 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13568 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13569 else
13570 echo "$as_me:$LINENO: result: no" >&5
13571 echo "${ECHO_T}no" >&6
13574 DLLTOOL=$ac_ct_DLLTOOL
13575 else
13576 DLLTOOL="$ac_cv_prog_DLLTOOL"
13579 if test -n "$ac_tool_prefix"; then
13580 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13581 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13582 echo "$as_me:$LINENO: checking for $ac_word" >&5
13583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13584 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587 if test -n "$DLLWRAP"; then
13588 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13589 else
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13593 IFS=$as_save_IFS
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13597 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 break 2
13601 done
13602 done
13606 DLLWRAP=$ac_cv_prog_DLLWRAP
13607 if test -n "$DLLWRAP"; then
13608 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13609 echo "${ECHO_T}$DLLWRAP" >&6
13610 else
13611 echo "$as_me:$LINENO: result: no" >&5
13612 echo "${ECHO_T}no" >&6
13616 if test -z "$ac_cv_prog_DLLWRAP"; then
13617 ac_ct_DLLWRAP=$DLLWRAP
13618 # Extract the first word of "dllwrap", so it can be a program name with args.
13619 set dummy dllwrap; ac_word=$2
13620 echo "$as_me:$LINENO: checking for $ac_word" >&5
13621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13622 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 else
13625 if test -n "$ac_ct_DLLWRAP"; then
13626 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13627 else
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $PATH
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
13634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13639 done
13640 done
13642 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13645 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13646 if test -n "$ac_ct_DLLWRAP"; then
13647 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13648 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13649 else
13650 echo "$as_me:$LINENO: result: no" >&5
13651 echo "${ECHO_T}no" >&6
13654 DLLWRAP=$ac_ct_DLLWRAP
13655 else
13656 DLLWRAP="$ac_cv_prog_DLLWRAP"
13659 if test "$DLLWRAP" = "false"; then
13660 LIBEXT="a"
13661 else
13662 LIBEXT="dll"
13664 IMPLIBEXT="a"
13668 for ac_header in dlfcn.h
13670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13672 echo "$as_me:$LINENO: checking for $ac_header" >&5
13673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13679 else
13680 # Is the header compilable?
13681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13683 cat >conftest.$ac_ext <<_ACEOF
13684 /* confdefs.h. */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689 $ac_includes_default
13690 #include <$ac_header>
13691 _ACEOF
13692 rm -f conftest.$ac_objext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13694 (eval $ac_compile) 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; } &&
13707 { ac_try='test -s conftest.$ac_objext'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 ac_header_compiler=yes
13714 else
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 ac_header_compiler=no
13720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13722 echo "${ECHO_T}$ac_header_compiler" >&6
13724 # Is the header present?
13725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13727 cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h. */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 #include <$ac_header>
13734 _ACEOF
13735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } >/dev/null; then
13743 if test -s conftest.err; then
13744 ac_cpp_err=$ac_c_preproc_warn_flag
13745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13746 else
13747 ac_cpp_err=
13749 else
13750 ac_cpp_err=yes
13752 if test -z "$ac_cpp_err"; then
13753 ac_header_preproc=yes
13754 else
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ac_header_preproc=no
13760 rm -f conftest.err conftest.$ac_ext
13761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13762 echo "${ECHO_T}$ac_header_preproc" >&6
13764 # So? What about this header?
13765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13766 yes:no: )
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13771 ac_header_preproc=yes
13773 no:yes:* )
13774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13787 cat <<\_ASBOX
13788 ## ------------------------------------ ##
13789 ## Report this to wine-devel@winehq.org ##
13790 ## ------------------------------------ ##
13791 _ASBOX
13793 sed "s/^/$as_me: WARNING: /" >&2
13795 esac
13796 echo "$as_me:$LINENO: checking for $ac_header" >&5
13797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801 eval "$as_ac_Header=\$ac_header_preproc"
13803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13808 cat >>confdefs.h <<_ACEOF
13809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13810 _ACEOF
13812 for ac_func in dlopen
13814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13815 echo "$as_me:$LINENO: checking for $ac_func" >&5
13816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13817 if eval "test \"\${$as_ac_var+set}\" = set"; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 else
13820 cat >conftest.$ac_ext <<_ACEOF
13821 /* confdefs.h. */
13822 _ACEOF
13823 cat confdefs.h >>conftest.$ac_ext
13824 cat >>conftest.$ac_ext <<_ACEOF
13825 /* end confdefs.h. */
13826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13828 #define $ac_func innocuous_$ac_func
13830 /* System header to define __stub macros and hopefully few prototypes,
13831 which can conflict with char $ac_func (); below.
13832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13833 <limits.h> exists even on freestanding compilers. */
13835 #ifdef __STDC__
13836 # include <limits.h>
13837 #else
13838 # include <assert.h>
13839 #endif
13841 #undef $ac_func
13843 /* Override any gcc2 internal prototype to avoid an error. */
13844 #ifdef __cplusplus
13845 extern "C"
13847 #endif
13848 /* We use char because int might match the return type of a gcc2
13849 builtin and then its argument prototype would still apply. */
13850 char $ac_func ();
13851 /* The GNU C library defines this for functions which it implements
13852 to always fail with ENOSYS. Some functions are actually named
13853 something starting with __ and the normal name is an alias. */
13854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13855 choke me
13856 #else
13857 char (*f) () = $ac_func;
13858 #endif
13859 #ifdef __cplusplus
13861 #endif
13864 main ()
13866 return f != $ac_func;
13868 return 0;
13870 _ACEOF
13871 rm -f conftest.$ac_objext conftest$ac_exeext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13873 (eval $ac_link) 2>conftest.er1
13874 ac_status=$?
13875 grep -v '^ *+' conftest.er1 >conftest.err
13876 rm -f conftest.er1
13877 cat conftest.err >&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try='test -s conftest$ac_exeext'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 eval "$as_ac_var=yes"
13893 else
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 eval "$as_ac_var=no"
13899 rm -f conftest.err conftest.$ac_objext \
13900 conftest$ac_exeext conftest.$ac_ext
13902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13904 if test `eval echo '${'$as_ac_var'}'` = yes; then
13905 cat >>confdefs.h <<_ACEOF
13906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13907 _ACEOF
13909 else
13910 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13911 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13912 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 else
13915 ac_check_lib_save_LIBS=$LIBS
13916 LIBS="-ldl $LIBS"
13917 cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h. */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13924 /* Override any gcc2 internal prototype to avoid an error. */
13925 #ifdef __cplusplus
13926 extern "C"
13927 #endif
13928 /* We use char because int might match the return type of a gcc2
13929 builtin and then its argument prototype would still apply. */
13930 char dlopen ();
13932 main ()
13934 dlopen ();
13936 return 0;
13938 _ACEOF
13939 rm -f conftest.$ac_objext conftest$ac_exeext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13941 (eval $ac_link) 2>conftest.er1
13942 ac_status=$?
13943 grep -v '^ *+' conftest.er1 >conftest.err
13944 rm -f conftest.er1
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest$ac_exeext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_cv_lib_dl_dlopen=yes
13961 else
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13965 ac_cv_lib_dl_dlopen=no
13967 rm -f conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13973 if test $ac_cv_lib_dl_dlopen = yes; then
13975 cat >>confdefs.h <<\_ACEOF
13976 #define HAVE_DLOPEN 1
13977 _ACEOF
13979 DLLIBS="-ldl"
13980 else
13981 LIBEXT="a"
13985 done
13987 else
13988 LIBEXT="a"
13991 done
13994 if test "$LIBEXT" = "so"
13995 then
13996 DLLFLAGS="$DLLFLAGS -fPIC"
13997 DLLEXT=".so"
13998 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13999 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
14000 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003 ac_wine_try_cflags_saved=$CFLAGS
14004 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
14005 cat >conftest.$ac_ext <<_ACEOF
14006 /* confdefs.h. */
14007 _ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14013 main ()
14017 return 0;
14019 _ACEOF
14020 rm -f conftest.$ac_objext conftest$ac_exeext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14022 (eval $ac_link) 2>conftest.er1
14023 ac_status=$?
14024 grep -v '^ *+' conftest.er1 >conftest.err
14025 rm -f conftest.er1
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
14029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest$ac_exeext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 ac_cv_c_dll_gnuelf="yes"
14042 else
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ac_cv_c_dll_gnuelf="no"
14048 rm -f conftest.err conftest.$ac_objext \
14049 conftest$ac_exeext conftest.$ac_ext
14050 CFLAGS=$ac_wine_try_cflags_saved
14052 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
14053 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
14054 if test "$ac_cv_c_dll_gnuelf" = "yes"
14055 then
14056 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
14057 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
14058 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
14059 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
14060 if test "${ac_cv_c_dll_zdefs+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063 ac_wine_try_cflags_saved=$CFLAGS
14064 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
14065 cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h. */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14073 main ()
14077 return 0;
14079 _ACEOF
14080 rm -f conftest.$ac_objext conftest$ac_exeext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14082 (eval $ac_link) 2>conftest.er1
14083 ac_status=$?
14084 grep -v '^ *+' conftest.er1 >conftest.err
14085 rm -f conftest.er1
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
14089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; } &&
14095 { ac_try='test -s conftest$ac_exeext'
14096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097 (eval $ac_try) 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }; then
14101 ac_cv_c_dll_zdefs="yes"
14102 else
14103 echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14106 ac_cv_c_dll_zdefs="no"
14108 rm -f conftest.err conftest.$ac_objext \
14109 conftest$ac_exeext conftest.$ac_ext
14110 CFLAGS=$ac_wine_try_cflags_saved
14112 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14113 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
14114 if test "$ac_cv_c_dll_zdefs" = "yes"
14115 then
14116 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
14119 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14120 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
14121 if test "${ac_cv_c_dll_init_fini+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124 ac_wine_try_cflags_saved=$CFLAGS
14125 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14126 cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h. */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14134 main ()
14138 return 0;
14140 _ACEOF
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143 (eval $ac_link) 2>conftest.er1
14144 ac_status=$?
14145 grep -v '^ *+' conftest.er1 >conftest.err
14146 rm -f conftest.er1
14147 cat conftest.err >&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } &&
14150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; } &&
14156 { ac_try='test -s conftest$ac_exeext'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_cv_c_dll_init_fini="yes"
14163 else
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 ac_cv_c_dll_init_fini="no"
14169 rm -f conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
14171 CFLAGS=$ac_wine_try_cflags_saved
14173 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14174 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
14175 if test "$ac_cv_c_dll_init_fini" = "yes"
14176 then
14177 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
14180 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14181 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
14182 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 else
14185 echo '{ global: *; };' >conftest.map
14186 ac_wine_try_cflags_saved=$CFLAGS
14187 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14188 cat >conftest.$ac_ext <<_ACEOF
14189 /* confdefs.h. */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14196 main ()
14200 return 0;
14202 _ACEOF
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14205 (eval $ac_link) 2>conftest.er1
14206 ac_status=$?
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -f conftest.er1
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest$ac_exeext'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14224 ac_cv_c_ld_version_scripts="yes"
14225 else
14226 echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.$ac_ext >&5
14229 ac_cv_c_ld_version_scripts="no"
14231 rm -f conftest.err conftest.$ac_objext \
14232 conftest$ac_exeext conftest.$ac_ext
14233 CFLAGS=$ac_wine_try_cflags_saved
14234 rm -f conftest.map
14236 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14237 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14238 if test "$ac_cv_c_ld_version_scripts" = "yes"
14239 then
14240 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14243 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14244 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14245 if test "${ac_cv_c_export_dynamic+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248 ac_wine_try_cflags_saved=$CFLAGS
14249 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h. */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14258 main ()
14262 return 0;
14264 _ACEOF
14265 rm -f conftest.$ac_objext conftest$ac_exeext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14267 (eval $ac_link) 2>conftest.er1
14268 ac_status=$?
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest$ac_exeext'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 ac_cv_c_export_dynamic="yes"
14287 else
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14291 ac_cv_c_export_dynamic="no"
14293 rm -f conftest.err conftest.$ac_objext \
14294 conftest$ac_exeext conftest.$ac_ext
14295 CFLAGS=$ac_wine_try_cflags_saved
14297 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14298 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14299 if test "$ac_cv_c_export_dynamic" = "yes"
14300 then
14301 LDEXECFLAGS="-Wl,--export-dynamic"
14305 case $host_cpu in
14306 *i[3456789]86*)
14307 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
14308 echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
14309 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312 saved_CFLAGS="$CFLAGS"
14313 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
14314 if test "$cross_compiling" = yes; then
14315 ac_cv_ld_reloc_exec="no"
14316 else
14317 cat >conftest.$ac_ext <<_ACEOF
14318 /* confdefs.h. */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14323 #include <unistd.h>
14324 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
14325 _ACEOF
14326 rm -f conftest$ac_exeext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328 (eval $ac_link) 2>&5
14329 ac_status=$?
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_cv_ld_reloc_exec="yes"
14338 else
14339 echo "$as_me: program exited with status $ac_status" >&5
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 ( exit $ac_status )
14344 ac_cv_ld_reloc_exec="no"
14346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14348 CFLAGS="$saved_CFLAGS"
14350 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14351 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14352 if test "$ac_cv_ld_reloc_exec" = "yes"
14353 then
14354 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
14357 esac
14359 else
14360 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14361 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14362 if test "${ac_cv_c_dll_unixware+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 else
14365 ac_wine_try_cflags_saved=$CFLAGS
14366 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14375 main ()
14379 return 0;
14381 _ACEOF
14382 rm -f conftest.$ac_objext conftest$ac_exeext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384 (eval $ac_link) 2>conftest.er1
14385 ac_status=$?
14386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest$ac_exeext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_c_dll_unixware="yes"
14404 else
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_c_dll_unixware="no"
14410 rm -f conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14412 CFLAGS=$ac_wine_try_cflags_saved
14414 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14415 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14416 if test "$ac_cv_c_dll_unixware" = "yes"
14417 then
14418 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14419 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14421 else
14422 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14423 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14424 if test "${ac_cv_c_dll_macho+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427 ac_wine_try_cflags_saved=$CFLAGS
14428 CFLAGS="$CFLAGS -bundle"
14429 cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h. */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14437 main ()
14441 return 0;
14443 _ACEOF
14444 rm -f conftest.$ac_objext conftest$ac_exeext
14445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14446 (eval $ac_link) 2>conftest.er1
14447 ac_status=$?
14448 grep -v '^ *+' conftest.er1 >conftest.err
14449 rm -f conftest.er1
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } &&
14453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14456 ac_status=$?
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; } &&
14459 { ac_try='test -s conftest$ac_exeext'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14465 ac_cv_c_dll_macho="yes"
14466 else
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14470 ac_cv_c_dll_macho="no"
14472 rm -f conftest.err conftest.$ac_objext \
14473 conftest$ac_exeext conftest.$ac_ext
14474 CFLAGS=$ac_wine_try_cflags_saved
14476 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14477 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14478 if test "$ac_cv_c_dll_macho" = "yes"
14479 then
14480 LIBEXT="dylib"
14481 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14482 LDSHARED="\$(CC) -dynamiclib"
14483 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14489 CROSSTEST=""
14491 if test "$cross_compiling" = "no"
14492 then
14493 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14495 # Extract the first word of "$ac_prog", so it can be a program name with args.
14496 set dummy $ac_prog; ac_word=$2
14497 echo "$as_me:$LINENO: checking for $ac_word" >&5
14498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14499 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502 if test -n "$CROSSCC"; then
14503 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14504 else
14505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14506 for as_dir in $PATH
14508 IFS=$as_save_IFS
14509 test -z "$as_dir" && as_dir=.
14510 for ac_exec_ext in '' $ac_executable_extensions; do
14511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14512 ac_cv_prog_CROSSCC="$ac_prog"
14513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14514 break 2
14516 done
14517 done
14521 CROSSCC=$ac_cv_prog_CROSSCC
14522 if test -n "$CROSSCC"; then
14523 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14524 echo "${ECHO_T}$CROSSCC" >&6
14525 else
14526 echo "$as_me:$LINENO: result: no" >&5
14527 echo "${ECHO_T}no" >&6
14530 test -n "$CROSSCC" && break
14531 done
14532 test -n "$CROSSCC" || CROSSCC="false"
14534 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14536 # Extract the first word of "$ac_prog", so it can be a program name with args.
14537 set dummy $ac_prog; ac_word=$2
14538 echo "$as_me:$LINENO: checking for $ac_word" >&5
14539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14540 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543 if test -n "$DLLTOOL"; then
14544 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14545 else
14546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14547 for as_dir in $PATH
14549 IFS=$as_save_IFS
14550 test -z "$as_dir" && as_dir=.
14551 for ac_exec_ext in '' $ac_executable_extensions; do
14552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14553 ac_cv_prog_DLLTOOL="$ac_prog"
14554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14555 break 2
14557 done
14558 done
14562 DLLTOOL=$ac_cv_prog_DLLTOOL
14563 if test -n "$DLLTOOL"; then
14564 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14565 echo "${ECHO_T}$DLLTOOL" >&6
14566 else
14567 echo "$as_me:$LINENO: result: no" >&5
14568 echo "${ECHO_T}no" >&6
14571 test -n "$DLLTOOL" && break
14572 done
14573 test -n "$DLLTOOL" || DLLTOOL="false"
14575 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres mingw-windres
14577 # Extract the first word of "$ac_prog", so it can be a program name with args.
14578 set dummy $ac_prog; ac_word=$2
14579 echo "$as_me:$LINENO: checking for $ac_word" >&5
14580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14581 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584 if test -n "$CROSSWINDRES"; then
14585 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14586 else
14587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14588 for as_dir in $PATH
14590 IFS=$as_save_IFS
14591 test -z "$as_dir" && as_dir=.
14592 for ac_exec_ext in '' $ac_executable_extensions; do
14593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14594 ac_cv_prog_CROSSWINDRES="$ac_prog"
14595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14596 break 2
14598 done
14599 done
14603 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14604 if test -n "$CROSSWINDRES"; then
14605 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14606 echo "${ECHO_T}$CROSSWINDRES" >&6
14607 else
14608 echo "$as_me:$LINENO: result: no" >&5
14609 echo "${ECHO_T}no" >&6
14612 test -n "$CROSSWINDRES" && break
14613 done
14614 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14616 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14619 esac
14621 if test "$LIBEXT" = "a"; then
14622 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14623 It is currently not possible to build Wine without shared library
14624 (.so) support to allow transparent switch between .so and .dll files.
14625 If you are using Linux, you will need a newer binutils.
14626 " >&5
14627 echo "$as_me: error: could not find a way to build shared libraries.
14628 It is currently not possible to build Wine without shared library
14629 (.so) support to allow transparent switch between .so and .dll files.
14630 If you are using Linux, you will need a newer binutils.
14631 " >&2;}
14632 { (exit 1); exit 1; }; }
14635 case $build_os in
14636 cygwin*|mingw32*)
14637 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14639 darwin*|macosx*)
14640 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14643 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14645 esac
14647 case $host_os in
14648 mingw32*)
14649 CRTLIBS="-lmsvcrt"
14651 esac
14653 case $host_os in
14654 linux*)
14655 WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14657 MAIN_BINARY="wine-glibc"
14661 WINE_BINARIES="wine-kthread"
14663 MAIN_BINARY="wine-kthread"
14666 esac
14669 if test "$LIBEXT" = "so"
14670 then
14671 # Extract the first word of "ldd", so it can be a program name with args.
14672 set dummy ldd; ac_word=$2
14673 echo "$as_me:$LINENO: checking for $ac_word" >&5
14674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14675 if test "${ac_cv_path_LDD+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678 case $LDD in
14679 [\\/]* | ?:[\\/]*)
14680 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684 as_dummy="/sbin:/usr/sbin:$PATH"
14685 for as_dir in $as_dummy
14687 IFS=$as_save_IFS
14688 test -z "$as_dir" && as_dir=.
14689 for ac_exec_ext in '' $ac_executable_extensions; do
14690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14691 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14693 break 2
14695 done
14696 done
14698 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14700 esac
14702 LDD=$ac_cv_path_LDD
14704 if test -n "$LDD"; then
14705 echo "$as_me:$LINENO: result: $LDD" >&5
14706 echo "${ECHO_T}$LDD" >&6
14707 else
14708 echo "$as_me:$LINENO: result: no" >&5
14709 echo "${ECHO_T}no" >&6
14713 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14714 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14715 if test "${ac_cv_lib_soname_X11+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718 ac_get_soname_save_LIBS=$LIBS
14719 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14720 cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h. */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14727 /* Override any gcc2 internal prototype to avoid an error. */
14728 #ifdef __cplusplus
14729 extern "C"
14730 #endif
14731 /* We use char because int might match the return type of a gcc2
14732 builtin and then its argument prototype would still apply. */
14733 char XCreateWindow ();
14735 main ()
14737 XCreateWindow ();
14739 return 0;
14741 _ACEOF
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest$ac_exeext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
14764 if test "x$ac_cv_lib_soname_X11" = "x"
14765 then
14766 ac_cv_lib_soname_X11="libX11.so"
14768 else
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_cv_lib_soname_X11="libX11.so"
14774 rm -f conftest.err conftest.$ac_objext \
14775 conftest$ac_exeext conftest.$ac_ext
14776 LIBS=$ac_get_soname_save_LIBS
14778 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14779 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14780 if test "x$ac_cv_lib_soname_X11" != xNONE
14781 then
14782 cat >>confdefs.h <<_ACEOF
14783 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14784 _ACEOF
14787 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14788 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14789 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 else
14792 ac_get_soname_save_LIBS=$LIBS
14793 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14794 cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h. */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14801 /* Override any gcc2 internal prototype to avoid an error. */
14802 #ifdef __cplusplus
14803 extern "C"
14804 #endif
14805 /* We use char because int might match the return type of a gcc2
14806 builtin and then its argument prototype would still apply. */
14807 char XextCreateExtension ();
14809 main ()
14811 XextCreateExtension ();
14813 return 0;
14815 _ACEOF
14816 rm -f conftest.$ac_objext conftest$ac_exeext
14817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14818 (eval $ac_link) 2>conftest.er1
14819 ac_status=$?
14820 grep -v '^ *+' conftest.er1 >conftest.err
14821 rm -f conftest.er1
14822 cat conftest.err >&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; } &&
14831 { ac_try='test -s conftest$ac_exeext'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }; then
14837 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
14838 if test "x$ac_cv_lib_soname_Xext" = "x"
14839 then
14840 ac_cv_lib_soname_Xext="libXext.so"
14842 else
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 ac_cv_lib_soname_Xext="libXext.so"
14848 rm -f conftest.err conftest.$ac_objext \
14849 conftest$ac_exeext conftest.$ac_ext
14850 LIBS=$ac_get_soname_save_LIBS
14852 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14853 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14854 if test "x$ac_cv_lib_soname_Xext" != xNONE
14855 then
14856 cat >>confdefs.h <<_ACEOF
14857 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14858 _ACEOF
14861 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14862 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14863 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 else
14866 ac_get_soname_save_LIBS=$LIBS
14867 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14868 cat >conftest.$ac_ext <<_ACEOF
14869 /* confdefs.h. */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14875 /* Override any gcc2 internal prototype to avoid an error. */
14876 #ifdef __cplusplus
14877 extern "C"
14878 #endif
14879 /* We use char because int might match the return type of a gcc2
14880 builtin and then its argument prototype would still apply. */
14881 char XOpenDevice ();
14883 main ()
14885 XOpenDevice ();
14887 return 0;
14889 _ACEOF
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14892 (eval $ac_link) 2>conftest.er1
14893 ac_status=$?
14894 grep -v '^ *+' conftest.er1 >conftest.err
14895 rm -f conftest.er1
14896 cat conftest.err >&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } &&
14899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try='test -s conftest$ac_exeext'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed 's/^.*\(libXi\.so[^ ]*\).*$/\1/'`
14912 if test "x$ac_cv_lib_soname_Xi" = "x"
14913 then
14914 ac_cv_lib_soname_Xi="libXi.so"
14916 else
14917 echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 ac_cv_lib_soname_Xi="libXi.so"
14922 rm -f conftest.err conftest.$ac_objext \
14923 conftest$ac_exeext conftest.$ac_ext
14924 LIBS=$ac_get_soname_save_LIBS
14926 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14927 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14928 if test "x$ac_cv_lib_soname_Xi" != xNONE
14929 then
14930 cat >>confdefs.h <<_ACEOF
14931 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14932 _ACEOF
14935 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14936 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14937 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 else
14940 ac_get_soname_save_LIBS=$LIBS
14941 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14942 cat >conftest.$ac_ext <<_ACEOF
14943 /* confdefs.h. */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14949 /* Override any gcc2 internal prototype to avoid an error. */
14950 #ifdef __cplusplus
14951 extern "C"
14952 #endif
14953 /* We use char because int might match the return type of a gcc2
14954 builtin and then its argument prototype would still apply. */
14955 char XRenderQueryExtension ();
14957 main ()
14959 XRenderQueryExtension ();
14961 return 0;
14963 _ACEOF
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966 (eval $ac_link) 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } &&
14973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14982 ac_status=$?
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
14986 if test "x$ac_cv_lib_soname_Xrender" = "x"
14987 then
14988 ac_cv_lib_soname_Xrender="libXrender.so"
14990 else
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 ac_cv_lib_soname_Xrender="libXrender.so"
14996 rm -f conftest.err conftest.$ac_objext \
14997 conftest$ac_exeext conftest.$ac_ext
14998 LIBS=$ac_get_soname_save_LIBS
15000 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
15001 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
15002 if test "x$ac_cv_lib_soname_Xrender" != xNONE
15003 then
15004 cat >>confdefs.h <<_ACEOF
15005 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
15006 _ACEOF
15009 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
15010 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
15011 if test "${ac_cv_lib_soname_freetype+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 else
15014 ac_get_soname_save_LIBS=$LIBS
15015 LIBS="-lfreetype $X_LIBS $LIBS"
15016 cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h. */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15023 /* Override any gcc2 internal prototype to avoid an error. */
15024 #ifdef __cplusplus
15025 extern "C"
15026 #endif
15027 /* We use char because int might match the return type of a gcc2
15028 builtin and then its argument prototype would still apply. */
15029 char FT_Init_FreeType ();
15031 main ()
15033 FT_Init_FreeType ();
15035 return 0;
15037 _ACEOF
15038 rm -f conftest.$ac_objext conftest$ac_exeext
15039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15040 (eval $ac_link) 2>conftest.er1
15041 ac_status=$?
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest$ac_exeext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
15060 if test "x$ac_cv_lib_soname_freetype" = "x"
15061 then
15062 ac_cv_lib_soname_freetype="libfreetype.so"
15064 else
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ac_cv_lib_soname_freetype="libfreetype.so"
15070 rm -f conftest.err conftest.$ac_objext \
15071 conftest$ac_exeext conftest.$ac_ext
15072 LIBS=$ac_get_soname_save_LIBS
15074 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15075 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
15076 if test "x$ac_cv_lib_soname_freetype" != xNONE
15077 then
15078 cat >>confdefs.h <<_ACEOF
15079 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15080 _ACEOF
15083 echo "$as_me:$LINENO: checking for -lGL soname" >&5
15084 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
15085 if test "${ac_cv_lib_soname_GL+set}" = set; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 else
15088 ac_get_soname_save_LIBS=$LIBS
15089 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15090 cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h. */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15097 /* Override any gcc2 internal prototype to avoid an error. */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 /* We use char because int might match the return type of a gcc2
15102 builtin and then its argument prototype would still apply. */
15103 char glXQueryExtension ();
15105 main ()
15107 glXQueryExtension ();
15109 return 0;
15111 _ACEOF
15112 rm -f conftest.$ac_objext conftest$ac_exeext
15113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15114 (eval $ac_link) 2>conftest.er1
15115 ac_status=$?
15116 grep -v '^ *+' conftest.er1 >conftest.err
15117 rm -f conftest.er1
15118 cat conftest.err >&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; } &&
15127 { ac_try='test -s conftest$ac_exeext'
15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129 (eval $ac_try) 2>&5
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
15134 if test "x$ac_cv_lib_soname_GL" = "x"
15135 then
15136 ac_cv_lib_soname_GL="libGL.so"
15138 else
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 ac_cv_lib_soname_GL="libGL.so"
15144 rm -f conftest.err conftest.$ac_objext \
15145 conftest$ac_exeext conftest.$ac_ext
15146 LIBS=$ac_get_soname_save_LIBS
15148 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15149 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15150 if test "x$ac_cv_lib_soname_GL" != xNONE
15151 then
15152 cat >>confdefs.h <<_ACEOF
15153 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15154 _ACEOF
15157 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15158 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15159 if test "${ac_cv_lib_soname_cups+set}" = set; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161 else
15162 ac_get_soname_save_LIBS=$LIBS
15163 LIBS="-lcups $LIBS"
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15171 /* Override any gcc2 internal prototype to avoid an error. */
15172 #ifdef __cplusplus
15173 extern "C"
15174 #endif
15175 /* We use char because int might match the return type of a gcc2
15176 builtin and then its argument prototype would still apply. */
15177 char cupsGetDefault ();
15179 main ()
15181 cupsGetDefault ();
15183 return 0;
15185 _ACEOF
15186 rm -f conftest.$ac_objext conftest$ac_exeext
15187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15188 (eval $ac_link) 2>conftest.er1
15189 ac_status=$?
15190 grep -v '^ *+' conftest.er1 >conftest.err
15191 rm -f conftest.er1
15192 cat conftest.err >&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; } &&
15201 { ac_try='test -s conftest$ac_exeext'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15207 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
15208 if test "x$ac_cv_lib_soname_cups" = "x"
15209 then
15210 ac_cv_lib_soname_cups="libcups.so"
15212 else
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 ac_cv_lib_soname_cups="libcups.so"
15218 rm -f conftest.err conftest.$ac_objext \
15219 conftest$ac_exeext conftest.$ac_ext
15220 LIBS=$ac_get_soname_save_LIBS
15222 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15223 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15224 if test "x$ac_cv_lib_soname_cups" != xNONE
15225 then
15226 cat >>confdefs.h <<_ACEOF
15227 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15228 _ACEOF
15231 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15232 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15233 if test "${ac_cv_lib_soname_jack+set}" = set; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236 ac_get_soname_save_LIBS=$LIBS
15237 LIBS="-ljack $LIBS"
15238 cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h. */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15245 /* Override any gcc2 internal prototype to avoid an error. */
15246 #ifdef __cplusplus
15247 extern "C"
15248 #endif
15249 /* We use char because int might match the return type of a gcc2
15250 builtin and then its argument prototype would still apply. */
15251 char jack_client_new ();
15253 main ()
15255 jack_client_new ();
15257 return 0;
15259 _ACEOF
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262 (eval $ac_link) 2>conftest.er1
15263 ac_status=$?
15264 grep -v '^ *+' conftest.er1 >conftest.err
15265 rm -f conftest.er1
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest$ac_exeext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
15282 if test "x$ac_cv_lib_soname_jack" = "x"
15283 then
15284 ac_cv_lib_soname_jack="libjack.so"
15286 else
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 ac_cv_lib_soname_jack="libjack.so"
15292 rm -f conftest.err conftest.$ac_objext \
15293 conftest$ac_exeext conftest.$ac_ext
15294 LIBS=$ac_get_soname_save_LIBS
15296 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15297 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15298 if test "x$ac_cv_lib_soname_jack" != xNONE
15299 then
15300 cat >>confdefs.h <<_ACEOF
15301 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15302 _ACEOF
15305 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15306 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15307 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 else
15310 ac_get_soname_save_LIBS=$LIBS
15311 LIBS="-lfontconfig $LIBS"
15312 cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h. */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15319 /* Override any gcc2 internal prototype to avoid an error. */
15320 #ifdef __cplusplus
15321 extern "C"
15322 #endif
15323 /* We use char because int might match the return type of a gcc2
15324 builtin and then its argument prototype would still apply. */
15325 char FcInit ();
15327 main ()
15329 FcInit ();
15331 return 0;
15333 _ACEOF
15334 rm -f conftest.$ac_objext conftest$ac_exeext
15335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15336 (eval $ac_link) 2>conftest.er1
15337 ac_status=$?
15338 grep -v '^ *+' conftest.er1 >conftest.err
15339 rm -f conftest.er1
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
15343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; } &&
15349 { ac_try='test -s conftest$ac_exeext'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
15356 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15357 then
15358 ac_cv_lib_soname_fontconfig="libfontconfig.so"
15360 else
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_cv_lib_soname_fontconfig="libfontconfig.so"
15366 rm -f conftest.err conftest.$ac_objext \
15367 conftest$ac_exeext conftest.$ac_ext
15368 LIBS=$ac_get_soname_save_LIBS
15370 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15371 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15372 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15373 then
15374 cat >>confdefs.h <<_ACEOF
15375 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15376 _ACEOF
15379 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15380 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15381 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384 ac_get_soname_save_LIBS=$LIBS
15385 LIBS="-lssl $LIBS"
15386 cat >conftest.$ac_ext <<_ACEOF
15387 /* confdefs.h. */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15393 /* Override any gcc2 internal prototype to avoid an error. */
15394 #ifdef __cplusplus
15395 extern "C"
15396 #endif
15397 /* We use char because int might match the return type of a gcc2
15398 builtin and then its argument prototype would still apply. */
15399 char SSL_library_init ();
15401 main ()
15403 SSL_library_init ();
15405 return 0;
15407 _ACEOF
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410 (eval $ac_link) 2>conftest.er1
15411 ac_status=$?
15412 grep -v '^ *+' conftest.er1 >conftest.err
15413 rm -f conftest.er1
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } &&
15417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } &&
15423 { ac_try='test -s conftest$ac_exeext'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }; then
15429 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
15430 if test "x$ac_cv_lib_soname_ssl" = "x"
15431 then
15432 ac_cv_lib_soname_ssl="libssl.so"
15434 else
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15438 ac_cv_lib_soname_ssl="libssl.so"
15440 rm -f conftest.err conftest.$ac_objext \
15441 conftest$ac_exeext conftest.$ac_ext
15442 LIBS=$ac_get_soname_save_LIBS
15444 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15445 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15446 if test "x$ac_cv_lib_soname_ssl" != xNONE
15447 then
15448 cat >>confdefs.h <<_ACEOF
15449 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15450 _ACEOF
15453 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15454 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15455 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458 ac_get_soname_save_LIBS=$LIBS
15459 LIBS="-lcrypto $LIBS"
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h. */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15467 /* Override any gcc2 internal prototype to avoid an error. */
15468 #ifdef __cplusplus
15469 extern "C"
15470 #endif
15471 /* We use char because int might match the return type of a gcc2
15472 builtin and then its argument prototype would still apply. */
15473 char BIO_new_socket ();
15475 main ()
15477 BIO_new_socket ();
15479 return 0;
15481 _ACEOF
15482 rm -f conftest.$ac_objext conftest$ac_exeext
15483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15484 (eval $ac_link) 2>conftest.er1
15485 ac_status=$?
15486 grep -v '^ *+' conftest.er1 >conftest.err
15487 rm -f conftest.er1
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15494 ac_status=$?
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; } &&
15497 { ac_try='test -s conftest$ac_exeext'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
15504 if test "x$ac_cv_lib_soname_crypto" = "x"
15505 then
15506 ac_cv_lib_soname_crypto="libcrypto.so"
15508 else
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15512 ac_cv_lib_soname_crypto="libcrypto.so"
15514 rm -f conftest.err conftest.$ac_objext \
15515 conftest$ac_exeext conftest.$ac_ext
15516 LIBS=$ac_get_soname_save_LIBS
15518 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15519 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15520 if test "x$ac_cv_lib_soname_crypto" != xNONE
15521 then
15522 cat >>confdefs.h <<_ACEOF
15523 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15524 _ACEOF
15527 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15528 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15529 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532 ac_get_soname_save_LIBS=$LIBS
15533 LIBS="-lncurses $LIBS"
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h. */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15541 /* Override any gcc2 internal prototype to avoid an error. */
15542 #ifdef __cplusplus
15543 extern "C"
15544 #endif
15545 /* We use char because int might match the return type of a gcc2
15546 builtin and then its argument prototype would still apply. */
15547 char waddch ();
15549 main ()
15551 waddch ();
15553 return 0;
15555 _ACEOF
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15558 (eval $ac_link) 2>conftest.er1
15559 ac_status=$?
15560 grep -v '^ *+' conftest.er1 >conftest.err
15561 rm -f conftest.er1
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest$ac_exeext'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
15578 if test "x$ac_cv_lib_soname_ncurses" = "x"
15579 then
15580 ac_cv_lib_soname_ncurses="libncurses.so"
15582 else
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ac_cv_lib_soname_ncurses="libncurses.so"
15588 rm -f conftest.err conftest.$ac_objext \
15589 conftest$ac_exeext conftest.$ac_ext
15590 LIBS=$ac_get_soname_save_LIBS
15592 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15593 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15594 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15595 then
15596 cat >>confdefs.h <<_ACEOF
15597 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15598 _ACEOF
15601 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15602 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15603 if test "${ac_cv_lib_soname_curses+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606 ac_get_soname_save_LIBS=$LIBS
15607 LIBS="-lcurses $LIBS"
15608 cat >conftest.$ac_ext <<_ACEOF
15609 /* confdefs.h. */
15610 _ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h. */
15615 /* Override any gcc2 internal prototype to avoid an error. */
15616 #ifdef __cplusplus
15617 extern "C"
15618 #endif
15619 /* We use char because int might match the return type of a gcc2
15620 builtin and then its argument prototype would still apply. */
15621 char waddch ();
15623 main ()
15625 waddch ();
15627 return 0;
15629 _ACEOF
15630 rm -f conftest.$ac_objext conftest$ac_exeext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15632 (eval $ac_link) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; } &&
15645 { ac_try='test -s conftest$ac_exeext'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15651 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
15652 if test "x$ac_cv_lib_soname_curses" = "x"
15653 then
15654 ac_cv_lib_soname_curses="libcurses.so"
15656 else
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15660 ac_cv_lib_soname_curses="libcurses.so"
15662 rm -f conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
15664 LIBS=$ac_get_soname_save_LIBS
15666 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15667 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15668 if test "x$ac_cv_lib_soname_curses" != xNONE
15669 then
15670 cat >>confdefs.h <<_ACEOF
15671 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15672 _ACEOF
15678 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15679 # for constant arguments. Useless!
15680 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15681 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15682 if test "${ac_cv_working_alloca_h+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685 cat >conftest.$ac_ext <<_ACEOF
15686 /* confdefs.h. */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15691 #include <alloca.h>
15693 main ()
15695 char *p = (char *) alloca (2 * sizeof (int));
15697 return 0;
15699 _ACEOF
15700 rm -f conftest.$ac_objext conftest$ac_exeext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702 (eval $ac_link) 2>conftest.er1
15703 ac_status=$?
15704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; } &&
15715 { ac_try='test -s conftest$ac_exeext'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721 ac_cv_working_alloca_h=yes
15722 else
15723 echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15726 ac_cv_working_alloca_h=no
15728 rm -f conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
15731 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15732 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15733 if test $ac_cv_working_alloca_h = yes; then
15735 cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_ALLOCA_H 1
15737 _ACEOF
15741 echo "$as_me:$LINENO: checking for alloca" >&5
15742 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15743 if test "${ac_cv_func_alloca_works+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746 cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h. */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 #ifdef __GNUC__
15753 # define alloca __builtin_alloca
15754 #else
15755 # ifdef _MSC_VER
15756 # include <malloc.h>
15757 # define alloca _alloca
15758 # else
15759 # if HAVE_ALLOCA_H
15760 # include <alloca.h>
15761 # else
15762 # ifdef _AIX
15763 #pragma alloca
15764 # else
15765 # ifndef alloca /* predefined by HP cc +Olibcalls */
15766 char *alloca ();
15767 # endif
15768 # endif
15769 # endif
15770 # endif
15771 #endif
15774 main ()
15776 char *p = (char *) alloca (1);
15778 return 0;
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15783 (eval $ac_link) 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; } &&
15796 { ac_try='test -s conftest$ac_exeext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_cv_func_alloca_works=yes
15803 else
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ac_cv_func_alloca_works=no
15809 rm -f conftest.err conftest.$ac_objext \
15810 conftest$ac_exeext conftest.$ac_ext
15812 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15813 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15815 if test $ac_cv_func_alloca_works = yes; then
15817 cat >>confdefs.h <<\_ACEOF
15818 #define HAVE_ALLOCA 1
15819 _ACEOF
15821 else
15822 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15823 # that cause trouble. Some versions do not even contain alloca or
15824 # contain a buggy version. If you still want to use their alloca,
15825 # use ar to extract alloca.o from them instead of compiling alloca.c.
15827 ALLOCA=alloca.$ac_objext
15829 cat >>confdefs.h <<\_ACEOF
15830 #define C_ALLOCA 1
15831 _ACEOF
15834 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15835 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15836 if test "${ac_cv_os_cray+set}" = set; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 else
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h. */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845 #if defined(CRAY) && ! defined(CRAY2)
15846 webecray
15847 #else
15848 wenotbecray
15849 #endif
15851 _ACEOF
15852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15853 $EGREP "webecray" >/dev/null 2>&1; then
15854 ac_cv_os_cray=yes
15855 else
15856 ac_cv_os_cray=no
15858 rm -f conftest*
15861 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15862 echo "${ECHO_T}$ac_cv_os_cray" >&6
15863 if test $ac_cv_os_cray = yes; then
15864 for ac_func in _getb67 GETB67 getb67; do
15865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15866 echo "$as_me:$LINENO: checking for $ac_func" >&5
15867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15868 if eval "test \"\${$as_ac_var+set}\" = set"; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 else
15871 cat >conftest.$ac_ext <<_ACEOF
15872 /* confdefs.h. */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15879 #define $ac_func innocuous_$ac_func
15881 /* System header to define __stub macros and hopefully few prototypes,
15882 which can conflict with char $ac_func (); below.
15883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15884 <limits.h> exists even on freestanding compilers. */
15886 #ifdef __STDC__
15887 # include <limits.h>
15888 #else
15889 # include <assert.h>
15890 #endif
15892 #undef $ac_func
15894 /* Override any gcc2 internal prototype to avoid an error. */
15895 #ifdef __cplusplus
15896 extern "C"
15898 #endif
15899 /* We use char because int might match the return type of a gcc2
15900 builtin and then its argument prototype would still apply. */
15901 char $ac_func ();
15902 /* The GNU C library defines this for functions which it implements
15903 to always fail with ENOSYS. Some functions are actually named
15904 something starting with __ and the normal name is an alias. */
15905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15906 choke me
15907 #else
15908 char (*f) () = $ac_func;
15909 #endif
15910 #ifdef __cplusplus
15912 #endif
15915 main ()
15917 return f != $ac_func;
15919 return 0;
15921 _ACEOF
15922 rm -f conftest.$ac_objext conftest$ac_exeext
15923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15924 (eval $ac_link) 2>conftest.er1
15925 ac_status=$?
15926 grep -v '^ *+' conftest.er1 >conftest.err
15927 rm -f conftest.er1
15928 cat conftest.err >&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } &&
15931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933 (eval $ac_try) 2>&5
15934 ac_status=$?
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; } &&
15937 { ac_try='test -s conftest$ac_exeext'
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15943 eval "$as_ac_var=yes"
15944 else
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 eval "$as_ac_var=no"
15950 rm -f conftest.err conftest.$ac_objext \
15951 conftest$ac_exeext conftest.$ac_ext
15953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15955 if test `eval echo '${'$as_ac_var'}'` = yes; then
15957 cat >>confdefs.h <<_ACEOF
15958 #define CRAY_STACKSEG_END $ac_func
15959 _ACEOF
15961 break
15964 done
15967 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15968 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15969 if test "${ac_cv_c_stack_direction+set}" = set; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972 if test "$cross_compiling" = yes; then
15973 ac_cv_c_stack_direction=0
15974 else
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h. */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15982 find_stack_direction ()
15984 static char *addr = 0;
15985 auto char dummy;
15986 if (addr == 0)
15988 addr = &dummy;
15989 return find_stack_direction ();
15991 else
15992 return (&dummy > addr) ? 1 : -1;
15996 main ()
15998 exit (find_stack_direction () < 0);
16000 _ACEOF
16001 rm -f conftest$ac_exeext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16003 (eval $ac_link) 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008 (eval $ac_try) 2>&5
16009 ac_status=$?
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); }; }; then
16012 ac_cv_c_stack_direction=1
16013 else
16014 echo "$as_me: program exited with status $ac_status" >&5
16015 echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 ( exit $ac_status )
16019 ac_cv_c_stack_direction=-1
16021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16024 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16025 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16027 cat >>confdefs.h <<_ACEOF
16028 #define STACK_DIRECTION $ac_cv_c_stack_direction
16029 _ACEOF
16088 for ac_func in \
16089 _lwp_create \
16090 _lwp_self \
16091 _pclose \
16092 _popen \
16093 _snprintf \
16094 _spawnvp \
16095 _stricmp \
16096 _strnicmp \
16097 _vsnprintf \
16098 chsize \
16099 clone \
16100 finite \
16101 fpclass \
16102 ftruncate \
16103 ftruncate64 \
16104 getnetbyaddr \
16105 getnetbyname \
16106 getopt_long \
16107 getpagesize \
16108 getprotobyname \
16109 getprotobynumber \
16110 getpwuid \
16111 getservbyport \
16112 gettid \
16113 gettimeofday \
16114 inet_network \
16115 lseek64 \
16116 lstat \
16117 memmove \
16118 mmap \
16119 pclose \
16120 popen \
16121 pread \
16122 pwrite \
16123 readlink \
16124 rfork \
16125 select \
16126 sendmsg \
16127 settimeofday \
16128 sigaltstack \
16129 snprintf \
16130 spawnvp \
16131 statfs \
16132 statvfs \
16133 strcasecmp \
16134 strerror \
16135 strncasecmp \
16136 tcgetattr \
16137 timegm \
16138 usleep \
16139 vfscanf \
16140 vsnprintf \
16141 wait4 \
16142 waitpid \
16145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16146 echo "$as_me:$LINENO: checking for $ac_func" >&5
16147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16148 if eval "test \"\${$as_ac_var+set}\" = set"; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h. */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16159 #define $ac_func innocuous_$ac_func
16161 /* System header to define __stub macros and hopefully few prototypes,
16162 which can conflict with char $ac_func (); below.
16163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16164 <limits.h> exists even on freestanding compilers. */
16166 #ifdef __STDC__
16167 # include <limits.h>
16168 #else
16169 # include <assert.h>
16170 #endif
16172 #undef $ac_func
16174 /* Override any gcc2 internal prototype to avoid an error. */
16175 #ifdef __cplusplus
16176 extern "C"
16178 #endif
16179 /* We use char because int might match the return type of a gcc2
16180 builtin and then its argument prototype would still apply. */
16181 char $ac_func ();
16182 /* The GNU C library defines this for functions which it implements
16183 to always fail with ENOSYS. Some functions are actually named
16184 something starting with __ and the normal name is an alias. */
16185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16186 choke me
16187 #else
16188 char (*f) () = $ac_func;
16189 #endif
16190 #ifdef __cplusplus
16192 #endif
16195 main ()
16197 return f != $ac_func;
16199 return 0;
16201 _ACEOF
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16204 (eval $ac_link) 2>conftest.er1
16205 ac_status=$?
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
16211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213 (eval $ac_try) 2>&5
16214 ac_status=$?
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; } &&
16217 { ac_try='test -s conftest$ac_exeext'
16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; }; then
16223 eval "$as_ac_var=yes"
16224 else
16225 echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16228 eval "$as_ac_var=no"
16230 rm -f conftest.err conftest.$ac_objext \
16231 conftest$ac_exeext conftest.$ac_ext
16233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16235 if test `eval echo '${'$as_ac_var'}'` = yes; then
16236 cat >>confdefs.h <<_ACEOF
16237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16238 _ACEOF
16241 done
16329 for ac_header in \
16330 arpa/inet.h \
16331 arpa/nameser.h \
16332 cups/cups.h \
16333 direct.h \
16334 elf.h \
16335 float.h \
16336 fontconfig/fontconfig.h \
16337 getopt.h \
16338 ieeefp.h \
16339 io.h \
16340 jack/jack.h \
16341 libio.h \
16342 libutil.h \
16343 link.h \
16344 linux/cdrom.h \
16345 linux/hdreg.h \
16346 linux/input.h \
16347 linux/ioctl.h \
16348 linux/joystick.h \
16349 linux/major.h \
16350 linux/param.h \
16351 linux/serial.h \
16352 linux/ucdrom.h \
16353 machine/cpu.h \
16354 netdb.h \
16355 netinet/in.h \
16356 netinet/in_systm.h \
16357 netinet/tcp.h \
16358 netinet/tcp_fsm.h \
16359 openssl/ssl.h \
16360 process.h \
16361 pthread.h \
16362 pty.h \
16363 pwd.h \
16364 regex.h \
16365 sched.h \
16366 scsi/sg.h \
16367 scsi/scsi.h \
16368 scsi/scsi_ioctl.h \
16369 socket.h \
16370 stdint.h \
16371 strings.h \
16372 sys/cdio.h \
16373 sys/elf32.h \
16374 sys/errno.h \
16375 sys/exec_elf.h \
16376 sys/file.h \
16377 sys/filio.h \
16378 sys/inttypes.h \
16379 sys/ioctl.h \
16380 sys/ipc.h \
16381 sys/link.h \
16382 sys/lwp.h \
16383 sys/mman.h \
16384 sys/modem.h \
16385 sys/msg.h \
16386 sys/param.h \
16387 sys/poll.h \
16388 sys/ptrace.h \
16389 sys/reg.h \
16390 sys/scsiio.h \
16391 sys/shm.h \
16392 sys/signal.h \
16393 sys/socket.h \
16394 sys/sockio.h \
16395 sys/statfs.h \
16396 sys/statvfs.h \
16397 sys/strtio.h \
16398 sys/syscall.h \
16399 sys/sysctl.h \
16400 sys/time.h \
16401 sys/times.h \
16402 sys/uio.h \
16403 sys/un.h \
16404 sys/v86.h \
16405 sys/v86intr.h \
16406 sys/vfs.h \
16407 sys/vm86.h \
16408 sys/wait.h \
16409 syscall.h \
16410 termios.h \
16411 unistd.h \
16412 utime.h \
16413 valgrind/memcheck.h
16416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16418 echo "$as_me:$LINENO: checking for $ac_header" >&5
16419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16425 else
16426 # Is the header compilable?
16427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16429 cat >conftest.$ac_ext <<_ACEOF
16430 /* confdefs.h. */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16435 $ac_includes_default
16436 #include <$ac_header>
16437 _ACEOF
16438 rm -f conftest.$ac_objext
16439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16440 (eval $ac_compile) 2>conftest.er1
16441 ac_status=$?
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
16447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; } &&
16453 { ac_try='test -s conftest.$ac_objext'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16459 ac_header_compiler=yes
16460 else
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16464 ac_header_compiler=no
16466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16468 echo "${ECHO_T}$ac_header_compiler" >&6
16470 # Is the header present?
16471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16473 cat >conftest.$ac_ext <<_ACEOF
16474 /* confdefs.h. */
16475 _ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h. */
16479 #include <$ac_header>
16480 _ACEOF
16481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16483 ac_status=$?
16484 grep -v '^ *+' conftest.er1 >conftest.err
16485 rm -f conftest.er1
16486 cat conftest.err >&5
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } >/dev/null; then
16489 if test -s conftest.err; then
16490 ac_cpp_err=$ac_c_preproc_warn_flag
16491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16492 else
16493 ac_cpp_err=
16495 else
16496 ac_cpp_err=yes
16498 if test -z "$ac_cpp_err"; then
16499 ac_header_preproc=yes
16500 else
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16504 ac_header_preproc=no
16506 rm -f conftest.err conftest.$ac_ext
16507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16508 echo "${ECHO_T}$ac_header_preproc" >&6
16510 # So? What about this header?
16511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16512 yes:no: )
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16517 ac_header_preproc=yes
16519 no:yes:* )
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16527 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16533 cat <<\_ASBOX
16534 ## ------------------------------------ ##
16535 ## Report this to wine-devel@winehq.org ##
16536 ## ------------------------------------ ##
16537 _ASBOX
16539 sed "s/^/$as_me: WARNING: /" >&2
16541 esac
16542 echo "$as_me:$LINENO: checking for $ac_header" >&5
16543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547 eval "$as_ac_Header=\$ac_header_preproc"
16549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16554 cat >>confdefs.h <<_ACEOF
16555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16556 _ACEOF
16560 done
16562 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16563 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16564 if test "${ac_cv_header_stat_broken+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 else
16567 cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h. */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 #include <sys/types.h>
16574 #include <sys/stat.h>
16576 #if defined(S_ISBLK) && defined(S_IFDIR)
16577 # if S_ISBLK (S_IFDIR)
16578 You lose.
16579 # endif
16580 #endif
16582 #if defined(S_ISBLK) && defined(S_IFCHR)
16583 # if S_ISBLK (S_IFCHR)
16584 You lose.
16585 # endif
16586 #endif
16588 #if defined(S_ISLNK) && defined(S_IFREG)
16589 # if S_ISLNK (S_IFREG)
16590 You lose.
16591 # endif
16592 #endif
16594 #if defined(S_ISSOCK) && defined(S_IFREG)
16595 # if S_ISSOCK (S_IFREG)
16596 You lose.
16597 # endif
16598 #endif
16600 _ACEOF
16601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16602 $EGREP "You lose" >/dev/null 2>&1; then
16603 ac_cv_header_stat_broken=yes
16604 else
16605 ac_cv_header_stat_broken=no
16607 rm -f conftest*
16610 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16611 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16612 if test $ac_cv_header_stat_broken = yes; then
16614 cat >>confdefs.h <<\_ACEOF
16615 #define STAT_MACROS_BROKEN 1
16616 _ACEOF
16624 for ac_header in sys/mount.h sys/user.h
16626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16627 echo "$as_me:$LINENO: checking for $ac_header" >&5
16628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 else
16632 cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h. */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16638 #include <sys/types.h>
16639 #if HAVE_SYS_PARAM_H
16640 # include <sys/param.h>
16641 #endif
16643 #include <$ac_header>
16644 _ACEOF
16645 rm -f conftest.$ac_objext
16646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16647 (eval $ac_compile) 2>conftest.er1
16648 ac_status=$?
16649 grep -v '^ *+' conftest.er1 >conftest.err
16650 rm -f conftest.er1
16651 cat conftest.err >&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } &&
16654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; } &&
16660 { ac_try='test -s conftest.$ac_objext'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 eval "$as_ac_Header=yes"
16667 else
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 eval "$as_ac_Header=no"
16673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16678 cat >>confdefs.h <<_ACEOF
16679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16680 _ACEOF
16684 done
16692 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16695 echo "$as_me:$LINENO: checking for $ac_header" >&5
16696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 else
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h. */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 #include <sys/types.h>
16707 #if HAVE_SYS_SOCKET_H
16708 # include <sys/socket.h>
16709 #endif
16711 #include <$ac_header>
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715 (eval $ac_compile) 2>conftest.er1
16716 ac_status=$?
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; } &&
16728 { ac_try='test -s conftest.$ac_objext'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16731 ac_status=$?
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734 eval "$as_ac_Header=yes"
16735 else
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16739 eval "$as_ac_Header=no"
16741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16746 cat >>confdefs.h <<_ACEOF
16747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16748 _ACEOF
16752 done
16756 for ac_header in resolv.h
16758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16759 echo "$as_me:$LINENO: checking for $ac_header" >&5
16760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 else
16764 cat >conftest.$ac_ext <<_ACEOF
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 #include <sys/types.h>
16771 #if HAVE_SYS_SOCKET_H
16772 # include <sys/socket.h>
16773 #endif
16774 #if HAVE_NETINET_IN_H
16775 # include <netinet/in.h>
16776 #endif
16777 #if HAVE_ARPA_NAMESER_H
16778 # include <arpa/nameser.h>
16779 #endif
16781 #include <$ac_header>
16782 _ACEOF
16783 rm -f conftest.$ac_objext
16784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16785 (eval $ac_compile) 2>conftest.er1
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; } &&
16798 { ac_try='test -s conftest.$ac_objext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 eval "$as_ac_Header=yes"
16805 else
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 eval "$as_ac_Header=no"
16811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16816 cat >>confdefs.h <<_ACEOF
16817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16818 _ACEOF
16822 done
16826 for ac_header in netinet/ip.h
16828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16829 echo "$as_me:$LINENO: checking for $ac_header" >&5
16830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834 cat >conftest.$ac_ext <<_ACEOF
16835 /* confdefs.h. */
16836 _ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16840 #include <sys/types.h>
16841 #if HAVE_SYS_SOCKET_H
16842 # include <sys/socket.h>
16843 #endif
16844 #if HAVE_NETINET_IN_SYSTM_H
16845 # include <netinet/in_systm.h>
16846 #endif
16848 #include <$ac_header>
16849 _ACEOF
16850 rm -f conftest.$ac_objext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16852 (eval $ac_compile) 2>conftest.er1
16853 ac_status=$?
16854 grep -v '^ *+' conftest.er1 >conftest.err
16855 rm -f conftest.er1
16856 cat conftest.err >&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try='test -s conftest.$ac_objext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 eval "$as_ac_Header=yes"
16872 else
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16876 eval "$as_ac_Header=no"
16878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16883 cat >>confdefs.h <<_ACEOF
16884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16885 _ACEOF
16889 done
16893 for ac_header in ucontext.h
16895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16896 echo "$as_me:$LINENO: checking for $ac_header" >&5
16897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 else
16901 cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h. */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 #include <signal.h>
16909 #include <$ac_header>
16910 _ACEOF
16911 rm -f conftest.$ac_objext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16913 (eval $ac_compile) 2>conftest.er1
16914 ac_status=$?
16915 grep -v '^ *+' conftest.er1 >conftest.err
16916 rm -f conftest.er1
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } &&
16920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try='test -s conftest.$ac_objext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 eval "$as_ac_Header=yes"
16933 else
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 eval "$as_ac_Header=no"
16939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16946 _ACEOF
16950 done
16954 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16955 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16956 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16958 else
16959 cat >conftest.$ac_ext <<_ACEOF
16960 /* confdefs.h. */
16961 _ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16965 #include <sys/types.h>
16966 #ifdef HAVE_SYS_SOCKET_H
16967 # include <sys/socket.h>
16968 #endif
16969 #include <netipx/ipx.h>
16971 main ()
16973 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16975 return 0;
16977 _ACEOF
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980 (eval $ac_compile) 2>conftest.er1
16981 ac_status=$?
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest.$ac_objext'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_cv_c_ipx_gnu="yes"
17000 else
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ac_cv_c_ipx_gnu="no"
17006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17009 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17010 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17011 if test "$ac_cv_c_ipx_gnu" = "yes"
17012 then
17014 cat >>confdefs.h <<\_ACEOF
17015 #define HAVE_IPX_GNU 1
17016 _ACEOF
17020 if test "$ac_cv_c_ipx_gnu" = "no"
17021 then
17022 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17023 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17024 if test "${ac_cv_c_ipx_linux+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 else
17027 cat >conftest.$ac_ext <<_ACEOF
17028 /* confdefs.h. */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17033 #include <sys/types.h>
17034 #ifdef HAVE_SYS_SOCKET_H
17035 # include <sys/socket.h>
17036 #endif
17037 #include <asm/types.h>
17038 #include <linux/ipx.h>
17040 main ()
17042 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17044 return 0;
17046 _ACEOF
17047 rm -f conftest.$ac_objext
17048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17049 (eval $ac_compile) 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
17056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; } &&
17062 { ac_try='test -s conftest.$ac_objext'
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 ac_cv_c_ipx_linux="yes"
17069 else
17070 echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17073 ac_cv_c_ipx_linux="no"
17075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17078 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17079 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17080 if test "$ac_cv_c_ipx_linux" = "yes"
17081 then
17083 cat >>confdefs.h <<\_ACEOF
17084 #define HAVE_IPX_LINUX 1
17085 _ACEOF
17091 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17092 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17093 if test "${ac_cv_c_const+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096 cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h. */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17104 main ()
17106 /* FIXME: Include the comments suggested by Paul. */
17107 #ifndef __cplusplus
17108 /* Ultrix mips cc rejects this. */
17109 typedef int charset[2];
17110 const charset x;
17111 /* SunOS 4.1.1 cc rejects this. */
17112 char const *const *ccp;
17113 char **p;
17114 /* NEC SVR4.0.2 mips cc rejects this. */
17115 struct point {int x, y;};
17116 static struct point const zero = {0,0};
17117 /* AIX XL C 1.02.0.0 rejects this.
17118 It does not let you subtract one const X* pointer from another in
17119 an arm of an if-expression whose if-part is not a constant
17120 expression */
17121 const char *g = "string";
17122 ccp = &g + (g ? g-g : 0);
17123 /* HPUX 7.0 cc rejects these. */
17124 ++ccp;
17125 p = (char**) ccp;
17126 ccp = (char const *const *) p;
17127 { /* SCO 3.2v4 cc rejects this. */
17128 char *t;
17129 char const *s = 0 ? (char *) 0 : (char const *) 0;
17131 *t++ = 0;
17133 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17134 int x[] = {25, 17};
17135 const int *foo = &x[0];
17136 ++foo;
17138 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17139 typedef const int *iptr;
17140 iptr p = 0;
17141 ++p;
17143 { /* AIX XL C 1.02.0.0 rejects this saying
17144 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17145 struct s { int j; const int *ap[3]; };
17146 struct s *b; b->j = 5;
17148 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17149 const int foo = 10;
17151 #endif
17154 return 0;
17156 _ACEOF
17157 rm -f conftest.$ac_objext
17158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17159 (eval $ac_compile) 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest.$ac_objext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_cv_c_const=yes
17179 else
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_c_const=no
17185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17187 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17188 echo "${ECHO_T}$ac_cv_c_const" >&6
17189 if test $ac_cv_c_const = no; then
17191 cat >>confdefs.h <<\_ACEOF
17192 #define const
17193 _ACEOF
17197 echo "$as_me:$LINENO: checking for inline" >&5
17198 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17199 if test "${ac_cv_c_inline+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17201 else
17202 ac_cv_c_inline=no
17203 for ac_kw in inline __inline__ __inline; do
17204 cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h. */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17210 #ifndef __cplusplus
17211 typedef int foo_t;
17212 static $ac_kw foo_t static_foo () {return 0; }
17213 $ac_kw foo_t foo () {return 0; }
17214 #endif
17216 _ACEOF
17217 rm -f conftest.$ac_objext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219 (eval $ac_compile) 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest.$ac_objext'
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 ac_cv_c_inline=$ac_kw; break
17239 else
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17245 done
17248 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17249 echo "${ECHO_T}$ac_cv_c_inline" >&6
17252 case $ac_cv_c_inline in
17253 inline | yes) ;;
17255 case $ac_cv_c_inline in
17256 no) ac_val=;;
17257 *) ac_val=$ac_cv_c_inline;;
17258 esac
17259 cat >>confdefs.h <<_ACEOF
17260 #ifndef __cplusplus
17261 #define inline $ac_val
17262 #endif
17263 _ACEOF
17265 esac
17267 echo "$as_me:$LINENO: checking for mode_t" >&5
17268 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17269 if test "${ac_cv_type_mode_t+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272 cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h. */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278 $ac_includes_default
17280 main ()
17282 if ((mode_t *) 0)
17283 return 0;
17284 if (sizeof (mode_t))
17285 return 0;
17287 return 0;
17289 _ACEOF
17290 rm -f conftest.$ac_objext
17291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17292 (eval $ac_compile) 2>conftest.er1
17293 ac_status=$?
17294 grep -v '^ *+' conftest.er1 >conftest.err
17295 rm -f conftest.er1
17296 cat conftest.err >&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
17299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; } &&
17305 { ac_try='test -s conftest.$ac_objext'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; }; then
17311 ac_cv_type_mode_t=yes
17312 else
17313 echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17316 ac_cv_type_mode_t=no
17318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17320 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17321 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17322 if test $ac_cv_type_mode_t = yes; then
17324 cat >>confdefs.h <<_ACEOF
17325 #define HAVE_MODE_T 1
17326 _ACEOF
17330 echo "$as_me:$LINENO: checking for off_t" >&5
17331 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17332 if test "${ac_cv_type_off_t+set}" = set; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17334 else
17335 cat >conftest.$ac_ext <<_ACEOF
17336 /* confdefs.h. */
17337 _ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17341 $ac_includes_default
17343 main ()
17345 if ((off_t *) 0)
17346 return 0;
17347 if (sizeof (off_t))
17348 return 0;
17350 return 0;
17352 _ACEOF
17353 rm -f conftest.$ac_objext
17354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17355 (eval $ac_compile) 2>conftest.er1
17356 ac_status=$?
17357 grep -v '^ *+' conftest.er1 >conftest.err
17358 rm -f conftest.er1
17359 cat conftest.err >&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
17362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest.$ac_objext'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_cv_type_off_t=yes
17375 else
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 ac_cv_type_off_t=no
17381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17383 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17384 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17385 if test $ac_cv_type_off_t = yes; then
17387 cat >>confdefs.h <<_ACEOF
17388 #define HAVE_OFF_T 1
17389 _ACEOF
17393 echo "$as_me:$LINENO: checking for pid_t" >&5
17394 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17395 if test "${ac_cv_type_pid_t+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398 cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h. */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404 $ac_includes_default
17406 main ()
17408 if ((pid_t *) 0)
17409 return 0;
17410 if (sizeof (pid_t))
17411 return 0;
17413 return 0;
17415 _ACEOF
17416 rm -f conftest.$ac_objext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17418 (eval $ac_compile) 2>conftest.er1
17419 ac_status=$?
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest.$ac_objext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_type_pid_t=yes
17438 else
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 ac_cv_type_pid_t=no
17444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17446 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17447 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17448 if test $ac_cv_type_pid_t = yes; then
17450 cat >>confdefs.h <<_ACEOF
17451 #define HAVE_PID_T 1
17452 _ACEOF
17456 echo "$as_me:$LINENO: checking for size_t" >&5
17457 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17458 if test "${ac_cv_type_size_t+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17460 else
17461 cat >conftest.$ac_ext <<_ACEOF
17462 /* confdefs.h. */
17463 _ACEOF
17464 cat confdefs.h >>conftest.$ac_ext
17465 cat >>conftest.$ac_ext <<_ACEOF
17466 /* end confdefs.h. */
17467 $ac_includes_default
17469 main ()
17471 if ((size_t *) 0)
17472 return 0;
17473 if (sizeof (size_t))
17474 return 0;
17476 return 0;
17478 _ACEOF
17479 rm -f conftest.$ac_objext
17480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17481 (eval $ac_compile) 2>conftest.er1
17482 ac_status=$?
17483 grep -v '^ *+' conftest.er1 >conftest.err
17484 rm -f conftest.er1
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; } &&
17494 { ac_try='test -s conftest.$ac_objext'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 ac_cv_type_size_t=yes
17501 else
17502 echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17505 ac_cv_type_size_t=no
17507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17509 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17510 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17511 if test $ac_cv_type_size_t = yes; then
17513 cat >>confdefs.h <<_ACEOF
17514 #define HAVE_SIZE_T 1
17515 _ACEOF
17519 echo "$as_me:$LINENO: checking for ssize_t" >&5
17520 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17521 if test "${ac_cv_type_ssize_t+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 else
17524 cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h. */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17530 $ac_includes_default
17532 main ()
17534 if ((ssize_t *) 0)
17535 return 0;
17536 if (sizeof (ssize_t))
17537 return 0;
17539 return 0;
17541 _ACEOF
17542 rm -f conftest.$ac_objext
17543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17544 (eval $ac_compile) 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try='test -s conftest.$ac_objext'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 ac_cv_type_ssize_t=yes
17564 else
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17568 ac_cv_type_ssize_t=no
17570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17572 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17573 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17574 if test $ac_cv_type_ssize_t = yes; then
17576 cat >>confdefs.h <<_ACEOF
17577 #define HAVE_SSIZE_T 1
17578 _ACEOF
17582 echo "$as_me:$LINENO: checking for long long" >&5
17583 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17584 if test "${ac_cv_type_long_long+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 else
17587 cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h. */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 $ac_includes_default
17595 main ()
17597 if ((long long *) 0)
17598 return 0;
17599 if (sizeof (long long))
17600 return 0;
17602 return 0;
17604 _ACEOF
17605 rm -f conftest.$ac_objext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17607 (eval $ac_compile) 2>conftest.er1
17608 ac_status=$?
17609 grep -v '^ *+' conftest.er1 >conftest.err
17610 rm -f conftest.er1
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616 (eval $ac_try) 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; } &&
17620 { ac_try='test -s conftest.$ac_objext'
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; }; then
17626 ac_cv_type_long_long=yes
17627 else
17628 echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17631 ac_cv_type_long_long=no
17633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17635 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17636 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17637 if test $ac_cv_type_long_long = yes; then
17639 cat >>confdefs.h <<_ACEOF
17640 #define HAVE_LONG_LONG 1
17641 _ACEOF
17645 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17646 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17647 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 else
17650 cat >conftest.$ac_ext <<_ACEOF
17651 /* confdefs.h. */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 $ac_includes_default
17658 main ()
17660 if ((fsblkcnt_t *) 0)
17661 return 0;
17662 if (sizeof (fsblkcnt_t))
17663 return 0;
17665 return 0;
17667 _ACEOF
17668 rm -f conftest.$ac_objext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17670 (eval $ac_compile) 2>conftest.er1
17671 ac_status=$?
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17679 (eval $ac_try) 2>&5
17680 ac_status=$?
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; } &&
17683 { ac_try='test -s conftest.$ac_objext'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; }; then
17689 ac_cv_type_fsblkcnt_t=yes
17690 else
17691 echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17694 ac_cv_type_fsblkcnt_t=no
17696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17698 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17699 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17700 if test $ac_cv_type_fsblkcnt_t = yes; then
17702 cat >>confdefs.h <<_ACEOF
17703 #define HAVE_FSBLKCNT_T 1
17704 _ACEOF
17708 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17709 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17710 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17712 else
17713 cat >conftest.$ac_ext <<_ACEOF
17714 /* confdefs.h. */
17715 _ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h. */
17719 $ac_includes_default
17721 main ()
17723 if ((fsfilcnt_t *) 0)
17724 return 0;
17725 if (sizeof (fsfilcnt_t))
17726 return 0;
17728 return 0;
17730 _ACEOF
17731 rm -f conftest.$ac_objext
17732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17733 (eval $ac_compile) 2>conftest.er1
17734 ac_status=$?
17735 grep -v '^ *+' conftest.er1 >conftest.err
17736 rm -f conftest.er1
17737 cat conftest.err >&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
17740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try='test -s conftest.$ac_objext'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_type_fsfilcnt_t=yes
17753 else
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 ac_cv_type_fsfilcnt_t=no
17759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17761 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17762 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17763 if test $ac_cv_type_fsfilcnt_t = yes; then
17765 cat >>confdefs.h <<_ACEOF
17766 #define HAVE_FSFILCNT_T 1
17767 _ACEOF
17773 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17774 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17775 if test "${wine_cv_linux_input_h+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17777 else
17778 cat >conftest.$ac_ext <<_ACEOF
17779 /* confdefs.h. */
17780 _ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17785 #include <linux/input.h>
17788 main ()
17791 int foo = EVIOCGBIT(EV_ABS,42);
17792 int bar = BTN_PINKIE;
17793 int fortytwo = 42;
17796 return 0;
17798 _ACEOF
17799 rm -f conftest.$ac_objext
17800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17801 (eval $ac_compile) 2>conftest.er1
17802 ac_status=$?
17803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
17808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest.$ac_objext'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17820 wine_cv_linux_input_h=yes
17821 else
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17825 wine_cv_linux_input_h=no
17827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17830 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17831 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17832 if test "$wine_cv_linux_input_h" = "yes"
17833 then
17835 cat >>confdefs.h <<\_ACEOF
17836 #define HAVE_CORRECT_LINUXINPUT_H 1
17837 _ACEOF
17842 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17843 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17844 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847 cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h. */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17854 #include <netdb.h>
17857 main ()
17860 char *name=NULL;
17861 struct hostent he;
17862 struct hostent *result;
17863 char *buf=NULL;
17864 int bufsize=0;
17865 int res,errnr;
17866 char *addr=NULL;
17867 int addrlen=0;
17868 int addrtype=0;
17869 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17870 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17873 return 0;
17875 _ACEOF
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17878 (eval $ac_link) 2>conftest.er1
17879 ac_status=$?
17880 grep -v '^ *+' conftest.er1 >conftest.err
17881 rm -f conftest.er1
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; } &&
17891 { ac_try='test -s conftest$ac_exeext'
17892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893 (eval $ac_try) 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
17897 wine_cv_linux_gethostbyname_r_6=yes
17898 else
17899 echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17902 wine_cv_linux_gethostbyname_r_6=no
17905 rm -f conftest.err conftest.$ac_objext \
17906 conftest$ac_exeext conftest.$ac_ext
17909 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17910 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17911 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17912 then
17914 cat >>confdefs.h <<\_ACEOF
17915 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17916 _ACEOF
17920 if test "$ac_cv_header_linux_joystick_h" = "yes"
17921 then
17922 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17923 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17924 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 else
17927 cat >conftest.$ac_ext <<_ACEOF
17928 /* confdefs.h. */
17929 _ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17934 #include <sys/ioctl.h>
17935 #include <linux/joystick.h>
17937 struct js_event blub;
17938 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17939 #error "no 2.2 header"
17940 #endif
17943 main ()
17945 /*empty*/
17947 return 0;
17949 _ACEOF
17950 rm -f conftest.$ac_objext
17951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17952 (eval $ac_compile) 2>conftest.er1
17953 ac_status=$?
17954 grep -v '^ *+' conftest.er1 >conftest.err
17955 rm -f conftest.er1
17956 cat conftest.err >&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } &&
17959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; } &&
17965 { ac_try='test -s conftest.$ac_objext'
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; }; then
17971 wine_cv_linux_joystick_22_api=yes
17972 else
17973 echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17976 wine_cv_linux_joystick_22_api=no
17978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17981 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17982 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17983 if test "$wine_cv_linux_joystick_22_api" = "yes"
17984 then
17986 cat >>confdefs.h <<\_ACEOF
17987 #define HAVE_LINUX_22_JOYSTICK_API 1
17988 _ACEOF
17994 if test "$ac_cv_header_sys_vfs_h" = "yes"
17995 then
17996 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17997 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17998 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17999 echo $ECHO_N "(cached) $ECHO_C" >&6
18000 else
18001 cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h. */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18008 #include <sys/types.h>
18009 #ifdef HAVE_SYS_PARAM_H
18010 # include <sys/param.h>
18011 #endif
18012 #include <sys/vfs.h>
18015 main ()
18018 struct statfs stfs;
18020 memset(&stfs,0,sizeof(stfs));
18023 return 0;
18025 _ACEOF
18026 rm -f conftest.$ac_objext
18027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18028 (eval $ac_compile) 2>conftest.er1
18029 ac_status=$?
18030 grep -v '^ *+' conftest.er1 >conftest.err
18031 rm -f conftest.er1
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; } &&
18041 { ac_try='test -s conftest.$ac_objext'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
18047 wine_cv_sys_vfs_has_statfs=yes
18048 else
18049 echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18052 wine_cv_sys_vfs_has_statfs=no
18055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18058 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18059 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18060 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18061 then
18063 cat >>confdefs.h <<\_ACEOF
18064 #define STATFS_DEFINED_BY_SYS_VFS 1
18065 _ACEOF
18070 if test "$ac_cv_header_sys_statfs_h" = "yes"
18071 then
18072 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18073 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18074 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 else
18077 cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h. */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18084 #include <sys/types.h>
18085 #ifdef HAVE_SYS_PARAM_H
18086 # include <sys/param.h>
18087 #endif
18088 #include <sys/statfs.h>
18091 main ()
18094 struct statfs stfs;
18097 return 0;
18099 _ACEOF
18100 rm -f conftest.$ac_objext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18102 (eval $ac_compile) 2>conftest.er1
18103 ac_status=$?
18104 grep -v '^ *+' conftest.er1 >conftest.err
18105 rm -f conftest.er1
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } &&
18109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 (eval $ac_try) 2>&5
18112 ac_status=$?
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; } &&
18115 { ac_try='test -s conftest.$ac_objext'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 wine_cv_sys_statfs_has_statfs=yes
18122 else
18123 echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18126 wine_cv_sys_statfs_has_statfs=no
18129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18132 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18133 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18134 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18135 then
18137 cat >>confdefs.h <<\_ACEOF
18138 #define STATFS_DEFINED_BY_SYS_STATFS 1
18139 _ACEOF
18144 if test "$ac_cv_header_sys_mount_h" = "yes"
18145 then
18146 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18147 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18148 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151 cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h. */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18158 #include <sys/types.h>
18159 #ifdef HAVE_SYS_PARAM_H
18160 # include <sys/param.h>
18161 #endif
18162 #include <sys/mount.h>
18165 main ()
18168 struct statfs stfs;
18171 return 0;
18173 _ACEOF
18174 rm -f conftest.$ac_objext
18175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18176 (eval $ac_compile) 2>conftest.er1
18177 ac_status=$?
18178 grep -v '^ *+' conftest.er1 >conftest.err
18179 rm -f conftest.er1
18180 cat conftest.err >&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
18183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest.$ac_objext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 wine_cv_sys_mount_has_statfs=yes
18196 else
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18200 wine_cv_sys_mount_has_statfs=no
18203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18206 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18207 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18208 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18209 then
18211 cat >>confdefs.h <<\_ACEOF
18212 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18213 _ACEOF
18219 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18220 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18221 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18223 else
18224 cat >conftest.$ac_ext <<_ACEOF
18225 /* confdefs.h. */
18226 _ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h. */
18230 #include <sys/types.h>
18231 #ifdef HAVE_SYS_PARAM_H
18232 # include <sys/param.h>
18233 #endif
18234 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18235 # include <sys/mount.h>
18236 #else
18237 # ifdef STATFS_DEFINED_BY_SYS_VFS
18238 # include <sys/vfs.h>
18239 # else
18240 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18241 # include <sys/statfs.h>
18242 # endif
18243 # endif
18244 #endif
18247 main ()
18249 static struct statfs ac_aggr;
18250 if (ac_aggr.f_bfree)
18251 return 0;
18253 return 0;
18255 _ACEOF
18256 rm -f conftest.$ac_objext
18257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18258 (eval $ac_compile) 2>conftest.er1
18259 ac_status=$?
18260 grep -v '^ *+' conftest.er1 >conftest.err
18261 rm -f conftest.er1
18262 cat conftest.err >&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); } &&
18265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; } &&
18271 { ac_try='test -s conftest.$ac_objext'
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 ac_cv_member_struct_statfs_f_bfree=yes
18278 else
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h. */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 #include <sys/types.h>
18289 #ifdef HAVE_SYS_PARAM_H
18290 # include <sys/param.h>
18291 #endif
18292 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18293 # include <sys/mount.h>
18294 #else
18295 # ifdef STATFS_DEFINED_BY_SYS_VFS
18296 # include <sys/vfs.h>
18297 # else
18298 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18299 # include <sys/statfs.h>
18300 # endif
18301 # endif
18302 #endif
18305 main ()
18307 static struct statfs ac_aggr;
18308 if (sizeof ac_aggr.f_bfree)
18309 return 0;
18311 return 0;
18313 _ACEOF
18314 rm -f conftest.$ac_objext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18316 (eval $ac_compile) 2>conftest.er1
18317 ac_status=$?
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest.$ac_objext'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 ac_cv_member_struct_statfs_f_bfree=yes
18336 else
18337 echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18340 ac_cv_member_struct_statfs_f_bfree=no
18342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18346 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18347 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18348 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18350 cat >>confdefs.h <<_ACEOF
18351 #define HAVE_STRUCT_STATFS_F_BFREE 1
18352 _ACEOF
18356 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18357 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18358 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361 cat >conftest.$ac_ext <<_ACEOF
18362 /* confdefs.h. */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18367 #include <sys/types.h>
18368 #ifdef HAVE_SYS_PARAM_H
18369 # include <sys/param.h>
18370 #endif
18371 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18372 # include <sys/mount.h>
18373 #else
18374 # ifdef STATFS_DEFINED_BY_SYS_VFS
18375 # include <sys/vfs.h>
18376 # else
18377 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18378 # include <sys/statfs.h>
18379 # endif
18380 # endif
18381 #endif
18384 main ()
18386 static struct statfs ac_aggr;
18387 if (ac_aggr.f_bavail)
18388 return 0;
18390 return 0;
18392 _ACEOF
18393 rm -f conftest.$ac_objext
18394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18395 (eval $ac_compile) 2>conftest.er1
18396 ac_status=$?
18397 grep -v '^ *+' conftest.er1 >conftest.err
18398 rm -f conftest.er1
18399 cat conftest.err >&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } &&
18402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest.$ac_objext'
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18414 ac_cv_member_struct_statfs_f_bavail=yes
18415 else
18416 echo "$as_me: failed program was:" >&5
18417 sed 's/^/| /' conftest.$ac_ext >&5
18419 cat >conftest.$ac_ext <<_ACEOF
18420 /* confdefs.h. */
18421 _ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h. */
18425 #include <sys/types.h>
18426 #ifdef HAVE_SYS_PARAM_H
18427 # include <sys/param.h>
18428 #endif
18429 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18430 # include <sys/mount.h>
18431 #else
18432 # ifdef STATFS_DEFINED_BY_SYS_VFS
18433 # include <sys/vfs.h>
18434 # else
18435 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18436 # include <sys/statfs.h>
18437 # endif
18438 # endif
18439 #endif
18442 main ()
18444 static struct statfs ac_aggr;
18445 if (sizeof ac_aggr.f_bavail)
18446 return 0;
18448 return 0;
18450 _ACEOF
18451 rm -f conftest.$ac_objext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453 (eval $ac_compile) 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest.$ac_objext'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 ac_cv_member_struct_statfs_f_bavail=yes
18473 else
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18477 ac_cv_member_struct_statfs_f_bavail=no
18479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18483 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18484 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18485 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18487 cat >>confdefs.h <<_ACEOF
18488 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18489 _ACEOF
18493 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18494 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18495 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498 cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h. */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18504 #include <sys/types.h>
18505 #ifdef HAVE_SYS_PARAM_H
18506 # include <sys/param.h>
18507 #endif
18508 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18509 # include <sys/mount.h>
18510 #else
18511 # ifdef STATFS_DEFINED_BY_SYS_VFS
18512 # include <sys/vfs.h>
18513 # else
18514 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18515 # include <sys/statfs.h>
18516 # endif
18517 # endif
18518 #endif
18521 main ()
18523 static struct statfs ac_aggr;
18524 if (ac_aggr.f_frsize)
18525 return 0;
18527 return 0;
18529 _ACEOF
18530 rm -f conftest.$ac_objext
18531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18532 (eval $ac_compile) 2>conftest.er1
18533 ac_status=$?
18534 grep -v '^ *+' conftest.er1 >conftest.err
18535 rm -f conftest.er1
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; } &&
18545 { ac_try='test -s conftest.$ac_objext'
18546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547 (eval $ac_try) 2>&5
18548 ac_status=$?
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; }; then
18551 ac_cv_member_struct_statfs_f_frsize=yes
18552 else
18553 echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18556 cat >conftest.$ac_ext <<_ACEOF
18557 /* confdefs.h. */
18558 _ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h. */
18562 #include <sys/types.h>
18563 #ifdef HAVE_SYS_PARAM_H
18564 # include <sys/param.h>
18565 #endif
18566 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18567 # include <sys/mount.h>
18568 #else
18569 # ifdef STATFS_DEFINED_BY_SYS_VFS
18570 # include <sys/vfs.h>
18571 # else
18572 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18573 # include <sys/statfs.h>
18574 # endif
18575 # endif
18576 #endif
18579 main ()
18581 static struct statfs ac_aggr;
18582 if (sizeof ac_aggr.f_frsize)
18583 return 0;
18585 return 0;
18587 _ACEOF
18588 rm -f conftest.$ac_objext
18589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18590 (eval $ac_compile) 2>conftest.er1
18591 ac_status=$?
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest.$ac_objext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 ac_cv_member_struct_statfs_f_frsize=yes
18610 else
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18614 ac_cv_member_struct_statfs_f_frsize=no
18616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18620 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18621 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18622 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18624 cat >>confdefs.h <<_ACEOF
18625 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18626 _ACEOF
18630 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18631 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18632 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 else
18635 cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h. */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18641 #include <sys/types.h>
18642 #ifdef HAVE_SYS_PARAM_H
18643 # include <sys/param.h>
18644 #endif
18645 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18646 # include <sys/mount.h>
18647 #else
18648 # ifdef STATFS_DEFINED_BY_SYS_VFS
18649 # include <sys/vfs.h>
18650 # else
18651 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18652 # include <sys/statfs.h>
18653 # endif
18654 # endif
18655 #endif
18658 main ()
18660 static struct statfs ac_aggr;
18661 if (ac_aggr.f_ffree)
18662 return 0;
18664 return 0;
18666 _ACEOF
18667 rm -f conftest.$ac_objext
18668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18669 (eval $ac_compile) 2>conftest.er1
18670 ac_status=$?
18671 grep -v '^ *+' conftest.er1 >conftest.err
18672 rm -f conftest.er1
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } &&
18676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18679 ac_status=$?
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; } &&
18682 { ac_try='test -s conftest.$ac_objext'
18683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
18685 ac_status=$?
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; }; then
18688 ac_cv_member_struct_statfs_f_ffree=yes
18689 else
18690 echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18693 cat >conftest.$ac_ext <<_ACEOF
18694 /* confdefs.h. */
18695 _ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h. */
18699 #include <sys/types.h>
18700 #ifdef HAVE_SYS_PARAM_H
18701 # include <sys/param.h>
18702 #endif
18703 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18704 # include <sys/mount.h>
18705 #else
18706 # ifdef STATFS_DEFINED_BY_SYS_VFS
18707 # include <sys/vfs.h>
18708 # else
18709 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18710 # include <sys/statfs.h>
18711 # endif
18712 # endif
18713 #endif
18716 main ()
18718 static struct statfs ac_aggr;
18719 if (sizeof ac_aggr.f_ffree)
18720 return 0;
18722 return 0;
18724 _ACEOF
18725 rm -f conftest.$ac_objext
18726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18727 (eval $ac_compile) 2>conftest.er1
18728 ac_status=$?
18729 grep -v '^ *+' conftest.er1 >conftest.err
18730 rm -f conftest.er1
18731 cat conftest.err >&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
18734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; } &&
18740 { ac_try='test -s conftest.$ac_objext'
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
18746 ac_cv_member_struct_statfs_f_ffree=yes
18747 else
18748 echo "$as_me: failed program was:" >&5
18749 sed 's/^/| /' conftest.$ac_ext >&5
18751 ac_cv_member_struct_statfs_f_ffree=no
18753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18757 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18758 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18759 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18761 cat >>confdefs.h <<_ACEOF
18762 #define HAVE_STRUCT_STATFS_F_FFREE 1
18763 _ACEOF
18767 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18768 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18769 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18771 else
18772 cat >conftest.$ac_ext <<_ACEOF
18773 /* confdefs.h. */
18774 _ACEOF
18775 cat confdefs.h >>conftest.$ac_ext
18776 cat >>conftest.$ac_ext <<_ACEOF
18777 /* end confdefs.h. */
18778 #include <sys/types.h>
18779 #ifdef HAVE_SYS_PARAM_H
18780 # include <sys/param.h>
18781 #endif
18782 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18783 # include <sys/mount.h>
18784 #else
18785 # ifdef STATFS_DEFINED_BY_SYS_VFS
18786 # include <sys/vfs.h>
18787 # else
18788 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18789 # include <sys/statfs.h>
18790 # endif
18791 # endif
18792 #endif
18795 main ()
18797 static struct statfs ac_aggr;
18798 if (ac_aggr.f_favail)
18799 return 0;
18801 return 0;
18803 _ACEOF
18804 rm -f conftest.$ac_objext
18805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18806 (eval $ac_compile) 2>conftest.er1
18807 ac_status=$?
18808 grep -v '^ *+' conftest.er1 >conftest.err
18809 rm -f conftest.er1
18810 cat conftest.err >&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } &&
18813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18815 (eval $ac_try) 2>&5
18816 ac_status=$?
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; } &&
18819 { ac_try='test -s conftest.$ac_objext'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18822 ac_status=$?
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; }; then
18825 ac_cv_member_struct_statfs_f_favail=yes
18826 else
18827 echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18830 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h. */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18836 #include <sys/types.h>
18837 #ifdef HAVE_SYS_PARAM_H
18838 # include <sys/param.h>
18839 #endif
18840 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18841 # include <sys/mount.h>
18842 #else
18843 # ifdef STATFS_DEFINED_BY_SYS_VFS
18844 # include <sys/vfs.h>
18845 # else
18846 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18847 # include <sys/statfs.h>
18848 # endif
18849 # endif
18850 #endif
18853 main ()
18855 static struct statfs ac_aggr;
18856 if (sizeof ac_aggr.f_favail)
18857 return 0;
18859 return 0;
18861 _ACEOF
18862 rm -f conftest.$ac_objext
18863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18864 (eval $ac_compile) 2>conftest.er1
18865 ac_status=$?
18866 grep -v '^ *+' conftest.er1 >conftest.err
18867 rm -f conftest.er1
18868 cat conftest.err >&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } &&
18871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; } &&
18877 { ac_try='test -s conftest.$ac_objext'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; }; then
18883 ac_cv_member_struct_statfs_f_favail=yes
18884 else
18885 echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18888 ac_cv_member_struct_statfs_f_favail=no
18890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18894 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18895 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18896 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18898 cat >>confdefs.h <<_ACEOF
18899 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18900 _ACEOF
18904 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18905 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18906 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18908 else
18909 cat >conftest.$ac_ext <<_ACEOF
18910 /* confdefs.h. */
18911 _ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h. */
18915 #include <sys/types.h>
18916 #ifdef HAVE_SYS_PARAM_H
18917 # include <sys/param.h>
18918 #endif
18919 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18920 # include <sys/mount.h>
18921 #else
18922 # ifdef STATFS_DEFINED_BY_SYS_VFS
18923 # include <sys/vfs.h>
18924 # else
18925 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18926 # include <sys/statfs.h>
18927 # endif
18928 # endif
18929 #endif
18932 main ()
18934 static struct statfs ac_aggr;
18935 if (ac_aggr.f_namelen)
18936 return 0;
18938 return 0;
18940 _ACEOF
18941 rm -f conftest.$ac_objext
18942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18943 (eval $ac_compile) 2>conftest.er1
18944 ac_status=$?
18945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
18950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest.$ac_objext'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_cv_member_struct_statfs_f_namelen=yes
18963 else
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18967 cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h. */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h. */
18973 #include <sys/types.h>
18974 #ifdef HAVE_SYS_PARAM_H
18975 # include <sys/param.h>
18976 #endif
18977 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18978 # include <sys/mount.h>
18979 #else
18980 # ifdef STATFS_DEFINED_BY_SYS_VFS
18981 # include <sys/vfs.h>
18982 # else
18983 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18984 # include <sys/statfs.h>
18985 # endif
18986 # endif
18987 #endif
18990 main ()
18992 static struct statfs ac_aggr;
18993 if (sizeof ac_aggr.f_namelen)
18994 return 0;
18996 return 0;
18998 _ACEOF
18999 rm -f conftest.$ac_objext
19000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19001 (eval $ac_compile) 2>conftest.er1
19002 ac_status=$?
19003 grep -v '^ *+' conftest.er1 >conftest.err
19004 rm -f conftest.er1
19005 cat conftest.err >&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; } &&
19014 { ac_try='test -s conftest.$ac_objext'
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 ac_cv_member_struct_statfs_f_namelen=yes
19021 else
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19025 ac_cv_member_struct_statfs_f_namelen=no
19027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19031 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19032 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19033 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19035 cat >>confdefs.h <<_ACEOF
19036 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19037 _ACEOF
19043 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19044 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19045 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048 cat >conftest.$ac_ext <<_ACEOF
19049 /* confdefs.h. */
19050 _ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h. */
19054 #ifdef HAVE_SYS_STATVFS_H
19055 #include <sys/statvfs.h>
19056 #endif
19059 main ()
19061 static struct statvfs ac_aggr;
19062 if (ac_aggr.f_blocks)
19063 return 0;
19065 return 0;
19067 _ACEOF
19068 rm -f conftest.$ac_objext
19069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19070 (eval $ac_compile) 2>conftest.er1
19071 ac_status=$?
19072 grep -v '^ *+' conftest.er1 >conftest.err
19073 rm -f conftest.er1
19074 cat conftest.err >&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
19077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; } &&
19083 { ac_try='test -s conftest.$ac_objext'
19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; }; then
19089 ac_cv_member_struct_statvfs_f_blocks=yes
19090 else
19091 echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19094 cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h. */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19100 #ifdef HAVE_SYS_STATVFS_H
19101 #include <sys/statvfs.h>
19102 #endif
19105 main ()
19107 static struct statvfs ac_aggr;
19108 if (sizeof ac_aggr.f_blocks)
19109 return 0;
19111 return 0;
19113 _ACEOF
19114 rm -f conftest.$ac_objext
19115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19116 (eval $ac_compile) 2>conftest.er1
19117 ac_status=$?
19118 grep -v '^ *+' conftest.er1 >conftest.err
19119 rm -f conftest.er1
19120 cat conftest.err >&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } &&
19123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; } &&
19129 { ac_try='test -s conftest.$ac_objext'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19135 ac_cv_member_struct_statvfs_f_blocks=yes
19136 else
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 ac_cv_member_struct_statvfs_f_blocks=no
19142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19146 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19147 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19148 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19150 cat >>confdefs.h <<_ACEOF
19151 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19152 _ACEOF
19158 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19159 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19160 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19161 echo $ECHO_N "(cached) $ECHO_C" >&6
19162 else
19163 cat >conftest.$ac_ext <<_ACEOF
19164 /* confdefs.h. */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19169 #include <sys/types.h>
19170 #ifdef HAVE_SYS_SOCKET_H
19171 # include <sys/socket.h>
19172 #endif
19173 #ifdef HAVE_SYS_UN_H
19174 # include <sys/un.h>
19175 #endif
19178 main ()
19180 static struct msghdr ac_aggr;
19181 if (ac_aggr.msg_accrights)
19182 return 0;
19184 return 0;
19186 _ACEOF
19187 rm -f conftest.$ac_objext
19188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19189 (eval $ac_compile) 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
19196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; } &&
19202 { ac_try='test -s conftest.$ac_objext'
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_cv_member_struct_msghdr_msg_accrights=yes
19209 else
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19213 cat >conftest.$ac_ext <<_ACEOF
19214 /* confdefs.h. */
19215 _ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19219 #include <sys/types.h>
19220 #ifdef HAVE_SYS_SOCKET_H
19221 # include <sys/socket.h>
19222 #endif
19223 #ifdef HAVE_SYS_UN_H
19224 # include <sys/un.h>
19225 #endif
19228 main ()
19230 static struct msghdr ac_aggr;
19231 if (sizeof ac_aggr.msg_accrights)
19232 return 0;
19234 return 0;
19236 _ACEOF
19237 rm -f conftest.$ac_objext
19238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19239 (eval $ac_compile) 2>conftest.er1
19240 ac_status=$?
19241 grep -v '^ *+' conftest.er1 >conftest.err
19242 rm -f conftest.er1
19243 cat conftest.err >&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } &&
19246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; } &&
19252 { ac_try='test -s conftest.$ac_objext'
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; }; then
19258 ac_cv_member_struct_msghdr_msg_accrights=yes
19259 else
19260 echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19263 ac_cv_member_struct_msghdr_msg_accrights=no
19265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19269 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19270 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19271 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19273 cat >>confdefs.h <<_ACEOF
19274 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19275 _ACEOF
19279 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19280 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19281 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 else
19284 cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h. */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 #include <sys/types.h>
19291 #ifdef HAVE_SYS_SOCKET_H
19292 # include <sys/socket.h>
19293 #endif
19294 #ifdef HAVE_SYS_UN_H
19295 # include <sys/un.h>
19296 #endif
19299 main ()
19301 static struct sockaddr ac_aggr;
19302 if (ac_aggr.sa_len)
19303 return 0;
19305 return 0;
19307 _ACEOF
19308 rm -f conftest.$ac_objext
19309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19310 (eval $ac_compile) 2>conftest.er1
19311 ac_status=$?
19312 grep -v '^ *+' conftest.er1 >conftest.err
19313 rm -f conftest.er1
19314 cat conftest.err >&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } &&
19317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19320 ac_status=$?
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; } &&
19323 { ac_try='test -s conftest.$ac_objext'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 ac_cv_member_struct_sockaddr_sa_len=yes
19330 else
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h. */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19340 #include <sys/types.h>
19341 #ifdef HAVE_SYS_SOCKET_H
19342 # include <sys/socket.h>
19343 #endif
19344 #ifdef HAVE_SYS_UN_H
19345 # include <sys/un.h>
19346 #endif
19349 main ()
19351 static struct sockaddr ac_aggr;
19352 if (sizeof ac_aggr.sa_len)
19353 return 0;
19355 return 0;
19357 _ACEOF
19358 rm -f conftest.$ac_objext
19359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19360 (eval $ac_compile) 2>conftest.er1
19361 ac_status=$?
19362 grep -v '^ *+' conftest.er1 >conftest.err
19363 rm -f conftest.er1
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; } &&
19373 { ac_try='test -s conftest.$ac_objext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_member_struct_sockaddr_sa_len=yes
19380 else
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_member_struct_sockaddr_sa_len=no
19386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19390 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19391 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19392 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19394 cat >>confdefs.h <<_ACEOF
19395 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19396 _ACEOF
19400 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19401 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19402 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405 cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h. */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19411 #include <sys/types.h>
19412 #ifdef HAVE_SYS_SOCKET_H
19413 # include <sys/socket.h>
19414 #endif
19415 #ifdef HAVE_SYS_UN_H
19416 # include <sys/un.h>
19417 #endif
19420 main ()
19422 static struct sockaddr_un ac_aggr;
19423 if (ac_aggr.sun_len)
19424 return 0;
19426 return 0;
19428 _ACEOF
19429 rm -f conftest.$ac_objext
19430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19431 (eval $ac_compile) 2>conftest.er1
19432 ac_status=$?
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
19438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; } &&
19444 { ac_try='test -s conftest.$ac_objext'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
19450 ac_cv_member_struct_sockaddr_un_sun_len=yes
19451 else
19452 echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h. */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461 #include <sys/types.h>
19462 #ifdef HAVE_SYS_SOCKET_H
19463 # include <sys/socket.h>
19464 #endif
19465 #ifdef HAVE_SYS_UN_H
19466 # include <sys/un.h>
19467 #endif
19470 main ()
19472 static struct sockaddr_un ac_aggr;
19473 if (sizeof ac_aggr.sun_len)
19474 return 0;
19476 return 0;
19478 _ACEOF
19479 rm -f conftest.$ac_objext
19480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19481 (eval $ac_compile) 2>conftest.er1
19482 ac_status=$?
19483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } &&
19488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest.$ac_objext'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 ac_cv_member_struct_sockaddr_un_sun_len=yes
19501 else
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 ac_cv_member_struct_sockaddr_un_sun_len=no
19507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19511 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19512 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19513 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19515 cat >>confdefs.h <<_ACEOF
19516 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19517 _ACEOF
19523 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19524 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19525 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 else
19528 cat >conftest.$ac_ext <<_ACEOF
19529 /* confdefs.h. */
19530 _ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h. */
19534 #include <signal.h>
19537 main ()
19539 static siginfo_t ac_aggr;
19540 if (ac_aggr.si_fd)
19541 return 0;
19543 return 0;
19545 _ACEOF
19546 rm -f conftest.$ac_objext
19547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548 (eval $ac_compile) 2>conftest.er1
19549 ac_status=$?
19550 grep -v '^ *+' conftest.er1 >conftest.err
19551 rm -f conftest.er1
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } &&
19555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; } &&
19561 { ac_try='test -s conftest.$ac_objext'
19562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563 (eval $ac_try) 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; }; then
19567 ac_cv_member_siginfo_t_si_fd=yes
19568 else
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19572 cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h. */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19578 #include <signal.h>
19581 main ()
19583 static siginfo_t ac_aggr;
19584 if (sizeof ac_aggr.si_fd)
19585 return 0;
19587 return 0;
19589 _ACEOF
19590 rm -f conftest.$ac_objext
19591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19592 (eval $ac_compile) 2>conftest.er1
19593 ac_status=$?
19594 grep -v '^ *+' conftest.er1 >conftest.err
19595 rm -f conftest.er1
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601 (eval $ac_try) 2>&5
19602 ac_status=$?
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); }; } &&
19605 { ac_try='test -s conftest.$ac_objext'
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; }; then
19611 ac_cv_member_siginfo_t_si_fd=yes
19612 else
19613 echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19616 ac_cv_member_siginfo_t_si_fd=no
19618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19622 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19623 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19624 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19626 cat >>confdefs.h <<_ACEOF
19627 #define HAVE_SIGINFO_T_SI_FD 1
19628 _ACEOF
19634 echo "$as_me:$LINENO: checking for struct option.name" >&5
19635 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19636 if test "${ac_cv_member_struct_option_name+set}" = set; then
19637 echo $ECHO_N "(cached) $ECHO_C" >&6
19638 else
19639 cat >conftest.$ac_ext <<_ACEOF
19640 /* confdefs.h. */
19641 _ACEOF
19642 cat confdefs.h >>conftest.$ac_ext
19643 cat >>conftest.$ac_ext <<_ACEOF
19644 /* end confdefs.h. */
19645 #ifdef HAVE_GETOPT_H
19646 #include <getopt.h>
19647 #endif
19650 main ()
19652 static struct option ac_aggr;
19653 if (ac_aggr.name)
19654 return 0;
19656 return 0;
19658 _ACEOF
19659 rm -f conftest.$ac_objext
19660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19661 (eval $ac_compile) 2>conftest.er1
19662 ac_status=$?
19663 grep -v '^ *+' conftest.er1 >conftest.err
19664 rm -f conftest.er1
19665 cat conftest.err >&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } &&
19668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest.$ac_objext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 ac_cv_member_struct_option_name=yes
19681 else
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19685 cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h. */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 #ifdef HAVE_GETOPT_H
19692 #include <getopt.h>
19693 #endif
19696 main ()
19698 static struct option ac_aggr;
19699 if (sizeof ac_aggr.name)
19700 return 0;
19702 return 0;
19704 _ACEOF
19705 rm -f conftest.$ac_objext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19707 (eval $ac_compile) 2>conftest.er1
19708 ac_status=$?
19709 grep -v '^ *+' conftest.er1 >conftest.err
19710 rm -f conftest.er1
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 ac_cv_member_struct_option_name=yes
19727 else
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 ac_cv_member_struct_option_name=no
19733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19737 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19738 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19739 if test $ac_cv_member_struct_option_name = yes; then
19741 cat >>confdefs.h <<_ACEOF
19742 #define HAVE_STRUCT_OPTION_NAME 1
19743 _ACEOF
19749 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19750 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19751 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 else
19754 cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h. */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19760 $ac_includes_default
19762 main ()
19764 static struct stat ac_aggr;
19765 if (ac_aggr.st_blocks)
19766 return 0;
19768 return 0;
19770 _ACEOF
19771 rm -f conftest.$ac_objext
19772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19773 (eval $ac_compile) 2>conftest.er1
19774 ac_status=$?
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 ac_cv_member_struct_stat_st_blocks=yes
19793 else
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19797 cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h. */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 $ac_includes_default
19805 main ()
19807 static struct stat ac_aggr;
19808 if (sizeof ac_aggr.st_blocks)
19809 return 0;
19811 return 0;
19813 _ACEOF
19814 rm -f conftest.$ac_objext
19815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816 (eval $ac_compile) 2>conftest.er1
19817 ac_status=$?
19818 grep -v '^ *+' conftest.er1 >conftest.err
19819 rm -f conftest.er1
19820 cat conftest.err >&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } &&
19823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; } &&
19829 { ac_try='test -s conftest.$ac_objext'
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19832 ac_status=$?
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; }; then
19835 ac_cv_member_struct_stat_st_blocks=yes
19836 else
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19840 ac_cv_member_struct_stat_st_blocks=no
19842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19846 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19847 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19848 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19850 cat >>confdefs.h <<_ACEOF
19851 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19852 _ACEOF
19859 case $host_cpu in
19860 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19861 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19862 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 else
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h. */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 #ifndef __i386__
19873 #endif
19874 _ACEOF
19875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19876 $EGREP "yes" >/dev/null 2>&1; then
19877 ac_cv_cpp_def___i386__=yes
19878 else
19879 ac_cv_cpp_def___i386__=no
19881 rm -f conftest*
19884 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19885 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19886 if test $ac_cv_cpp_def___i386__ = yes; then
19887 CFLAGS="$CFLAGS -D__i386__"
19888 LINTFLAGS="$LINTFLAGS -D__i386__"
19891 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19892 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19893 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19895 else
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h. */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 #ifndef __ALPHA__
19904 #endif
19905 _ACEOF
19906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19907 $EGREP "yes" >/dev/null 2>&1; then
19908 ac_cv_cpp_def___ALPHA__=yes
19909 else
19910 ac_cv_cpp_def___ALPHA__=no
19912 rm -f conftest*
19915 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19916 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19917 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19918 CFLAGS="$CFLAGS -D__ALPHA__"
19919 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19922 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19923 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19924 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 else
19927 cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h. */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19933 #ifndef __sparc__
19935 #endif
19936 _ACEOF
19937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19938 $EGREP "yes" >/dev/null 2>&1; then
19939 ac_cv_cpp_def___sparc__=yes
19940 else
19941 ac_cv_cpp_def___sparc__=no
19943 rm -f conftest*
19946 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19947 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19948 if test $ac_cv_cpp_def___sparc__ = yes; then
19949 CFLAGS="$CFLAGS -D__sparc__"
19950 LINTFLAGS="$LINTFLAGS -D__sparc__"
19953 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19954 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19955 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19956 echo $ECHO_N "(cached) $ECHO_C" >&6
19957 else
19958 cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h. */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 #ifndef __powerpc__
19966 #endif
19967 _ACEOF
19968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19969 $EGREP "yes" >/dev/null 2>&1; then
19970 ac_cv_cpp_def___powerpc__=yes
19971 else
19972 ac_cv_cpp_def___powerpc__=no
19974 rm -f conftest*
19977 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19978 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19979 if test $ac_cv_cpp_def___powerpc__ = yes; then
19980 CFLAGS="$CFLAGS -D__powerpc__"
19981 LINTFLAGS="$LINTFLAGS -D__powerpc__"
19984 esac
19986 case $host_vendor in
19987 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19988 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19989 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
19991 else
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 #ifndef __sun__
20000 #endif
20001 _ACEOF
20002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20003 $EGREP "yes" >/dev/null 2>&1; then
20004 ac_cv_cpp_def___sun__=yes
20005 else
20006 ac_cv_cpp_def___sun__=no
20008 rm -f conftest*
20011 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20012 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20013 if test $ac_cv_cpp_def___sun__ = yes; then
20014 CFLAGS="$CFLAGS -D__sun__"
20015 LINTFLAGS="$LINTFLAGS -D__sun__"
20018 esac
20024 ac_config_commands="$ac_config_commands controls"
20026 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
20028 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
20030 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
20032 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
20034 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
20036 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
20038 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
20040 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
20042 ac_config_commands="$ac_config_commands dlls/kernel/messages"
20044 ac_config_commands="$ac_config_commands dlls/user/dde"
20046 ac_config_commands="$ac_config_commands dlls/user/resources"
20048 ac_config_commands="$ac_config_commands dlls/wineps/data"
20050 ac_config_commands="$ac_config_commands files"
20052 ac_config_commands="$ac_config_commands include/wine"
20054 ac_config_commands="$ac_config_commands misc"
20056 ac_config_commands="$ac_config_commands objects"
20058 ac_config_commands="$ac_config_commands programs/regedit/tests"
20060 ac_config_commands="$ac_config_commands windows"
20063 MAKE_RULES=Make.rules
20066 MAKE_DLL_RULES=dlls/Makedll.rules
20069 MAKE_TEST_RULES=dlls/Maketest.rules
20072 MAKE_LIB_RULES=libs/Makelib.rules
20075 MAKE_PROG_RULES=programs/Makeprog.rules
20078 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/amstream/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/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/d3dx8/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/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/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/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/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/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/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/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/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/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/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/version/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 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/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/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"
20081 cat >confcache <<\_ACEOF
20082 # This file is a shell script that caches the results of configure
20083 # tests run on this system so they can be shared between configure
20084 # scripts and configure runs, see configure's option --config-cache.
20085 # It is not useful on other systems. If it contains results you don't
20086 # want to keep, you may remove or edit it.
20088 # config.status only pays attention to the cache file if you give it
20089 # the --recheck option to rerun configure.
20091 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20092 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20093 # following values.
20095 _ACEOF
20097 # The following way of writing the cache mishandles newlines in values,
20098 # but we know of no workaround that is simple, portable, and efficient.
20099 # So, don't put newlines in cache variables' values.
20100 # Ultrix sh set writes to stderr and can't be redirected directly,
20101 # and sets the high bit in the cache file unless we assign to the vars.
20103 (set) 2>&1 |
20104 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20105 *ac_space=\ *)
20106 # `set' does not quote correctly, so add quotes (double-quote
20107 # substitution turns \\\\ into \\, and sed turns \\ into \).
20108 sed -n \
20109 "s/'/'\\\\''/g;
20110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20113 # `set' quotes correctly as required by POSIX, so do not add quotes.
20114 sed -n \
20115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20117 esac;
20119 sed '
20120 t clear
20121 : clear
20122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20123 t end
20124 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20125 : end' >>confcache
20126 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20127 if test -w $cache_file; then
20128 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20129 cat confcache >$cache_file
20130 else
20131 echo "not updating unwritable cache $cache_file"
20134 rm -f confcache
20136 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20137 # Let make expand exec_prefix.
20138 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20140 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20141 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20142 # trailing colons and then remove the whole line if VPATH becomes empty
20143 # (actually we leave an empty line to preserve line numbers).
20144 if test "x$srcdir" = x.; then
20145 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20146 s/:*\$(srcdir):*/:/;
20147 s/:*\${srcdir}:*/:/;
20148 s/:*@srcdir@:*/:/;
20149 s/^\([^=]*=[ ]*\):*/\1/;
20150 s/:*$//;
20151 s/^[^=]*=[ ]*$//;
20155 DEFS=-DHAVE_CONFIG_H
20157 ac_libobjs=
20158 ac_ltlibobjs=
20159 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20160 # 1. Remove the extension, and $U if already installed.
20161 ac_i=`echo "$ac_i" |
20162 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20163 # 2. Add them.
20164 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20165 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20166 done
20167 LIBOBJS=$ac_libobjs
20169 LTLIBOBJS=$ac_ltlibobjs
20173 : ${CONFIG_STATUS=./config.status}
20174 ac_clean_files_save=$ac_clean_files
20175 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20176 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20177 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20178 cat >$CONFIG_STATUS <<_ACEOF
20179 #! $SHELL
20180 # Generated by $as_me.
20181 # Run this file to recreate the current configuration.
20182 # Compiler output produced by configure, useful for debugging
20183 # configure, is in config.log if it exists.
20185 debug=false
20186 ac_cs_recheck=false
20187 ac_cs_silent=false
20188 SHELL=\${CONFIG_SHELL-$SHELL}
20189 _ACEOF
20191 cat >>$CONFIG_STATUS <<\_ACEOF
20192 ## --------------------- ##
20193 ## M4sh Initialization. ##
20194 ## --------------------- ##
20196 # Be Bourne compatible
20197 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20198 emulate sh
20199 NULLCMD=:
20200 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20201 # is contrary to our usage. Disable this feature.
20202 alias -g '${1+"$@"}'='"$@"'
20203 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20204 set -o posix
20206 DUALCASE=1; export DUALCASE # for MKS sh
20208 # Support unset when possible.
20209 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20210 as_unset=unset
20211 else
20212 as_unset=false
20216 # Work around bugs in pre-3.0 UWIN ksh.
20217 $as_unset ENV MAIL MAILPATH
20218 PS1='$ '
20219 PS2='> '
20220 PS4='+ '
20222 # NLS nuisances.
20223 for as_var in \
20224 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20225 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20226 LC_TELEPHONE LC_TIME
20228 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20229 eval $as_var=C; export $as_var
20230 else
20231 $as_unset $as_var
20233 done
20235 # Required to use basename.
20236 if expr a : '\(a\)' >/dev/null 2>&1; then
20237 as_expr=expr
20238 else
20239 as_expr=false
20242 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20243 as_basename=basename
20244 else
20245 as_basename=false
20249 # Name of the executable.
20250 as_me=`$as_basename "$0" ||
20251 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20252 X"$0" : 'X\(//\)$' \| \
20253 X"$0" : 'X\(/\)$' \| \
20254 . : '\(.\)' 2>/dev/null ||
20255 echo X/"$0" |
20256 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20257 /^X\/\(\/\/\)$/{ s//\1/; q; }
20258 /^X\/\(\/\).*/{ s//\1/; q; }
20259 s/.*/./; q'`
20262 # PATH needs CR, and LINENO needs CR and PATH.
20263 # Avoid depending upon Character Ranges.
20264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20267 as_cr_digits='0123456789'
20268 as_cr_alnum=$as_cr_Letters$as_cr_digits
20270 # The user is always right.
20271 if test "${PATH_SEPARATOR+set}" != set; then
20272 echo "#! /bin/sh" >conf$$.sh
20273 echo "exit 0" >>conf$$.sh
20274 chmod +x conf$$.sh
20275 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20276 PATH_SEPARATOR=';'
20277 else
20278 PATH_SEPARATOR=:
20280 rm -f conf$$.sh
20284 as_lineno_1=$LINENO
20285 as_lineno_2=$LINENO
20286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20287 test "x$as_lineno_1" != "x$as_lineno_2" &&
20288 test "x$as_lineno_3" = "x$as_lineno_2" || {
20289 # Find who we are. Look in the path if we contain no path at all
20290 # relative or not.
20291 case $0 in
20292 *[\\/]* ) as_myself=$0 ;;
20293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20294 for as_dir in $PATH
20296 IFS=$as_save_IFS
20297 test -z "$as_dir" && as_dir=.
20298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20299 done
20302 esac
20303 # We did not find ourselves, most probably we were run as `sh COMMAND'
20304 # in which case we are not to be found in the path.
20305 if test "x$as_myself" = x; then
20306 as_myself=$0
20308 if test ! -f "$as_myself"; then
20309 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20310 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20311 { (exit 1); exit 1; }; }
20313 case $CONFIG_SHELL in
20315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20316 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20318 IFS=$as_save_IFS
20319 test -z "$as_dir" && as_dir=.
20320 for as_base in sh bash ksh sh5; do
20321 case $as_dir in
20323 if ("$as_dir/$as_base" -c '
20324 as_lineno_1=$LINENO
20325 as_lineno_2=$LINENO
20326 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20327 test "x$as_lineno_1" != "x$as_lineno_2" &&
20328 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20329 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20330 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20331 CONFIG_SHELL=$as_dir/$as_base
20332 export CONFIG_SHELL
20333 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20334 fi;;
20335 esac
20336 done
20337 done
20339 esac
20341 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20342 # uniformly replaced by the line number. The first 'sed' inserts a
20343 # line-number line before each line; the second 'sed' does the real
20344 # work. The second script uses 'N' to pair each line-number line
20345 # with the numbered line, and appends trailing '-' during
20346 # substitution so that $LINENO is not a special case at line end.
20347 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20348 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20349 sed '=' <$as_myself |
20350 sed '
20352 s,$,-,
20353 : loop
20354 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20355 t loop
20356 s,-$,,
20357 s,^['$as_cr_digits']*\n,,
20358 ' >$as_me.lineno &&
20359 chmod +x $as_me.lineno ||
20360 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20361 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20362 { (exit 1); exit 1; }; }
20364 # Don't try to exec as it changes $[0], causing all sort of problems
20365 # (the dirname of $[0] is not the place where we might find the
20366 # original and so on. Autoconf is especially sensible to this).
20367 . ./$as_me.lineno
20368 # Exit status is that of the last command.
20369 exit
20373 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20374 *c*,-n*) ECHO_N= ECHO_C='
20375 ' ECHO_T=' ' ;;
20376 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20377 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20378 esac
20380 if expr a : '\(a\)' >/dev/null 2>&1; then
20381 as_expr=expr
20382 else
20383 as_expr=false
20386 rm -f conf$$ conf$$.exe conf$$.file
20387 echo >conf$$.file
20388 if ln -s conf$$.file conf$$ 2>/dev/null; then
20389 # We could just check for DJGPP; but this test a) works b) is more generic
20390 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20391 if test -f conf$$.exe; then
20392 # Don't use ln at all; we don't have any links
20393 as_ln_s='cp -p'
20394 else
20395 as_ln_s='ln -s'
20397 elif ln conf$$.file conf$$ 2>/dev/null; then
20398 as_ln_s=ln
20399 else
20400 as_ln_s='cp -p'
20402 rm -f conf$$ conf$$.exe conf$$.file
20404 if mkdir -p . 2>/dev/null; then
20405 as_mkdir_p=:
20406 else
20407 test -d ./-p && rmdir ./-p
20408 as_mkdir_p=false
20411 as_executable_p="test -f"
20413 # Sed expression to map a string onto a valid CPP name.
20414 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20416 # Sed expression to map a string onto a valid variable name.
20417 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20420 # IFS
20421 # We need space, tab and new line, in precisely that order.
20422 as_nl='
20424 IFS=" $as_nl"
20426 # CDPATH.
20427 $as_unset CDPATH
20429 exec 6>&1
20431 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20432 # report actual input values of CONFIG_FILES etc. instead of their
20433 # values after options handling. Logging --version etc. is OK.
20434 exec 5>>config.log
20436 echo
20437 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20438 ## Running $as_me. ##
20439 _ASBOX
20440 } >&5
20441 cat >&5 <<_CSEOF
20443 This file was extended by Wine $as_me 20040213, which was
20444 generated by GNU Autoconf 2.59. Invocation command line was
20446 CONFIG_FILES = $CONFIG_FILES
20447 CONFIG_HEADERS = $CONFIG_HEADERS
20448 CONFIG_LINKS = $CONFIG_LINKS
20449 CONFIG_COMMANDS = $CONFIG_COMMANDS
20450 $ $0 $@
20452 _CSEOF
20453 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20454 echo >&5
20455 _ACEOF
20457 # Files that config.status was made for.
20458 if test -n "$ac_config_files"; then
20459 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20462 if test -n "$ac_config_headers"; then
20463 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20466 if test -n "$ac_config_links"; then
20467 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20470 if test -n "$ac_config_commands"; then
20471 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20474 cat >>$CONFIG_STATUS <<\_ACEOF
20476 ac_cs_usage="\
20477 \`$as_me' instantiates files from templates according to the
20478 current configuration.
20480 Usage: $0 [OPTIONS] [FILE]...
20482 -h, --help print this help, then exit
20483 -V, --version print version number, then exit
20484 -q, --quiet do not print progress messages
20485 -d, --debug don't remove temporary files
20486 --recheck update $as_me by reconfiguring in the same conditions
20487 --file=FILE[:TEMPLATE]
20488 instantiate the configuration file FILE
20489 --header=FILE[:TEMPLATE]
20490 instantiate the configuration header FILE
20492 Configuration files:
20493 $config_files
20495 Configuration headers:
20496 $config_headers
20498 Configuration commands:
20499 $config_commands
20501 Report bugs to <bug-autoconf@gnu.org>."
20502 _ACEOF
20504 cat >>$CONFIG_STATUS <<_ACEOF
20505 ac_cs_version="\\
20506 Wine config.status 20040213
20507 configured by $0, generated by GNU Autoconf 2.59,
20508 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20510 Copyright (C) 2003 Free Software Foundation, Inc.
20511 This config.status script is free software; the Free Software Foundation
20512 gives unlimited permission to copy, distribute and modify it."
20513 srcdir=$srcdir
20514 INSTALL="$INSTALL"
20515 _ACEOF
20517 cat >>$CONFIG_STATUS <<\_ACEOF
20518 # If no file are specified by the user, then we need to provide default
20519 # value. By we need to know if files were specified by the user.
20520 ac_need_defaults=:
20521 while test $# != 0
20523 case $1 in
20524 --*=*)
20525 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20526 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20527 ac_shift=:
20530 ac_option=$1
20531 ac_optarg=$2
20532 ac_shift=shift
20534 *) # This is not an option, so the user has probably given explicit
20535 # arguments.
20536 ac_option=$1
20537 ac_need_defaults=false;;
20538 esac
20540 case $ac_option in
20541 # Handling of the options.
20542 _ACEOF
20543 cat >>$CONFIG_STATUS <<\_ACEOF
20544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20545 ac_cs_recheck=: ;;
20546 --version | --vers* | -V )
20547 echo "$ac_cs_version"; exit 0 ;;
20548 --he | --h)
20549 # Conflict between --help and --header
20550 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20551 Try \`$0 --help' for more information." >&5
20552 echo "$as_me: error: ambiguous option: $1
20553 Try \`$0 --help' for more information." >&2;}
20554 { (exit 1); exit 1; }; };;
20555 --help | --hel | -h )
20556 echo "$ac_cs_usage"; exit 0 ;;
20557 --debug | --d* | -d )
20558 debug=: ;;
20559 --file | --fil | --fi | --f )
20560 $ac_shift
20561 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20562 ac_need_defaults=false;;
20563 --header | --heade | --head | --hea )
20564 $ac_shift
20565 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20566 ac_need_defaults=false;;
20567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20568 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20569 ac_cs_silent=: ;;
20571 # This is an error.
20572 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20573 Try \`$0 --help' for more information." >&5
20574 echo "$as_me: error: unrecognized option: $1
20575 Try \`$0 --help' for more information." >&2;}
20576 { (exit 1); exit 1; }; } ;;
20578 *) ac_config_targets="$ac_config_targets $1" ;;
20580 esac
20581 shift
20582 done
20584 ac_configure_extra_args=
20586 if $ac_cs_silent; then
20587 exec 6>/dev/null
20588 ac_configure_extra_args="$ac_configure_extra_args --silent"
20591 _ACEOF
20592 cat >>$CONFIG_STATUS <<_ACEOF
20593 if \$ac_cs_recheck; then
20594 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20595 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20598 _ACEOF
20604 cat >>$CONFIG_STATUS <<\_ACEOF
20605 for ac_config_target in $ac_config_targets
20607 case "$ac_config_target" in
20608 # Handling of arguments.
20609 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20610 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20611 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20612 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20613 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20614 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20615 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20616 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20617 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20618 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20619 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20620 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20621 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20622 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20623 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20624 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20625 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20626 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20627 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20628 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20629 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20630 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20631 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20632 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20633 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20634 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20635 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20636 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20637 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20638 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20639 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20640 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20641 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20642 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20643 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20644 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20645 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20646 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20647 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20648 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20649 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20650 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20651 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20652 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20653 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20654 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20655 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20656 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20657 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20658 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20659 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20660 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20661 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20662 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20663 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20664 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20665 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20666 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20667 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20668 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20669 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20670 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20671 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20672 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20673 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20674 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20675 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20676 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20677 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20678 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20679 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20680 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20681 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20682 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20683 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20684 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20685 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20686 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20687 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20688 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20689 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20690 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20691 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20692 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20693 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20694 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20695 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20696 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20697 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20698 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20699 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20700 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20701 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20702 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20703 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20704 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20705 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20706 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20707 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20708 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20709 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20710 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20711 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20712 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20713 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20714 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20715 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20716 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20717 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20718 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20719 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20720 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20721 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20722 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20723 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20724 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20725 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20726 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20727 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20728 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20729 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20730 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20731 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20732 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20733 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20734 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20735 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20736 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20737 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20738 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20739 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20740 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20741 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20742 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20743 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20744 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20745 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20746 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20747 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20748 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20749 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20750 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20751 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20752 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20753 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20754 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20755 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20756 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20757 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20758 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20759 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20760 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20761 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20762 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20763 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20764 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20765 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20766 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20767 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20768 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20769 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20770 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20771 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20772 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20773 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20774 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20775 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20776 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20777 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20778 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20779 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20780 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20781 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20782 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20783 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20784 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20785 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20786 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20787 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20788 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20789 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20790 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20791 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20792 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20793 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20794 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20795 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20796 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20797 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20798 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20799 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20800 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20801 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20802 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20803 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20804 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20805 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20806 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20807 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20808 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20809 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20810 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20811 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20812 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20813 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20814 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20815 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20816 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20817 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20818 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20819 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20820 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20821 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20822 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20823 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20824 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20825 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20826 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
20827 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20828 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20829 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20830 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20831 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20832 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20833 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20834 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20835 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20836 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20837 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20838 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20839 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
20840 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20841 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20842 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
20843 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20844 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20845 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20846 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20847 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20848 { (exit 1); exit 1; }; };;
20849 esac
20850 done
20852 # If the user did not use the arguments to specify the items to instantiate,
20853 # then the envvar interface is used. Set only those that are not.
20854 # We use the long form for the default assignment because of an extremely
20855 # bizarre bug on SunOS 4.1.3.
20856 if $ac_need_defaults; then
20857 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20858 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20859 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20862 # Have a temporary directory for convenience. Make it in the build tree
20863 # simply because there is no reason to put it here, and in addition,
20864 # creating and moving files from /tmp can sometimes cause problems.
20865 # Create a temporary directory, and hook for its removal unless debugging.
20866 $debug ||
20868 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20869 trap '{ (exit 1); exit 1; }' 1 2 13 15
20872 # Create a (secure) tmp directory for tmp files.
20875 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20876 test -n "$tmp" && test -d "$tmp"
20877 } ||
20879 tmp=./confstat$$-$RANDOM
20880 (umask 077 && mkdir $tmp)
20881 } ||
20883 echo "$me: cannot create a temporary directory in ." >&2
20884 { (exit 1); exit 1; }
20887 _ACEOF
20889 cat >>$CONFIG_STATUS <<_ACEOF
20892 # CONFIG_FILES section.
20895 # No need to generate the scripts if there are no CONFIG_FILES.
20896 # This happens for instance when ./config.status config.h
20897 if test -n "\$CONFIG_FILES"; then
20898 # Protect against being on the right side of a sed subst in config.status.
20899 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20900 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20901 s,@SHELL@,$SHELL,;t t
20902 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20903 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20904 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20905 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20906 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20907 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20908 s,@exec_prefix@,$exec_prefix,;t t
20909 s,@prefix@,$prefix,;t t
20910 s,@program_transform_name@,$program_transform_name,;t t
20911 s,@bindir@,$bindir,;t t
20912 s,@sbindir@,$sbindir,;t t
20913 s,@libexecdir@,$libexecdir,;t t
20914 s,@datadir@,$datadir,;t t
20915 s,@sysconfdir@,$sysconfdir,;t t
20916 s,@sharedstatedir@,$sharedstatedir,;t t
20917 s,@localstatedir@,$localstatedir,;t t
20918 s,@libdir@,$libdir,;t t
20919 s,@includedir@,$includedir,;t t
20920 s,@oldincludedir@,$oldincludedir,;t t
20921 s,@infodir@,$infodir,;t t
20922 s,@mandir@,$mandir,;t t
20923 s,@build_alias@,$build_alias,;t t
20924 s,@host_alias@,$host_alias,;t t
20925 s,@target_alias@,$target_alias,;t t
20926 s,@DEFS@,$DEFS,;t t
20927 s,@ECHO_C@,$ECHO_C,;t t
20928 s,@ECHO_N@,$ECHO_N,;t t
20929 s,@ECHO_T@,$ECHO_T,;t t
20930 s,@LIBS@,$LIBS,;t t
20931 s,@WIN16_FILES@,$WIN16_FILES,;t t
20932 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20933 s,@build@,$build,;t t
20934 s,@build_cpu@,$build_cpu,;t t
20935 s,@build_vendor@,$build_vendor,;t t
20936 s,@build_os@,$build_os,;t t
20937 s,@host@,$host,;t t
20938 s,@host_cpu@,$host_cpu,;t t
20939 s,@host_vendor@,$host_vendor,;t t
20940 s,@host_os@,$host_os,;t t
20941 s,@SET_MAKE@,$SET_MAKE,;t t
20942 s,@CC@,$CC,;t t
20943 s,@CFLAGS@,$CFLAGS,;t t
20944 s,@LDFLAGS@,$LDFLAGS,;t t
20945 s,@CPPFLAGS@,$CPPFLAGS,;t t
20946 s,@ac_ct_CC@,$ac_ct_CC,;t t
20947 s,@EXEEXT@,$EXEEXT,;t t
20948 s,@OBJEXT@,$OBJEXT,;t t
20949 s,@CXX@,$CXX,;t t
20950 s,@CXXFLAGS@,$CXXFLAGS,;t t
20951 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20952 s,@CPPBIN@,$CPPBIN,;t t
20953 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
20954 s,@TOOLSDIR@,$TOOLSDIR,;t t
20955 s,@CPP@,$CPP,;t t
20956 s,@X_CFLAGS@,$X_CFLAGS,;t t
20957 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20958 s,@X_LIBS@,$X_LIBS,;t t
20959 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20960 s,@YACC@,$YACC,;t t
20961 s,@LEX@,$LEX,;t t
20962 s,@LEXLIB@,$LEXLIB,;t t
20963 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20964 s,@XYACC@,$XYACC,;t t
20965 s,@XLEX@,$XLEX,;t t
20966 s,@AS@,$AS,;t t
20967 s,@ac_ct_AS@,$ac_ct_AS,;t t
20968 s,@LD@,$LD,;t t
20969 s,@ac_ct_LD@,$ac_ct_LD,;t t
20970 s,@AR@,$AR,;t t
20971 s,@ac_ct_AR@,$ac_ct_AR,;t t
20972 s,@RANLIB@,$RANLIB,;t t
20973 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20974 s,@STRIP@,$STRIP,;t t
20975 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20976 s,@WINDRES@,$WINDRES,;t t
20977 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20978 s,@LN_S@,$LN_S,;t t
20979 s,@LN@,$LN,;t t
20980 s,@LDCONFIG@,$LDCONFIG,;t t
20981 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20982 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20983 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20984 s,@LINT@,$LINT,;t t
20985 s,@LINTFLAGS@,$LINTFLAGS,;t t
20986 s,@DB2HTML@,$DB2HTML,;t t
20987 s,@DB2PDF@,$DB2PDF,;t t
20988 s,@DB2PS@,$DB2PS,;t t
20989 s,@DB2TXT@,$DB2TXT,;t t
20990 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20991 s,@JPEGLIB@,$JPEGLIB,;t t
20992 s,@EGREP@,$EGREP,;t t
20993 s,@GIFLIB@,$GIFLIB,;t t
20994 s,@XLIB@,$XLIB,;t t
20995 s,@XFILES@,$XFILES,;t t
20996 s,@OPENGLFILES@,$OPENGLFILES,;t t
20997 s,@GLU32FILES@,$GLU32FILES,;t t
20998 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20999 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21000 s,@GLUT32FILES@,$GLUT32FILES,;t t
21001 s,@NASLIBS@,$NASLIBS,;t t
21002 s,@CURSESLIBS@,$CURSESLIBS,;t t
21003 s,@sane_devel@,$sane_devel,;t t
21004 s,@SANELIBS@,$SANELIBS,;t t
21005 s,@SANEINCL@,$SANEINCL,;t t
21006 s,@ICULIBS@,$ICULIBS,;t t
21007 s,@ft_devel@,$ft_devel,;t t
21008 s,@ft_devel2@,$ft_devel2,;t t
21009 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
21010 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21011 s,@ARTSLIBS@,$ARTSLIBS,;t t
21012 s,@ARTSINCL@,$ARTSINCL,;t t
21013 s,@ALSALIBS@,$ALSALIBS,;t t
21014 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
21015 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
21016 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
21017 s,@DLLEXT@,$DLLEXT,;t t
21018 s,@DLLFLAGS@,$DLLFLAGS,;t t
21019 s,@DLLIBS@,$DLLIBS,;t t
21020 s,@LDSHARED@,$LDSHARED,;t t
21021 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
21022 s,@LIBEXT@,$LIBEXT,;t t
21023 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21024 s,@DLLTOOL@,$DLLTOOL,;t t
21025 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21026 s,@DLLWRAP@,$DLLWRAP,;t t
21027 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
21028 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
21029 s,@CROSSTEST@,$CROSSTEST,;t t
21030 s,@CROSSCC@,$CROSSCC,;t t
21031 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
21032 s,@LDPATH@,$LDPATH,;t t
21033 s,@CRTLIBS@,$CRTLIBS,;t t
21034 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21035 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
21036 s,@LDD@,$LDD,;t t
21037 s,@ALLOCA@,$ALLOCA,;t t
21038 s,@LIBOBJS@,$LIBOBJS,;t t
21039 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21040 /@MAKE_RULES@/r $MAKE_RULES
21041 s,@MAKE_RULES@,,;t t
21042 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21043 s,@MAKE_DLL_RULES@,,;t t
21044 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21045 s,@MAKE_TEST_RULES@,,;t t
21046 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21047 s,@MAKE_LIB_RULES@,,;t t
21048 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21049 s,@MAKE_PROG_RULES@,,;t t
21050 CEOF
21052 _ACEOF
21054 cat >>$CONFIG_STATUS <<\_ACEOF
21055 # Split the substitutions into bite-sized pieces for seds with
21056 # small command number limits, like on Digital OSF/1 and HP-UX.
21057 ac_max_sed_lines=48
21058 ac_sed_frag=1 # Number of current file.
21059 ac_beg=1 # First line for current file.
21060 ac_end=$ac_max_sed_lines # Line after last line for current file.
21061 ac_more_lines=:
21062 ac_sed_cmds=
21063 while $ac_more_lines; do
21064 if test $ac_beg -gt 1; then
21065 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21066 else
21067 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21069 if test ! -s $tmp/subs.frag; then
21070 ac_more_lines=false
21071 else
21072 # The purpose of the label and of the branching condition is to
21073 # speed up the sed processing (if there are no `@' at all, there
21074 # is no need to browse any of the substitutions).
21075 # These are the two extra sed commands mentioned above.
21076 (echo ':t
21077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21078 if test -z "$ac_sed_cmds"; then
21079 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21080 else
21081 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21083 ac_sed_frag=`expr $ac_sed_frag + 1`
21084 ac_beg=$ac_end
21085 ac_end=`expr $ac_end + $ac_max_sed_lines`
21087 done
21088 if test -z "$ac_sed_cmds"; then
21089 ac_sed_cmds=cat
21091 fi # test -n "$CONFIG_FILES"
21093 _ACEOF
21094 cat >>$CONFIG_STATUS <<\_ACEOF
21095 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21096 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21097 case $ac_file in
21098 - | *:- | *:-:* ) # input from stdin
21099 cat >$tmp/stdin
21100 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21101 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21102 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21103 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21104 * ) ac_file_in=$ac_file.in ;;
21105 esac
21107 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21108 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21110 X"$ac_file" : 'X\(//\)[^/]' \| \
21111 X"$ac_file" : 'X\(//\)$' \| \
21112 X"$ac_file" : 'X\(/\)' \| \
21113 . : '\(.\)' 2>/dev/null ||
21114 echo X"$ac_file" |
21115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21117 /^X\(\/\/\)$/{ s//\1/; q; }
21118 /^X\(\/\).*/{ s//\1/; q; }
21119 s/.*/./; q'`
21120 { if $as_mkdir_p; then
21121 mkdir -p "$ac_dir"
21122 else
21123 as_dir="$ac_dir"
21124 as_dirs=
21125 while test ! -d "$as_dir"; do
21126 as_dirs="$as_dir $as_dirs"
21127 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21129 X"$as_dir" : 'X\(//\)[^/]' \| \
21130 X"$as_dir" : 'X\(//\)$' \| \
21131 X"$as_dir" : 'X\(/\)' \| \
21132 . : '\(.\)' 2>/dev/null ||
21133 echo X"$as_dir" |
21134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21136 /^X\(\/\/\)$/{ s//\1/; q; }
21137 /^X\(\/\).*/{ s//\1/; q; }
21138 s/.*/./; q'`
21139 done
21140 test ! -n "$as_dirs" || mkdir $as_dirs
21141 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21143 { (exit 1); exit 1; }; }; }
21145 ac_builddir=.
21147 if test "$ac_dir" != .; then
21148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21149 # A "../" for each directory in $ac_dir_suffix.
21150 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21151 else
21152 ac_dir_suffix= ac_top_builddir=
21155 case $srcdir in
21156 .) # No --srcdir option. We are building in place.
21157 ac_srcdir=.
21158 if test -z "$ac_top_builddir"; then
21159 ac_top_srcdir=.
21160 else
21161 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21162 fi ;;
21163 [\\/]* | ?:[\\/]* ) # Absolute path.
21164 ac_srcdir=$srcdir$ac_dir_suffix;
21165 ac_top_srcdir=$srcdir ;;
21166 *) # Relative path.
21167 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21168 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21169 esac
21171 # Do not use `cd foo && pwd` to compute absolute paths, because
21172 # the directories may not exist.
21173 case `pwd` in
21174 .) ac_abs_builddir="$ac_dir";;
21176 case "$ac_dir" in
21177 .) ac_abs_builddir=`pwd`;;
21178 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21179 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21180 esac;;
21181 esac
21182 case $ac_abs_builddir in
21183 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21185 case ${ac_top_builddir}. in
21186 .) ac_abs_top_builddir=$ac_abs_builddir;;
21187 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21188 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21189 esac;;
21190 esac
21191 case $ac_abs_builddir in
21192 .) ac_abs_srcdir=$ac_srcdir;;
21194 case $ac_srcdir in
21195 .) ac_abs_srcdir=$ac_abs_builddir;;
21196 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21197 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21198 esac;;
21199 esac
21200 case $ac_abs_builddir in
21201 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21203 case $ac_top_srcdir in
21204 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21205 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21206 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21207 esac;;
21208 esac
21211 case $INSTALL in
21212 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21213 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21214 esac
21216 # Let's still pretend it is `configure' which instantiates (i.e., don't
21217 # use $as_me), people would be surprised to read:
21218 # /* config.h. Generated by config.status. */
21219 if test x"$ac_file" = x-; then
21220 configure_input=
21221 else
21222 configure_input="$ac_file. "
21224 configure_input=$configure_input"Generated from `echo $ac_file_in |
21225 sed 's,.*/,,'` by configure."
21227 # First look for the input files in the build tree, otherwise in the
21228 # src tree.
21229 ac_file_inputs=`IFS=:
21230 for f in $ac_file_in; do
21231 case $f in
21232 -) echo $tmp/stdin ;;
21233 [\\/$]*)
21234 # Absolute (can't be DOS-style, as IFS=:)
21235 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21236 echo "$as_me: error: cannot find input file: $f" >&2;}
21237 { (exit 1); exit 1; }; }
21238 echo "$f";;
21239 *) # Relative
21240 if test -f "$f"; then
21241 # Build tree
21242 echo "$f"
21243 elif test -f "$srcdir/$f"; then
21244 # Source tree
21245 echo "$srcdir/$f"
21246 else
21247 # /dev/null tree
21248 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21249 echo "$as_me: error: cannot find input file: $f" >&2;}
21250 { (exit 1); exit 1; }; }
21251 fi;;
21252 esac
21253 done` || { (exit 1); exit 1; }
21255 if test x"$ac_file" != x-; then
21256 { echo "$as_me:$LINENO: creating $ac_file" >&5
21257 echo "$as_me: creating $ac_file" >&6;}
21258 rm -f "$ac_file"
21260 _ACEOF
21261 cat >>$CONFIG_STATUS <<_ACEOF
21262 sed "$ac_vpsub
21263 $extrasub
21264 _ACEOF
21265 cat >>$CONFIG_STATUS <<\_ACEOF
21267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21268 s,@configure_input@,$configure_input,;t t
21269 s,@srcdir@,$ac_srcdir,;t t
21270 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21271 s,@top_srcdir@,$ac_top_srcdir,;t t
21272 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21273 s,@builddir@,$ac_builddir,;t t
21274 s,@abs_builddir@,$ac_abs_builddir,;t t
21275 s,@top_builddir@,$ac_top_builddir,;t t
21276 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21277 s,@INSTALL@,$ac_INSTALL,;t t
21278 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21279 rm -f $tmp/stdin
21280 if test x"$ac_file" != x-; then
21281 mv $tmp/out $ac_file
21282 else
21283 cat $tmp/out
21284 rm -f $tmp/out
21287 done
21288 _ACEOF
21289 cat >>$CONFIG_STATUS <<\_ACEOF
21292 # CONFIG_HEADER section.
21295 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21296 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21298 # ac_d sets the value in "#define NAME VALUE" lines.
21299 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21300 ac_dB='[ ].*$,\1#\2'
21301 ac_dC=' '
21302 ac_dD=',;t'
21303 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21304 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21305 ac_uB='$,\1#\2define\3'
21306 ac_uC=' '
21307 ac_uD=',;t'
21309 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21310 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21311 case $ac_file in
21312 - | *:- | *:-:* ) # input from stdin
21313 cat >$tmp/stdin
21314 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21315 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21316 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21317 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21318 * ) ac_file_in=$ac_file.in ;;
21319 esac
21321 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21322 echo "$as_me: creating $ac_file" >&6;}
21324 # First look for the input files in the build tree, otherwise in the
21325 # src tree.
21326 ac_file_inputs=`IFS=:
21327 for f in $ac_file_in; do
21328 case $f in
21329 -) echo $tmp/stdin ;;
21330 [\\/$]*)
21331 # Absolute (can't be DOS-style, as IFS=:)
21332 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21333 echo "$as_me: error: cannot find input file: $f" >&2;}
21334 { (exit 1); exit 1; }; }
21335 # Do quote $f, to prevent DOS paths from being IFS'd.
21336 echo "$f";;
21337 *) # Relative
21338 if test -f "$f"; then
21339 # Build tree
21340 echo "$f"
21341 elif test -f "$srcdir/$f"; then
21342 # Source tree
21343 echo "$srcdir/$f"
21344 else
21345 # /dev/null tree
21346 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21347 echo "$as_me: error: cannot find input file: $f" >&2;}
21348 { (exit 1); exit 1; }; }
21349 fi;;
21350 esac
21351 done` || { (exit 1); exit 1; }
21352 # Remove the trailing spaces.
21353 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21355 _ACEOF
21357 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21358 # `conftest.undefs', that substitutes the proper values into
21359 # config.h.in to produce config.h. The first handles `#define'
21360 # templates, and the second `#undef' templates.
21361 # And first: Protect against being on the right side of a sed subst in
21362 # config.status. Protect against being in an unquoted here document
21363 # in config.status.
21364 rm -f conftest.defines conftest.undefs
21365 # Using a here document instead of a string reduces the quoting nightmare.
21366 # Putting comments in sed scripts is not portable.
21368 # `end' is used to avoid that the second main sed command (meant for
21369 # 0-ary CPP macros) applies to n-ary macro definitions.
21370 # See the Autoconf documentation for `clear'.
21371 cat >confdef2sed.sed <<\_ACEOF
21372 s/[\\&,]/\\&/g
21373 s,[\\$`],\\&,g
21374 t clear
21375 : clear
21376 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21377 t end
21378 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21379 : end
21380 _ACEOF
21381 # If some macros were called several times there might be several times
21382 # the same #defines, which is useless. Nevertheless, we may not want to
21383 # sort them, since we want the *last* AC-DEFINE to be honored.
21384 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21385 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21386 rm -f confdef2sed.sed
21388 # This sed command replaces #undef with comments. This is necessary, for
21389 # example, in the case of _POSIX_SOURCE, which is predefined and required
21390 # on some systems where configure will not decide to define it.
21391 cat >>conftest.undefs <<\_ACEOF
21392 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21393 _ACEOF
21395 # Break up conftest.defines because some shells have a limit on the size
21396 # of here documents, and old seds have small limits too (100 cmds).
21397 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21398 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21399 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21400 echo ' :' >>$CONFIG_STATUS
21401 rm -f conftest.tail
21402 while grep . conftest.defines >/dev/null
21404 # Write a limited-size here document to $tmp/defines.sed.
21405 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21406 # Speed up: don't consider the non `#define' lines.
21407 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21408 # Work around the forget-to-reset-the-flag bug.
21409 echo 't clr' >>$CONFIG_STATUS
21410 echo ': clr' >>$CONFIG_STATUS
21411 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21412 echo 'CEOF
21413 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21414 rm -f $tmp/in
21415 mv $tmp/out $tmp/in
21416 ' >>$CONFIG_STATUS
21417 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21418 rm -f conftest.defines
21419 mv conftest.tail conftest.defines
21420 done
21421 rm -f conftest.defines
21422 echo ' fi # grep' >>$CONFIG_STATUS
21423 echo >>$CONFIG_STATUS
21425 # Break up conftest.undefs because some shells have a limit on the size
21426 # of here documents, and old seds have small limits too (100 cmds).
21427 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21428 rm -f conftest.tail
21429 while grep . conftest.undefs >/dev/null
21431 # Write a limited-size here document to $tmp/undefs.sed.
21432 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21433 # Speed up: don't consider the non `#undef'
21434 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21435 # Work around the forget-to-reset-the-flag bug.
21436 echo 't clr' >>$CONFIG_STATUS
21437 echo ': clr' >>$CONFIG_STATUS
21438 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21439 echo 'CEOF
21440 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21441 rm -f $tmp/in
21442 mv $tmp/out $tmp/in
21443 ' >>$CONFIG_STATUS
21444 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21445 rm -f conftest.undefs
21446 mv conftest.tail conftest.undefs
21447 done
21448 rm -f conftest.undefs
21450 cat >>$CONFIG_STATUS <<\_ACEOF
21451 # Let's still pretend it is `configure' which instantiates (i.e., don't
21452 # use $as_me), people would be surprised to read:
21453 # /* config.h. Generated by config.status. */
21454 if test x"$ac_file" = x-; then
21455 echo "/* Generated by configure. */" >$tmp/config.h
21456 else
21457 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21459 cat $tmp/in >>$tmp/config.h
21460 rm -f $tmp/in
21461 if test x"$ac_file" != x-; then
21462 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21463 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21464 echo "$as_me: $ac_file is unchanged" >&6;}
21465 else
21466 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21467 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21468 X"$ac_file" : 'X\(//\)[^/]' \| \
21469 X"$ac_file" : 'X\(//\)$' \| \
21470 X"$ac_file" : 'X\(/\)' \| \
21471 . : '\(.\)' 2>/dev/null ||
21472 echo X"$ac_file" |
21473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21474 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21475 /^X\(\/\/\)$/{ s//\1/; q; }
21476 /^X\(\/\).*/{ s//\1/; q; }
21477 s/.*/./; q'`
21478 { if $as_mkdir_p; then
21479 mkdir -p "$ac_dir"
21480 else
21481 as_dir="$ac_dir"
21482 as_dirs=
21483 while test ! -d "$as_dir"; do
21484 as_dirs="$as_dir $as_dirs"
21485 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21487 X"$as_dir" : 'X\(//\)[^/]' \| \
21488 X"$as_dir" : 'X\(//\)$' \| \
21489 X"$as_dir" : 'X\(/\)' \| \
21490 . : '\(.\)' 2>/dev/null ||
21491 echo X"$as_dir" |
21492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21493 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21494 /^X\(\/\/\)$/{ s//\1/; q; }
21495 /^X\(\/\).*/{ s//\1/; q; }
21496 s/.*/./; q'`
21497 done
21498 test ! -n "$as_dirs" || mkdir $as_dirs
21499 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21500 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21501 { (exit 1); exit 1; }; }; }
21503 rm -f $ac_file
21504 mv $tmp/config.h $ac_file
21506 else
21507 cat $tmp/config.h
21508 rm -f $tmp/config.h
21510 done
21511 _ACEOF
21512 cat >>$CONFIG_STATUS <<\_ACEOF
21515 # CONFIG_COMMANDS section.
21517 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21518 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21519 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21520 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21521 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21522 X"$ac_dest" : 'X\(//\)[^/]' \| \
21523 X"$ac_dest" : 'X\(//\)$' \| \
21524 X"$ac_dest" : 'X\(/\)' \| \
21525 . : '\(.\)' 2>/dev/null ||
21526 echo X"$ac_dest" |
21527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21529 /^X\(\/\/\)$/{ s//\1/; q; }
21530 /^X\(\/\).*/{ s//\1/; q; }
21531 s/.*/./; q'`
21532 { if $as_mkdir_p; then
21533 mkdir -p "$ac_dir"
21534 else
21535 as_dir="$ac_dir"
21536 as_dirs=
21537 while test ! -d "$as_dir"; do
21538 as_dirs="$as_dir $as_dirs"
21539 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21540 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21541 X"$as_dir" : 'X\(//\)[^/]' \| \
21542 X"$as_dir" : 'X\(//\)$' \| \
21543 X"$as_dir" : 'X\(/\)' \| \
21544 . : '\(.\)' 2>/dev/null ||
21545 echo X"$as_dir" |
21546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21547 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21548 /^X\(\/\/\)$/{ s//\1/; q; }
21549 /^X\(\/\).*/{ s//\1/; q; }
21550 s/.*/./; q'`
21551 done
21552 test ! -n "$as_dirs" || mkdir $as_dirs
21553 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21554 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21555 { (exit 1); exit 1; }; }; }
21557 ac_builddir=.
21559 if test "$ac_dir" != .; then
21560 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21561 # A "../" for each directory in $ac_dir_suffix.
21562 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21563 else
21564 ac_dir_suffix= ac_top_builddir=
21567 case $srcdir in
21568 .) # No --srcdir option. We are building in place.
21569 ac_srcdir=.
21570 if test -z "$ac_top_builddir"; then
21571 ac_top_srcdir=.
21572 else
21573 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21574 fi ;;
21575 [\\/]* | ?:[\\/]* ) # Absolute path.
21576 ac_srcdir=$srcdir$ac_dir_suffix;
21577 ac_top_srcdir=$srcdir ;;
21578 *) # Relative path.
21579 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21580 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21581 esac
21583 # Do not use `cd foo && pwd` to compute absolute paths, because
21584 # the directories may not exist.
21585 case `pwd` in
21586 .) ac_abs_builddir="$ac_dir";;
21588 case "$ac_dir" in
21589 .) ac_abs_builddir=`pwd`;;
21590 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21591 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21592 esac;;
21593 esac
21594 case $ac_abs_builddir in
21595 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21597 case ${ac_top_builddir}. in
21598 .) ac_abs_top_builddir=$ac_abs_builddir;;
21599 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21600 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21601 esac;;
21602 esac
21603 case $ac_abs_builddir in
21604 .) ac_abs_srcdir=$ac_srcdir;;
21606 case $ac_srcdir in
21607 .) ac_abs_srcdir=$ac_abs_builddir;;
21608 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21609 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21610 esac;;
21611 esac
21612 case $ac_abs_builddir in
21613 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21615 case $ac_top_srcdir in
21616 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21617 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21618 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21619 esac;;
21620 esac
21623 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21624 echo "$as_me: executing $ac_dest commands" >&6;}
21625 case $ac_dest in
21626 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
21627 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
21628 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21629 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21630 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21631 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21632 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21633 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21634 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21635 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21636 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21637 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21638 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21639 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21640 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21641 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21642 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21643 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21644 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21645 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21646 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21647 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21648 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21649 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21650 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21651 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21652 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
21653 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
21654 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21655 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21656 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21657 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21658 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
21659 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
21660 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21661 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21662 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21663 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21664 esac
21665 done
21666 _ACEOF
21668 cat >>$CONFIG_STATUS <<\_ACEOF
21670 { (exit 0); exit 0; }
21671 _ACEOF
21672 chmod +x $CONFIG_STATUS
21673 ac_clean_files=$ac_clean_files_save
21676 # configure is writing to config.log, and then calls config.status.
21677 # config.status does its own redirection, appending to config.log.
21678 # Unfortunately, on DOS this fails, as config.log is still kept open
21679 # by configure, so config.status won't be able to write to it; its
21680 # output is simply discarded. So we exec the FD to /dev/null,
21681 # effectively closing config.log, so it can be properly (re)opened and
21682 # appended to by config.status. When coming back to configure, we
21683 # need to make the FD available again.
21684 if test "$no_create" != yes; then
21685 ac_cs_success=:
21686 ac_config_status_args=
21687 test "$silent" = yes &&
21688 ac_config_status_args="$ac_config_status_args --quiet"
21689 exec 5>/dev/null
21690 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21691 exec 5>>config.log
21692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21693 # would make configure fail if this is the last instruction.
21694 $ac_cs_success || { (exit 1); exit 1; }
21698 if test "$have_x" = "no"
21699 then
21700 echo
21701 echo "*** Warning: X development files not found. Wine will be built without"
21702 echo "*** X support, which currently does not work, and would probably not be"
21703 echo "*** what you want anyway. You will need to install devel packages of"
21704 echo "*** Xlib/Xfree86 at the very least."
21707 if test "$wine_cv_opengl_version_OK" = "no"
21708 then
21709 echo
21710 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21711 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21714 if test "$wine_cv_msg_freetype" = "yes"
21715 then
21716 echo
21717 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21718 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21719 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21720 echo "*** enable Wine to use TrueType fonts."
21723 echo
21724 echo "Configure finished. Do 'make depend && make' to compile Wine."
21725 echo