Fixed use of HBMMENU_* in switch statements.
[wine/multimedia.git] / configure
blobe845109b0072980b73c64744b5d33bfcd7f5c357
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for Wine 20021031.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
43 else
44 $as_unset $as_var
46 done
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51 else
52 as_expr=false
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57 else
58 as_basename=false
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
72 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149 done
151 esac
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193 else
194 as_expr=false
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210 else
211 as_ln_s='cp -p'
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217 else
218 as_mkdir_p=false
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
234 IFS=" $as_nl"
236 # CDPATH.
237 $as_unset CDPATH
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
245 exec 6>&1
248 # Initializations.
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
264 PACKAGE_NAME='Wine'
265 PACKAGE_TARNAME='wine'
266 PACKAGE_VERSION='20021031'
267 PACKAGE_STRING='Wine 20021031'
268 PACKAGE_BUGREPORT=''
270 ac_unique_file="server/atom.c"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
273 #include <stdio.h>
274 #if HAVE_SYS_TYPES_H
275 # include <sys/types.h>
276 #endif
277 #if HAVE_SYS_STAT_H
278 # include <sys/stat.h>
279 #endif
280 #if STDC_HEADERS
281 # include <stdlib.h>
282 # include <stddef.h>
283 #else
284 # if HAVE_STDLIB_H
285 # include <stdlib.h>
286 # endif
287 #endif
288 #if HAVE_STRING_H
289 # if !STDC_HEADERS && HAVE_MEMORY_H
290 # include <memory.h>
291 # endif
292 # include <string.h>
293 #endif
294 #if HAVE_STRINGS_H
295 # include <strings.h>
296 #endif
297 #if HAVE_INTTYPES_H
298 # include <inttypes.h>
299 #else
300 # if HAVE_STDINT_H
301 # include <stdint.h>
302 # endif
303 #endif
304 #if HAVE_UNISTD_H
305 # include <unistd.h>
306 #endif"
308 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 LIBEXT OPTIONS 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 CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S LN C2MAN LDCONFIG LINT LINTFLAGS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC DLLTOOL LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
309 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES'
311 # Initialize some variables set by options.
312 ac_init_help=
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
316 cache_file=/dev/null
317 exec_prefix=NONE
318 no_create=
319 no_recursion=
320 prefix=NONE
321 program_prefix=NONE
322 program_suffix=NONE
323 program_transform_name=s,x,x,
324 silent=
325 site=
326 srcdir=
327 verbose=
328 x_includes=NONE
329 x_libraries=NONE
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
349 ac_prev=
350 for ac_option
352 # If the previous option needs an argument, assign it.
353 if test -n "$ac_prev"; then
354 eval "$ac_prev=\$ac_option"
355 ac_prev=
356 continue
359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361 # Accept the important Cygnus configure options, so we can diagnose typos.
363 case $ac_option in
365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
366 ac_prev=bindir ;;
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368 bindir=$ac_optarg ;;
370 -build | --build | --buil | --bui | --bu)
371 ac_prev=build_alias ;;
372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373 build_alias=$ac_optarg ;;
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380 cache_file=$ac_optarg ;;
382 --config-cache | -C)
383 cache_file=config.cache ;;
385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386 ac_prev=datadir ;;
387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388 | --da=*)
389 datadir=$ac_optarg ;;
391 -disable-* | --disable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 eval "enable_$ac_feature=no" ;;
400 -enable-* | --enable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 case $ac_option in
408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
409 *) ac_optarg=yes ;;
410 esac
411 eval "enable_$ac_feature='$ac_optarg'" ;;
413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415 | --exec | --exe | --ex)
416 ac_prev=exec_prefix ;;
417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419 | --exec=* | --exe=* | --ex=*)
420 exec_prefix=$ac_optarg ;;
422 -gas | --gas | --ga | --g)
423 # Obsolete; use --with-gas.
424 with_gas=yes ;;
426 -help | --help | --hel | --he | -h)
427 ac_init_help=long ;;
428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429 ac_init_help=recursive ;;
430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431 ac_init_help=short ;;
433 -host | --host | --hos | --ho)
434 ac_prev=host_alias ;;
435 -host=* | --host=* | --hos=* | --ho=*)
436 host_alias=$ac_optarg ;;
438 -includedir | --includedir | --includedi | --included | --include \
439 | --includ | --inclu | --incl | --inc)
440 ac_prev=includedir ;;
441 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442 | --includ=* | --inclu=* | --incl=* | --inc=*)
443 includedir=$ac_optarg ;;
445 -infodir | --infodir | --infodi | --infod | --info | --inf)
446 ac_prev=infodir ;;
447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448 infodir=$ac_optarg ;;
450 -libdir | --libdir | --libdi | --libd)
451 ac_prev=libdir ;;
452 -libdir=* | --libdir=* | --libdi=* | --libd=*)
453 libdir=$ac_optarg ;;
455 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456 | --libexe | --libex | --libe)
457 ac_prev=libexecdir ;;
458 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459 | --libexe=* | --libex=* | --libe=*)
460 libexecdir=$ac_optarg ;;
462 -localstatedir | --localstatedir | --localstatedi | --localstated \
463 | --localstate | --localstat | --localsta | --localst \
464 | --locals | --local | --loca | --loc | --lo)
465 ac_prev=localstatedir ;;
466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469 localstatedir=$ac_optarg ;;
471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472 ac_prev=mandir ;;
473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474 mandir=$ac_optarg ;;
476 -nfp | --nfp | --nf)
477 # Obsolete; use --without-fp.
478 with_fp=no ;;
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c | -n)
482 no_create=yes ;;
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486 no_recursion=yes ;;
488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490 | --oldin | --oldi | --old | --ol | --o)
491 ac_prev=oldincludedir ;;
492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495 oldincludedir=$ac_optarg ;;
497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498 ac_prev=prefix ;;
499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
500 prefix=$ac_optarg ;;
502 -program-prefix | --program-prefix | --program-prefi | --program-pref \
503 | --program-pre | --program-pr | --program-p)
504 ac_prev=program_prefix ;;
505 -program-prefix=* | --program-prefix=* | --program-prefi=* \
506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507 program_prefix=$ac_optarg ;;
509 -program-suffix | --program-suffix | --program-suffi | --program-suff \
510 | --program-suf | --program-su | --program-s)
511 ac_prev=program_suffix ;;
512 -program-suffix=* | --program-suffix=* | --program-suffi=* \
513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514 program_suffix=$ac_optarg ;;
516 -program-transform-name | --program-transform-name \
517 | --program-transform-nam | --program-transform-na \
518 | --program-transform-n | --program-transform- \
519 | --program-transform | --program-transfor \
520 | --program-transfo | --program-transf \
521 | --program-trans | --program-tran \
522 | --progr-tra | --program-tr | --program-t)
523 ac_prev=program_transform_name ;;
524 -program-transform-name=* | --program-transform-name=* \
525 | --program-transform-nam=* | --program-transform-na=* \
526 | --program-transform-n=* | --program-transform-=* \
527 | --program-transform=* | --program-transfor=* \
528 | --program-transfo=* | --program-transf=* \
529 | --program-trans=* | --program-tran=* \
530 | --progr-tra=* | --program-tr=* | --program-t=*)
531 program_transform_name=$ac_optarg ;;
533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534 | -silent | --silent | --silen | --sile | --sil)
535 silent=yes ;;
537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538 ac_prev=sbindir ;;
539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540 | --sbi=* | --sb=*)
541 sbindir=$ac_optarg ;;
543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545 | --sharedst | --shareds | --shared | --share | --shar \
546 | --sha | --sh)
547 ac_prev=sharedstatedir ;;
548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551 | --sha=* | --sh=*)
552 sharedstatedir=$ac_optarg ;;
554 -site | --site | --sit)
555 ac_prev=site ;;
556 -site=* | --site=* | --sit=*)
557 site=$ac_optarg ;;
559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560 ac_prev=srcdir ;;
561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
562 srcdir=$ac_optarg ;;
564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565 | --syscon | --sysco | --sysc | --sys | --sy)
566 ac_prev=sysconfdir ;;
567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569 sysconfdir=$ac_optarg ;;
571 -target | --target | --targe | --targ | --tar | --ta | --t)
572 ac_prev=target_alias ;;
573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574 target_alias=$ac_optarg ;;
576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
577 verbose=yes ;;
579 -version | --version | --versio | --versi | --vers | -V)
580 ac_init_version=: ;;
582 -with-* | --with-*)
583 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584 # Reject names that are not valid shell variable names.
585 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586 { echo "$as_me: error: invalid package name: $ac_package" >&2
587 { (exit 1); exit 1; }; }
588 ac_package=`echo $ac_package| sed 's/-/_/g'`
589 case $ac_option in
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591 *) ac_optarg=yes ;;
592 esac
593 eval "with_$ac_package='$ac_optarg'" ;;
595 -without-* | --without-*)
596 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package | sed 's/-/_/g'`
602 eval "with_$ac_package=no" ;;
604 --x)
605 # Obsolete; use --with-x.
606 with_x=yes ;;
608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609 | --x-incl | --x-inc | --x-in | --x-i)
610 ac_prev=x_includes ;;
611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613 x_includes=$ac_optarg ;;
615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617 ac_prev=x_libraries ;;
618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620 x_libraries=$ac_optarg ;;
622 -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624 { (exit 1); exit 1; }; }
627 *=*)
628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629 # Reject names that are not valid shell variable names.
630 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632 { (exit 1); exit 1; }; }
633 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634 eval "$ac_envvar='$ac_optarg'"
635 export $ac_envvar ;;
638 # FIXME: should be removed in autoconf 3.0.
639 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
645 esac
646 done
648 if test -n "$ac_prev"; then
649 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650 { echo "$as_me: error: missing argument to $ac_option" >&2
651 { (exit 1); exit 1; }; }
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
657 eval ac_val=$`echo $ac_var`
658 case $ac_val in
659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661 { (exit 1); exit 1; }; };;
662 esac
663 done
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667 localstatedir libdir includedir oldincludedir infodir mandir
669 eval ac_val=$`echo $ac_var`
670 case $ac_val in
671 [\\/$]* | ?:[\\/]* ) ;;
672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673 { (exit 1); exit 1; }; };;
674 esac
675 done
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
680 build=$build_alias
681 host=$host_alias
682 target=$target_alias
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686 if test "x$build_alias" = x; then
687 cross_compiling=maybe
688 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689 If a cross compiler is detected then cross compile mode will be used." >&2
690 elif test "x$build_alias" != "x$host_alias"; then
691 cross_compiling=yes
695 ac_tool_prefix=
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698 test "$silent" = yes && exec 6>/dev/null
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703 ac_srcdir_defaulted=yes
704 # Try the directory containing this script, then its parent.
705 ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707 X"$0" : 'X\(//\)[^/]' \| \
708 X"$0" : 'X\(//\)$' \| \
709 X"$0" : 'X\(/\)' \| \
710 . : '\(.\)' 2>/dev/null ||
711 echo X"$0" |
712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714 /^X\(\/\/\)$/{ s//\1/; q; }
715 /^X\(\/\).*/{ s//\1/; q; }
716 s/.*/./; q'`
717 srcdir=$ac_confdir
718 if test ! -r $srcdir/$ac_unique_file; then
719 srcdir=..
721 else
722 ac_srcdir_defaulted=no
724 if test ! -r $srcdir/$ac_unique_file; then
725 if test "$ac_srcdir_defaulted" = yes; then
726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727 { (exit 1); exit 1; }; }
728 else
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730 { (exit 1); exit 1; }; }
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735 { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
750 ac_env_CC_value=$CC
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CPP_set=${CPP+set}
766 ac_env_CPP_value=$CPP
767 ac_cv_env_CPP_set=${CPP+set}
768 ac_cv_env_CPP_value=$CPP
771 # Report the --help message.
773 if test "$ac_init_help" = "long"; then
774 # Omit some internal or obsolete options to make the list less imposing.
775 # This message is too long to be a string in the A/UX 3.1 sh.
776 cat <<_ACEOF
777 \`configure' configures Wine 20021031 to adapt to many kinds of systems.
779 Usage: $0 [OPTION]... [VAR=VALUE]...
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE. See below for descriptions of some of the useful variables.
784 Defaults for the options are specified in brackets.
786 Configuration:
787 -h, --help display this help and exit
788 --help=short display options specific to this package
789 --help=recursive display the short help of all the included packages
790 -V, --version display version information and exit
791 -q, --quiet, --silent do not print \`checking...' messages
792 --cache-file=FILE cache test results in FILE [disabled]
793 -C, --config-cache alias for \`--cache-file=config.cache'
794 -n, --no-create do not create output files
795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 _ACEOF
799 cat <<_ACEOF
800 Installation directories:
801 --prefix=PREFIX install architecture-independent files in PREFIX
802 [$ac_default_prefix]
803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
804 [PREFIX]
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
811 For better control, use the options below.
813 Fine tuning of the installation directories:
814 --bindir=DIR user executables [EPREFIX/bin]
815 --sbindir=DIR system admin executables [EPREFIX/sbin]
816 --libexecdir=DIR program executables [EPREFIX/libexec]
817 --datadir=DIR read-only architecture-independent data [PREFIX/share]
818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
821 --libdir=DIR object code libraries [EPREFIX/lib]
822 --includedir=DIR C header files [PREFIX/include]
823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
824 --infodir=DIR info documentation [PREFIX/info]
825 --mandir=DIR man documentation [PREFIX/man]
826 _ACEOF
828 cat <<\_ACEOF
830 X features:
831 --x-includes=DIR X include files are in DIR
832 --x-libraries=DIR X library files are in DIR
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
840 if test -n "$ac_init_help"; then
841 case $ac_init_help in
842 short | recursive ) echo "Configuration of Wine 20021031:";;
843 esac
844 cat <<\_ACEOF
846 Optional Features:
847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
849 --disable-win16 do not include Win16 support
850 --disable-debug compile out all debugging messages
851 --disable-trace compile out TRACE messages
853 Optional Packages:
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --without-opengl do not use OpenGL
857 --without-curses do not use curses
858 --with-wine-tools=<dir> use Wine tools from directory <dir>
859 --with-x use the X Window System
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 # absolute.
908 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
910 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 cd $ac_dir
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f $ac_srcdir/configure.gnu; then
916 echo
917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
919 echo
920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
923 echo
924 $ac_configure --help
925 else
926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 cd $ac_popdir
929 done
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
934 cat <<\_ACEOF
935 Wine configure 20021031
936 generated by GNU Autoconf 2.54
938 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
939 Free Software Foundation, Inc.
940 This configure script is free software; the Free Software Foundation
941 gives unlimited permission to copy, distribute and modify it.
942 _ACEOF
943 exit 0
945 exec 5>config.log
946 cat >&5 <<_ACEOF
947 This file contains any messages produced by compilers while
948 running configure, to aid debugging if configure makes a mistake.
950 It was created by Wine $as_me 20021031, which was
951 generated by GNU Autoconf 2.54. Invocation command line was
953 $ $0 $@
955 _ACEOF
957 cat <<_ASUNAME
958 ## --------- ##
959 ## Platform. ##
960 ## --------- ##
962 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
963 uname -m = `(uname -m) 2>/dev/null || echo unknown`
964 uname -r = `(uname -r) 2>/dev/null || echo unknown`
965 uname -s = `(uname -s) 2>/dev/null || echo unknown`
966 uname -v = `(uname -v) 2>/dev/null || echo unknown`
968 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
969 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
971 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
972 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
973 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
974 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
975 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
976 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
977 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
979 _ASUNAME
981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
982 for as_dir in $PATH
984 IFS=$as_save_IFS
985 test -z "$as_dir" && as_dir=.
986 echo "PATH: $as_dir"
987 done
989 } >&5
991 cat >&5 <<_ACEOF
994 ## ----------- ##
995 ## Core tests. ##
996 ## ----------- ##
998 _ACEOF
1001 # Keep a trace of the command line.
1002 # Strip out --no-create and --no-recursion so they do not pile up.
1003 # Also quote any args containing shell meta-characters.
1004 ac_configure_args=
1005 ac_sep=
1006 for ac_arg
1008 case $ac_arg in
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n ) continue ;;
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 continue ;;
1014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016 esac
1017 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1018 # Get rid of the leading space.
1019 ac_sep=" "
1020 done
1022 # When interrupted or exit'd, cleanup temporary files, and complete
1023 # config.log. We remove comments because anyway the quotes in there
1024 # would cause problems or look ugly.
1025 # WARNING: Be sure not to use single quotes in there, as some shells,
1026 # such as our DU 5.0 friend, will then `close' the trap.
1027 trap 'exit_status=$?
1028 # Save into config.log some information that might help in debugging.
1030 echo
1032 cat <<\_ASBOX
1033 ## ---------------- ##
1034 ## Cache variables. ##
1035 ## ---------------- ##
1036 _ASBOX
1037 echo
1038 # The following way of writing the cache mishandles newlines in values,
1040 (set) 2>&1 |
1041 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1042 *ac_space=\ *)
1043 sed -n \
1044 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1048 sed -n \
1049 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1051 esac;
1053 echo
1055 cat <<\_ASBOX
1056 ## ----------------- ##
1057 ## Output variables. ##
1058 ## ----------------- ##
1059 _ASBOX
1060 echo
1061 for ac_var in $ac_subst_vars
1063 eval ac_val=$`echo $ac_var`
1064 echo "$ac_var='"'"'$ac_val'"'"'"
1065 done | sort
1066 echo
1068 if test -n "$ac_subst_files"; then
1069 cat <<\_ASBOX
1070 ## ------------- ##
1071 ## Output files. ##
1072 ## ------------- ##
1073 _ASBOX
1074 echo
1075 for ac_var in $ac_subst_files
1077 eval ac_val=$`echo $ac_var`
1078 echo "$ac_var='"'"'$ac_val'"'"'"
1079 done | sort
1080 echo
1083 if test -s confdefs.h; then
1084 cat <<\_ASBOX
1085 ## ----------- ##
1086 ## confdefs.h. ##
1087 ## ----------- ##
1088 _ASBOX
1089 echo
1090 sed "/^$/d" confdefs.h | sort
1091 echo
1093 test "$ac_signal" != 0 &&
1094 echo "$as_me: caught signal $ac_signal"
1095 echo "$as_me: exit $exit_status"
1096 } >&5
1097 rm -f core core.* *.core &&
1098 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1099 exit $exit_status
1101 for ac_signal in 1 2 13 15; do
1102 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1103 done
1104 ac_signal=0
1106 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1107 rm -rf conftest* confdefs.h
1108 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1109 echo >confdefs.h
1111 # Predefined preprocessor variables.
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_NAME "$PACKAGE_NAME"
1115 _ACEOF
1118 cat >>confdefs.h <<_ACEOF
1119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1120 _ACEOF
1123 cat >>confdefs.h <<_ACEOF
1124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1125 _ACEOF
1128 cat >>confdefs.h <<_ACEOF
1129 #define PACKAGE_STRING "$PACKAGE_STRING"
1130 _ACEOF
1133 cat >>confdefs.h <<_ACEOF
1134 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1135 _ACEOF
1138 # Let the site file select an alternate cache file if it wants to.
1139 # Prefer explicitly selected file to automatically selected ones.
1140 if test -z "$CONFIG_SITE"; then
1141 if test "x$prefix" != xNONE; then
1142 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1143 else
1144 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1147 for ac_site_file in $CONFIG_SITE; do
1148 if test -r "$ac_site_file"; then
1149 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1150 echo "$as_me: loading site script $ac_site_file" >&6;}
1151 sed 's/^/| /' "$ac_site_file" >&5
1152 . "$ac_site_file"
1154 done
1156 if test -r "$cache_file"; then
1157 # Some versions of bash will fail to source /dev/null (special
1158 # files actually), so we avoid doing that.
1159 if test -f "$cache_file"; then
1160 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1161 echo "$as_me: loading cache $cache_file" >&6;}
1162 case $cache_file in
1163 [\\/]* | ?:[\\/]* ) . $cache_file;;
1164 *) . ./$cache_file;;
1165 esac
1167 else
1168 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1169 echo "$as_me: creating cache $cache_file" >&6;}
1170 >$cache_file
1173 # Check that the precious variables saved in the cache have kept the same
1174 # value.
1175 ac_cache_corrupted=false
1176 for ac_var in `(set) 2>&1 |
1177 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1178 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1179 eval ac_new_set=\$ac_env_${ac_var}_set
1180 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1181 eval ac_new_val="\$ac_env_${ac_var}_value"
1182 case $ac_old_set,$ac_new_set in
1183 set,)
1184 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1185 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1186 ac_cache_corrupted=: ;;
1187 ,set)
1188 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1189 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1190 ac_cache_corrupted=: ;;
1191 ,);;
1193 if test "x$ac_old_val" != "x$ac_new_val"; then
1194 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1195 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1196 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1197 echo "$as_me: former value: $ac_old_val" >&2;}
1198 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1199 echo "$as_me: current value: $ac_new_val" >&2;}
1200 ac_cache_corrupted=:
1201 fi;;
1202 esac
1203 # Pass precious variables to config.status.
1204 if test "$ac_new_set" = set; then
1205 case $ac_new_val in
1206 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1208 *) ac_arg=$ac_var=$ac_new_val ;;
1209 esac
1210 case " $ac_configure_args " in
1211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1212 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1213 esac
1215 done
1216 if $ac_cache_corrupted; then
1217 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1218 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1219 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1220 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1221 { (exit 1); exit 1; }; }
1224 ac_ext=c
1225 ac_cpp='$CPP $CPPFLAGS'
1226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1257 ac_config_headers="$ac_config_headers include/config.h"
1259 ac_aux_dir=
1260 for ac_dir in tools $srcdir/tools; do
1261 if test -f $ac_dir/install-sh; then
1262 ac_aux_dir=$ac_dir
1263 ac_install_sh="$ac_aux_dir/install-sh -c"
1264 break
1265 elif test -f $ac_dir/install.sh; then
1266 ac_aux_dir=$ac_dir
1267 ac_install_sh="$ac_aux_dir/install.sh -c"
1268 break
1269 elif test -f $ac_dir/shtool; then
1270 ac_aux_dir=$ac_dir
1271 ac_install_sh="$ac_aux_dir/shtool install -c"
1272 break
1274 done
1275 if test -z "$ac_aux_dir"; then
1276 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1277 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1278 { (exit 1); exit 1; }; }
1280 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1281 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1282 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1286 LIBEXT="so"
1289 # Check whether --enable-win16 or --disable-win16 was given.
1290 if test "${enable_win16+set}" = set; then
1291 enableval="$enable_win16"
1294 # Check whether --enable-debug or --disable-debug was given.
1295 if test "${enable_debug+set}" = set; then
1296 enableval="$enable_debug"
1299 # Check whether --enable-trace or --disable-trace was given.
1300 if test "${enable_trace+set}" = set; then
1301 enableval="$enable_trace"
1306 # Check whether --with-opengl or --without-opengl was given.
1307 if test "${with_opengl+set}" = set; then
1308 withval="$with_opengl"
1312 # Check whether --with-curses or --without-curses was given.
1313 if test "${with_curses+set}" = set; then
1314 withval="$with_curses"
1318 # Check whether --with-wine-tools or --without-wine-tools was given.
1319 if test "${with_wine_tools+set}" = set; then
1320 withval="$with_wine_tools"
1325 WIN16_FILES="\$(WIN16_FILES)"
1327 WIN16_INSTALL="\$(WIN16_INSTALL)"
1329 if test "x$enable_win16" = "xno"
1330 then
1331 WIN16_FILES=""
1332 WIN16_INSTALL=""
1334 if test "x$enable_debug" = "xno"
1335 then
1337 cat >>confdefs.h <<\_ACEOF
1338 #define NO_DEBUG_MSGS 1
1339 _ACEOF
1342 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1343 then
1345 cat >>confdefs.h <<\_ACEOF
1346 #define NO_TRACE_MSGS 1
1347 _ACEOF
1352 # Make sure we can run config.sub.
1353 $ac_config_sub sun4 >/dev/null 2>&1 ||
1354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356 { (exit 1); exit 1; }; }
1358 echo "$as_me:$LINENO: checking build system type" >&5
1359 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360 if test "${ac_cv_build+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 ac_cv_build_alias=$build_alias
1364 test -z "$ac_cv_build_alias" &&
1365 ac_cv_build_alias=`$ac_config_guess`
1366 test -z "$ac_cv_build_alias" &&
1367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369 { (exit 1); exit 1; }; }
1370 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1376 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377 echo "${ECHO_T}$ac_cv_build" >&6
1378 build=$ac_cv_build
1379 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384 echo "$as_me:$LINENO: checking host system type" >&5
1385 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386 if test "${ac_cv_host+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389 ac_cv_host_alias=$host_alias
1390 test -z "$ac_cv_host_alias" &&
1391 ac_cv_host_alias=$ac_cv_build_alias
1392 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399 echo "${ECHO_T}$ac_cv_host" >&6
1400 host=$ac_cv_host
1401 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1407 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1408 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1409 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412 cat >conftest.make <<\_ACEOF
1413 all:
1414 @echo 'ac_maketemp="${MAKE}"'
1415 _ACEOF
1416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1417 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1418 if test -n "$ac_maketemp"; then
1419 eval ac_cv_prog_make_${ac_make}_set=yes
1420 else
1421 eval ac_cv_prog_make_${ac_make}_set=no
1423 rm -f conftest.make
1425 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1426 echo "$as_me:$LINENO: result: yes" >&5
1427 echo "${ECHO_T}yes" >&6
1428 SET_MAKE=
1429 else
1430 echo "$as_me:$LINENO: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1432 SET_MAKE="MAKE=${MAKE-make}"
1435 ac_ext=c
1436 ac_cpp='$CPP $CPPFLAGS'
1437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1440 if test -n "$ac_tool_prefix"; then
1441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 if test -n "$CC"; then
1449 ac_cv_prog_CC="$CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1462 done
1463 done
1467 CC=$ac_cv_prog_CC
1468 if test -n "$CC"; then
1469 echo "$as_me:$LINENO: result: $CC" >&5
1470 echo "${ECHO_T}$CC" >&6
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1477 if test -z "$ac_cv_prog_CC"; then
1478 ac_ct_CC=$CC
1479 # Extract the first word of "gcc", so it can be a program name with args.
1480 set dummy gcc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486 if test -n "$ac_ct_CC"; then
1487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488 else
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_ac_ct_CC="gcc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1500 done
1501 done
1505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506 if test -n "$ac_ct_CC"; then
1507 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1508 echo "${ECHO_T}$ac_ct_CC" >&6
1509 else
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1514 CC=$ac_ct_CC
1515 else
1516 CC="$ac_cv_prog_CC"
1519 if test -z "$CC"; then
1520 if test -n "$ac_tool_prefix"; then
1521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1522 set dummy ${ac_tool_prefix}cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_CC="${ac_tool_prefix}cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1542 done
1543 done
1547 CC=$ac_cv_prog_CC
1548 if test -n "$CC"; then
1549 echo "$as_me:$LINENO: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1551 else
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1557 if test -z "$ac_cv_prog_CC"; then
1558 ac_ct_CC=$CC
1559 # Extract the first word of "cc", so it can be a program name with args.
1560 set dummy cc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566 if test -n "$ac_ct_CC"; then
1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_ac_ct_CC="cc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 break 2
1580 done
1581 done
1585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586 if test -n "$ac_ct_CC"; then
1587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1588 echo "${ECHO_T}$ac_ct_CC" >&6
1589 else
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1594 CC=$ac_ct_CC
1595 else
1596 CC="$ac_cv_prog_CC"
1600 if test -z "$CC"; then
1601 # Extract the first word of "cc", so it can be a program name with args.
1602 set dummy cc; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 ac_prog_rejected=no
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1620 ac_prog_rejected=yes
1621 continue
1623 ac_cv_prog_CC="cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1627 done
1628 done
1630 if test $ac_prog_rejected = yes; then
1631 # We found a bogon in the path, so make sure we never use it.
1632 set dummy $ac_cv_prog_CC
1633 shift
1634 if test $# != 0; then
1635 # We chose a different compiler from the bogus one.
1636 # However, it has the same basename, so the bogon will be chosen
1637 # first if we set CC to just the basename; use the full file name.
1638 shift
1639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1654 if test -z "$CC"; then
1655 if test -n "$ac_tool_prefix"; then
1656 for ac_prog in cl
1658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1679 done
1680 done
1684 CC=$ac_cv_prog_CC
1685 if test -n "$CC"; then
1686 echo "$as_me:$LINENO: result: $CC" >&5
1687 echo "${ECHO_T}$CC" >&6
1688 else
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1693 test -n "$CC" && break
1694 done
1696 if test -z "$CC"; then
1697 ac_ct_CC=$CC
1698 for ac_prog in cl
1700 # Extract the first word of "$ac_prog", so it can be a program name with args.
1701 set dummy $ac_prog; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709 else
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="$ac_prog"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1721 done
1722 done
1726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727 if test -n "$ac_ct_CC"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729 echo "${ECHO_T}$ac_ct_CC" >&6
1730 else
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1735 test -n "$ac_ct_CC" && break
1736 done
1738 CC=$ac_ct_CC
1744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1745 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1746 { (exit 1); exit 1; }; }
1748 # Provide some information about the compiler.
1749 echo "$as_me:$LINENO:" \
1750 "checking for C compiler version" >&5
1751 ac_compiler=`set X $ac_compile; echo $2`
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 ac_status=$?
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }
1768 cat >conftest.$ac_ext <<_ACEOF
1769 #line $LINENO "configure"
1770 #include "confdefs.h"
1773 main ()
1777 return 0;
1779 _ACEOF
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1784 # of exeext.
1785 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1786 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # resort.
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 ac_cv_exeext=
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1801 test -f "$ac_file" || continue
1802 case $ac_file in
1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1804 a.out ) # We found the default executable, but exeext='' is most
1805 # certainly right.
1806 break;;
1807 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1809 export ac_cv_exeext
1810 break;;
1811 * ) break;;
1812 esac
1813 done
1814 else
1815 echo "$as_me: failed program was:" >&5
1816 cat conftest.$ac_ext >&5
1817 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1818 check \`config.log' for details." >&5
1819 echo "$as_me: error: C compiler cannot create executables
1820 check \`config.log' for details." >&2;}
1821 { (exit 77); exit 77; }; }
1824 ac_exeext=$ac_cv_exeext
1825 echo "$as_me:$LINENO: result: $ac_file" >&5
1826 echo "${ECHO_T}$ac_file" >&6
1828 # Check the compiler produces executables we can run. If not, either
1829 # the compiler is broken, or we cross compile.
1830 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1831 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1832 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1833 # If not cross compiling, check that we can run a simple program.
1834 if test "$cross_compiling" != yes; then
1835 if { ac_try='./$ac_file'
1836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837 (eval $ac_try) 2>&5
1838 ac_status=$?
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1841 cross_compiling=no
1842 else
1843 if test "$cross_compiling" = maybe; then
1844 cross_compiling=yes
1845 else
1846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1847 If you meant to cross compile, use \`--host'." >&5
1848 echo "$as_me: error: cannot run C compiled programs.
1849 If you meant to cross compile, use \`--host'." >&2;}
1850 { (exit 1); exit 1; }; }
1854 echo "$as_me:$LINENO: result: yes" >&5
1855 echo "${ECHO_T}yes" >&6
1857 rm -f a.out a.exe conftest$ac_cv_exeext
1858 ac_clean_files=$ac_clean_files_save
1859 # Check the compiler produces executables we can run. If not, either
1860 # the compiler is broken, or we cross compile.
1861 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1862 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1863 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1864 echo "${ECHO_T}$cross_compiling" >&6
1866 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1867 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1869 (eval $ac_link) 2>&5
1870 ac_status=$?
1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872 (exit $ac_status); }; then
1873 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1874 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1875 # work properly (i.e., refer to `conftest.exe'), while it won't with
1876 # `rm'.
1877 for ac_file in conftest.exe conftest conftest.*; do
1878 test -f "$ac_file" || continue
1879 case $ac_file in
1880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1881 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1882 export ac_cv_exeext
1883 break;;
1884 * ) break;;
1885 esac
1886 done
1887 else
1888 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1889 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1890 { (exit 1); exit 1; }; }
1893 rm -f conftest$ac_cv_exeext
1894 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1895 echo "${ECHO_T}$ac_cv_exeext" >&6
1897 rm -f conftest.$ac_ext
1898 EXEEXT=$ac_cv_exeext
1899 ac_exeext=$EXEEXT
1900 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1901 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1902 if test "${ac_cv_objext+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 cat >conftest.$ac_ext <<_ACEOF
1906 #line $LINENO "configure"
1907 #include "confdefs.h"
1910 main ()
1914 return 0;
1916 _ACEOF
1917 rm -f conftest.o conftest.obj
1918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919 (eval $ac_compile) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }; then
1923 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1924 case $ac_file in
1925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1926 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1927 break;;
1928 esac
1929 done
1930 else
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1933 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1934 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1935 { (exit 1); exit 1; }; }
1938 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1940 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1941 echo "${ECHO_T}$ac_cv_objext" >&6
1942 OBJEXT=$ac_cv_objext
1943 ac_objext=$OBJEXT
1944 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1945 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1946 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 cat >conftest.$ac_ext <<_ACEOF
1950 #line $LINENO "configure"
1951 #include "confdefs.h"
1954 main ()
1956 #ifndef __GNUC__
1957 choke me
1958 #endif
1961 return 0;
1963 _ACEOF
1964 rm -f conftest.$ac_objext
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); } &&
1970 { ac_try='test -s conftest.$ac_objext'
1971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1972 (eval $ac_try) 2>&5
1973 ac_status=$?
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; }; then
1976 ac_compiler_gnu=yes
1977 else
1978 echo "$as_me: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1980 ac_compiler_gnu=no
1982 rm -f conftest.$ac_objext conftest.$ac_ext
1983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1986 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1987 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1988 GCC=`test $ac_compiler_gnu = yes && echo yes`
1989 ac_test_CFLAGS=${CFLAGS+set}
1990 ac_save_CFLAGS=$CFLAGS
1991 CFLAGS="-g"
1992 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1993 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1994 if test "${ac_cv_prog_cc_g+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997 cat >conftest.$ac_ext <<_ACEOF
1998 #line $LINENO "configure"
1999 #include "confdefs.h"
2002 main ()
2006 return 0;
2008 _ACEOF
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try='test -s conftest.$ac_objext'
2016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017 (eval $ac_try) 2>&5
2018 ac_status=$?
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }; }; then
2021 ac_cv_prog_cc_g=yes
2022 else
2023 echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2025 ac_cv_prog_cc_g=no
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2029 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2030 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2031 if test "$ac_test_CFLAGS" = set; then
2032 CFLAGS=$ac_save_CFLAGS
2033 elif test $ac_cv_prog_cc_g = yes; then
2034 if test "$GCC" = yes; then
2035 CFLAGS="-g -O2"
2036 else
2037 CFLAGS="-g"
2039 else
2040 if test "$GCC" = yes; then
2041 CFLAGS="-O2"
2042 else
2043 CFLAGS=
2046 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2047 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2048 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 ac_cv_prog_cc_stdc=no
2052 ac_save_CC=$CC
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line $LINENO "configure"
2055 #include "confdefs.h"
2056 #include <stdarg.h>
2057 #include <stdio.h>
2058 #include <sys/types.h>
2059 #include <sys/stat.h>
2060 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2061 struct buf { int x; };
2062 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2063 static char *e (p, i)
2064 char **p;
2065 int i;
2067 return p[i];
2069 static char *f (char * (*g) (char **, int), char **p, ...)
2071 char *s;
2072 va_list v;
2073 va_start (v,p);
2074 s = g (p, va_arg (v,int));
2075 va_end (v);
2076 return s;
2078 int test (int i, double x);
2079 struct s1 {int (*f) (int a);};
2080 struct s2 {int (*f) (double a);};
2081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2082 int argc;
2083 char **argv;
2085 main ()
2087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2089 return 0;
2091 _ACEOF
2092 # Don't try gcc -ansi; that turns off useful extensions and
2093 # breaks some systems' header files.
2094 # AIX -qlanglvl=ansi
2095 # Ultrix and OSF/1 -std1
2096 # HP-UX 10.20 and later -Ae
2097 # HP-UX older versions -Aa -D_HPUX_SOURCE
2098 # SVR4 -Xc -D__EXTENSIONS__
2099 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2101 CC="$ac_save_CC $ac_arg"
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 (eval $ac_try) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2114 ac_cv_prog_cc_stdc=$ac_arg
2115 break
2116 else
2117 echo "$as_me: failed program was:" >&5
2118 cat conftest.$ac_ext >&5
2120 rm -f conftest.$ac_objext
2121 done
2122 rm -f conftest.$ac_ext conftest.$ac_objext
2123 CC=$ac_save_CC
2127 case "x$ac_cv_prog_cc_stdc" in
2128 x|xno)
2129 echo "$as_me:$LINENO: result: none needed" >&5
2130 echo "${ECHO_T}none needed" >&6 ;;
2132 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2133 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2134 CC="$CC $ac_cv_prog_cc_stdc" ;;
2135 esac
2137 # Some people use a C++ compiler to compile C. Since we use `exit',
2138 # in C++ we need to declare it. In case someone uses the same compiler
2139 # for both compiling C and C++ we need to have the C++ compiler decide
2140 # the declaration of exit, since it's the most demanding environment.
2141 cat >conftest.$ac_ext <<_ACEOF
2142 #ifndef __cplusplus
2143 choke me
2144 #endif
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2149 ac_status=$?
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2158 for ac_declaration in \
2160 '#include <stdlib.h>' \
2161 'extern "C" void std::exit (int) throw (); using std::exit;' \
2162 'extern "C" void std::exit (int); using std::exit;' \
2163 'extern "C" void exit (int) throw ();' \
2164 'extern "C" void exit (int);' \
2165 'void exit (int);'
2167 cat >conftest.$ac_ext <<_ACEOF
2168 #line $LINENO "configure"
2169 #include "confdefs.h"
2170 #include <stdlib.h>
2171 $ac_declaration
2173 main ()
2175 exit (42);
2177 return 0;
2179 _ACEOF
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2193 else
2194 echo "$as_me: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 continue
2198 rm -f conftest.$ac_objext conftest.$ac_ext
2199 cat >conftest.$ac_ext <<_ACEOF
2200 #line $LINENO "configure"
2201 #include "confdefs.h"
2202 $ac_declaration
2204 main ()
2206 exit (42);
2208 return 0;
2210 _ACEOF
2211 rm -f conftest.$ac_objext
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); } &&
2217 { ac_try='test -s conftest.$ac_objext'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2223 break
2224 else
2225 echo "$as_me: failed program was:" >&5
2226 cat conftest.$ac_ext >&5
2228 rm -f conftest.$ac_objext conftest.$ac_ext
2229 done
2230 rm -f conftest*
2231 if test -n "$ac_declaration"; then
2232 echo '#ifdef __cplusplus' >>confdefs.h
2233 echo $ac_declaration >>confdefs.h
2234 echo '#endif' >>confdefs.h
2237 else
2238 echo "$as_me: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2241 rm -f conftest.$ac_objext conftest.$ac_ext
2242 ac_ext=c
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2248 ac_ext=c
2249 ac_cpp='$CPP $CPPFLAGS'
2250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2254 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2255 # On Suns, sometimes $CPP names a directory.
2256 if test -n "$CPP" && test -d "$CPP"; then
2257 CPP=
2259 if test -z "$CPP"; then
2260 if test "${ac_cv_prog_CPP+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 # Double quotes because CPP needs to be expanded
2264 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2266 ac_preproc_ok=false
2267 for ac_c_preproc_warn_flag in '' yes
2269 # Use a header file that comes with gcc, so configuring glibc
2270 # with a fresh cross-compiler works.
2271 # On the NeXT, cc -E runs the code through the compiler's parser,
2272 # not just through cpp. "Syntax error" is here to catch this case.
2273 cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2275 #include "confdefs.h"
2276 #include <assert.h>
2277 Syntax error
2278 _ACEOF
2279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2281 ac_status=$?
2282 grep -v '^ *+' conftest.er1 >conftest.err
2283 rm -f conftest.er1
2284 cat conftest.err >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } >/dev/null; then
2287 if test -s conftest.err; then
2288 ac_cpp_err=$ac_c_preproc_warn_flag
2289 else
2290 ac_cpp_err=
2292 else
2293 ac_cpp_err=yes
2295 if test -z "$ac_cpp_err"; then
2297 else
2298 echo "$as_me: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2300 # Broken: fails on valid input.
2301 continue
2303 rm -f conftest.err conftest.$ac_ext
2305 # OK, works on sane cases. Now check whether non-existent headers
2306 # can be detected and how.
2307 cat >conftest.$ac_ext <<_ACEOF
2308 #line $LINENO "configure"
2309 #include "confdefs.h"
2310 #include <ac_nonexistent.h>
2311 _ACEOF
2312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } >/dev/null; then
2320 if test -s conftest.err; then
2321 ac_cpp_err=$ac_c_preproc_warn_flag
2322 else
2323 ac_cpp_err=
2325 else
2326 ac_cpp_err=yes
2328 if test -z "$ac_cpp_err"; then
2329 # Broken: success on invalid input.
2330 continue
2331 else
2332 echo "$as_me: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2334 # Passes both tests.
2335 ac_preproc_ok=:
2336 break
2338 rm -f conftest.err conftest.$ac_ext
2340 done
2341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2342 rm -f conftest.err conftest.$ac_ext
2343 if $ac_preproc_ok; then
2344 break
2347 done
2348 ac_cv_prog_CPP=$CPP
2351 CPP=$ac_cv_prog_CPP
2352 else
2353 ac_cv_prog_CPP=$CPP
2355 echo "$as_me:$LINENO: result: $CPP" >&5
2356 echo "${ECHO_T}$CPP" >&6
2357 ac_preproc_ok=false
2358 for ac_c_preproc_warn_flag in '' yes
2360 # Use a header file that comes with gcc, so configuring glibc
2361 # with a fresh cross-compiler works.
2362 # On the NeXT, cc -E runs the code through the compiler's parser,
2363 # not just through cpp. "Syntax error" is here to catch this case.
2364 cat >conftest.$ac_ext <<_ACEOF
2365 #line $LINENO "configure"
2366 #include "confdefs.h"
2367 #include <assert.h>
2368 Syntax error
2369 _ACEOF
2370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2372 ac_status=$?
2373 grep -v '^ *+' conftest.er1 >conftest.err
2374 rm -f conftest.er1
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } >/dev/null; then
2378 if test -s conftest.err; then
2379 ac_cpp_err=$ac_c_preproc_warn_flag
2380 else
2381 ac_cpp_err=
2383 else
2384 ac_cpp_err=yes
2386 if test -z "$ac_cpp_err"; then
2388 else
2389 echo "$as_me: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2391 # Broken: fails on valid input.
2392 continue
2394 rm -f conftest.err conftest.$ac_ext
2396 # OK, works on sane cases. Now check whether non-existent headers
2397 # can be detected and how.
2398 cat >conftest.$ac_ext <<_ACEOF
2399 #line $LINENO "configure"
2400 #include "confdefs.h"
2401 #include <ac_nonexistent.h>
2402 _ACEOF
2403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2405 ac_status=$?
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } >/dev/null; then
2411 if test -s conftest.err; then
2412 ac_cpp_err=$ac_c_preproc_warn_flag
2413 else
2414 ac_cpp_err=
2416 else
2417 ac_cpp_err=yes
2419 if test -z "$ac_cpp_err"; then
2420 # Broken: success on invalid input.
2421 continue
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 # Passes both tests.
2426 ac_preproc_ok=:
2427 break
2429 rm -f conftest.err conftest.$ac_ext
2431 done
2432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2433 rm -f conftest.err conftest.$ac_ext
2434 if $ac_preproc_ok; then
2436 else
2437 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2438 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2439 { (exit 1); exit 1; }; }
2442 ac_ext=c
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2450 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2451 if test "${wine_cv_toolsdir+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454 if test -z "$with_wine_tools"; then
2455 if test "$cross_compiling" = "yes"; then
2456 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2457 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2458 { (exit 1); exit 1; }; }
2459 else
2460 wine_cv_toolsdir="\$(TOPOBJDIR)"
2462 elif test -d "$with_wine_tools/tools/winebuild"; then
2463 case $with_wine_tools in
2464 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2465 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2466 esac
2467 else
2468 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2469 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2470 { (exit 1); exit 1; }; }
2473 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2474 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2475 TOOLSDIR=$wine_cv_toolsdir
2480 echo "$as_me:$LINENO: checking for X" >&5
2481 echo $ECHO_N "checking for X... $ECHO_C" >&6
2484 # Check whether --with-x or --without-x was given.
2485 if test "${with_x+set}" = set; then
2486 withval="$with_x"
2489 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2490 if test "x$with_x" = xno; then
2491 # The user explicitly disabled X.
2492 have_x=disabled
2493 else
2494 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2495 # Both variables are already set.
2496 have_x=yes
2497 else
2498 if test "${ac_cv_have_x+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 # One or both of the vars are not set, and there is no cached value.
2502 ac_x_includes=no ac_x_libraries=no
2503 rm -fr conftest.dir
2504 if mkdir conftest.dir; then
2505 cd conftest.dir
2506 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2507 cat >Imakefile <<'_ACEOF'
2508 acfindx:
2509 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2510 _ACEOF
2511 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2512 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2513 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2514 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2515 for ac_extension in a so sl; do
2516 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2517 test -f $ac_im_libdir/libX11.$ac_extension; then
2518 ac_im_usrlibdir=$ac_im_libdir; break
2520 done
2521 # Screen out bogus values from the imake configuration. They are
2522 # bogus both because they are the default anyway, and because
2523 # using them would break gcc on systems where it needs fixed includes.
2524 case $ac_im_incroot in
2525 /usr/include) ;;
2526 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2527 esac
2528 case $ac_im_usrlibdir in
2529 /usr/lib | /lib) ;;
2530 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2531 esac
2533 cd ..
2534 rm -fr conftest.dir
2537 # Standard set of common directories for X headers.
2538 # Check X11 before X11Rn because it is often a symlink to the current release.
2539 ac_x_header_dirs='
2540 /usr/X11/include
2541 /usr/X11R6/include
2542 /usr/X11R5/include
2543 /usr/X11R4/include
2545 /usr/include/X11
2546 /usr/include/X11R6
2547 /usr/include/X11R5
2548 /usr/include/X11R4
2550 /usr/local/X11/include
2551 /usr/local/X11R6/include
2552 /usr/local/X11R5/include
2553 /usr/local/X11R4/include
2555 /usr/local/include/X11
2556 /usr/local/include/X11R6
2557 /usr/local/include/X11R5
2558 /usr/local/include/X11R4
2560 /usr/X386/include
2561 /usr/x386/include
2562 /usr/XFree86/include/X11
2564 /usr/include
2565 /usr/local/include
2566 /usr/unsupported/include
2567 /usr/athena/include
2568 /usr/local/x11r5/include
2569 /usr/lpp/Xamples/include
2571 /usr/openwin/include
2572 /usr/openwin/share/include'
2574 if test "$ac_x_includes" = no; then
2575 # Guess where to find include files, by looking for Intrinsic.h.
2576 # First, try using that file with no special directory specified.
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line $LINENO "configure"
2579 #include "confdefs.h"
2580 #include <X11/Intrinsic.h>
2581 _ACEOF
2582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2584 ac_status=$?
2585 grep -v '^ *+' conftest.er1 >conftest.err
2586 rm -f conftest.er1
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } >/dev/null; then
2590 if test -s conftest.err; then
2591 ac_cpp_err=$ac_c_preproc_warn_flag
2592 else
2593 ac_cpp_err=
2595 else
2596 ac_cpp_err=yes
2598 if test -z "$ac_cpp_err"; then
2599 # We can compile using X headers with no special include directory.
2600 ac_x_includes=
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2604 for ac_dir in $ac_x_header_dirs; do
2605 if test -r "$ac_dir/X11/Intrinsic.h"; then
2606 ac_x_includes=$ac_dir
2607 break
2609 done
2611 rm -f conftest.err conftest.$ac_ext
2612 fi # $ac_x_includes = no
2614 if test "$ac_x_libraries" = no; then
2615 # Check for the libraries.
2616 # See if we find them without any special options.
2617 # Don't add to $LIBS permanently.
2618 ac_save_LIBS=$LIBS
2619 LIBS="-lXt $LIBS"
2620 cat >conftest.$ac_ext <<_ACEOF
2621 #line $LINENO "configure"
2622 #include "confdefs.h"
2623 #include <X11/Intrinsic.h>
2625 main ()
2627 XtMalloc (0)
2629 return 0;
2631 _ACEOF
2632 rm -f conftest.$ac_objext conftest$ac_exeext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2634 (eval $ac_link) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -s conftest$ac_exeext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 LIBS=$ac_save_LIBS
2645 # We can link X programs with no special library path.
2646 ac_x_libraries=
2647 else
2648 echo "$as_me: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2650 LIBS=$ac_save_LIBS
2651 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2653 # Don't even attempt the hair of trying to link an X program!
2654 for ac_extension in a so sl; do
2655 if test -r $ac_dir/libXt.$ac_extension; then
2656 ac_x_libraries=$ac_dir
2657 break 2
2659 done
2660 done
2662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2663 fi # $ac_x_libraries = no
2665 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2666 # Didn't find X anywhere. Cache the known absence of X.
2667 ac_cv_have_x="have_x=no"
2668 else
2669 # Record where we found X for the cache.
2670 ac_cv_have_x="have_x=yes \
2671 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2676 eval "$ac_cv_have_x"
2677 fi # $with_x != no
2679 if test "$have_x" != yes; then
2680 echo "$as_me:$LINENO: result: $have_x" >&5
2681 echo "${ECHO_T}$have_x" >&6
2682 no_x=yes
2683 else
2684 # If each of the values was on the command line, it overrides each guess.
2685 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2686 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2687 # Update the cache value to reflect the command line values.
2688 ac_cv_have_x="have_x=yes \
2689 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2690 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2691 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2694 if test "$no_x" = yes; then
2695 # Not all programs may use this symbol, but it does not hurt to define it.
2697 cat >>confdefs.h <<\_ACEOF
2698 #define X_DISPLAY_MISSING 1
2699 _ACEOF
2701 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2702 else
2703 if test -n "$x_includes"; then
2704 X_CFLAGS="$X_CFLAGS -I$x_includes"
2707 # It would also be nice to do this for all -L options, not just this one.
2708 if test -n "$x_libraries"; then
2709 X_LIBS="$X_LIBS -L$x_libraries"
2710 # For Solaris; some versions of Sun CC require a space after -R and
2711 # others require no space. Words are not sufficient . . . .
2712 case `(uname -sr) 2>/dev/null` in
2713 "SunOS 5"*)
2714 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2715 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2716 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2717 cat >conftest.$ac_ext <<_ACEOF
2718 #line $LINENO "configure"
2719 #include "confdefs.h"
2722 main ()
2726 return 0;
2728 _ACEOF
2729 rm -f conftest.$ac_objext conftest$ac_exeext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2731 (eval $ac_link) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -s conftest$ac_exeext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 ac_R_nospace=yes
2742 else
2743 echo "$as_me: failed program was:" >&5
2744 cat conftest.$ac_ext >&5
2745 ac_R_nospace=no
2747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2748 if test $ac_R_nospace = yes; then
2749 echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6
2751 X_LIBS="$X_LIBS -R$x_libraries"
2752 else
2753 LIBS="$ac_xsave_LIBS -R $x_libraries"
2754 cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2756 #include "confdefs.h"
2759 main ()
2763 return 0;
2765 _ACEOF
2766 rm -f conftest.$ac_objext conftest$ac_exeext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2768 (eval $ac_link) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -s conftest$ac_exeext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 ac_R_space=yes
2779 else
2780 echo "$as_me: failed program was:" >&5
2781 cat conftest.$ac_ext >&5
2782 ac_R_space=no
2784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2785 if test $ac_R_space = yes; then
2786 echo "$as_me:$LINENO: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6
2788 X_LIBS="$X_LIBS -R $x_libraries"
2789 else
2790 echo "$as_me:$LINENO: result: neither works" >&5
2791 echo "${ECHO_T}neither works" >&6
2794 LIBS=$ac_xsave_LIBS
2795 esac
2798 # Check for system-dependent libraries X programs must link with.
2799 # Do this before checking for the system-independent R6 libraries
2800 # (-lICE), since we may need -lsocket or whatever for X linking.
2802 if test "$ISC" = yes; then
2803 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2804 else
2805 # Martyn Johnson says this is needed for Ultrix, if the X
2806 # libraries were built with DECnet support. And Karl Berry says
2807 # the Alpha needs dnet_stub (dnet does not exist).
2808 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2809 cat >conftest.$ac_ext <<_ACEOF
2810 #line $LINENO "configure"
2811 #include "confdefs.h"
2813 /* Override any gcc2 internal prototype to avoid an error. */
2814 #ifdef __cplusplus
2815 extern "C"
2816 #endif
2817 /* We use char because int might match the return type of a gcc2
2818 builtin and then its argument prototype would still apply. */
2819 char XOpenDisplay ();
2821 main ()
2823 XOpenDisplay ();
2825 return 0;
2827 _ACEOF
2828 rm -f conftest.$ac_objext conftest$ac_exeext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2830 (eval $ac_link) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -s conftest$ac_exeext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2844 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2845 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2846 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 ac_check_lib_save_LIBS=$LIBS
2850 LIBS="-ldnet $LIBS"
2851 cat >conftest.$ac_ext <<_ACEOF
2852 #line $LINENO "configure"
2853 #include "confdefs.h"
2855 /* Override any gcc2 internal prototype to avoid an error. */
2856 #ifdef __cplusplus
2857 extern "C"
2858 #endif
2859 /* We use char because int might match the return type of a gcc2
2860 builtin and then its argument prototype would still apply. */
2861 char dnet_ntoa ();
2863 main ()
2865 dnet_ntoa ();
2867 return 0;
2869 _ACEOF
2870 rm -f conftest.$ac_objext conftest$ac_exeext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2872 (eval $ac_link) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -s conftest$ac_exeext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 ac_cv_lib_dnet_dnet_ntoa=yes
2883 else
2884 echo "$as_me: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2886 ac_cv_lib_dnet_dnet_ntoa=no
2888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2889 LIBS=$ac_check_lib_save_LIBS
2891 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2892 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2893 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2894 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2897 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2898 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2899 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2900 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 ac_check_lib_save_LIBS=$LIBS
2904 LIBS="-ldnet_stub $LIBS"
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 #include "confdefs.h"
2909 /* Override any gcc2 internal prototype to avoid an error. */
2910 #ifdef __cplusplus
2911 extern "C"
2912 #endif
2913 /* We use char because int might match the return type of a gcc2
2914 builtin and then its argument prototype would still apply. */
2915 char dnet_ntoa ();
2917 main ()
2919 dnet_ntoa ();
2921 return 0;
2923 _ACEOF
2924 rm -f conftest.$ac_objext conftest$ac_exeext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926 (eval $ac_link) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -s conftest$ac_exeext'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2936 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2937 else
2938 echo "$as_me: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 ac_cv_lib_dnet_stub_dnet_ntoa=no
2942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2943 LIBS=$ac_check_lib_save_LIBS
2945 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2946 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2947 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2954 LIBS="$ac_xsave_LIBS"
2956 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2957 # to get the SysV transport functions.
2958 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2959 # needs -lnsl.
2960 # The nsl library prevents programs from opening the X display
2961 # on Irix 5.2, according to T.E. Dickey.
2962 # The functions gethostbyname, getservbyname, and inet_addr are
2963 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2964 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2965 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2966 if test "${ac_cv_func_gethostbyname+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 cat >conftest.$ac_ext <<_ACEOF
2970 #line $LINENO "configure"
2971 #include "confdefs.h"
2972 /* System header to define __stub macros and hopefully few prototypes,
2973 which can conflict with char gethostbyname (); below. */
2974 #include <assert.h>
2975 /* Override any gcc2 internal prototype to avoid an error. */
2976 #ifdef __cplusplus
2977 extern "C"
2978 #endif
2979 /* We use char because int might match the return type of a gcc2
2980 builtin and then its argument prototype would still apply. */
2981 char gethostbyname ();
2982 char (*f) ();
2985 main ()
2987 /* The GNU C library defines this for functions which it implements
2988 to always fail with ENOSYS. Some functions are actually named
2989 something starting with __ and the normal name is an alias. */
2990 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2991 choke me
2992 #else
2993 f = gethostbyname;
2994 #endif
2997 return 0;
2999 _ACEOF
3000 rm -f conftest.$ac_objext conftest$ac_exeext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3002 (eval $ac_link) 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest$ac_exeext'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 (eval $ac_try) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 ac_cv_func_gethostbyname=yes
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 ac_cv_func_gethostbyname=no
3018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3020 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3021 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3023 if test $ac_cv_func_gethostbyname = no; then
3024 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3025 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3026 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029 ac_check_lib_save_LIBS=$LIBS
3030 LIBS="-lnsl $LIBS"
3031 cat >conftest.$ac_ext <<_ACEOF
3032 #line $LINENO "configure"
3033 #include "confdefs.h"
3035 /* Override any gcc2 internal prototype to avoid an error. */
3036 #ifdef __cplusplus
3037 extern "C"
3038 #endif
3039 /* We use char because int might match the return type of a gcc2
3040 builtin and then its argument prototype would still apply. */
3041 char gethostbyname ();
3043 main ()
3045 gethostbyname ();
3047 return 0;
3049 _ACEOF
3050 rm -f conftest.$ac_objext conftest$ac_exeext
3051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3052 (eval $ac_link) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -s conftest$ac_exeext'
3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 (eval $ac_try) 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; }; then
3062 ac_cv_lib_nsl_gethostbyname=yes
3063 else
3064 echo "$as_me: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3066 ac_cv_lib_nsl_gethostbyname=no
3068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3069 LIBS=$ac_check_lib_save_LIBS
3071 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3072 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3073 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3074 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3077 if test $ac_cv_lib_nsl_gethostbyname = no; then
3078 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3079 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3080 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 ac_check_lib_save_LIBS=$LIBS
3084 LIBS="-lbsd $LIBS"
3085 cat >conftest.$ac_ext <<_ACEOF
3086 #line $LINENO "configure"
3087 #include "confdefs.h"
3089 /* Override any gcc2 internal prototype to avoid an error. */
3090 #ifdef __cplusplus
3091 extern "C"
3092 #endif
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3095 char gethostbyname ();
3097 main ()
3099 gethostbyname ();
3101 return 0;
3103 _ACEOF
3104 rm -f conftest.$ac_objext conftest$ac_exeext
3105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3106 (eval $ac_link) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -s conftest$ac_exeext'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112 (eval $ac_try) 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 ac_cv_lib_bsd_gethostbyname=yes
3117 else
3118 echo "$as_me: failed program was:" >&5
3119 cat conftest.$ac_ext >&5
3120 ac_cv_lib_bsd_gethostbyname=no
3122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3123 LIBS=$ac_check_lib_save_LIBS
3125 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3126 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3127 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3128 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3134 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3135 # socket/setsockopt and other routines are undefined under SCO ODT
3136 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3137 # on later versions), says Simon Leinen: it contains gethostby*
3138 # variants that don't use the name server (or something). -lsocket
3139 # must be given before -lnsl if both are needed. We assume that
3140 # if connect needs -lnsl, so does gethostbyname.
3141 echo "$as_me:$LINENO: checking for connect" >&5
3142 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3143 if test "${ac_cv_func_connect+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 cat >conftest.$ac_ext <<_ACEOF
3147 #line $LINENO "configure"
3148 #include "confdefs.h"
3149 /* System header to define __stub macros and hopefully few prototypes,
3150 which can conflict with char connect (); below. */
3151 #include <assert.h>
3152 /* Override any gcc2 internal prototype to avoid an error. */
3153 #ifdef __cplusplus
3154 extern "C"
3155 #endif
3156 /* We use char because int might match the return type of a gcc2
3157 builtin and then its argument prototype would still apply. */
3158 char connect ();
3159 char (*f) ();
3162 main ()
3164 /* The GNU C library defines this for functions which it implements
3165 to always fail with ENOSYS. Some functions are actually named
3166 something starting with __ and the normal name is an alias. */
3167 #if defined (__stub_connect) || defined (__stub___connect)
3168 choke me
3169 #else
3170 f = connect;
3171 #endif
3174 return 0;
3176 _ACEOF
3177 rm -f conftest.$ac_objext conftest$ac_exeext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179 (eval $ac_link) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } &&
3183 { ac_try='test -s conftest$ac_exeext'
3184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 (eval $ac_try) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 ac_cv_func_connect=yes
3190 else
3191 echo "$as_me: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3193 ac_cv_func_connect=no
3195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3197 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3198 echo "${ECHO_T}$ac_cv_func_connect" >&6
3200 if test $ac_cv_func_connect = no; then
3201 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3202 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3203 if test "${ac_cv_lib_socket_connect+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 ac_check_lib_save_LIBS=$LIBS
3207 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3208 cat >conftest.$ac_ext <<_ACEOF
3209 #line $LINENO "configure"
3210 #include "confdefs.h"
3212 /* Override any gcc2 internal prototype to avoid an error. */
3213 #ifdef __cplusplus
3214 extern "C"
3215 #endif
3216 /* We use char because int might match the return type of a gcc2
3217 builtin and then its argument prototype would still apply. */
3218 char connect ();
3220 main ()
3222 connect ();
3224 return 0;
3226 _ACEOF
3227 rm -f conftest.$ac_objext conftest$ac_exeext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3229 (eval $ac_link) 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -s conftest$ac_exeext'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_lib_socket_connect=yes
3240 else
3241 echo "$as_me: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 ac_cv_lib_socket_connect=no
3245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3246 LIBS=$ac_check_lib_save_LIBS
3248 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3249 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3250 if test $ac_cv_lib_socket_connect = yes; then
3251 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3256 # Guillermo Gomez says -lposix is necessary on A/UX.
3257 echo "$as_me:$LINENO: checking for remove" >&5
3258 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3259 if test "${ac_cv_func_remove+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 cat >conftest.$ac_ext <<_ACEOF
3263 #line $LINENO "configure"
3264 #include "confdefs.h"
3265 /* System header to define __stub macros and hopefully few prototypes,
3266 which can conflict with char remove (); below. */
3267 #include <assert.h>
3268 /* Override any gcc2 internal prototype to avoid an error. */
3269 #ifdef __cplusplus
3270 extern "C"
3271 #endif
3272 /* We use char because int might match the return type of a gcc2
3273 builtin and then its argument prototype would still apply. */
3274 char remove ();
3275 char (*f) ();
3278 main ()
3280 /* The GNU C library defines this for functions which it implements
3281 to always fail with ENOSYS. Some functions are actually named
3282 something starting with __ and the normal name is an alias. */
3283 #if defined (__stub_remove) || defined (__stub___remove)
3284 choke me
3285 #else
3286 f = remove;
3287 #endif
3290 return 0;
3292 _ACEOF
3293 rm -f conftest.$ac_objext conftest$ac_exeext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3295 (eval $ac_link) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -s conftest$ac_exeext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_func_remove=yes
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 ac_cv_func_remove=no
3311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3313 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3314 echo "${ECHO_T}$ac_cv_func_remove" >&6
3316 if test $ac_cv_func_remove = no; then
3317 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3318 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3319 if test "${ac_cv_lib_posix_remove+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 ac_check_lib_save_LIBS=$LIBS
3323 LIBS="-lposix $LIBS"
3324 cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3326 #include "confdefs.h"
3328 /* Override any gcc2 internal prototype to avoid an error. */
3329 #ifdef __cplusplus
3330 extern "C"
3331 #endif
3332 /* We use char because int might match the return type of a gcc2
3333 builtin and then its argument prototype would still apply. */
3334 char remove ();
3336 main ()
3338 remove ();
3340 return 0;
3342 _ACEOF
3343 rm -f conftest.$ac_objext conftest$ac_exeext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3345 (eval $ac_link) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -s conftest$ac_exeext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_lib_posix_remove=yes
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3359 ac_cv_lib_posix_remove=no
3361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3362 LIBS=$ac_check_lib_save_LIBS
3364 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3365 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3366 if test $ac_cv_lib_posix_remove = yes; then
3367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3372 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3373 echo "$as_me:$LINENO: checking for shmat" >&5
3374 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3375 if test "${ac_cv_func_shmat+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 cat >conftest.$ac_ext <<_ACEOF
3379 #line $LINENO "configure"
3380 #include "confdefs.h"
3381 /* System header to define __stub macros and hopefully few prototypes,
3382 which can conflict with char shmat (); below. */
3383 #include <assert.h>
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 #ifdef __cplusplus
3386 extern "C"
3387 #endif
3388 /* We use char because int might match the return type of a gcc2
3389 builtin and then its argument prototype would still apply. */
3390 char shmat ();
3391 char (*f) ();
3394 main ()
3396 /* The GNU C library defines this for functions which it implements
3397 to always fail with ENOSYS. Some functions are actually named
3398 something starting with __ and the normal name is an alias. */
3399 #if defined (__stub_shmat) || defined (__stub___shmat)
3400 choke me
3401 #else
3402 f = shmat;
3403 #endif
3406 return 0;
3408 _ACEOF
3409 rm -f conftest.$ac_objext conftest$ac_exeext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3411 (eval $ac_link) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -s conftest$ac_exeext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_cv_func_shmat=yes
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3425 ac_cv_func_shmat=no
3427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3429 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3430 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3432 if test $ac_cv_func_shmat = no; then
3433 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3434 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3435 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 ac_check_lib_save_LIBS=$LIBS
3439 LIBS="-lipc $LIBS"
3440 cat >conftest.$ac_ext <<_ACEOF
3441 #line $LINENO "configure"
3442 #include "confdefs.h"
3444 /* Override any gcc2 internal prototype to avoid an error. */
3445 #ifdef __cplusplus
3446 extern "C"
3447 #endif
3448 /* We use char because int might match the return type of a gcc2
3449 builtin and then its argument prototype would still apply. */
3450 char shmat ();
3452 main ()
3454 shmat ();
3456 return 0;
3458 _ACEOF
3459 rm -f conftest.$ac_objext conftest$ac_exeext
3460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3461 (eval $ac_link) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } &&
3465 { ac_try='test -s conftest$ac_exeext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 (eval $ac_try) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 ac_cv_lib_ipc_shmat=yes
3472 else
3473 echo "$as_me: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3475 ac_cv_lib_ipc_shmat=no
3477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3478 LIBS=$ac_check_lib_save_LIBS
3480 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3481 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3482 if test $ac_cv_lib_ipc_shmat = yes; then
3483 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3489 # Check for libraries that X11R6 Xt/Xaw programs need.
3490 ac_save_LDFLAGS=$LDFLAGS
3491 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3492 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3493 # check for ICE first), but we must link in the order -lSM -lICE or
3494 # we get undefined symbols. So assume we have SM if we have ICE.
3495 # These have to be linked with before -lX11, unlike the other
3496 # libraries we check for below, so use a different variable.
3497 # John Interrante, Karl Berry
3498 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3499 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3500 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 ac_check_lib_save_LIBS=$LIBS
3504 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3505 cat >conftest.$ac_ext <<_ACEOF
3506 #line $LINENO "configure"
3507 #include "confdefs.h"
3509 /* Override any gcc2 internal prototype to avoid an error. */
3510 #ifdef __cplusplus
3511 extern "C"
3512 #endif
3513 /* We use char because int might match the return type of a gcc2
3514 builtin and then its argument prototype would still apply. */
3515 char IceConnectionNumber ();
3517 main ()
3519 IceConnectionNumber ();
3521 return 0;
3523 _ACEOF
3524 rm -f conftest.$ac_objext conftest$ac_exeext
3525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3526 (eval $ac_link) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -s conftest$ac_exeext'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; }; then
3536 ac_cv_lib_ICE_IceConnectionNumber=yes
3537 else
3538 echo "$as_me: failed program was:" >&5
3539 cat conftest.$ac_ext >&5
3540 ac_cv_lib_ICE_IceConnectionNumber=no
3542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3543 LIBS=$ac_check_lib_save_LIBS
3545 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3546 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3547 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3548 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3551 LDFLAGS=$ac_save_LDFLAGS
3555 for ac_prog in 'bison -y' byacc
3557 # Extract the first word of "$ac_prog", so it can be a program name with args.
3558 set dummy $ac_prog; ac_word=$2
3559 echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561 if test "${ac_cv_prog_YACC+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 if test -n "$YACC"; then
3565 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_YACC="$ac_prog"
3575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3578 done
3579 done
3583 YACC=$ac_cv_prog_YACC
3584 if test -n "$YACC"; then
3585 echo "$as_me:$LINENO: result: $YACC" >&5
3586 echo "${ECHO_T}$YACC" >&6
3587 else
3588 echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3592 test -n "$YACC" && break
3593 done
3594 test -n "$YACC" || YACC="yacc"
3596 for ac_prog in flex lex
3598 # Extract the first word of "$ac_prog", so it can be a program name with args.
3599 set dummy $ac_prog; ac_word=$2
3600 echo "$as_me:$LINENO: checking for $ac_word" >&5
3601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3602 if test "${ac_cv_prog_LEX+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605 if test -n "$LEX"; then
3606 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_LEX="$ac_prog"
3616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3619 done
3620 done
3624 LEX=$ac_cv_prog_LEX
3625 if test -n "$LEX"; then
3626 echo "$as_me:$LINENO: result: $LEX" >&5
3627 echo "${ECHO_T}$LEX" >&6
3628 else
3629 echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6
3633 test -n "$LEX" && break
3634 done
3635 test -n "$LEX" || LEX=":"
3637 if test -z "$LEXLIB"
3638 then
3639 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3640 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3641 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 ac_check_lib_save_LIBS=$LIBS
3645 LIBS="-lfl $LIBS"
3646 cat >conftest.$ac_ext <<_ACEOF
3647 #line $LINENO "configure"
3648 #include "confdefs.h"
3650 /* Override any gcc2 internal prototype to avoid an error. */
3651 #ifdef __cplusplus
3652 extern "C"
3653 #endif
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3656 char yywrap ();
3658 main ()
3660 yywrap ();
3662 return 0;
3664 _ACEOF
3665 rm -f conftest.$ac_objext conftest$ac_exeext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3667 (eval $ac_link) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try='test -s conftest$ac_exeext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_cv_lib_fl_yywrap=yes
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3681 ac_cv_lib_fl_yywrap=no
3683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3684 LIBS=$ac_check_lib_save_LIBS
3686 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3687 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3688 if test $ac_cv_lib_fl_yywrap = yes; then
3689 LEXLIB="-lfl"
3690 else
3691 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3692 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3693 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 ac_check_lib_save_LIBS=$LIBS
3697 LIBS="-ll $LIBS"
3698 cat >conftest.$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3700 #include "confdefs.h"
3702 /* Override any gcc2 internal prototype to avoid an error. */
3703 #ifdef __cplusplus
3704 extern "C"
3705 #endif
3706 /* We use char because int might match the return type of a gcc2
3707 builtin and then its argument prototype would still apply. */
3708 char yywrap ();
3710 main ()
3712 yywrap ();
3714 return 0;
3716 _ACEOF
3717 rm -f conftest.$ac_objext conftest$ac_exeext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3719 (eval $ac_link) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -s conftest$ac_exeext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 (eval $ac_try) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_cv_lib_l_yywrap=yes
3730 else
3731 echo "$as_me: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3733 ac_cv_lib_l_yywrap=no
3735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3736 LIBS=$ac_check_lib_save_LIBS
3738 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3739 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3740 if test $ac_cv_lib_l_yywrap = yes; then
3741 LEXLIB="-ll"
3748 if test "x$LEX" != "x:"; then
3749 echo "$as_me:$LINENO: checking lex output file root" >&5
3750 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3751 if test "${ac_cv_prog_lex_root+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754 # The minimal lex program is just a single line: %%. But some broken lexes
3755 # (Solaris, I think it was) want two %% lines, so accommodate them.
3756 cat >conftest.l <<_ACEOF
3759 _ACEOF
3760 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3761 (eval $LEX conftest.l) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }
3765 if test -f lex.yy.c; then
3766 ac_cv_prog_lex_root=lex.yy
3767 elif test -f lexyy.c; then
3768 ac_cv_prog_lex_root=lexyy
3769 else
3770 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3771 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3772 { (exit 1); exit 1; }; }
3775 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3776 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3777 rm -f conftest.l
3778 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3780 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3781 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3782 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785 # POSIX says lex can declare yytext either as a pointer or an array; the
3786 # default is implementation-dependent. Figure out which it is, since
3787 # not all implementations provide the %pointer and %array declarations.
3788 ac_cv_prog_lex_yytext_pointer=no
3789 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3790 ac_save_LIBS=$LIBS
3791 LIBS="$LIBS $LEXLIB"
3792 cat >conftest.$ac_ext <<_ACEOF
3793 `cat $LEX_OUTPUT_ROOT.c`
3794 _ACEOF
3795 rm -f conftest.$ac_objext conftest$ac_exeext
3796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3797 (eval $ac_link) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -s conftest$ac_exeext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_cv_prog_lex_yytext_pointer=yes
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3813 LIBS=$ac_save_LIBS
3814 rm -f "${LEX_OUTPUT_ROOT}.c"
3817 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3818 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3819 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3821 cat >>confdefs.h <<\_ACEOF
3822 #define YYTEXT_POINTER 1
3823 _ACEOF
3829 for ac_prog in $YACC bison yacc
3831 # Extract the first word of "$ac_prog", so it can be a program name with args.
3832 set dummy $ac_prog; ac_word=$2
3833 echo "$as_me:$LINENO: checking for $ac_word" >&5
3834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3835 if test "${ac_cv_prog_XYACC+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838 if test -n "$XYACC"; then
3839 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_XYACC="$ac_prog"
3849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3852 done
3853 done
3857 XYACC=$ac_cv_prog_XYACC
3858 if test -n "$XYACC"; then
3859 echo "$as_me:$LINENO: result: $XYACC" >&5
3860 echo "${ECHO_T}$XYACC" >&6
3861 else
3862 echo "$as_me:$LINENO: result: no" >&5
3863 echo "${ECHO_T}no" >&6
3866 test -n "$XYACC" && break
3867 done
3868 test -n "$XYACC" || XYACC="none"
3870 if test "$XYACC" = "none"
3871 then
3872 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3873 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3874 { (exit 1); exit 1; }; }
3876 for ac_prog in $LEX flex lex
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 echo "$as_me:$LINENO: checking for $ac_word" >&5
3881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882 if test "${ac_cv_prog_XLEX+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885 if test -n "$XLEX"; then
3886 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_XLEX="$ac_prog"
3896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3899 done
3900 done
3904 XLEX=$ac_cv_prog_XLEX
3905 if test -n "$XLEX"; then
3906 echo "$as_me:$LINENO: result: $XLEX" >&5
3907 echo "${ECHO_T}$XLEX" >&6
3908 else
3909 echo "$as_me:$LINENO: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3913 test -n "$XLEX" && break
3914 done
3915 test -n "$XLEX" || XLEX="none"
3917 if test "$XLEX" = "none"
3918 then
3919 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3920 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3921 { (exit 1); exit 1; }; }
3924 if test -n "$ac_tool_prefix"; then
3925 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3926 set dummy ${ac_tool_prefix}ld; ac_word=$2
3927 echo "$as_me:$LINENO: checking for $ac_word" >&5
3928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929 if test "${ac_cv_prog_LD+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932 if test -n "$LD"; then
3933 ac_cv_prog_LD="$LD" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_LD="${ac_tool_prefix}ld"
3943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3946 done
3947 done
3951 LD=$ac_cv_prog_LD
3952 if test -n "$LD"; then
3953 echo "$as_me:$LINENO: result: $LD" >&5
3954 echo "${ECHO_T}$LD" >&6
3955 else
3956 echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6
3961 if test -z "$ac_cv_prog_LD"; then
3962 ac_ct_LD=$LD
3963 # Extract the first word of "ld", so it can be a program name with args.
3964 set dummy ld; ac_word=$2
3965 echo "$as_me:$LINENO: checking for $ac_word" >&5
3966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970 if test -n "$ac_ct_LD"; then
3971 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_ac_ct_LD="ld"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3984 done
3985 done
3987 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3990 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3991 if test -n "$ac_ct_LD"; then
3992 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3993 echo "${ECHO_T}$ac_ct_LD" >&6
3994 else
3995 echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3999 LD=$ac_ct_LD
4000 else
4001 LD="$ac_cv_prog_LD"
4004 if test -n "$ac_tool_prefix"; then
4005 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4006 set dummy ${ac_tool_prefix}ar; ac_word=$2
4007 echo "$as_me:$LINENO: checking for $ac_word" >&5
4008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4009 if test "${ac_cv_prog_AR+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012 if test -n "$AR"; then
4013 ac_cv_prog_AR="$AR" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022 ac_cv_prog_AR="${ac_tool_prefix}ar"
4023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 break 2
4026 done
4027 done
4031 AR=$ac_cv_prog_AR
4032 if test -n "$AR"; then
4033 echo "$as_me:$LINENO: result: $AR" >&5
4034 echo "${ECHO_T}$AR" >&6
4035 else
4036 echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4041 if test -z "$ac_cv_prog_AR"; then
4042 ac_ct_AR=$AR
4043 # Extract the first word of "ar", so it can be a program name with args.
4044 set dummy ar; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 if test -n "$ac_ct_AR"; then
4051 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_ac_ct_AR="ar"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4064 done
4065 done
4067 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4070 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4071 if test -n "$ac_ct_AR"; then
4072 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4073 echo "${ECHO_T}$ac_ct_AR" >&6
4074 else
4075 echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4079 AR=$ac_ct_AR
4080 else
4081 AR="$ac_cv_prog_AR"
4084 if test -n "$ac_tool_prefix"; then
4085 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4087 echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089 if test "${ac_cv_prog_RANLIB+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092 if test -n "$RANLIB"; then
4093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 break 2
4106 done
4107 done
4111 RANLIB=$ac_cv_prog_RANLIB
4112 if test -n "$RANLIB"; then
4113 echo "$as_me:$LINENO: result: $RANLIB" >&5
4114 echo "${ECHO_T}$RANLIB" >&6
4115 else
4116 echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4121 if test -z "$ac_cv_prog_RANLIB"; then
4122 ac_ct_RANLIB=$RANLIB
4123 # Extract the first word of "ranlib", so it can be a program name with args.
4124 set dummy ranlib; ac_word=$2
4125 echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 if test -n "$ac_ct_RANLIB"; then
4131 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4132 else
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140 ac_cv_prog_ac_ct_RANLIB="ranlib"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4144 done
4145 done
4147 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4150 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4151 if test -n "$ac_ct_RANLIB"; then
4152 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4153 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4154 else
4155 echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6
4159 RANLIB=$ac_ct_RANLIB
4160 else
4161 RANLIB="$ac_cv_prog_RANLIB"
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4166 set dummy ${ac_tool_prefix}strip; ac_word=$2
4167 echo "$as_me:$LINENO: checking for $ac_word" >&5
4168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4169 if test "${ac_cv_prog_STRIP+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 if test -n "$STRIP"; then
4173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4186 done
4187 done
4191 STRIP=$ac_cv_prog_STRIP
4192 if test -n "$STRIP"; then
4193 echo "$as_me:$LINENO: result: $STRIP" >&5
4194 echo "${ECHO_T}$STRIP" >&6
4195 else
4196 echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6
4201 if test -z "$ac_cv_prog_STRIP"; then
4202 ac_ct_STRIP=$STRIP
4203 # Extract the first word of "strip", so it can be a program name with args.
4204 set dummy strip; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 if test -n "$ac_ct_STRIP"; then
4211 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_ac_ct_STRIP="strip"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4224 done
4225 done
4227 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4230 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4231 if test -n "$ac_ct_STRIP"; then
4232 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4233 echo "${ECHO_T}$ac_ct_STRIP" >&6
4234 else
4235 echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6
4239 STRIP=$ac_ct_STRIP
4240 else
4241 STRIP="$ac_cv_prog_STRIP"
4244 if test -n "$ac_tool_prefix"; then
4245 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4246 set dummy ${ac_tool_prefix}windres; ac_word=$2
4247 echo "$as_me:$LINENO: checking for $ac_word" >&5
4248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4249 if test "${ac_cv_prog_WINDRES+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252 if test -n "$WINDRES"; then
4253 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4266 done
4267 done
4271 WINDRES=$ac_cv_prog_WINDRES
4272 if test -n "$WINDRES"; then
4273 echo "$as_me:$LINENO: result: $WINDRES" >&5
4274 echo "${ECHO_T}$WINDRES" >&6
4275 else
4276 echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4281 if test -z "$ac_cv_prog_WINDRES"; then
4282 ac_ct_WINDRES=$WINDRES
4283 # Extract the first word of "windres", so it can be a program name with args.
4284 set dummy windres; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 if test -n "$ac_ct_WINDRES"; then
4291 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_ac_ct_WINDRES="windres"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4307 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4310 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4311 if test -n "$ac_ct_WINDRES"; then
4312 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4313 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4314 else
4315 echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4319 WINDRES=$ac_ct_WINDRES
4320 else
4321 WINDRES="$ac_cv_prog_WINDRES"
4324 # Find a good install program. We prefer a C program (faster),
4325 # so one script is as good as another. But avoid the broken or
4326 # incompatible versions:
4327 # SysV /etc/install, /usr/sbin/install
4328 # SunOS /usr/etc/install
4329 # IRIX /sbin/install
4330 # AIX /bin/install
4331 # AmigaOS /C/install, which installs bootblocks on floppy discs
4332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4335 # ./install, which can be erroneously created by make from ./install.sh.
4336 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4337 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4338 if test -z "$INSTALL"; then
4339 if test "${ac_cv_path_install+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 # Account for people who put trailing slashes in PATH elements.
4348 case $as_dir/ in
4349 ./ | .// | /cC/* | \
4350 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4351 /usr/ucb/* ) ;;
4353 # OSF1 and SCO ODT 3.0 have their own names for install.
4354 # Don't use installbsd from OSF since it installs stuff as root
4355 # by default.
4356 for ac_prog in ginstall scoinst install; do
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4359 if test $ac_prog = install &&
4360 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4361 # AIX install. It has an incompatible calling convention.
4363 elif test $ac_prog = install &&
4364 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4365 # program-specific install script used by HP pwplus--don't use.
4367 else
4368 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4369 break 3
4372 done
4373 done
4375 esac
4376 done
4380 if test "${ac_cv_path_install+set}" = set; then
4381 INSTALL=$ac_cv_path_install
4382 else
4383 # As a last resort, use the slow shell script. We don't cache a
4384 # path for INSTALL within a source directory, because that will
4385 # break other packages using the cache if that directory is
4386 # removed, or if the path is relative.
4387 INSTALL=$ac_install_sh
4390 echo "$as_me:$LINENO: result: $INSTALL" >&5
4391 echo "${ECHO_T}$INSTALL" >&6
4393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4394 # It thinks the first close brace ends the variable substitution.
4395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4399 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4401 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4402 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4403 LN_S=$as_ln_s
4404 if test "$LN_S" = "ln -s"; then
4405 echo "$as_me:$LINENO: result: yes" >&5
4406 echo "${ECHO_T}yes" >&6
4407 else
4408 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4409 echo "${ECHO_T}no, using $LN_S" >&6
4412 echo "$as_me:$LINENO: checking whether ln works" >&5
4413 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4414 rm -f conf$$ conf$$.file
4415 echo >conf$$.file
4416 if ln conf$$.file conf$$ 2>/dev/null; then
4417 LN=ln
4419 echo "$as_me:$LINENO: result: yes" >&5
4420 echo "${ECHO_T}yes" >&6
4421 else
4422 LN="cp -p"
4424 echo "$as_me:$LINENO: result: no, using $LN" >&5
4425 echo "${ECHO_T}no, using $LN" >&6
4427 rm -f conf$$ conf$$.file
4428 # Extract the first word of "c2man", so it can be a program name with args.
4429 set dummy c2man; ac_word=$2
4430 echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432 if test "${ac_cv_prog_C2MAN+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$C2MAN"; then
4436 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4445 ac_cv_prog_C2MAN="c2man"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4452 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4455 C2MAN=$ac_cv_prog_C2MAN
4456 if test -n "$C2MAN"; then
4457 echo "$as_me:$LINENO: result: $C2MAN" >&5
4458 echo "${ECHO_T}$C2MAN" >&6
4459 else
4460 echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6
4464 # Extract the first word of "ldconfig", so it can be a program name with args.
4465 set dummy ldconfig; ac_word=$2
4466 echo "$as_me:$LINENO: checking for $ac_word" >&5
4467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4468 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 case $LDCONFIG in
4472 [\\/]* | ?:[\\/]*)
4473 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in /sbin /usr/sbin $PATH
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4487 done
4488 done
4490 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4492 esac
4494 LDCONFIG=$ac_cv_path_LDCONFIG
4496 if test -n "$LDCONFIG"; then
4497 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4498 echo "${ECHO_T}$LDCONFIG" >&6
4499 else
4500 echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6
4505 for ac_prog in lclint lint
4507 # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy $ac_prog; ac_word=$2
4509 echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511 if test "${ac_cv_prog_LINT+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 if test -n "$LINT"; then
4515 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_LINT="$ac_prog"
4525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4528 done
4529 done
4533 LINT=$ac_cv_prog_LINT
4534 if test -n "$LINT"; then
4535 echo "$as_me:$LINENO: result: $LINT" >&5
4536 echo "${ECHO_T}$LINT" >&6
4537 else
4538 echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4542 test -n "$LINT" && break
4543 done
4545 if test "$LINT" = "lint"
4546 then
4547 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4554 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4555 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4556 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 ac_check_lib_save_LIBS=$LIBS
4560 LIBS="-lm $LIBS"
4561 cat >conftest.$ac_ext <<_ACEOF
4562 #line $LINENO "configure"
4563 #include "confdefs.h"
4565 /* Override any gcc2 internal prototype to avoid an error. */
4566 #ifdef __cplusplus
4567 extern "C"
4568 #endif
4569 /* We use char because int might match the return type of a gcc2
4570 builtin and then its argument prototype would still apply. */
4571 char sqrt ();
4573 main ()
4575 sqrt ();
4577 return 0;
4579 _ACEOF
4580 rm -f conftest.$ac_objext conftest$ac_exeext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582 (eval $ac_link) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try='test -s conftest$ac_exeext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 ac_cv_lib_m_sqrt=yes
4593 else
4594 echo "$as_me: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4596 ac_cv_lib_m_sqrt=no
4598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4599 LIBS=$ac_check_lib_save_LIBS
4601 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4602 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4603 if test $ac_cv_lib_m_sqrt = yes; then
4604 cat >>confdefs.h <<_ACEOF
4605 #define HAVE_LIBM 1
4606 _ACEOF
4608 LIBS="-lm $LIBS"
4613 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4614 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4615 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 ac_check_lib_save_LIBS=$LIBS
4619 LIBS="-li386 $LIBS"
4620 cat >conftest.$ac_ext <<_ACEOF
4621 #line $LINENO "configure"
4622 #include "confdefs.h"
4624 /* Override any gcc2 internal prototype to avoid an error. */
4625 #ifdef __cplusplus
4626 extern "C"
4627 #endif
4628 /* We use char because int might match the return type of a gcc2
4629 builtin and then its argument prototype would still apply. */
4630 char i386_set_ldt ();
4632 main ()
4634 i386_set_ldt ();
4636 return 0;
4638 _ACEOF
4639 rm -f conftest.$ac_objext conftest$ac_exeext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4641 (eval $ac_link) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -s conftest$ac_exeext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 ac_cv_lib_i386_i386_set_ldt=yes
4652 else
4653 echo "$as_me: failed program was:" >&5
4654 cat conftest.$ac_ext >&5
4655 ac_cv_lib_i386_i386_set_ldt=no
4657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4658 LIBS=$ac_check_lib_save_LIBS
4660 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4661 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4662 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4663 cat >>confdefs.h <<_ACEOF
4664 #define HAVE_LIBI386 1
4665 _ACEOF
4667 LIBS="-li386 $LIBS"
4672 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4673 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4674 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 ac_check_lib_save_LIBS=$LIBS
4678 LIBS="-lossaudio $LIBS"
4679 cat >conftest.$ac_ext <<_ACEOF
4680 #line $LINENO "configure"
4681 #include "confdefs.h"
4683 /* Override any gcc2 internal prototype to avoid an error. */
4684 #ifdef __cplusplus
4685 extern "C"
4686 #endif
4687 /* We use char because int might match the return type of a gcc2
4688 builtin and then its argument prototype would still apply. */
4689 char _oss_ioctl ();
4691 main ()
4693 _oss_ioctl ();
4695 return 0;
4697 _ACEOF
4698 rm -f conftest.$ac_objext conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -s conftest$ac_exeext'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 ac_cv_lib_ossaudio__oss_ioctl=yes
4711 else
4712 echo "$as_me: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4714 ac_cv_lib_ossaudio__oss_ioctl=no
4716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4717 LIBS=$ac_check_lib_save_LIBS
4719 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4720 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4721 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4722 cat >>confdefs.h <<_ACEOF
4723 #define HAVE_LIBOSSAUDIO 1
4724 _ACEOF
4726 LIBS="-lossaudio $LIBS"
4731 for ac_func in iswalnum
4733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4734 echo "$as_me:$LINENO: checking for $ac_func" >&5
4735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4736 if eval "test \"\${$as_ac_var+set}\" = set"; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739 cat >conftest.$ac_ext <<_ACEOF
4740 #line $LINENO "configure"
4741 #include "confdefs.h"
4742 /* System header to define __stub macros and hopefully few prototypes,
4743 which can conflict with char $ac_func (); below. */
4744 #include <assert.h>
4745 /* Override any gcc2 internal prototype to avoid an error. */
4746 #ifdef __cplusplus
4747 extern "C"
4748 #endif
4749 /* We use char because int might match the return type of a gcc2
4750 builtin and then its argument prototype would still apply. */
4751 char $ac_func ();
4752 char (*f) ();
4755 main ()
4757 /* The GNU C library defines this for functions which it implements
4758 to always fail with ENOSYS. Some functions are actually named
4759 something starting with __ and the normal name is an alias. */
4760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4761 choke me
4762 #else
4763 f = $ac_func;
4764 #endif
4767 return 0;
4769 _ACEOF
4770 rm -f conftest.$ac_objext conftest$ac_exeext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4772 (eval $ac_link) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } &&
4776 { ac_try='test -s conftest$ac_exeext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 eval "$as_ac_var=yes"
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4786 eval "$as_ac_var=no"
4788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4792 if test `eval echo '${'$as_ac_var'}'` = yes; then
4793 cat >>confdefs.h <<_ACEOF
4794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4795 _ACEOF
4797 else
4799 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4800 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4801 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804 ac_check_lib_save_LIBS=$LIBS
4805 LIBS="-lw $LIBS"
4806 cat >conftest.$ac_ext <<_ACEOF
4807 #line $LINENO "configure"
4808 #include "confdefs.h"
4810 /* Override any gcc2 internal prototype to avoid an error. */
4811 #ifdef __cplusplus
4812 extern "C"
4813 #endif
4814 /* We use char because int might match the return type of a gcc2
4815 builtin and then its argument prototype would still apply. */
4816 char iswalnum ();
4818 main ()
4820 iswalnum ();
4822 return 0;
4824 _ACEOF
4825 rm -f conftest.$ac_objext conftest$ac_exeext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4827 (eval $ac_link) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -s conftest$ac_exeext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_cv_lib_w_iswalnum=yes
4838 else
4839 echo "$as_me: failed program was:" >&5
4840 cat conftest.$ac_ext >&5
4841 ac_cv_lib_w_iswalnum=no
4843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4844 LIBS=$ac_check_lib_save_LIBS
4846 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4847 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4848 if test $ac_cv_lib_w_iswalnum = yes; then
4849 cat >>confdefs.h <<_ACEOF
4850 #define HAVE_LIBW 1
4851 _ACEOF
4853 LIBS="-lw $LIBS"
4858 done
4861 for ac_func in gethostbyname
4863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4864 echo "$as_me:$LINENO: checking for $ac_func" >&5
4865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4866 if eval "test \"\${$as_ac_var+set}\" = set"; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869 cat >conftest.$ac_ext <<_ACEOF
4870 #line $LINENO "configure"
4871 #include "confdefs.h"
4872 /* System header to define __stub macros and hopefully few prototypes,
4873 which can conflict with char $ac_func (); below. */
4874 #include <assert.h>
4875 /* Override any gcc2 internal prototype to avoid an error. */
4876 #ifdef __cplusplus
4877 extern "C"
4878 #endif
4879 /* We use char because int might match the return type of a gcc2
4880 builtin and then its argument prototype would still apply. */
4881 char $ac_func ();
4882 char (*f) ();
4885 main ()
4887 /* The GNU C library defines this for functions which it implements
4888 to always fail with ENOSYS. Some functions are actually named
4889 something starting with __ and the normal name is an alias. */
4890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4891 choke me
4892 #else
4893 f = $ac_func;
4894 #endif
4897 return 0;
4899 _ACEOF
4900 rm -f conftest.$ac_objext conftest$ac_exeext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902 (eval $ac_link) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -s conftest$ac_exeext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 eval "$as_ac_var=yes"
4913 else
4914 echo "$as_me: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4916 eval "$as_ac_var=no"
4918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4922 if test `eval echo '${'$as_ac_var'}'` = yes; then
4923 cat >>confdefs.h <<_ACEOF
4924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4925 _ACEOF
4927 else
4929 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4930 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4931 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 ac_check_lib_save_LIBS=$LIBS
4935 LIBS="-lnsl $LIBS"
4936 cat >conftest.$ac_ext <<_ACEOF
4937 #line $LINENO "configure"
4938 #include "confdefs.h"
4940 /* Override any gcc2 internal prototype to avoid an error. */
4941 #ifdef __cplusplus
4942 extern "C"
4943 #endif
4944 /* We use char because int might match the return type of a gcc2
4945 builtin and then its argument prototype would still apply. */
4946 char gethostbyname ();
4948 main ()
4950 gethostbyname ();
4952 return 0;
4954 _ACEOF
4955 rm -f conftest.$ac_objext conftest$ac_exeext
4956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4957 (eval $ac_link) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try='test -s conftest$ac_exeext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 ac_cv_lib_nsl_gethostbyname=yes
4968 else
4969 echo "$as_me: failed program was:" >&5
4970 cat conftest.$ac_ext >&5
4971 ac_cv_lib_nsl_gethostbyname=no
4973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4974 LIBS=$ac_check_lib_save_LIBS
4976 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4977 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4978 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4979 cat >>confdefs.h <<_ACEOF
4980 #define HAVE_LIBNSL 1
4981 _ACEOF
4983 LIBS="-lnsl $LIBS"
4988 done
4991 for ac_func in connect
4993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4994 echo "$as_me:$LINENO: checking for $ac_func" >&5
4995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4996 if eval "test \"\${$as_ac_var+set}\" = set"; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 cat >conftest.$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5001 #include "confdefs.h"
5002 /* System header to define __stub macros and hopefully few prototypes,
5003 which can conflict with char $ac_func (); below. */
5004 #include <assert.h>
5005 /* Override any gcc2 internal prototype to avoid an error. */
5006 #ifdef __cplusplus
5007 extern "C"
5008 #endif
5009 /* We use char because int might match the return type of a gcc2
5010 builtin and then its argument prototype would still apply. */
5011 char $ac_func ();
5012 char (*f) ();
5015 main ()
5017 /* The GNU C library defines this for functions which it implements
5018 to always fail with ENOSYS. Some functions are actually named
5019 something starting with __ and the normal name is an alias. */
5020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5021 choke me
5022 #else
5023 f = $ac_func;
5024 #endif
5027 return 0;
5029 _ACEOF
5030 rm -f conftest.$ac_objext conftest$ac_exeext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032 (eval $ac_link) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -s conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 eval "$as_ac_var=yes"
5043 else
5044 echo "$as_me: failed program was:" >&5
5045 cat conftest.$ac_ext >&5
5046 eval "$as_ac_var=no"
5048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5052 if test `eval echo '${'$as_ac_var'}'` = yes; then
5053 cat >>confdefs.h <<_ACEOF
5054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5055 _ACEOF
5057 else
5059 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5060 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5061 if test "${ac_cv_lib_socket_connect+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064 ac_check_lib_save_LIBS=$LIBS
5065 LIBS="-lsocket $LIBS"
5066 cat >conftest.$ac_ext <<_ACEOF
5067 #line $LINENO "configure"
5068 #include "confdefs.h"
5070 /* Override any gcc2 internal prototype to avoid an error. */
5071 #ifdef __cplusplus
5072 extern "C"
5073 #endif
5074 /* We use char because int might match the return type of a gcc2
5075 builtin and then its argument prototype would still apply. */
5076 char connect ();
5078 main ()
5080 connect ();
5082 return 0;
5084 _ACEOF
5085 rm -f conftest.$ac_objext conftest$ac_exeext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5087 (eval $ac_link) 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } &&
5091 { ac_try='test -s conftest$ac_exeext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 (eval $ac_try) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 ac_cv_lib_socket_connect=yes
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 cat conftest.$ac_ext >&5
5101 ac_cv_lib_socket_connect=no
5103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5104 LIBS=$ac_check_lib_save_LIBS
5106 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5107 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5108 if test $ac_cv_lib_socket_connect = yes; then
5109 cat >>confdefs.h <<_ACEOF
5110 #define HAVE_LIBSOCKET 1
5111 _ACEOF
5113 LIBS="-lsocket $LIBS"
5118 done
5121 for ac_func in inet_aton
5123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5124 echo "$as_me:$LINENO: checking for $ac_func" >&5
5125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5126 if eval "test \"\${$as_ac_var+set}\" = set"; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 cat >conftest.$ac_ext <<_ACEOF
5130 #line $LINENO "configure"
5131 #include "confdefs.h"
5132 /* System header to define __stub macros and hopefully few prototypes,
5133 which can conflict with char $ac_func (); below. */
5134 #include <assert.h>
5135 /* Override any gcc2 internal prototype to avoid an error. */
5136 #ifdef __cplusplus
5137 extern "C"
5138 #endif
5139 /* We use char because int might match the return type of a gcc2
5140 builtin and then its argument prototype would still apply. */
5141 char $ac_func ();
5142 char (*f) ();
5145 main ()
5147 /* The GNU C library defines this for functions which it implements
5148 to always fail with ENOSYS. Some functions are actually named
5149 something starting with __ and the normal name is an alias. */
5150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5151 choke me
5152 #else
5153 f = $ac_func;
5154 #endif
5157 return 0;
5159 _ACEOF
5160 rm -f conftest.$ac_objext conftest$ac_exeext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162 (eval $ac_link) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -s conftest$ac_exeext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 (eval $ac_try) 2>&5
5169 ac_status=$?
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 eval "$as_ac_var=yes"
5173 else
5174 echo "$as_me: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5176 eval "$as_ac_var=no"
5178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5182 if test `eval echo '${'$as_ac_var'}'` = yes; then
5183 cat >>confdefs.h <<_ACEOF
5184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5185 _ACEOF
5187 else
5189 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5190 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5191 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 ac_check_lib_save_LIBS=$LIBS
5195 LIBS="-lresolv $LIBS"
5196 cat >conftest.$ac_ext <<_ACEOF
5197 #line $LINENO "configure"
5198 #include "confdefs.h"
5200 /* Override any gcc2 internal prototype to avoid an error. */
5201 #ifdef __cplusplus
5202 extern "C"
5203 #endif
5204 /* We use char because int might match the return type of a gcc2
5205 builtin and then its argument prototype would still apply. */
5206 char inet_aton ();
5208 main ()
5210 inet_aton ();
5212 return 0;
5214 _ACEOF
5215 rm -f conftest.$ac_objext conftest$ac_exeext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5217 (eval $ac_link) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } &&
5221 { ac_try='test -s conftest$ac_exeext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 (eval $ac_try) 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5227 ac_cv_lib_resolv_inet_aton=yes
5228 else
5229 echo "$as_me: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5231 ac_cv_lib_resolv_inet_aton=no
5233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5234 LIBS=$ac_check_lib_save_LIBS
5236 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5237 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5238 if test $ac_cv_lib_resolv_inet_aton = yes; then
5239 cat >>confdefs.h <<_ACEOF
5240 #define HAVE_LIBRESOLV 1
5241 _ACEOF
5243 LIBS="-lresolv $LIBS"
5248 done
5251 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5252 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5253 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256 ac_check_lib_save_LIBS=$LIBS
5257 LIBS="-lxpg4 $LIBS"
5258 cat >conftest.$ac_ext <<_ACEOF
5259 #line $LINENO "configure"
5260 #include "confdefs.h"
5262 /* Override any gcc2 internal prototype to avoid an error. */
5263 #ifdef __cplusplus
5264 extern "C"
5265 #endif
5266 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5268 char _xpg4_setrunelocale ();
5270 main ()
5272 _xpg4_setrunelocale ();
5274 return 0;
5276 _ACEOF
5277 rm -f conftest.$ac_objext conftest$ac_exeext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5279 (eval $ac_link) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -s conftest$ac_exeext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5290 else
5291 echo "$as_me: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5296 LIBS=$ac_check_lib_save_LIBS
5298 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5299 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5300 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5301 cat >>confdefs.h <<_ACEOF
5302 #define HAVE_LIBXPG4 1
5303 _ACEOF
5305 LIBS="-lxpg4 $LIBS"
5310 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5311 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5312 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 ac_check_lib_save_LIBS=$LIBS
5316 LIBS="-lmmap $LIBS"
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5319 #include "confdefs.h"
5321 /* Override any gcc2 internal prototype to avoid an error. */
5322 #ifdef __cplusplus
5323 extern "C"
5324 #endif
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5327 char mmap ();
5329 main ()
5331 mmap ();
5333 return 0;
5335 _ACEOF
5336 rm -f conftest.$ac_objext conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338 (eval $ac_link) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -s conftest$ac_exeext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_cv_lib_mmap_mmap=yes
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5352 ac_cv_lib_mmap_mmap=no
5354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5355 LIBS=$ac_check_lib_save_LIBS
5357 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5358 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5359 if test $ac_cv_lib_mmap_mmap = yes; then
5360 cat >>confdefs.h <<_ACEOF
5361 #define HAVE_LIBMMAP 1
5362 _ACEOF
5364 LIBS="-lmmap $LIBS"
5369 JPEGLIB=""
5371 echo "$as_me:$LINENO: checking for egrep" >&5
5372 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5373 if test "${ac_cv_prog_egrep+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5377 then ac_cv_prog_egrep='grep -E'
5378 else ac_cv_prog_egrep='egrep'
5381 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5382 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5383 EGREP=$ac_cv_prog_egrep
5386 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5387 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5388 if test "${ac_cv_header_stdc+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 cat >conftest.$ac_ext <<_ACEOF
5392 #line $LINENO "configure"
5393 #include "confdefs.h"
5394 #include <stdlib.h>
5395 #include <stdarg.h>
5396 #include <string.h>
5397 #include <float.h>
5399 _ACEOF
5400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } >/dev/null; then
5408 if test -s conftest.err; then
5409 ac_cpp_err=$ac_c_preproc_warn_flag
5410 else
5411 ac_cpp_err=
5413 else
5414 ac_cpp_err=yes
5416 if test -z "$ac_cpp_err"; then
5417 ac_cv_header_stdc=yes
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5421 ac_cv_header_stdc=no
5423 rm -f conftest.err conftest.$ac_ext
5425 if test $ac_cv_header_stdc = yes; then
5426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5427 cat >conftest.$ac_ext <<_ACEOF
5428 #line $LINENO "configure"
5429 #include "confdefs.h"
5430 #include <string.h>
5432 _ACEOF
5433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5434 $EGREP "memchr" >/dev/null 2>&1; then
5436 else
5437 ac_cv_header_stdc=no
5439 rm -f conftest*
5443 if test $ac_cv_header_stdc = yes; then
5444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5445 cat >conftest.$ac_ext <<_ACEOF
5446 #line $LINENO "configure"
5447 #include "confdefs.h"
5448 #include <stdlib.h>
5450 _ACEOF
5451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5452 $EGREP "free" >/dev/null 2>&1; then
5454 else
5455 ac_cv_header_stdc=no
5457 rm -f conftest*
5461 if test $ac_cv_header_stdc = yes; then
5462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5463 if test "$cross_compiling" = yes; then
5465 else
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 #include "confdefs.h"
5469 #include <ctype.h>
5470 #if ((' ' & 0x0FF) == 0x020)
5471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5473 #else
5474 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5475 || ('j' <= (c) && (c) <= 'r') \
5476 || ('s' <= (c) && (c) <= 'z'))
5477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5478 #endif
5480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5482 main ()
5484 int i;
5485 for (i = 0; i < 256; i++)
5486 if (XOR (islower (i), ISLOWER (i))
5487 || toupper (i) != TOUPPER (i))
5488 exit(2);
5489 exit (0);
5491 _ACEOF
5492 rm -f conftest$ac_exeext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5494 (eval $ac_link) 2>&5
5495 ac_status=$?
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5504 else
5505 echo "$as_me: program exited with status $ac_status" >&5
5506 echo "$as_me: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5508 ( exit $ac_status )
5509 ac_cv_header_stdc=no
5511 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5515 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5516 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5517 if test $ac_cv_header_stdc = yes; then
5519 cat >>confdefs.h <<\_ACEOF
5520 #define STDC_HEADERS 1
5521 _ACEOF
5525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5535 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5536 inttypes.h stdint.h unistd.h
5538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5539 echo "$as_me:$LINENO: checking for $ac_header" >&5
5540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544 cat >conftest.$ac_ext <<_ACEOF
5545 #line $LINENO "configure"
5546 #include "confdefs.h"
5547 $ac_includes_default
5549 #include <$ac_header>
5550 _ACEOF
5551 rm -f conftest.$ac_objext
5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553 (eval $ac_compile) 2>&5
5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } &&
5557 { ac_try='test -s conftest.$ac_objext'
5558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 (eval $ac_try) 2>&5
5560 ac_status=$?
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; }; then
5563 eval "$as_ac_Header=yes"
5564 else
5565 echo "$as_me: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5567 eval "$as_ac_Header=no"
5569 rm -f conftest.$ac_objext conftest.$ac_ext
5571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574 cat >>confdefs.h <<_ACEOF
5575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576 _ACEOF
5580 done
5584 for ac_header in jpeglib.h
5586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5588 echo "$as_me:$LINENO: checking for $ac_header" >&5
5589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5595 else
5596 # Is the header compilable?
5597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5599 cat >conftest.$ac_ext <<_ACEOF
5600 #line $LINENO "configure"
5601 #include "confdefs.h"
5602 $ac_includes_default
5603 #include <$ac_header>
5604 _ACEOF
5605 rm -f conftest.$ac_objext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607 (eval $ac_compile) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } &&
5611 { ac_try='test -s conftest.$ac_objext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 (eval $ac_try) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_header_compiler=yes
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5621 ac_header_compiler=no
5623 rm -f conftest.$ac_objext conftest.$ac_ext
5624 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5625 echo "${ECHO_T}$ac_header_compiler" >&6
5627 # Is the header present?
5628 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5630 cat >conftest.$ac_ext <<_ACEOF
5631 #line $LINENO "configure"
5632 #include "confdefs.h"
5633 #include <$ac_header>
5634 _ACEOF
5635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } >/dev/null; then
5643 if test -s conftest.err; then
5644 ac_cpp_err=$ac_c_preproc_warn_flag
5645 else
5646 ac_cpp_err=
5648 else
5649 ac_cpp_err=yes
5651 if test -z "$ac_cpp_err"; then
5652 ac_header_preproc=yes
5653 else
5654 echo "$as_me: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5656 ac_header_preproc=no
5658 rm -f conftest.err conftest.$ac_ext
5659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5660 echo "${ECHO_T}$ac_header_preproc" >&6
5662 # So? What about this header?
5663 case $ac_header_compiler:$ac_header_preproc in
5664 yes:no )
5665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5669 no:yes )
5670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5676 esac
5677 echo "$as_me:$LINENO: checking for $ac_header" >&5
5678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 eval "$as_ac_Header=$ac_header_preproc"
5684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5689 cat >>confdefs.h <<_ACEOF
5690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5691 _ACEOF
5692 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5693 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5694 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697 ac_check_lib_save_LIBS=$LIBS
5698 LIBS="-ljpeg $LIBS"
5699 cat >conftest.$ac_ext <<_ACEOF
5700 #line $LINENO "configure"
5701 #include "confdefs.h"
5703 /* Override any gcc2 internal prototype to avoid an error. */
5704 #ifdef __cplusplus
5705 extern "C"
5706 #endif
5707 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5709 char jpeg_start_decompress ();
5711 main ()
5713 jpeg_start_decompress ();
5715 return 0;
5717 _ACEOF
5718 rm -f conftest.$ac_objext conftest$ac_exeext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720 (eval $ac_link) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -s conftest$ac_exeext'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 ac_cv_lib_jpeg_jpeg_start_decompress=yes
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5734 ac_cv_lib_jpeg_jpeg_start_decompress=no
5736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5737 LIBS=$ac_check_lib_save_LIBS
5739 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5740 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5741 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5743 cat >>confdefs.h <<\_ACEOF
5744 #define HAVE_LIBJPEG 1
5745 _ACEOF
5747 JPEGLIB="-ljpeg"
5754 done
5760 XFILES=""
5762 OPENGLFILES=""
5764 GLU32FILES=""
5766 OPENGL_LIBS=""
5767 if test "$have_x" = "yes"
5768 then
5769 XLIB="-lXext -lX11"
5770 ac_save_CPPFLAGS="$CPPFLAGS"
5771 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5774 for ac_header in X11/Xlib.h
5776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5778 echo "$as_me:$LINENO: checking for $ac_header" >&5
5779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5785 else
5786 # Is the header compilable?
5787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5789 cat >conftest.$ac_ext <<_ACEOF
5790 #line $LINENO "configure"
5791 #include "confdefs.h"
5792 $ac_includes_default
5793 #include <$ac_header>
5794 _ACEOF
5795 rm -f conftest.$ac_objext
5796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797 (eval $ac_compile) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
5801 { ac_try='test -s conftest.$ac_objext'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 (eval $ac_try) 2>&5
5804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; }; then
5807 ac_header_compiler=yes
5808 else
5809 echo "$as_me: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5811 ac_header_compiler=no
5813 rm -f conftest.$ac_objext conftest.$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5815 echo "${ECHO_T}$ac_header_compiler" >&6
5817 # Is the header present?
5818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5820 cat >conftest.$ac_ext <<_ACEOF
5821 #line $LINENO "configure"
5822 #include "confdefs.h"
5823 #include <$ac_header>
5824 _ACEOF
5825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } >/dev/null; then
5833 if test -s conftest.err; then
5834 ac_cpp_err=$ac_c_preproc_warn_flag
5835 else
5836 ac_cpp_err=
5838 else
5839 ac_cpp_err=yes
5841 if test -z "$ac_cpp_err"; then
5842 ac_header_preproc=yes
5843 else
5844 echo "$as_me: failed program was:" >&5
5845 cat conftest.$ac_ext >&5
5846 ac_header_preproc=no
5848 rm -f conftest.err conftest.$ac_ext
5849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5850 echo "${ECHO_T}$ac_header_preproc" >&6
5852 # So? What about this header?
5853 case $ac_header_compiler:$ac_header_preproc in
5854 yes:no )
5855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5859 no:yes )
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5866 esac
5867 echo "$as_me:$LINENO: checking for $ac_header" >&5
5868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872 eval "$as_ac_Header=$ac_header_preproc"
5874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5879 cat >>confdefs.h <<_ACEOF
5880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5881 _ACEOF
5884 for ac_header in X11/XKBlib.h
5886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5887 echo "$as_me:$LINENO: checking for $ac_header" >&5
5888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5894 #include "confdefs.h"
5895 #include <X11/Xlib.h>
5897 #include <$ac_header>
5898 _ACEOF
5899 rm -f conftest.$ac_objext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901 (eval $ac_compile) 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -s conftest.$ac_objext'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 (eval $ac_try) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5911 eval "$as_ac_Header=yes"
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5915 eval "$as_ac_Header=no"
5917 rm -f conftest.$ac_objext conftest.$ac_ext
5919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5922 cat >>confdefs.h <<_ACEOF
5923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5924 _ACEOF
5925 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
5926 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
5927 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 ac_check_lib_save_LIBS=$LIBS
5931 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5932 cat >conftest.$ac_ext <<_ACEOF
5933 #line $LINENO "configure"
5934 #include "confdefs.h"
5936 /* Override any gcc2 internal prototype to avoid an error. */
5937 #ifdef __cplusplus
5938 extern "C"
5939 #endif
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5942 char XkbQueryExtension ();
5944 main ()
5946 XkbQueryExtension ();
5948 return 0;
5950 _ACEOF
5951 rm -f conftest.$ac_objext conftest$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953 (eval $ac_link) 2>&5
5954 ac_status=$?
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try='test -s conftest$ac_exeext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 ac_cv_lib_X11_XkbQueryExtension=yes
5964 else
5965 echo "$as_me: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5967 ac_cv_lib_X11_XkbQueryExtension=no
5969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5970 LIBS=$ac_check_lib_save_LIBS
5972 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
5973 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
5974 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
5976 cat >>confdefs.h <<\_ACEOF
5977 #define HAVE_XKB 1
5978 _ACEOF
5983 else
5984 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
5985 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
5988 done
5992 for ac_header in X11/extensions/XShm.h
5994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5995 echo "$as_me:$LINENO: checking for $ac_header" >&5
5996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 cat >conftest.$ac_ext <<_ACEOF
6001 #line $LINENO "configure"
6002 #include "confdefs.h"
6003 #include <X11/Xlib.h>
6005 #include <$ac_header>
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009 (eval $ac_compile) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } &&
6013 { ac_try='test -s conftest.$ac_objext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 eval "$as_ac_Header=yes"
6020 else
6021 echo "$as_me: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6023 eval "$as_ac_Header=no"
6025 rm -f conftest.$ac_objext conftest.$ac_ext
6027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6030 cat >>confdefs.h <<_ACEOF
6031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6032 _ACEOF
6033 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6034 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6035 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 ac_check_lib_save_LIBS=$LIBS
6039 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6040 cat >conftest.$ac_ext <<_ACEOF
6041 #line $LINENO "configure"
6042 #include "confdefs.h"
6044 /* Override any gcc2 internal prototype to avoid an error. */
6045 #ifdef __cplusplus
6046 extern "C"
6047 #endif
6048 /* We use char because int might match the return type of a gcc2
6049 builtin and then its argument prototype would still apply. */
6050 char XShmQueryExtension ();
6052 main ()
6054 XShmQueryExtension ();
6056 return 0;
6058 _ACEOF
6059 rm -f conftest.$ac_objext conftest$ac_exeext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6061 (eval $ac_link) 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -s conftest$ac_exeext'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 (eval $ac_try) 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; }; then
6071 ac_cv_lib_Xext_XShmQueryExtension=yes
6072 else
6073 echo "$as_me: failed program was:" >&5
6074 cat conftest.$ac_ext >&5
6075 ac_cv_lib_Xext_XShmQueryExtension=no
6077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6078 LIBS=$ac_check_lib_save_LIBS
6080 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6081 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6082 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6084 cat >>confdefs.h <<\_ACEOF
6085 #define HAVE_LIBXXSHM 1
6086 _ACEOF
6091 else
6092 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6093 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6096 done
6100 for ac_header in X11/Xutil.h
6102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6103 echo "$as_me:$LINENO: checking for $ac_header" >&5
6104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108 cat >conftest.$ac_ext <<_ACEOF
6109 #line $LINENO "configure"
6110 #include "confdefs.h"
6111 #include <X11/Xlib.h>
6113 #include <$ac_header>
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 eval "$as_ac_Header=yes"
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 cat conftest.$ac_ext >&5
6131 eval "$as_ac_Header=no"
6133 rm -f conftest.$ac_objext conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6138 cat >>confdefs.h <<_ACEOF
6139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6140 _ACEOF
6144 done
6148 for ac_header in X11/extensions/shape.h
6150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6151 echo "$as_me:$LINENO: checking for $ac_header" >&5
6152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156 cat >conftest.$ac_ext <<_ACEOF
6157 #line $LINENO "configure"
6158 #include "confdefs.h"
6159 #include <X11/Xlib.h>
6160 #ifdef HAVE_X11_XUTIL_H
6161 # include <X11/Xutil.h>
6162 #endif
6164 #include <$ac_header>
6165 _ACEOF
6166 rm -f conftest.$ac_objext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168 (eval $ac_compile) 2>&5
6169 ac_status=$?
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } &&
6172 { ac_try='test -s conftest.$ac_objext'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 eval "$as_ac_Header=yes"
6179 else
6180 echo "$as_me: failed program was:" >&5
6181 cat conftest.$ac_ext >&5
6182 eval "$as_ac_Header=no"
6184 rm -f conftest.$ac_objext conftest.$ac_ext
6186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6189 cat >>confdefs.h <<_ACEOF
6190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6191 _ACEOF
6192 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6193 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6194 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197 ac_check_lib_save_LIBS=$LIBS
6198 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6199 cat >conftest.$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6201 #include "confdefs.h"
6203 /* Override any gcc2 internal prototype to avoid an error. */
6204 #ifdef __cplusplus
6205 extern "C"
6206 #endif
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6209 char XShapeQueryExtension ();
6211 main ()
6213 XShapeQueryExtension ();
6215 return 0;
6217 _ACEOF
6218 rm -f conftest.$ac_objext conftest$ac_exeext
6219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6220 (eval $ac_link) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } &&
6224 { ac_try='test -s conftest$ac_exeext'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 (eval $ac_try) 2>&5
6227 ac_status=$?
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
6230 ac_cv_lib_Xext_XShapeQueryExtension=yes
6231 else
6232 echo "$as_me: failed program was:" >&5
6233 cat conftest.$ac_ext >&5
6234 ac_cv_lib_Xext_XShapeQueryExtension=no
6236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6237 LIBS=$ac_check_lib_save_LIBS
6239 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6240 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6241 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6243 cat >>confdefs.h <<\_ACEOF
6244 #define HAVE_LIBXSHAPE 1
6245 _ACEOF
6250 else
6251 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6252 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6255 done
6259 for ac_header in X11/extensions/xf86dga.h
6261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6262 echo "$as_me:$LINENO: checking for $ac_header" >&5
6263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 cat >conftest.$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6269 #include "confdefs.h"
6270 #include <X11/Xlib.h>
6272 #include <$ac_header>
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -s conftest.$ac_objext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 eval "$as_ac_Header=yes"
6287 else
6288 echo "$as_me: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6290 eval "$as_ac_Header=no"
6292 rm -f conftest.$ac_objext conftest.$ac_ext
6294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6297 cat >>confdefs.h <<_ACEOF
6298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6299 _ACEOF
6300 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6301 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6302 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 ac_check_lib_save_LIBS=$LIBS
6306 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6307 $LIBS"
6308 cat >conftest.$ac_ext <<_ACEOF
6309 #line $LINENO "configure"
6310 #include "confdefs.h"
6312 /* Override any gcc2 internal prototype to avoid an error. */
6313 #ifdef __cplusplus
6314 extern "C"
6315 #endif
6316 /* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6318 char XDGAQueryExtension ();
6320 main ()
6322 XDGAQueryExtension ();
6324 return 0;
6326 _ACEOF
6327 rm -f conftest.$ac_objext conftest$ac_exeext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6329 (eval $ac_link) 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } &&
6333 { ac_try='test -s conftest$ac_exeext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6340 else
6341 echo "$as_me: failed program was:" >&5
6342 cat conftest.$ac_ext >&5
6343 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6346 LIBS=$ac_check_lib_save_LIBS
6348 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6349 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6350 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6352 cat >>confdefs.h <<\_ACEOF
6353 #define HAVE_LIBXXF86DGA2 1
6354 _ACEOF
6356 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6358 else
6359 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6360 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6361 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364 ac_check_lib_save_LIBS=$LIBS
6365 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6366 $LIBS"
6367 cat >conftest.$ac_ext <<_ACEOF
6368 #line $LINENO "configure"
6369 #include "confdefs.h"
6371 /* Override any gcc2 internal prototype to avoid an error. */
6372 #ifdef __cplusplus
6373 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 XF86DGAQueryExtension ();
6379 main ()
6381 XF86DGAQueryExtension ();
6383 return 0;
6385 _ACEOF
6386 rm -f conftest.$ac_objext conftest$ac_exeext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6388 (eval $ac_link) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -s conftest$ac_exeext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6399 else
6400 echo "$as_me: failed program was:" >&5
6401 cat conftest.$ac_ext >&5
6402 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6405 LIBS=$ac_check_lib_save_LIBS
6407 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6408 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6409 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6411 cat >>confdefs.h <<\_ACEOF
6412 #define HAVE_LIBXXF86DGA 1
6413 _ACEOF
6415 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6423 else
6424 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6425 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6428 done
6432 for ac_header in X11/extensions/xf86vmode.h
6434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6435 echo "$as_me:$LINENO: checking for $ac_header" >&5
6436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440 cat >conftest.$ac_ext <<_ACEOF
6441 #line $LINENO "configure"
6442 #include "confdefs.h"
6443 #include <X11/Xlib.h>
6445 #include <$ac_header>
6446 _ACEOF
6447 rm -f conftest.$ac_objext
6448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6449 (eval $ac_compile) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -s conftest.$ac_objext'
6454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 (eval $ac_try) 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; }; then
6459 eval "$as_ac_Header=yes"
6460 else
6461 echo "$as_me: failed program was:" >&5
6462 cat conftest.$ac_ext >&5
6463 eval "$as_ac_Header=no"
6465 rm -f conftest.$ac_objext conftest.$ac_ext
6467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6470 cat >>confdefs.h <<_ACEOF
6471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6472 _ACEOF
6473 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6474 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6475 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 ac_check_lib_save_LIBS=$LIBS
6479 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6480 $LIBS"
6481 cat >conftest.$ac_ext <<_ACEOF
6482 #line $LINENO "configure"
6483 #include "confdefs.h"
6485 /* Override any gcc2 internal prototype to avoid an error. */
6486 #ifdef __cplusplus
6487 extern "C"
6488 #endif
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6491 char XF86VidModeQueryExtension ();
6493 main ()
6495 XF86VidModeQueryExtension ();
6497 return 0;
6499 _ACEOF
6500 rm -f conftest.$ac_objext conftest$ac_exeext
6501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6502 (eval $ac_link) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
6506 { ac_try='test -s conftest$ac_exeext'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 (eval $ac_try) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6512 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6513 else
6514 echo "$as_me: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6516 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6519 LIBS=$ac_check_lib_save_LIBS
6521 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6522 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6523 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6525 cat >>confdefs.h <<\_ACEOF
6526 #define HAVE_LIBXXF86VM 1
6527 _ACEOF
6529 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6534 else
6535 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6536 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6539 done
6543 for ac_header in X11/extensions/Xvlib.h
6545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6546 echo "$as_me:$LINENO: checking for $ac_header" >&5
6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 cat >conftest.$ac_ext <<_ACEOF
6552 #line $LINENO "configure"
6553 #include "confdefs.h"
6554 #include <X11/Xlib.h>
6556 #include <$ac_header>
6557 _ACEOF
6558 rm -f conftest.$ac_objext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560 (eval $ac_compile) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 eval "$as_ac_Header=yes"
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 cat conftest.$ac_ext >&5
6574 eval "$as_ac_Header=no"
6576 rm -f conftest.$ac_objext conftest.$ac_ext
6578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6581 cat >>confdefs.h <<_ACEOF
6582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6583 _ACEOF
6584 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6585 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6586 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 ac_check_lib_save_LIBS=$LIBS
6590 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6591 $LIBS"
6592 cat >conftest.$ac_ext <<_ACEOF
6593 #line $LINENO "configure"
6594 #include "confdefs.h"
6596 /* Override any gcc2 internal prototype to avoid an error. */
6597 #ifdef __cplusplus
6598 extern "C"
6599 #endif
6600 /* We use char because int might match the return type of a gcc2
6601 builtin and then its argument prototype would still apply. */
6602 char XvShmCreateImage ();
6604 main ()
6606 XvShmCreateImage ();
6608 return 0;
6610 _ACEOF
6611 rm -f conftest.$ac_objext conftest$ac_exeext
6612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6613 (eval $ac_link) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } &&
6617 { ac_try='test -s conftest$ac_exeext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 (eval $ac_try) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_lib_Xv_XvShmCreateImage=yes
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 cat conftest.$ac_ext >&5
6627 ac_cv_lib_Xv_XvShmCreateImage=no
6629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6630 LIBS=$ac_check_lib_save_LIBS
6632 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6633 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6634 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6636 cat >>confdefs.h <<\_ACEOF
6637 #define HAVE_XVIDEO 1
6638 _ACEOF
6640 X_PRE_LIBS="$X_PRE_LIBS -lXv"
6645 else
6646 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6647 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6650 done
6654 for ac_header in X11/extensions/Xrender.h
6656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6657 echo "$as_me:$LINENO: checking for $ac_header" >&5
6658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 cat >conftest.$ac_ext <<_ACEOF
6663 #line $LINENO "configure"
6664 #include "confdefs.h"
6665 #include <X11/Xlib.h>
6667 #include <$ac_header>
6668 _ACEOF
6669 rm -f conftest.$ac_objext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671 (eval $ac_compile) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } &&
6675 { ac_try='test -s conftest.$ac_objext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 eval "$as_ac_Header=yes"
6682 else
6683 echo "$as_me: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6685 eval "$as_ac_Header=no"
6687 rm -f conftest.$ac_objext conftest.$ac_ext
6689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6692 cat >>confdefs.h <<_ACEOF
6693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6694 _ACEOF
6698 done
6704 done
6706 if test "x$with_opengl" != "xno"
6707 then
6708 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6709 then
6710 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6711 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6712 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6713 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6714 { (exit 1); exit 1; }; }
6719 for ac_header in GL/gl.h GL/glx.h
6721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6723 echo "$as_me:$LINENO: checking for $ac_header" >&5
6724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6730 else
6731 # Is the header compilable?
6732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6734 cat >conftest.$ac_ext <<_ACEOF
6735 #line $LINENO "configure"
6736 #include "confdefs.h"
6737 $ac_includes_default
6738 #include <$ac_header>
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6742 (eval $ac_compile) 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -s conftest.$ac_objext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_header_compiler=yes
6753 else
6754 echo "$as_me: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6756 ac_header_compiler=no
6758 rm -f conftest.$ac_objext conftest.$ac_ext
6759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6760 echo "${ECHO_T}$ac_header_compiler" >&6
6762 # Is the header present?
6763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6765 cat >conftest.$ac_ext <<_ACEOF
6766 #line $LINENO "configure"
6767 #include "confdefs.h"
6768 #include <$ac_header>
6769 _ACEOF
6770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6772 ac_status=$?
6773 grep -v '^ *+' conftest.er1 >conftest.err
6774 rm -f conftest.er1
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } >/dev/null; then
6778 if test -s conftest.err; then
6779 ac_cpp_err=$ac_c_preproc_warn_flag
6780 else
6781 ac_cpp_err=
6783 else
6784 ac_cpp_err=yes
6786 if test -z "$ac_cpp_err"; then
6787 ac_header_preproc=yes
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 ac_header_preproc=no
6793 rm -f conftest.err conftest.$ac_ext
6794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6795 echo "${ECHO_T}$ac_header_preproc" >&6
6797 # So? What about this header?
6798 case $ac_header_compiler:$ac_header_preproc in
6799 yes:no )
6800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6804 no:yes )
6805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6811 esac
6812 echo "$as_me:$LINENO: checking for $ac_header" >&5
6813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 else
6817 eval "$as_ac_Header=$ac_header_preproc"
6819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6824 cat >>confdefs.h <<_ACEOF
6825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6826 _ACEOF
6830 done
6832 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6833 then
6835 for ac_header in GL/glext.h
6837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6838 echo "$as_me:$LINENO: checking for $ac_header" >&5
6839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843 cat >conftest.$ac_ext <<_ACEOF
6844 #line $LINENO "configure"
6845 #include "confdefs.h"
6846 #include <GL/glx.h>
6848 #include <$ac_header>
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>&5
6853 ac_status=$?
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } &&
6856 { ac_try='test -s conftest.$ac_objext'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 (eval $ac_try) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; }; then
6862 eval "$as_ac_Header=yes"
6863 else
6864 echo "$as_me: failed program was:" >&5
6865 cat conftest.$ac_ext >&5
6866 eval "$as_ac_Header=no"
6868 rm -f conftest.$ac_objext conftest.$ac_ext
6870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6873 cat >>confdefs.h <<_ACEOF
6874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6875 _ACEOF
6879 done
6881 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
6882 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
6883 if test "${wine_cv_opengl_version_OK+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886 cat >conftest.$ac_ext <<_ACEOF
6887 #line $LINENO "configure"
6888 #include "confdefs.h"
6889 #include <GL/gl.h>
6891 main ()
6893 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
6895 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext
6899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6900 (eval $ac_compile) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -s conftest.$ac_objext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 wine_cv_opengl_version_OK="yes"
6911 else
6912 echo "$as_me: failed program was:" >&5
6913 cat conftest.$ac_ext >&5
6914 wine_cv_opengl_version_OK="no"
6917 rm -f conftest.$ac_objext conftest.$ac_ext
6920 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
6921 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
6923 if test "$wine_cv_opengl_version_OK" = "yes"
6924 then
6925 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
6926 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
6927 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930 ac_check_lib_save_LIBS=$LIBS
6931 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
6932 cat >conftest.$ac_ext <<_ACEOF
6933 #line $LINENO "configure"
6934 #include "confdefs.h"
6936 /* Override any gcc2 internal prototype to avoid an error. */
6937 #ifdef __cplusplus
6938 extern "C"
6939 #endif
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6942 char glXCreateContext ();
6944 main ()
6946 glXCreateContext ();
6948 return 0;
6950 _ACEOF
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953 (eval $ac_link) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6963 ac_cv_lib_GL_glXCreateContext=yes
6964 else
6965 echo "$as_me: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6967 ac_cv_lib_GL_glXCreateContext=no
6969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6970 LIBS=$ac_check_lib_save_LIBS
6972 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
6973 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
6974 if test $ac_cv_lib_GL_glXCreateContext = yes; then
6975 OPENGL_LIBS="-lGL"
6980 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
6981 then
6982 OPENGLFILES='$(OPENGLFILES)'
6984 cat >>confdefs.h <<\_ACEOF
6985 #define HAVE_OPENGL 1
6986 _ACEOF
6989 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
6990 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
6991 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 ac_check_lib_save_LIBS=$LIBS
6995 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
6996 cat >conftest.$ac_ext <<_ACEOF
6997 #line $LINENO "configure"
6998 #include "confdefs.h"
7000 /* Override any gcc2 internal prototype to avoid an error. */
7001 #ifdef __cplusplus
7002 extern "C"
7003 #endif
7004 /* We use char because int might match the return type of a gcc2
7005 builtin and then its argument prototype would still apply. */
7006 char glXGetProcAddressARB ();
7008 main ()
7010 glXGetProcAddressARB ();
7012 return 0;
7014 _ACEOF
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_lib_GL_glXGetProcAddressARB=yes
7028 else
7029 echo "$as_me: failed program was:" >&5
7030 cat conftest.$ac_ext >&5
7031 ac_cv_lib_GL_glXGetProcAddressARB=no
7033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7034 LIBS=$ac_check_lib_save_LIBS
7036 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7037 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7038 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7040 cat >>confdefs.h <<\_ACEOF
7041 #define HAVE_GLX_GETPROCADDRESS 1
7042 _ACEOF
7047 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7048 then
7049 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7050 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7051 if test "${wine_cv_extension_prototypes+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054 cat >conftest.$ac_ext <<_ACEOF
7055 #line $LINENO "configure"
7056 #include "confdefs.h"
7057 #include <GL/gl.h>
7058 #ifdef HAVE_GL_GLEXT_H
7059 # include <GL/glext.h>
7060 #endif
7063 main ()
7065 PFNGLCOLORTABLEEXTPROC test_proc;
7067 return 0;
7069 _ACEOF
7070 rm -f conftest.$ac_objext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7072 (eval $ac_compile) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -s conftest.$ac_objext'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082 wine_cv_extension_prototypes="yes"
7083 else
7084 echo "$as_me: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7086 wine_cv_extension_prototypes="no"
7089 rm -f conftest.$ac_objext conftest.$ac_ext
7092 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7093 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7094 if test "$wine_cv_extension_prototypes" = "yes"
7095 then
7097 cat >>confdefs.h <<\_ACEOF
7098 #define HAVE_GLEXT_PROTOTYPES 1
7099 _ACEOF
7105 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7106 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7107 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 ac_check_lib_save_LIBS=$LIBS
7111 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7112 $LIBS"
7113 cat >conftest.$ac_ext <<_ACEOF
7114 #line $LINENO "configure"
7115 #include "confdefs.h"
7117 /* Override any gcc2 internal prototype to avoid an error. */
7118 #ifdef __cplusplus
7119 extern "C"
7120 #endif
7121 /* We use char because int might match the return type of a gcc2
7122 builtin and then its argument prototype would still apply. */
7123 char gluLookAt ();
7125 main ()
7127 gluLookAt ();
7129 return 0;
7131 _ACEOF
7132 rm -f conftest.$ac_objext conftest$ac_exeext
7133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7134 (eval $ac_link) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -s conftest$ac_exeext'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 ac_cv_lib_GLU_gluLookAt=yes
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 ac_cv_lib_GLU_gluLookAt=no
7150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7151 LIBS=$ac_check_lib_save_LIBS
7153 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7154 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7155 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7156 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7157 GLU32FILES='$(GLU32FILES)'
7165 NASLIBS=""
7168 for ac_header in audio/audiolib.h
7170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7172 echo "$as_me:$LINENO: checking for $ac_header" >&5
7173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7179 else
7180 # Is the header compilable?
7181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7183 cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 #include "confdefs.h"
7186 $ac_includes_default
7187 #include <$ac_header>
7188 _ACEOF
7189 rm -f conftest.$ac_objext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7191 (eval $ac_compile) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try='test -s conftest.$ac_objext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
7201 ac_header_compiler=yes
7202 else
7203 echo "$as_me: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7205 ac_header_compiler=no
7207 rm -f conftest.$ac_objext conftest.$ac_ext
7208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7209 echo "${ECHO_T}$ac_header_compiler" >&6
7211 # Is the header present?
7212 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7214 cat >conftest.$ac_ext <<_ACEOF
7215 #line $LINENO "configure"
7216 #include "confdefs.h"
7217 #include <$ac_header>
7218 _ACEOF
7219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7221 ac_status=$?
7222 grep -v '^ *+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } >/dev/null; then
7227 if test -s conftest.err; then
7228 ac_cpp_err=$ac_c_preproc_warn_flag
7229 else
7230 ac_cpp_err=
7232 else
7233 ac_cpp_err=yes
7235 if test -z "$ac_cpp_err"; then
7236 ac_header_preproc=yes
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7240 ac_header_preproc=no
7242 rm -f conftest.err conftest.$ac_ext
7243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7244 echo "${ECHO_T}$ac_header_preproc" >&6
7246 # So? What about this header?
7247 case $ac_header_compiler:$ac_header_preproc in
7248 yes:no )
7249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7253 no:yes )
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7260 esac
7261 echo "$as_me:$LINENO: checking for $ac_header" >&5
7262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266 eval "$as_ac_Header=$ac_header_preproc"
7268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7273 cat >>confdefs.h <<_ACEOF
7274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7275 _ACEOF
7277 for ac_header in audio/soundlib.h
7279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7280 echo "$as_me:$LINENO: checking for $ac_header" >&5
7281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285 cat >conftest.$ac_ext <<_ACEOF
7286 #line $LINENO "configure"
7287 #include "confdefs.h"
7288 #include <audio/audiolib.h>
7290 #include <$ac_header>
7291 _ACEOF
7292 rm -f conftest.$ac_objext
7293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7294 (eval $ac_compile) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -s conftest.$ac_objext'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 (eval $ac_try) 2>&5
7301 ac_status=$?
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7304 eval "$as_ac_Header=yes"
7305 else
7306 echo "$as_me: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7308 eval "$as_ac_Header=no"
7310 rm -f conftest.$ac_objext conftest.$ac_ext
7312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7315 cat >>confdefs.h <<_ACEOF
7316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7317 _ACEOF
7321 done
7323 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
7324 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
7325 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328 ac_check_lib_save_LIBS=$LIBS
7329 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7330 cat >conftest.$ac_ext <<_ACEOF
7331 #line $LINENO "configure"
7332 #include "confdefs.h"
7334 /* Override any gcc2 internal prototype to avoid an error. */
7335 #ifdef __cplusplus
7336 extern "C"
7337 #endif
7338 /* We use char because int might match the return type of a gcc2
7339 builtin and then its argument prototype would still apply. */
7340 char AuCreateFlow ();
7342 main ()
7344 AuCreateFlow ();
7346 return 0;
7348 _ACEOF
7349 rm -f conftest.$ac_objext conftest$ac_exeext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351 (eval $ac_link) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -s conftest$ac_exeext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_lib_audio_AuCreateFlow=yes
7362 else
7363 echo "$as_me: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7365 ac_cv_lib_audio_AuCreateFlow=no
7367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7368 LIBS=$ac_check_lib_save_LIBS
7370 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
7371 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
7372 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
7374 cat >>confdefs.h <<\_ACEOF
7375 #define HAVE_NAS 1
7376 _ACEOF
7378 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
7383 done
7386 CPPFLAGS="$ac_save_CPPFLAGS"
7387 XFILES='$(XFILES)'
7388 else
7389 XLIB=""
7390 X_CFLAGS=""
7391 X_LIBS=""
7394 CURSESLIBS=""
7395 if test "x$with_curses" != "xno"
7396 then
7398 for ac_header in ncurses.h
7400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7402 echo "$as_me:$LINENO: checking for $ac_header" >&5
7403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7409 else
7410 # Is the header compilable?
7411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7413 cat >conftest.$ac_ext <<_ACEOF
7414 #line $LINENO "configure"
7415 #include "confdefs.h"
7416 $ac_includes_default
7417 #include <$ac_header>
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>&5
7422 ac_status=$?
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -s conftest.$ac_objext'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427 (eval $ac_try) 2>&5
7428 ac_status=$?
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7431 ac_header_compiler=yes
7432 else
7433 echo "$as_me: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7435 ac_header_compiler=no
7437 rm -f conftest.$ac_objext conftest.$ac_ext
7438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7439 echo "${ECHO_T}$ac_header_compiler" >&6
7441 # Is the header present?
7442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7444 cat >conftest.$ac_ext <<_ACEOF
7445 #line $LINENO "configure"
7446 #include "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 else
7460 ac_cpp_err=
7462 else
7463 ac_cpp_err=yes
7465 if test -z "$ac_cpp_err"; then
7466 ac_header_preproc=yes
7467 else
7468 echo "$as_me: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7470 ac_header_preproc=no
7472 rm -f conftest.err conftest.$ac_ext
7473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7474 echo "${ECHO_T}$ac_header_preproc" >&6
7476 # So? What about this header?
7477 case $ac_header_compiler:$ac_header_preproc in
7478 yes:no )
7479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7483 no:yes )
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7490 esac
7491 echo "$as_me:$LINENO: checking for $ac_header" >&5
7492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496 eval "$as_ac_Header=$ac_header_preproc"
7498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7503 cat >>confdefs.h <<_ACEOF
7504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7505 _ACEOF
7506 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7507 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7508 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 ac_check_lib_save_LIBS=$LIBS
7512 LIBS="-lncurses $LIBS"
7513 cat >conftest.$ac_ext <<_ACEOF
7514 #line $LINENO "configure"
7515 #include "confdefs.h"
7517 /* Override any gcc2 internal prototype to avoid an error. */
7518 #ifdef __cplusplus
7519 extern "C"
7520 #endif
7521 /* We use char because int might match the return type of a gcc2
7522 builtin and then its argument prototype would still apply. */
7523 char waddch ();
7525 main ()
7527 waddch ();
7529 return 0;
7531 _ACEOF
7532 rm -f conftest.$ac_objext conftest$ac_exeext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7534 (eval $ac_link) 2>&5
7535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } &&
7538 { ac_try='test -s conftest$ac_exeext'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 (eval $ac_try) 2>&5
7541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; }; then
7544 ac_cv_lib_ncurses_waddch=yes
7545 else
7546 echo "$as_me: failed program was:" >&5
7547 cat conftest.$ac_ext >&5
7548 ac_cv_lib_ncurses_waddch=no
7550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7551 LIBS=$ac_check_lib_save_LIBS
7553 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7554 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7555 if test $ac_cv_lib_ncurses_waddch = yes; then
7557 cat >>confdefs.h <<\_ACEOF
7558 #define HAVE_LIBNCURSES 1
7559 _ACEOF
7561 CURSESLIBS="-lncurses"
7562 else
7564 for ac_header in curses.h
7566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7568 echo "$as_me:$LINENO: checking for $ac_header" >&5
7569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7575 else
7576 # Is the header compilable?
7577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7580 #line $LINENO "configure"
7581 #include "confdefs.h"
7582 $ac_includes_default
7583 #include <$ac_header>
7584 _ACEOF
7585 rm -f conftest.$ac_objext
7586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7587 (eval $ac_compile) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } &&
7591 { ac_try='test -s conftest.$ac_objext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 ac_header_compiler=yes
7598 else
7599 echo "$as_me: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7601 ac_header_compiler=no
7603 rm -f conftest.$ac_objext conftest.$ac_ext
7604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7605 echo "${ECHO_T}$ac_header_compiler" >&6
7607 # Is the header present?
7608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7610 cat >conftest.$ac_ext <<_ACEOF
7611 #line $LINENO "configure"
7612 #include "confdefs.h"
7613 #include <$ac_header>
7614 _ACEOF
7615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7617 ac_status=$?
7618 grep -v '^ *+' conftest.er1 >conftest.err
7619 rm -f conftest.er1
7620 cat conftest.err >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } >/dev/null; then
7623 if test -s conftest.err; then
7624 ac_cpp_err=$ac_c_preproc_warn_flag
7625 else
7626 ac_cpp_err=
7628 else
7629 ac_cpp_err=yes
7631 if test -z "$ac_cpp_err"; then
7632 ac_header_preproc=yes
7633 else
7634 echo "$as_me: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7636 ac_header_preproc=no
7638 rm -f conftest.err conftest.$ac_ext
7639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7640 echo "${ECHO_T}$ac_header_preproc" >&6
7642 # So? What about this header?
7643 case $ac_header_compiler:$ac_header_preproc in
7644 yes:no )
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7649 no:yes )
7650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7656 esac
7657 echo "$as_me:$LINENO: checking for $ac_header" >&5
7658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662 eval "$as_ac_Header=$ac_header_preproc"
7664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7669 cat >>confdefs.h <<_ACEOF
7670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7671 _ACEOF
7672 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7673 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7674 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 ac_check_lib_save_LIBS=$LIBS
7678 LIBS="-lcurses $LIBS"
7679 cat >conftest.$ac_ext <<_ACEOF
7680 #line $LINENO "configure"
7681 #include "confdefs.h"
7683 /* Override any gcc2 internal prototype to avoid an error. */
7684 #ifdef __cplusplus
7685 extern "C"
7686 #endif
7687 /* We use char because int might match the return type of a gcc2
7688 builtin and then its argument prototype would still apply. */
7689 char waddch ();
7691 main ()
7693 waddch ();
7695 return 0;
7697 _ACEOF
7698 rm -f conftest.$ac_objext conftest$ac_exeext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7700 (eval $ac_link) 2>&5
7701 ac_status=$?
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try='test -s conftest$ac_exeext'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 (eval $ac_try) 2>&5
7707 ac_status=$?
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; }; then
7710 ac_cv_lib_curses_waddch=yes
7711 else
7712 echo "$as_me: failed program was:" >&5
7713 cat conftest.$ac_ext >&5
7714 ac_cv_lib_curses_waddch=no
7716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7717 LIBS=$ac_check_lib_save_LIBS
7719 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7720 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7721 if test $ac_cv_lib_curses_waddch = yes; then
7723 cat >>confdefs.h <<\_ACEOF
7724 #define HAVE_LIBCURSES 1
7725 _ACEOF
7727 CURSESLIBS="-lcurses"
7732 done
7738 done
7740 saved_libs="$LIBS"
7741 LIBS="$CURSESLIBS $LIBS"
7744 for ac_func in getbkgd resizeterm
7746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7747 echo "$as_me:$LINENO: checking for $ac_func" >&5
7748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7749 if eval "test \"\${$as_ac_var+set}\" = set"; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752 cat >conftest.$ac_ext <<_ACEOF
7753 #line $LINENO "configure"
7754 #include "confdefs.h"
7755 /* System header to define __stub macros and hopefully few prototypes,
7756 which can conflict with char $ac_func (); below. */
7757 #include <assert.h>
7758 /* Override any gcc2 internal prototype to avoid an error. */
7759 #ifdef __cplusplus
7760 extern "C"
7761 #endif
7762 /* We use char because int might match the return type of a gcc2
7763 builtin and then its argument prototype would still apply. */
7764 char $ac_func ();
7765 char (*f) ();
7768 main ()
7770 /* The GNU C library defines this for functions which it implements
7771 to always fail with ENOSYS. Some functions are actually named
7772 something starting with __ and the normal name is an alias. */
7773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7774 choke me
7775 #else
7776 f = $ac_func;
7777 #endif
7780 return 0;
7782 _ACEOF
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7785 (eval $ac_link) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -s conftest$ac_exeext'
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 (eval $ac_try) 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 eval "$as_ac_var=yes"
7796 else
7797 echo "$as_me: failed program was:" >&5
7798 cat conftest.$ac_ext >&5
7799 eval "$as_ac_var=no"
7801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7805 if test `eval echo '${'$as_ac_var'}'` = yes; then
7806 cat >>confdefs.h <<_ACEOF
7807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7808 _ACEOF
7811 done
7813 LIBS="$saved_libs"
7817 # Extract the first word of "sane-config", so it can be a program name with args.
7818 set dummy sane-config; ac_word=$2
7819 echo "$as_me:$LINENO: checking for $ac_word" >&5
7820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7821 if test "${ac_cv_prog_sane_devel+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824 if test -n "$sane_devel"; then
7825 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_sane_devel="sane-config"
7835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7841 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
7844 sane_devel=$ac_cv_prog_sane_devel
7845 if test -n "$sane_devel"; then
7846 echo "$as_me:$LINENO: result: $sane_devel" >&5
7847 echo "${ECHO_T}$sane_devel" >&6
7848 else
7849 echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6
7853 if test "$sane_devel" = "no"
7854 then
7855 SANELIBS=""
7856 SANEINCL=""
7857 else
7858 SANELIBS="`$sane_devel --libs`"
7859 SANEINCL="`$sane_devel --cflags`"
7860 ac_save_CPPFLAGS="$CPPFLAGS"
7861 ac_save_LIBS="$LIBS"
7862 CPPFLAGS="$CPPFLAGS $SANEINCL"
7863 LIBS="$LIBS $SANELIBS"
7864 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7865 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
7866 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
7867 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
7871 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
7872 else
7873 # Is the header compilable?
7874 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
7875 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
7876 cat >conftest.$ac_ext <<_ACEOF
7877 #line $LINENO "configure"
7878 #include "confdefs.h"
7879 $ac_includes_default
7880 #include <sane/sane.h>
7881 _ACEOF
7882 rm -f conftest.$ac_objext
7883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7884 (eval $ac_compile) 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try='test -s conftest.$ac_objext'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 (eval $ac_try) 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7894 ac_header_compiler=yes
7895 else
7896 echo "$as_me: failed program was:" >&5
7897 cat conftest.$ac_ext >&5
7898 ac_header_compiler=no
7900 rm -f conftest.$ac_objext conftest.$ac_ext
7901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7902 echo "${ECHO_T}$ac_header_compiler" >&6
7904 # Is the header present?
7905 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
7906 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
7907 cat >conftest.$ac_ext <<_ACEOF
7908 #line $LINENO "configure"
7909 #include "confdefs.h"
7910 #include <sane/sane.h>
7911 _ACEOF
7912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } >/dev/null; then
7920 if test -s conftest.err; then
7921 ac_cpp_err=$ac_c_preproc_warn_flag
7922 else
7923 ac_cpp_err=
7925 else
7926 ac_cpp_err=yes
7928 if test -z "$ac_cpp_err"; then
7929 ac_header_preproc=yes
7930 else
7931 echo "$as_me: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7933 ac_header_preproc=no
7935 rm -f conftest.err conftest.$ac_ext
7936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7937 echo "${ECHO_T}$ac_header_preproc" >&6
7939 # So? What about this header?
7940 case $ac_header_compiler:$ac_header_preproc in
7941 yes:no )
7942 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
7943 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7944 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
7945 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
7946 no:yes )
7947 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
7948 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
7949 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
7950 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
7951 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
7952 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
7953 esac
7954 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
7955 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
7956 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959 ac_cv_header_sane_sane_h=$ac_header_preproc
7961 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
7962 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
7965 if test $ac_cv_header_sane_sane_h = yes; then
7966 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
7967 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
7968 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971 ac_check_lib_save_LIBS=$LIBS
7972 LIBS="-lsane $LIBS"
7973 cat >conftest.$ac_ext <<_ACEOF
7974 #line $LINENO "configure"
7975 #include "confdefs.h"
7977 /* Override any gcc2 internal prototype to avoid an error. */
7978 #ifdef __cplusplus
7979 extern "C"
7980 #endif
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983 char sane_open ();
7985 main ()
7987 sane_open ();
7989 return 0;
7991 _ACEOF
7992 rm -f conftest.$ac_objext conftest$ac_exeext
7993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7994 (eval $ac_link) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } &&
7998 { ac_try='test -s conftest$ac_exeext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 ac_cv_lib_sane_sane_open=yes
8005 else
8006 echo "$as_me: failed program was:" >&5
8007 cat conftest.$ac_ext >&5
8008 ac_cv_lib_sane_sane_open=no
8010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8011 LIBS=$ac_check_lib_save_LIBS
8013 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8014 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8015 if test $ac_cv_lib_sane_sane_open = yes; then
8017 cat >>confdefs.h <<\_ACEOF
8018 #define HAVE_SANE 1
8019 _ACEOF
8021 else
8022 SANELIBS=""
8023 SANEINCL=""
8026 else
8027 SANELIBS=""
8028 SANEINCL=""
8032 LIBS="$ac_save_LIBS"
8033 CPPFLAGS="$ac_save_CPPFLAGS"
8038 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8039 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8040 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043 ac_check_lib_save_LIBS=$LIBS
8044 LIBS="-lfreetype $X_LIBS $LIBS"
8045 cat >conftest.$ac_ext <<_ACEOF
8046 #line $LINENO "configure"
8047 #include "confdefs.h"
8049 /* Override any gcc2 internal prototype to avoid an error. */
8050 #ifdef __cplusplus
8051 extern "C"
8052 #endif
8053 /* We use char because int might match the return type of a gcc2
8054 builtin and then its argument prototype would still apply. */
8055 char FT_Init_FreeType ();
8057 main ()
8059 FT_Init_FreeType ();
8061 return 0;
8063 _ACEOF
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8066 (eval $ac_link) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try='test -s conftest$ac_exeext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_cv_lib_freetype_FT_Init_FreeType=yes
8077 else
8078 echo "$as_me: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8080 ac_cv_lib_freetype_FT_Init_FreeType=no
8082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8083 LIBS=$ac_check_lib_save_LIBS
8085 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8086 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8087 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8088 ft_lib=yes
8089 else
8090 ft_lib=no
8093 if test "$ft_lib" = "no"
8094 then
8095 FREETYPEINCL=""
8096 wine_cv_msg_freetype=no
8097 else
8098 # Extract the first word of "freetype-config", so it can be a program name with args.
8099 set dummy freetype-config; ac_word=$2
8100 echo "$as_me:$LINENO: checking for $ac_word" >&5
8101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8102 if test "${ac_cv_prog_ft_devel+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105 if test -n "$ft_devel"; then
8106 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8107 else
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 for as_dir in $PATH
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115 ac_cv_prog_ft_devel="freetype-config"
8116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8119 done
8120 done
8122 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8125 ft_devel=$ac_cv_prog_ft_devel
8126 if test -n "$ft_devel"; then
8127 echo "$as_me:$LINENO: result: $ft_devel" >&5
8128 echo "${ECHO_T}$ft_devel" >&6
8129 else
8130 echo "$as_me:$LINENO: result: no" >&5
8131 echo "${ECHO_T}no" >&6
8134 if test "$ft_devel" = "no"
8135 then
8136 # Extract the first word of "freetype2-config", so it can be a program name with args.
8137 set dummy freetype2-config; ac_word=$2
8138 echo "$as_me:$LINENO: checking for $ac_word" >&5
8139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8140 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143 if test -n "$ft_devel2"; then
8144 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8145 else
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8153 ac_cv_prog_ft_devel2="freetype2-config"
8154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8157 done
8158 done
8160 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8163 ft_devel2=$ac_cv_prog_ft_devel2
8164 if test -n "$ft_devel2"; then
8165 echo "$as_me:$LINENO: result: $ft_devel2" >&5
8166 echo "${ECHO_T}$ft_devel2" >&6
8167 else
8168 echo "$as_me:$LINENO: result: no" >&5
8169 echo "${ECHO_T}no" >&6
8172 if test "$ft_devel2" = "freetype2-config"
8173 then
8174 ft_devel=$ft_devel2
8177 if test "$ft_devel" = "no"
8178 then
8179 FREETYPEINCL=""
8180 wine_cv_msg_freetype=yes
8181 else
8182 FREETYPEINCL=`$ft_devel --cflags`
8183 ac_save_CPPFLAGS="$CPPFLAGS"
8184 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8193 for ac_header in freetype/freetype.h \
8194 freetype/ftglyph.h \
8195 freetype/tttables.h \
8196 freetype/ftnames.h \
8197 freetype/ftsnames.h \
8198 freetype/ttnameid.h \
8199 freetype/ftoutln.h \
8200 freetype/internal/sfnt.h
8202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8204 echo "$as_me:$LINENO: checking for $ac_header" >&5
8205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8211 else
8212 # Is the header compilable?
8213 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8215 cat >conftest.$ac_ext <<_ACEOF
8216 #line $LINENO "configure"
8217 #include "confdefs.h"
8218 $ac_includes_default
8219 #include <$ac_header>
8220 _ACEOF
8221 rm -f conftest.$ac_objext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8223 (eval $ac_compile) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try='test -s conftest.$ac_objext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_header_compiler=yes
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 cat conftest.$ac_ext >&5
8237 ac_header_compiler=no
8239 rm -f conftest.$ac_objext conftest.$ac_ext
8240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8241 echo "${ECHO_T}$ac_header_compiler" >&6
8243 # Is the header present?
8244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8246 cat >conftest.$ac_ext <<_ACEOF
8247 #line $LINENO "configure"
8248 #include "confdefs.h"
8249 #include <$ac_header>
8250 _ACEOF
8251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } >/dev/null; then
8259 if test -s conftest.err; then
8260 ac_cpp_err=$ac_c_preproc_warn_flag
8261 else
8262 ac_cpp_err=
8264 else
8265 ac_cpp_err=yes
8267 if test -z "$ac_cpp_err"; then
8268 ac_header_preproc=yes
8269 else
8270 echo "$as_me: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8272 ac_header_preproc=no
8274 rm -f conftest.err conftest.$ac_ext
8275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8276 echo "${ECHO_T}$ac_header_preproc" >&6
8278 # So? What about this header?
8279 case $ac_header_compiler:$ac_header_preproc in
8280 yes:no )
8281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8285 no:yes )
8286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8292 esac
8293 echo "$as_me:$LINENO: checking for $ac_header" >&5
8294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298 eval "$as_ac_Header=$ac_header_preproc"
8300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8305 cat >>confdefs.h <<_ACEOF
8306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8307 _ACEOF
8311 done
8313 cat >conftest.$ac_ext <<_ACEOF
8314 #line $LINENO "configure"
8315 #include "confdefs.h"
8316 #include <ft2build.h>
8317 #include <freetype/fttrigon.h>
8318 _ACEOF
8319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8321 ac_status=$?
8322 grep -v '^ *+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } >/dev/null; then
8327 if test -s conftest.err; then
8328 ac_cpp_err=$ac_c_preproc_warn_flag
8329 else
8330 ac_cpp_err=
8332 else
8333 ac_cpp_err=yes
8335 if test -z "$ac_cpp_err"; then
8337 cat >>confdefs.h <<\_ACEOF
8338 #define HAVE_FREETYPE_FTTRIGON_H 1
8339 _ACEOF
8341 wine_cv_fttrigon=yes
8342 else
8343 echo "$as_me: failed program was:" >&5
8344 cat conftest.$ac_ext >&5
8345 wine_cv_fttrigon=no
8347 rm -f conftest.err conftest.$ac_ext
8348 CPPFLAGS="$ac_save_CPPFLAGS"
8349 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8350 then
8352 cat >>confdefs.h <<\_ACEOF
8353 #define HAVE_FREETYPE 1
8354 _ACEOF
8356 wine_cv_msg_freetype=no
8357 else
8358 FREETYPEINCL=""
8359 wine_cv_msg_freetype=yes
8365 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8366 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8367 if test "${ac_cv_c_ppdev+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370 cat >conftest.$ac_ext <<_ACEOF
8371 #line $LINENO "configure"
8372 #include "confdefs.h"
8373 #include <linux/ppdev.h>
8375 main ()
8377 ioctl (1,PPCLAIM,0)
8379 return 0;
8381 _ACEOF
8382 rm -f conftest.$ac_objext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8384 (eval $ac_compile) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
8388 { ac_try='test -s conftest.$ac_objext'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 (eval $ac_try) 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 ac_cv_c_ppdev="yes"
8395 else
8396 echo "$as_me: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8398 ac_cv_c_ppdev="no"
8400 rm -f conftest.$ac_objext conftest.$ac_ext
8403 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8404 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8405 if test "$ac_cv_c_ppdev" = "yes"
8406 then
8408 cat >>confdefs.h <<\_ACEOF
8409 #define HAVE_PPDEV 1
8410 _ACEOF
8414 echo "$as_me:$LINENO: checking for va_copy" >&5
8415 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8416 if test "${ac_cv_c_va_copy+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419 cat >conftest.$ac_ext <<_ACEOF
8420 #line $LINENO "configure"
8421 #include "confdefs.h"
8422 #include <stdarg.h>
8424 main ()
8426 va_list ap1, ap2;
8427 va_copy(ap1,ap2);
8430 return 0;
8432 _ACEOF
8433 rm -f conftest.$ac_objext conftest$ac_exeext
8434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8435 (eval $ac_link) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -s conftest$ac_exeext'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; }; then
8445 ac_cv_c_va_copy="yes"
8446 else
8447 echo "$as_me: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8449 ac_cv_c_va_copy="no"
8451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8454 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8455 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
8456 if test "$ac_cv_c_va_copy" = "yes"
8457 then
8459 cat >>confdefs.h <<\_ACEOF
8460 #define HAVE_VA_COPY 1
8461 _ACEOF
8464 echo "$as_me:$LINENO: checking for __va_copy" >&5
8465 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8466 if test "${ac_cv_c___va_copy+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469 cat >conftest.$ac_ext <<_ACEOF
8470 #line $LINENO "configure"
8471 #include "confdefs.h"
8472 #include <stdarg.h>
8474 main ()
8476 va_list ap1, ap2;
8477 __va_copy(ap1,ap2);
8480 return 0;
8482 _ACEOF
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485 (eval $ac_link) 2>&5
8486 ac_status=$?
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
8489 { ac_try='test -s conftest$ac_exeext'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 ac_cv_c___va_copy="yes"
8496 else
8497 echo "$as_me: failed program was:" >&5
8498 cat conftest.$ac_ext >&5
8499 ac_cv_c___va_copy="no"
8501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8504 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8505 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
8506 if test "$ac_cv_c___va_copy" = "yes"
8507 then
8509 cat >>confdefs.h <<\_ACEOF
8510 #define HAVE___VA_COPY 1
8511 _ACEOF
8515 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8516 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8517 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 cat >conftest.$ac_ext <<_ACEOF
8521 #line $LINENO "configure"
8522 #include "confdefs.h"
8523 #include <sys/types.h>
8524 #ifdef HAVE_SYS_SOCKET_H
8525 # include <sys/socket.h>
8526 #endif
8527 #include <netipx/ipx.h>
8529 main ()
8531 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8533 return 0;
8535 _ACEOF
8536 rm -f conftest.$ac_objext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538 (eval $ac_compile) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -s conftest.$ac_objext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 (eval $ac_try) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_cv_c_ipx_gnu="yes"
8549 else
8550 echo "$as_me: failed program was:" >&5
8551 cat conftest.$ac_ext >&5
8552 ac_cv_c_ipx_gnu="no"
8554 rm -f conftest.$ac_objext conftest.$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8558 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8559 if test "$ac_cv_c_ipx_gnu" = "yes"
8560 then
8562 cat >>confdefs.h <<\_ACEOF
8563 #define HAVE_IPX_GNU 1
8564 _ACEOF
8568 if test "$ac_cv_c_ipx_gnu" = "no"
8569 then
8570 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8571 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8572 if test "${ac_cv_c_ipx_linux+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 cat >conftest.$ac_ext <<_ACEOF
8576 #line $LINENO "configure"
8577 #include "confdefs.h"
8578 #include <sys/types.h>
8579 #ifdef HAVE_SYS_SOCKET_H
8580 # include <sys/socket.h>
8581 #endif
8582 #include <asm/types.h>
8583 #include <linux/ipx.h>
8585 main ()
8587 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8589 return 0;
8591 _ACEOF
8592 rm -f conftest.$ac_objext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8594 (eval $ac_compile) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
8598 { ac_try='test -s conftest.$ac_objext'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 ac_cv_c_ipx_linux="yes"
8605 else
8606 echo "$as_me: failed program was:" >&5
8607 cat conftest.$ac_ext >&5
8608 ac_cv_c_ipx_linux="no"
8610 rm -f conftest.$ac_objext conftest.$ac_ext
8613 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8614 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8615 if test "$ac_cv_c_ipx_linux" = "yes"
8616 then
8618 cat >>confdefs.h <<\_ACEOF
8619 #define HAVE_IPX_LINUX 1
8620 _ACEOF
8628 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8632 echo "$as_me:$LINENO: checking for $ac_header" >&5
8633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8639 else
8640 # Is the header compilable?
8641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8644 #line $LINENO "configure"
8645 #include "confdefs.h"
8646 $ac_includes_default
8647 #include <$ac_header>
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651 (eval $ac_compile) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -s conftest.$ac_objext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 (eval $ac_try) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 ac_header_compiler=yes
8662 else
8663 echo "$as_me: failed program was:" >&5
8664 cat conftest.$ac_ext >&5
8665 ac_header_compiler=no
8667 rm -f conftest.$ac_objext conftest.$ac_ext
8668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8669 echo "${ECHO_T}$ac_header_compiler" >&6
8671 # Is the header present?
8672 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8674 cat >conftest.$ac_ext <<_ACEOF
8675 #line $LINENO "configure"
8676 #include "confdefs.h"
8677 #include <$ac_header>
8678 _ACEOF
8679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } >/dev/null; then
8687 if test -s conftest.err; then
8688 ac_cpp_err=$ac_c_preproc_warn_flag
8689 else
8690 ac_cpp_err=
8692 else
8693 ac_cpp_err=yes
8695 if test -z "$ac_cpp_err"; then
8696 ac_header_preproc=yes
8697 else
8698 echo "$as_me: failed program was:" >&5
8699 cat conftest.$ac_ext >&5
8700 ac_header_preproc=no
8702 rm -f conftest.err conftest.$ac_ext
8703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8704 echo "${ECHO_T}$ac_header_preproc" >&6
8706 # So? What about this header?
8707 case $ac_header_compiler:$ac_header_preproc in
8708 yes:no )
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8713 no:yes )
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8720 esac
8721 echo "$as_me:$LINENO: checking for $ac_header" >&5
8722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726 eval "$as_ac_Header=$ac_header_preproc"
8728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8733 cat >>confdefs.h <<_ACEOF
8734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8735 _ACEOF
8736 break
8739 done
8742 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8743 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8744 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 cat >conftest.$ac_ext <<_ACEOF
8748 #line $LINENO "configure"
8749 #include "confdefs.h"
8751 #if defined(HAVE_SYS_SOUNDCARD_H)
8752 #include <sys/soundcard.h>
8753 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8754 #include <machine/soundcard.h>
8755 #elif defined(HAVE_SOUNDCARD_H)
8756 #include <soundcard.h>
8757 #endif
8760 main ()
8764 /* check for one of the Open Sound System specific SNDCTL_ defines */
8765 #if !defined(SNDCTL_DSP_STEREO)
8766 #error No open sound system
8767 #endif
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>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } &&
8779 { ac_try='test -s conftest.$ac_objext'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 (eval $ac_try) 2>&5
8782 ac_status=$?
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
8785 ac_cv_c_opensoundsystem="yes"
8786 else
8787 echo "$as_me: failed program was:" >&5
8788 cat conftest.$ac_ext >&5
8789 ac_cv_c_opensoundsystem="no"
8791 rm -f conftest.$ac_objext conftest.$ac_ext
8793 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8794 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8796 if test "$ac_cv_c_opensoundsystem" = "yes"
8797 then
8799 cat >>confdefs.h <<\_ACEOF
8800 #define HAVE_OSS 1
8801 _ACEOF
8805 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8806 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8807 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810 cat >conftest.$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 #include "confdefs.h"
8814 #if defined(HAVE_SYS_SOUNDCARD_H)
8815 #include <sys/soundcard.h>
8816 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8817 #include <machine/soundcard.h>
8818 #elif defined(HAVE_SOUNDCARD_H)
8819 #include <soundcard.h>
8820 #endif
8823 main ()
8827 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8828 #if !defined(SNDCTL_SEQ_SYNC)
8829 #error No open sound system MIDI interface
8830 #endif
8833 return 0;
8835 _ACEOF
8836 rm -f conftest.$ac_objext
8837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8838 (eval $ac_compile) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } &&
8842 { ac_try='test -s conftest.$ac_objext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8848 ac_cv_c_opensoundsystem_midi="yes"
8849 else
8850 echo "$as_me: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8852 ac_cv_c_opensoundsystem_midi="no"
8854 rm -f conftest.$ac_objext conftest.$ac_ext
8856 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
8857 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
8859 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8860 then
8862 cat >>confdefs.h <<\_ACEOF
8863 #define HAVE_OSS_MIDI 1
8864 _ACEOF
8868 # Extract the first word of "artsc-config", so it can be a program name with args.
8869 set dummy artsc-config; ac_word=$2
8870 echo "$as_me:$LINENO: checking for $ac_word" >&5
8871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8872 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875 case $ARTSCCONFIG in
8876 [\\/]* | ?:[\\/]*)
8877 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881 for as_dir in $PATH
8883 IFS=$as_save_IFS
8884 test -z "$as_dir" && as_dir=.
8885 for ac_exec_ext in '' $ac_executable_extensions; do
8886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8887 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
8888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8889 break 2
8891 done
8892 done
8895 esac
8897 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
8899 if test -n "$ARTSCCONFIG"; then
8900 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
8901 echo "${ECHO_T}$ARTSCCONFIG" >&6
8902 else
8903 echo "$as_me:$LINENO: result: no" >&5
8904 echo "${ECHO_T}no" >&6
8907 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
8908 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
8909 if test "${ac_cv_c_artsserver+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
8913 then
8914 ac_cv_c_artsserver=no
8915 else
8916 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
8917 ARTSC_LIBS=`$ARTSCCONFIG --libs`
8918 ac_cv_c_artsserver=no
8919 save_CFLAGS="$CFLAGS"
8920 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
8921 cat >conftest.$ac_ext <<_ACEOF
8922 #line $LINENO "configure"
8923 #include "confdefs.h"
8925 #include <artsc.h>
8928 main ()
8931 arts_stream_t stream;
8934 return 0;
8936 _ACEOF
8937 rm -f conftest.$ac_objext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8939 (eval $ac_compile) 2>&5
8940 ac_status=$?
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } &&
8943 { ac_try='test -s conftest.$ac_objext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8950 ac_cv_c_artsserver=yes
8952 else
8953 echo "$as_me: failed program was:" >&5
8954 cat conftest.$ac_ext >&5
8956 rm -f conftest.$ac_objext conftest.$ac_ext
8957 CFLAGS="$save_CFLAGS"
8960 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
8961 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
8963 if test "$ac_cv_c_artsserver" = "yes"
8964 then
8965 ARTSLIBS=$ARTSC_LIBS
8967 ARTSINCL=$ARTSC_CFLAGS
8971 cat >>confdefs.h <<\_ACEOF
8972 #define HAVE_ARTS 1
8973 _ACEOF
8977 ALSALIBS=""
8981 for ac_header in alsa/asoundlib.h sys/asoundlib.h
8983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8985 echo "$as_me:$LINENO: checking for $ac_header" >&5
8986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8992 else
8993 # Is the header compilable?
8994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8996 cat >conftest.$ac_ext <<_ACEOF
8997 #line $LINENO "configure"
8998 #include "confdefs.h"
8999 $ac_includes_default
9000 #include <$ac_header>
9001 _ACEOF
9002 rm -f conftest.$ac_objext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9004 (eval $ac_compile) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try='test -s conftest.$ac_objext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 ac_header_compiler=yes
9015 else
9016 echo "$as_me: failed program was:" >&5
9017 cat conftest.$ac_ext >&5
9018 ac_header_compiler=no
9020 rm -f conftest.$ac_objext conftest.$ac_ext
9021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9022 echo "${ECHO_T}$ac_header_compiler" >&6
9024 # Is the header present?
9025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9028 #line $LINENO "configure"
9029 #include "confdefs.h"
9030 #include <$ac_header>
9031 _ACEOF
9032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9034 ac_status=$?
9035 grep -v '^ *+' conftest.er1 >conftest.err
9036 rm -f conftest.er1
9037 cat conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } >/dev/null; then
9040 if test -s conftest.err; then
9041 ac_cpp_err=$ac_c_preproc_warn_flag
9042 else
9043 ac_cpp_err=
9045 else
9046 ac_cpp_err=yes
9048 if test -z "$ac_cpp_err"; then
9049 ac_header_preproc=yes
9050 else
9051 echo "$as_me: failed program was:" >&5
9052 cat conftest.$ac_ext >&5
9053 ac_header_preproc=no
9055 rm -f conftest.err conftest.$ac_ext
9056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9057 echo "${ECHO_T}$ac_header_preproc" >&6
9059 # So? What about this header?
9060 case $ac_header_compiler:$ac_header_preproc in
9061 yes:no )
9062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9066 no:yes )
9067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9073 esac
9074 echo "$as_me:$LINENO: checking for $ac_header" >&5
9075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079 eval "$as_ac_Header=$ac_header_preproc"
9081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9086 cat >>confdefs.h <<_ACEOF
9087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9088 _ACEOF
9089 break
9092 done
9094 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
9095 then
9096 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9097 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9098 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101 ac_check_lib_save_LIBS=$LIBS
9102 LIBS="-lasound $LIBS"
9103 cat >conftest.$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 #include "confdefs.h"
9107 /* Override any gcc2 internal prototype to avoid an error. */
9108 #ifdef __cplusplus
9109 extern "C"
9110 #endif
9111 /* We use char because int might match the return type of a gcc2
9112 builtin and then its argument prototype would still apply. */
9113 char snd_pcm_open ();
9115 main ()
9117 snd_pcm_open ();
9119 return 0;
9121 _ACEOF
9122 rm -f conftest.$ac_objext conftest$ac_exeext
9123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9124 (eval $ac_link) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -s conftest$ac_exeext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 ac_cv_lib_asound_snd_pcm_open=yes
9135 else
9136 echo "$as_me: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9138 ac_cv_lib_asound_snd_pcm_open=no
9140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9141 LIBS=$ac_check_lib_save_LIBS
9143 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9144 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9145 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9147 cat >>confdefs.h <<\_ACEOF
9148 #define HAVE_ALSA 1
9149 _ACEOF
9151 ALSALIBS="-lasound"
9157 AUDIOIOLIBS=""
9160 for ac_header in libaudioio.h
9162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9164 echo "$as_me:$LINENO: checking for $ac_header" >&5
9165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9171 else
9172 # Is the header compilable?
9173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9175 cat >conftest.$ac_ext <<_ACEOF
9176 #line $LINENO "configure"
9177 #include "confdefs.h"
9178 $ac_includes_default
9179 #include <$ac_header>
9180 _ACEOF
9181 rm -f conftest.$ac_objext
9182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9183 (eval $ac_compile) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -s conftest.$ac_objext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 ac_header_compiler=yes
9194 else
9195 echo "$as_me: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9197 ac_header_compiler=no
9199 rm -f conftest.$ac_objext conftest.$ac_ext
9200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9201 echo "${ECHO_T}$ac_header_compiler" >&6
9203 # Is the header present?
9204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9206 cat >conftest.$ac_ext <<_ACEOF
9207 #line $LINENO "configure"
9208 #include "confdefs.h"
9209 #include <$ac_header>
9210 _ACEOF
9211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9213 ac_status=$?
9214 grep -v '^ *+' conftest.er1 >conftest.err
9215 rm -f conftest.er1
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } >/dev/null; then
9219 if test -s conftest.err; then
9220 ac_cpp_err=$ac_c_preproc_warn_flag
9221 else
9222 ac_cpp_err=
9224 else
9225 ac_cpp_err=yes
9227 if test -z "$ac_cpp_err"; then
9228 ac_header_preproc=yes
9229 else
9230 echo "$as_me: failed program was:" >&5
9231 cat conftest.$ac_ext >&5
9232 ac_header_preproc=no
9234 rm -f conftest.err conftest.$ac_ext
9235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9236 echo "${ECHO_T}$ac_header_preproc" >&6
9238 # So? What about this header?
9239 case $ac_header_compiler:$ac_header_preproc in
9240 yes:no )
9241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9245 no:yes )
9246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9252 esac
9253 echo "$as_me:$LINENO: checking for $ac_header" >&5
9254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9256 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 else
9258 eval "$as_ac_Header=$ac_header_preproc"
9260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9265 cat >>confdefs.h <<_ACEOF
9266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9267 _ACEOF
9268 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9269 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9270 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273 ac_check_lib_save_LIBS=$LIBS
9274 LIBS="-laudioio $LIBS"
9275 cat >conftest.$ac_ext <<_ACEOF
9276 #line $LINENO "configure"
9277 #include "confdefs.h"
9279 /* Override any gcc2 internal prototype to avoid an error. */
9280 #ifdef __cplusplus
9281 extern "C"
9282 #endif
9283 /* We use char because int might match the return type of a gcc2
9284 builtin and then its argument prototype would still apply. */
9285 char AudioIOGetVersion ();
9287 main ()
9289 AudioIOGetVersion ();
9291 return 0;
9293 _ACEOF
9294 rm -f conftest.$ac_objext conftest$ac_exeext
9295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9296 (eval $ac_link) 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } &&
9300 { ac_try='test -s conftest$ac_exeext'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 (eval $ac_try) 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 ac_cv_lib_audioio_AudioIOGetVersion=yes
9307 else
9308 echo "$as_me: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9310 ac_cv_lib_audioio_AudioIOGetVersion=no
9312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9313 LIBS=$ac_check_lib_save_LIBS
9315 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9316 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9317 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9318 AUDIOIOLIBS="-laudioio"
9320 cat >>confdefs.h <<\_ACEOF
9321 #define HAVE_LIBAUDIOIO 1
9322 _ACEOF
9328 done
9332 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9333 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9334 if test "${ac_cv_mmap64_works+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else
9337 if test "$cross_compiling" = yes; then
9338 ac_cv_mmap64_works="no"
9339 else
9340 cat >conftest.$ac_ext <<_ACEOF
9341 #line $LINENO "configure"
9342 #include "confdefs.h"
9344 #define _FILE_OFFSET_BITS 64
9345 #include <stdio.h>
9346 #include <unistd.h>
9347 #include <fcntl.h>
9348 #include <sys/mman.h>
9349 #include <errno.h>
9351 int main(int argc,char **argv) {
9352 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9353 if (fd == -1) exit(1);
9355 unlink("conftest.map");
9357 write(fd,"test",4);
9359 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9360 (errno == EINVAL)
9362 exit(1);
9364 close(fd);
9365 fprintf(stderr,"success!\n");
9366 exit(0);
9370 _ACEOF
9371 rm -f conftest$ac_exeext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9373 (eval $ac_link) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 (eval $ac_try) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 ac_cv_mmap64_works="yes"
9383 else
9384 echo "$as_me: program exited with status $ac_status" >&5
9385 echo "$as_me: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9387 ( exit $ac_status )
9388 ac_cv_mmap64_works="no"
9390 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9393 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9394 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9396 if test "$ac_cv_mmap64_works" = "yes"
9397 then
9399 cat >>confdefs.h <<\_ACEOF
9400 #define _FILE_OFFSET_BITS 64
9401 _ACEOF
9406 if test "x${GCC}" = "xyes"
9407 then
9408 CFLAGS="$CFLAGS -Wall"
9409 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9410 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9411 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414 if test "$cross_compiling" = yes; then
9415 ac_cv_c_gcc_strength_bug="yes"
9416 else
9417 cat >conftest.$ac_ext <<_ACEOF
9418 #line $LINENO "configure"
9419 #include "confdefs.h"
9421 int L[4] = {0,1,2,3};
9422 int main(void) {
9423 static int Array[3];
9424 unsigned int B = 3;
9425 int i;
9426 for(i=0; i<B; i++) Array[i] = i - 3;
9427 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9428 L[i] = 4;
9430 exit( Array[1] != -2 || L[2] != 3);
9432 _ACEOF
9433 rm -f conftest$ac_exeext
9434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9435 (eval $ac_link) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 (eval $ac_try) 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9444 ac_cv_c_gcc_strength_bug="no"
9445 else
9446 echo "$as_me: program exited with status $ac_status" >&5
9447 echo "$as_me: failed program was:" >&5
9448 cat conftest.$ac_ext >&5
9449 ( exit $ac_status )
9450 ac_cv_c_gcc_strength_bug="yes"
9452 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9455 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9456 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9457 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9458 then
9459 CFLAGS="$CFLAGS -fno-strength-reduce"
9462 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9463 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9464 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 else
9467 ac_wine_try_cflags_saved=$CFLAGS
9468 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9469 cat >conftest.$ac_ext <<_ACEOF
9470 #line $LINENO "configure"
9471 #include "confdefs.h"
9474 main ()
9478 return 0;
9480 _ACEOF
9481 rm -f conftest.$ac_objext conftest$ac_exeext
9482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -s conftest$ac_exeext'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 (eval $ac_try) 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; }; then
9493 ac_cv_c_gcc_stack_boundary="yes"
9494 else
9495 echo "$as_me: failed program was:" >&5
9496 cat conftest.$ac_ext >&5
9497 ac_cv_c_gcc_stack_boundary="no"
9499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9500 CFLAGS=$ac_wine_try_cflags_saved
9502 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9503 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9504 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9505 then
9506 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9511 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9512 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9513 if test "${ac_cv_asm_func_def+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516 cat >conftest.$ac_ext <<_ACEOF
9517 #line $LINENO "configure"
9518 #include "confdefs.h"
9519 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"); }
9522 main ()
9526 return 0;
9528 _ACEOF
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9531 (eval $ac_link) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -s conftest$ac_exeext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 (eval $ac_try) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_asm_func_def=".def"
9542 else
9543 echo "$as_me: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9545 cat >conftest.$ac_ext <<_ACEOF
9546 #line $LINENO "configure"
9547 #include "confdefs.h"
9548 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
9551 main ()
9555 return 0;
9557 _ACEOF
9558 rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9560 (eval $ac_link) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -s conftest$ac_exeext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 ac_cv_asm_func_def=".type @function"
9571 else
9572 echo "$as_me: failed program was:" >&5
9573 cat conftest.$ac_ext >&5
9574 cat >conftest.$ac_ext <<_ACEOF
9575 #line $LINENO "configure"
9576 #include "confdefs.h"
9577 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
9580 main ()
9584 return 0;
9586 _ACEOF
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9589 (eval $ac_link) 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -s conftest$ac_exeext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 (eval $ac_try) 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 ac_cv_asm_func_def=".type 2"
9600 else
9601 echo "$as_me: failed program was:" >&5
9602 cat conftest.$ac_ext >&5
9603 ac_cv_asm_func_def="unknown"
9605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9611 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
9612 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
9616 case "$ac_cv_asm_func_def" in
9617 ".def")
9618 cat >>confdefs.h <<\_ACEOF
9619 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
9620 _ACEOF
9622 ".type @function")
9623 cat >>confdefs.h <<\_ACEOF
9624 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
9625 _ACEOF
9627 ".type 2")
9628 cat >>confdefs.h <<\_ACEOF
9629 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
9630 _ACEOF
9633 cat >>confdefs.h <<\_ACEOF
9634 #define __ASM_FUNC(name) ""
9635 _ACEOF
9637 esac
9640 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9641 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9642 if test "${ac_cv_c_extern_prefix+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 cat >conftest.$ac_ext <<_ACEOF
9646 #line $LINENO "configure"
9647 #include "confdefs.h"
9648 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
9649 extern int ac_test;
9651 main ()
9653 if (ac_test) return 1
9655 return 0;
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660 (eval $ac_link) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -s conftest$ac_exeext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_c_extern_prefix="yes"
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9674 ac_cv_c_extern_prefix="no"
9676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9678 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9679 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9683 if test "$ac_cv_c_extern_prefix" = "yes"
9684 then
9685 cat >>confdefs.h <<\_ACEOF
9686 #define __ASM_NAME(name) "_" name
9687 _ACEOF
9689 else
9690 cat >>confdefs.h <<\_ACEOF
9691 #define __ASM_NAME(name) name
9692 _ACEOF
9697 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9698 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9699 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702 cat >conftest.$ac_ext <<_ACEOF
9703 #line $LINENO "configure"
9704 #include "confdefs.h"
9705 void ac_asm(void) { asm("\t.globl _ac_test@0\n_ac_test@0:\n\t.globl ac_test@0\nac_test@0:"); }
9706 extern void __attribute__((__stdcall__)) ac_test(void);
9708 main ()
9710 ac_test()
9712 return 0;
9714 _ACEOF
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try='test -s conftest$ac_exeext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 (eval $ac_try) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_c_stdcall_decoration="yes"
9728 else
9729 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9731 ac_cv_c_stdcall_decoration="no"
9733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9735 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9736 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9737 if test "$ac_cv_c_stdcall_decoration" = "yes"
9738 then
9740 cat >>confdefs.h <<\_ACEOF
9741 #define NEED_STDCALL_DECORATION 1
9742 _ACEOF
9747 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9748 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9749 if test "${ac_cv_c_asm_string+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752 cat >conftest.$ac_ext <<_ACEOF
9753 #line $LINENO "configure"
9754 #include "confdefs.h"
9755 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
9758 main ()
9762 return 0;
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767 (eval $ac_link) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -s conftest$ac_exeext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 ac_cv_c_asm_string="yes"
9778 else
9779 echo "$as_me: failed program was:" >&5
9780 cat conftest.$ac_ext >&5
9781 ac_cv_c_asm_string="no"
9783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9785 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9786 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9787 if test "$ac_cv_c_asm_string" = "yes"
9788 then
9790 cat >>confdefs.h <<\_ACEOF
9791 #define HAVE_ASM_STRING 1
9792 _ACEOF
9797 DLLEXT=""
9799 DLLFLAGS=""
9801 DLLIBS=""
9803 LDDLLFLAGS=""
9805 LDSHARED=""
9808 case $host_os in
9809 cygwin*|mingw32*)
9810 if test -n "$ac_tool_prefix"; then
9811 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9812 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
9813 echo "$as_me:$LINENO: checking for $ac_word" >&5
9814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9815 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 if test -n "$DLLWRAP"; then
9819 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9820 else
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822 for as_dir in $PATH
9824 IFS=$as_save_IFS
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9828 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
9829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9830 break 2
9832 done
9833 done
9837 DLLWRAP=$ac_cv_prog_DLLWRAP
9838 if test -n "$DLLWRAP"; then
9839 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9840 echo "${ECHO_T}$DLLWRAP" >&6
9841 else
9842 echo "$as_me:$LINENO: result: no" >&5
9843 echo "${ECHO_T}no" >&6
9847 if test -z "$ac_cv_prog_DLLWRAP"; then
9848 ac_ct_DLLWRAP=$DLLWRAP
9849 # Extract the first word of "dllwrap", so it can be a program name with args.
9850 set dummy dllwrap; ac_word=$2
9851 echo "$as_me:$LINENO: checking for $ac_word" >&5
9852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9853 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856 if test -n "$ac_ct_DLLWRAP"; then
9857 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9858 else
9859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 for as_dir in $PATH
9862 IFS=$as_save_IFS
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
9865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9866 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 break 2
9870 done
9871 done
9873 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
9876 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
9877 if test -n "$ac_ct_DLLWRAP"; then
9878 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
9879 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
9880 else
9881 echo "$as_me:$LINENO: result: no" >&5
9882 echo "${ECHO_T}no" >&6
9885 DLLWRAP=$ac_ct_DLLWRAP
9886 else
9887 DLLWRAP="$ac_cv_prog_DLLWRAP"
9890 if test "$DLLWRAP" = "false"; then
9891 LIBEXT="a"
9892 else
9893 LIBEXT="dll"
9898 for ac_header in dlfcn.h
9900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9902 echo "$as_me:$LINENO: checking for $ac_header" >&5
9903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9909 else
9910 # Is the header compilable?
9911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9913 cat >conftest.$ac_ext <<_ACEOF
9914 #line $LINENO "configure"
9915 #include "confdefs.h"
9916 $ac_includes_default
9917 #include <$ac_header>
9918 _ACEOF
9919 rm -f conftest.$ac_objext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9921 (eval $ac_compile) 2>&5
9922 ac_status=$?
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try='test -s conftest.$ac_objext'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931 ac_header_compiler=yes
9932 else
9933 echo "$as_me: failed program was:" >&5
9934 cat conftest.$ac_ext >&5
9935 ac_header_compiler=no
9937 rm -f conftest.$ac_objext conftest.$ac_ext
9938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9939 echo "${ECHO_T}$ac_header_compiler" >&6
9941 # Is the header present?
9942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9944 cat >conftest.$ac_ext <<_ACEOF
9945 #line $LINENO "configure"
9946 #include "confdefs.h"
9947 #include <$ac_header>
9948 _ACEOF
9949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9951 ac_status=$?
9952 grep -v '^ *+' conftest.er1 >conftest.err
9953 rm -f conftest.er1
9954 cat conftest.err >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } >/dev/null; then
9957 if test -s conftest.err; then
9958 ac_cpp_err=$ac_c_preproc_warn_flag
9959 else
9960 ac_cpp_err=
9962 else
9963 ac_cpp_err=yes
9965 if test -z "$ac_cpp_err"; then
9966 ac_header_preproc=yes
9967 else
9968 echo "$as_me: failed program was:" >&5
9969 cat conftest.$ac_ext >&5
9970 ac_header_preproc=no
9972 rm -f conftest.err conftest.$ac_ext
9973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9974 echo "${ECHO_T}$ac_header_preproc" >&6
9976 # So? What about this header?
9977 case $ac_header_compiler:$ac_header_preproc in
9978 yes:no )
9979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9983 no:yes )
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9990 esac
9991 echo "$as_me:$LINENO: checking for $ac_header" >&5
9992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 else
9996 eval "$as_ac_Header=$ac_header_preproc"
9998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10003 cat >>confdefs.h <<_ACEOF
10004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10005 _ACEOF
10007 for ac_func in dlopen
10009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10010 echo "$as_me:$LINENO: checking for $ac_func" >&5
10011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10012 if eval "test \"\${$as_ac_var+set}\" = set"; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015 cat >conftest.$ac_ext <<_ACEOF
10016 #line $LINENO "configure"
10017 #include "confdefs.h"
10018 /* System header to define __stub macros and hopefully few prototypes,
10019 which can conflict with char $ac_func (); below. */
10020 #include <assert.h>
10021 /* Override any gcc2 internal prototype to avoid an error. */
10022 #ifdef __cplusplus
10023 extern "C"
10024 #endif
10025 /* We use char because int might match the return type of a gcc2
10026 builtin and then its argument prototype would still apply. */
10027 char $ac_func ();
10028 char (*f) ();
10031 main ()
10033 /* The GNU C library defines this for functions which it implements
10034 to always fail with ENOSYS. Some functions are actually named
10035 something starting with __ and the normal name is an alias. */
10036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10037 choke me
10038 #else
10039 f = $ac_func;
10040 #endif
10043 return 0;
10045 _ACEOF
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048 (eval $ac_link) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -s conftest$ac_exeext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 eval "$as_ac_var=yes"
10059 else
10060 echo "$as_me: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10062 eval "$as_ac_var=no"
10064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10068 if test `eval echo '${'$as_ac_var'}'` = yes; then
10069 cat >>confdefs.h <<_ACEOF
10070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10071 _ACEOF
10073 else
10074 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10075 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10076 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079 ac_check_lib_save_LIBS=$LIBS
10080 LIBS="-ldl $LIBS"
10081 cat >conftest.$ac_ext <<_ACEOF
10082 #line $LINENO "configure"
10083 #include "confdefs.h"
10085 /* Override any gcc2 internal prototype to avoid an error. */
10086 #ifdef __cplusplus
10087 extern "C"
10088 #endif
10089 /* We use char because int might match the return type of a gcc2
10090 builtin and then its argument prototype would still apply. */
10091 char dlopen ();
10093 main ()
10095 dlopen ();
10097 return 0;
10099 _ACEOF
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10102 (eval $ac_link) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_cv_lib_dl_dlopen=yes
10113 else
10114 echo "$as_me: failed program was:" >&5
10115 cat conftest.$ac_ext >&5
10116 ac_cv_lib_dl_dlopen=no
10118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10121 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10122 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10123 if test $ac_cv_lib_dl_dlopen = yes; then
10125 cat >>confdefs.h <<\_ACEOF
10126 #define HAVE_DLOPEN 1
10127 _ACEOF
10129 DLLIBS="-ldl"
10130 else
10131 LIBEXT="a"
10135 done
10137 else
10138 LIBEXT="a"
10141 done
10144 if test "$LIBEXT" = "so"
10145 then
10146 DLLFLAGS="-fPIC"
10147 DLLEXT=".so"
10148 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
10149 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10150 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153 ac_wine_try_cflags_saved=$CFLAGS
10154 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10155 cat >conftest.$ac_ext <<_ACEOF
10156 #line $LINENO "configure"
10157 #include "confdefs.h"
10160 main ()
10164 return 0;
10166 _ACEOF
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169 (eval $ac_link) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try='test -s conftest$ac_exeext'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 ac_cv_c_dll_gnuelf="yes"
10180 else
10181 echo "$as_me: failed program was:" >&5
10182 cat conftest.$ac_ext >&5
10183 ac_cv_c_dll_gnuelf="no"
10185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10186 CFLAGS=$ac_wine_try_cflags_saved
10188 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10189 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10190 if test "$ac_cv_c_dll_gnuelf" = "yes"
10191 then
10192 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10193 LDDLLFLAGS="-Wl,-Bsymbolic"
10194 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
10195 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
10196 if test "${ac_cv_c_dll_zdefs+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199 ac_wine_try_cflags_saved=$CFLAGS
10200 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
10201 cat >conftest.$ac_ext <<_ACEOF
10202 #line $LINENO "configure"
10203 #include "confdefs.h"
10206 main ()
10210 return 0;
10212 _ACEOF
10213 rm -f conftest.$ac_objext conftest$ac_exeext
10214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10215 (eval $ac_link) 2>&5
10216 ac_status=$?
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try='test -s conftest$ac_exeext'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_c_dll_zdefs="yes"
10226 else
10227 echo "$as_me: failed program was:" >&5
10228 cat conftest.$ac_ext >&5
10229 ac_cv_c_dll_zdefs="no"
10231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10232 CFLAGS=$ac_wine_try_cflags_saved
10234 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
10235 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
10236 if test "$ac_cv_c_dll_zdefs" = "yes"
10237 then
10238 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
10240 else
10241 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10242 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10243 if test "${ac_cv_c_dll_unixware+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246 ac_wine_try_cflags_saved=$CFLAGS
10247 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10248 cat >conftest.$ac_ext <<_ACEOF
10249 #line $LINENO "configure"
10250 #include "confdefs.h"
10253 main ()
10257 return 0;
10259 _ACEOF
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10262 (eval $ac_link) 2>&5
10263 ac_status=$?
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
10266 { ac_try='test -s conftest$ac_exeext'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; }; then
10272 ac_cv_c_dll_unixware="yes"
10273 else
10274 echo "$as_me: failed program was:" >&5
10275 cat conftest.$ac_ext >&5
10276 ac_cv_c_dll_unixware="no"
10278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10279 CFLAGS=$ac_wine_try_cflags_saved
10281 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10282 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10283 if test "$ac_cv_c_dll_unixware" = "yes"
10284 then
10285 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10286 LDDLLFLAGS="-Wl,-B,symbolic"
10291 CROSSTEST=""
10293 if test "$cross_compiling" = "no"
10294 then
10295 for ac_prog in i586-mingw32msvc-gcc
10297 # Extract the first word of "$ac_prog", so it can be a program name with args.
10298 set dummy $ac_prog; ac_word=$2
10299 echo "$as_me:$LINENO: checking for $ac_word" >&5
10300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10301 if test "${ac_cv_prog_CROSSCC+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304 if test -n "$CROSSCC"; then
10305 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
10306 else
10307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308 for as_dir in $PATH
10310 IFS=$as_save_IFS
10311 test -z "$as_dir" && as_dir=.
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10314 ac_cv_prog_CROSSCC="$ac_prog"
10315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10316 break 2
10318 done
10319 done
10323 CROSSCC=$ac_cv_prog_CROSSCC
10324 if test -n "$CROSSCC"; then
10325 echo "$as_me:$LINENO: result: $CROSSCC" >&5
10326 echo "${ECHO_T}$CROSSCC" >&6
10327 else
10328 echo "$as_me:$LINENO: result: no" >&5
10329 echo "${ECHO_T}no" >&6
10332 test -n "$CROSSCC" && break
10333 done
10334 test -n "$CROSSCC" || CROSSCC="false"
10336 for ac_prog in i586-mingw32msvc-dlltool
10338 # Extract the first word of "$ac_prog", so it can be a program name with args.
10339 set dummy $ac_prog; ac_word=$2
10340 echo "$as_me:$LINENO: checking for $ac_word" >&5
10341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10342 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345 if test -n "$DLLTOOL"; then
10346 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10347 else
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
10353 for ac_exec_ext in '' $ac_executable_extensions; do
10354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10355 ac_cv_prog_DLLTOOL="$ac_prog"
10356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10357 break 2
10359 done
10360 done
10364 DLLTOOL=$ac_cv_prog_DLLTOOL
10365 if test -n "$DLLTOOL"; then
10366 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10367 echo "${ECHO_T}$DLLTOOL" >&6
10368 else
10369 echo "$as_me:$LINENO: result: no" >&5
10370 echo "${ECHO_T}no" >&6
10373 test -n "$DLLTOOL" && break
10374 done
10375 test -n "$DLLTOOL" || DLLTOOL="false"
10377 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
10380 esac
10382 if test "$LIBEXT" = "a"; then
10383 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10384 It is currently not possible to build Wine without shared library
10385 (.so) support to allow transparent switch between .so and .dll files.
10386 If you are using Linux, you will need a newer binutils.
10387 " >&5
10388 echo "$as_me: error: could not find a way to build shared libraries.
10389 It is currently not possible to build Wine without shared library
10390 (.so) support to allow transparent switch between .so and .dll files.
10391 If you are using Linux, you will need a newer binutils.
10392 " >&2;}
10393 { (exit 1); exit 1; }; }
10396 case $build_os in
10397 cygwin*|mingw32*)
10398 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10401 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10403 esac
10405 CRTLIBS=""
10407 case $host_os in
10408 mingw32*)
10409 CRTLIBS="-lmsvcrt" ;;
10410 esac
10413 if test "$LIBEXT" = "so"
10414 then
10415 # Extract the first word of "ldd", so it can be a program name with args.
10416 set dummy ldd; ac_word=$2
10417 echo "$as_me:$LINENO: checking for $ac_word" >&5
10418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10419 if test "${ac_cv_path_LDD+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 else
10422 case $LDD in
10423 [\\/]* | ?:[\\/]*)
10424 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428 as_dummy="/sbin:/usr/sbin:$PATH"
10429 for as_dir in $as_dummy
10431 IFS=$as_save_IFS
10432 test -z "$as_dir" && as_dir=.
10433 for ac_exec_ext in '' $ac_executable_extensions; do
10434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10435 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 break 2
10439 done
10440 done
10442 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10444 esac
10446 LDD=$ac_cv_path_LDD
10448 if test -n "$LDD"; then
10449 echo "$as_me:$LINENO: result: $LDD" >&5
10450 echo "${ECHO_T}$LDD" >&6
10451 else
10452 echo "$as_me:$LINENO: result: no" >&5
10453 echo "${ECHO_T}no" >&6
10457 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10458 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10459 if test "${ac_cv_lib_soname_X11+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462 ac_get_soname_save_LIBS=$LIBS
10463 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10464 cat >conftest.$ac_ext <<_ACEOF
10465 #line $LINENO "configure"
10466 #include "confdefs.h"
10468 /* Override any gcc2 internal prototype to avoid an error. */
10469 #ifdef __cplusplus
10470 extern "C"
10471 #endif
10472 /* We use char because int might match the return type of a gcc2
10473 builtin and then its argument prototype would still apply. */
10474 char XCreateWindow ();
10476 main ()
10478 XCreateWindow ();
10480 return 0;
10482 _ACEOF
10483 rm -f conftest.$ac_objext conftest$ac_exeext
10484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10485 (eval $ac_link) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } &&
10489 { ac_try='test -s conftest$ac_exeext'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10495 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10496 if test "x$ac_cv_lib_soname_X11" = "x"
10497 then
10498 ac_cv_lib_soname_X11="libX11.so"
10500 else
10501 echo "$as_me: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10503 ac_cv_lib_soname_X11="libX11.so"
10505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10506 LIBS=$ac_get_soname_save_LIBS
10508 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10509 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10510 if test "x$ac_cv_lib_soname_X11" != xNONE
10511 then
10512 cat >>confdefs.h <<_ACEOF
10513 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10514 _ACEOF
10517 echo "$as_me:$LINENO: checking for -lXext soname" >&5
10518 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10519 if test "${ac_cv_lib_soname_Xext+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 else
10522 ac_get_soname_save_LIBS=$LIBS
10523 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10524 cat >conftest.$ac_ext <<_ACEOF
10525 #line $LINENO "configure"
10526 #include "confdefs.h"
10528 /* Override any gcc2 internal prototype to avoid an error. */
10529 #ifdef __cplusplus
10530 extern "C"
10531 #endif
10532 /* We use char because int might match the return type of a gcc2
10533 builtin and then its argument prototype would still apply. */
10534 char XextCreateExtension ();
10536 main ()
10538 XextCreateExtension ();
10540 return 0;
10542 _ACEOF
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10545 (eval $ac_link) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -s conftest$ac_exeext'
10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10556 if test "x$ac_cv_lib_soname_Xext" = "x"
10557 then
10558 ac_cv_lib_soname_Xext="libXext.so"
10560 else
10561 echo "$as_me: failed program was:" >&5
10562 cat conftest.$ac_ext >&5
10563 ac_cv_lib_soname_Xext="libXext.so"
10565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10566 LIBS=$ac_get_soname_save_LIBS
10568 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10569 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10570 if test "x$ac_cv_lib_soname_Xext" != xNONE
10571 then
10572 cat >>confdefs.h <<_ACEOF
10573 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10574 _ACEOF
10577 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10578 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10579 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 else
10582 ac_get_soname_save_LIBS=$LIBS
10583 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10584 cat >conftest.$ac_ext <<_ACEOF
10585 #line $LINENO "configure"
10586 #include "confdefs.h"
10588 /* Override any gcc2 internal prototype to avoid an error. */
10589 #ifdef __cplusplus
10590 extern "C"
10591 #endif
10592 /* We use char because int might match the return type of a gcc2
10593 builtin and then its argument prototype would still apply. */
10594 char XRenderQueryExtension ();
10596 main ()
10598 XRenderQueryExtension ();
10600 return 0;
10602 _ACEOF
10603 rm -f conftest.$ac_objext conftest$ac_exeext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10605 (eval $ac_link) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } &&
10609 { ac_try='test -s conftest$ac_exeext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10616 if test "x$ac_cv_lib_soname_Xrender" = "x"
10617 then
10618 ac_cv_lib_soname_Xrender="libXrender.so"
10620 else
10621 echo "$as_me: failed program was:" >&5
10622 cat conftest.$ac_ext >&5
10623 ac_cv_lib_soname_Xrender="libXrender.so"
10625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_get_soname_save_LIBS
10628 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10629 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10630 if test "x$ac_cv_lib_soname_Xrender" != xNONE
10631 then
10632 cat >>confdefs.h <<_ACEOF
10633 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10634 _ACEOF
10637 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10638 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10639 if test "${ac_cv_lib_soname_freetype+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642 ac_get_soname_save_LIBS=$LIBS
10643 LIBS="-lfreetype $X_LIBS $LIBS"
10644 cat >conftest.$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10646 #include "confdefs.h"
10648 /* Override any gcc2 internal prototype to avoid an error. */
10649 #ifdef __cplusplus
10650 extern "C"
10651 #endif
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10654 char FT_Init_FreeType ();
10656 main ()
10658 FT_Init_FreeType ();
10660 return 0;
10662 _ACEOF
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10676 if test "x$ac_cv_lib_soname_freetype" = "x"
10677 then
10678 ac_cv_lib_soname_freetype="libfreetype.so"
10680 else
10681 echo "$as_me: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 ac_cv_lib_soname_freetype="libfreetype.so"
10685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10686 LIBS=$ac_get_soname_save_LIBS
10688 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10689 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10690 if test "x$ac_cv_lib_soname_freetype" != xNONE
10691 then
10692 cat >>confdefs.h <<_ACEOF
10693 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10694 _ACEOF
10697 echo "$as_me:$LINENO: checking for -lGL soname" >&5
10698 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
10699 if test "${ac_cv_lib_soname_GL+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702 ac_get_soname_save_LIBS=$LIBS
10703 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
10704 cat >conftest.$ac_ext <<_ACEOF
10705 #line $LINENO "configure"
10706 #include "confdefs.h"
10708 /* Override any gcc2 internal prototype to avoid an error. */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 /* We use char because int might match the return type of a gcc2
10713 builtin and then its argument prototype would still apply. */
10714 char glXQueryExtension ();
10716 main ()
10718 glXQueryExtension ();
10720 return 0;
10722 _ACEOF
10723 rm -f conftest.$ac_objext conftest$ac_exeext
10724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10725 (eval $ac_link) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try='test -s conftest$ac_exeext'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10736 if test "x$ac_cv_lib_soname_GL" = "x"
10737 then
10738 ac_cv_lib_soname_GL="libGL.so"
10740 else
10741 echo "$as_me: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10743 ac_cv_lib_soname_GL="libGL.so"
10745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_get_soname_save_LIBS
10748 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
10749 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
10750 if test "x$ac_cv_lib_soname_GL" != xNONE
10751 then
10752 cat >>confdefs.h <<_ACEOF
10753 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10754 _ACEOF
10757 echo "$as_me:$LINENO: checking for -lcups soname" >&5
10758 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
10759 if test "${ac_cv_lib_soname_cups+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10762 ac_get_soname_save_LIBS=$LIBS
10763 LIBS="-lcups $LIBS"
10764 cat >conftest.$ac_ext <<_ACEOF
10765 #line $LINENO "configure"
10766 #include "confdefs.h"
10768 /* Override any gcc2 internal prototype to avoid an error. */
10769 #ifdef __cplusplus
10770 extern "C"
10771 #endif
10772 /* We use char because int might match the return type of a gcc2
10773 builtin and then its argument prototype would still apply. */
10774 char cupsGetDefault ();
10776 main ()
10778 cupsGetDefault ();
10780 return 0;
10782 _ACEOF
10783 rm -f conftest.$ac_objext conftest$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try='test -s conftest$ac_exeext'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10792 ac_status=$?
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10796 if test "x$ac_cv_lib_soname_cups" = "x"
10797 then
10798 ac_cv_lib_soname_cups="libcups.so"
10800 else
10801 echo "$as_me: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 ac_cv_lib_soname_cups="libcups.so"
10805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10806 LIBS=$ac_get_soname_save_LIBS
10808 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
10809 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
10810 if test "x$ac_cv_lib_soname_cups" != xNONE
10811 then
10812 cat >>confdefs.h <<_ACEOF
10813 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10814 _ACEOF
10820 wine_cv_libc_reentrant=no
10821 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
10822 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10823 if test "${wine_cv_libc_r___errno_location+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826 if test "$cross_compiling" = yes; then
10827 wine_cv_libc_r___errno_location=yes
10828 else
10829 cat >conftest.$ac_ext <<_ACEOF
10830 #line $LINENO "configure"
10831 #include "confdefs.h"
10832 int myerrno = 0;
10833 int *__errno_location(){return &myerrno;}
10834 main(){close(333); close(333); exit(!myerrno);}
10835 _ACEOF
10836 rm -f conftest$ac_exeext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 wine_cv_libc_r___errno_location=yes
10848 else
10849 echo "$as_me: program exited with status $ac_status" >&5
10850 echo "$as_me: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10852 ( exit $ac_status )
10853 wine_cv_libc_r___errno_location=no
10855 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10858 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
10859 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
10860 if test "$wine_cv_libc_r___errno_location" = "yes"; then
10861 wine_cv_libc_reentrant=__errno_location
10862 else
10863 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
10864 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10865 if test "${wine_cv_libc_r___error+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868 if test "$cross_compiling" = yes; then
10869 wine_cv_libc_r___error=yes
10870 else
10871 cat >conftest.$ac_ext <<_ACEOF
10872 #line $LINENO "configure"
10873 #include "confdefs.h"
10874 int myerrno = 0;
10875 int *__error(){return &myerrno;}
10876 main(){close(333); close(333); exit(!myerrno);}
10877 _ACEOF
10878 rm -f conftest$ac_exeext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10880 (eval $ac_link) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10889 wine_cv_libc_r___error=yes
10890 else
10891 echo "$as_me: program exited with status $ac_status" >&5
10892 echo "$as_me: failed program was:" >&5
10893 cat conftest.$ac_ext >&5
10894 ( exit $ac_status )
10895 wine_cv_libc_r___error=no
10897 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10900 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
10901 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
10902 if test "$wine_cv_libc_r___error" = "yes"; then
10903 wine_cv_libc_reentrant=__error
10904 else
10905 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
10906 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
10907 if test "${wine_cv_libc_r____errno+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 else
10910 if test "$cross_compiling" = yes; then
10911 wine_cv_libc_r____errno=yes
10912 else
10913 cat >conftest.$ac_ext <<_ACEOF
10914 #line $LINENO "configure"
10915 #include "confdefs.h"
10916 int myerrno = 0;
10917 int *___errno(){return &myerrno;}
10918 main(){close(333); close(333); exit(!myerrno);}
10919 _ACEOF
10920 rm -f conftest$ac_exeext
10921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10922 (eval $ac_link) 2>&5
10923 ac_status=$?
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 wine_cv_libc_r____errno=yes
10932 else
10933 echo "$as_me: program exited with status $ac_status" >&5
10934 echo "$as_me: failed program was:" >&5
10935 cat conftest.$ac_ext >&5
10936 ( exit $ac_status )
10937 wine_cv_libc_r____errno=no
10939 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10942 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
10943 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
10944 if test "$wine_cv_libc_r____errno" = "yes"; then
10945 wine_cv_libc_reentrant=___errno
10946 else
10947 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
10948 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
10949 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952 if test "$cross_compiling" = yes; then
10953 wine_cv_libc_r___thr_errno=yes
10954 else
10955 cat >conftest.$ac_ext <<_ACEOF
10956 #line $LINENO "configure"
10957 #include "confdefs.h"
10958 int myerrno = 0;
10959 int *__thr_errno(){return &myerrno;}
10960 main(){close(333); close(333); exit(!myerrno);}
10961 _ACEOF
10962 rm -f conftest$ac_exeext
10963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10964 (eval $ac_link) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; }; then
10973 wine_cv_libc_r___thr_errno=yes
10974 else
10975 echo "$as_me: program exited with status $ac_status" >&5
10976 echo "$as_me: failed program was:" >&5
10977 cat conftest.$ac_ext >&5
10978 ( exit $ac_status )
10979 wine_cv_libc_r___thr_errno=no
10981 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10984 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
10985 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
10986 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
10987 wine_cv_libc_reentrant=__thr_errno
10988 else
10989 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
10990 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
10991 if test "${wine_cv_libc_r___errno+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994 if test "$cross_compiling" = yes; then
10995 wine_cv_libc_r___errno=yes
10996 else
10997 cat >conftest.$ac_ext <<_ACEOF
10998 #line $LINENO "configure"
10999 #include "confdefs.h"
11000 int myerrno = 0;
11001 int *__errno(){return &myerrno;}
11002 main(){close(333); close(333); exit(!myerrno);}
11003 _ACEOF
11004 rm -f conftest$ac_exeext
11005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11006 (eval $ac_link) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011 (eval $ac_try) 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; }; then
11015 wine_cv_libc_r___errno=yes
11016 else
11017 echo "$as_me: program exited with status $ac_status" >&5
11018 echo "$as_me: failed program was:" >&5
11019 cat conftest.$ac_ext >&5
11020 ( exit $ac_status )
11021 wine_cv_libc_r___errno=no
11023 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11026 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
11027 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
11028 if test "$wine_cv_libc_r___errno" = "yes"; then
11029 wine_cv_libc_reentrant=__errno
11042 if test "$wine_cv_libc_reentrant" != "no"
11043 then
11045 cat >>confdefs.h <<_ACEOF
11046 #define ERRNO_LOCATION $wine_cv_libc_reentrant
11047 _ACEOF
11052 if test "$have_x" = "yes"
11053 then
11054 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
11055 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11056 if test "${wine_cv_x_reentrant+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 else
11059 libX11_check=none
11060 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11061 if test -r $dir/libX11.so; then
11062 libX11_check="-D $dir/libX11.so"
11063 break
11065 if test -r $dir/libX11.a; then
11066 libX11_check="$dir/libX11.a"
11067 break
11069 done
11070 if test "$libX11_check" != "none"; then
11071 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11072 then
11073 wine_cv_x_reentrant=yes
11074 else
11075 wine_cv_x_reentrant=no
11077 else
11078 wine_cv_x_reentrant=unknown
11081 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
11082 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
11086 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11087 # for constant arguments. Useless!
11088 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11089 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11090 if test "${ac_cv_working_alloca_h+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093 cat >conftest.$ac_ext <<_ACEOF
11094 #line $LINENO "configure"
11095 #include "confdefs.h"
11096 #include <alloca.h>
11098 main ()
11100 char *p = (char *) alloca (2 * sizeof (int));
11102 return 0;
11104 _ACEOF
11105 rm -f conftest.$ac_objext conftest$ac_exeext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11107 (eval $ac_link) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -s conftest$ac_exeext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_cv_working_alloca_h=yes
11118 else
11119 echo "$as_me: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11121 ac_cv_working_alloca_h=no
11123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11125 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11126 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11127 if test $ac_cv_working_alloca_h = yes; then
11129 cat >>confdefs.h <<\_ACEOF
11130 #define HAVE_ALLOCA_H 1
11131 _ACEOF
11135 echo "$as_me:$LINENO: checking for alloca" >&5
11136 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11137 if test "${ac_cv_func_alloca_works+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140 cat >conftest.$ac_ext <<_ACEOF
11141 #line $LINENO "configure"
11142 #include "confdefs.h"
11143 #ifdef __GNUC__
11144 # define alloca __builtin_alloca
11145 #else
11146 # ifdef _MSC_VER
11147 # include <malloc.h>
11148 # define alloca _alloca
11149 # else
11150 # if HAVE_ALLOCA_H
11151 # include <alloca.h>
11152 # else
11153 # ifdef _AIX
11154 #pragma alloca
11155 # else
11156 # ifndef alloca /* predefined by HP cc +Olibcalls */
11157 char *alloca ();
11158 # endif
11159 # endif
11160 # endif
11161 # endif
11162 #endif
11165 main ()
11167 char *p = (char *) alloca (1);
11169 return 0;
11171 _ACEOF
11172 rm -f conftest.$ac_objext conftest$ac_exeext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11174 (eval $ac_link) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -s conftest$ac_exeext'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11181 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }; then
11184 ac_cv_func_alloca_works=yes
11185 else
11186 echo "$as_me: failed program was:" >&5
11187 cat conftest.$ac_ext >&5
11188 ac_cv_func_alloca_works=no
11190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11192 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11193 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11195 if test $ac_cv_func_alloca_works = yes; then
11197 cat >>confdefs.h <<\_ACEOF
11198 #define HAVE_ALLOCA 1
11199 _ACEOF
11201 else
11202 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11203 # that cause trouble. Some versions do not even contain alloca or
11204 # contain a buggy version. If you still want to use their alloca,
11205 # use ar to extract alloca.o from them instead of compiling alloca.c.
11207 ALLOCA=alloca.$ac_objext
11209 cat >>confdefs.h <<\_ACEOF
11210 #define C_ALLOCA 1
11211 _ACEOF
11214 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11215 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11216 if test "${ac_cv_os_cray+set}" = set; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 else
11219 cat >conftest.$ac_ext <<_ACEOF
11220 #line $LINENO "configure"
11221 #include "confdefs.h"
11222 #if defined(CRAY) && ! defined(CRAY2)
11223 webecray
11224 #else
11225 wenotbecray
11226 #endif
11228 _ACEOF
11229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11230 $EGREP "webecray" >/dev/null 2>&1; then
11231 ac_cv_os_cray=yes
11232 else
11233 ac_cv_os_cray=no
11235 rm -f conftest*
11238 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11239 echo "${ECHO_T}$ac_cv_os_cray" >&6
11240 if test $ac_cv_os_cray = yes; then
11241 for ac_func in _getb67 GETB67 getb67; do
11242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11243 echo "$as_me:$LINENO: checking for $ac_func" >&5
11244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11245 if eval "test \"\${$as_ac_var+set}\" = set"; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248 cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11250 #include "confdefs.h"
11251 /* System header to define __stub macros and hopefully few prototypes,
11252 which can conflict with char $ac_func (); below. */
11253 #include <assert.h>
11254 /* Override any gcc2 internal prototype to avoid an error. */
11255 #ifdef __cplusplus
11256 extern "C"
11257 #endif
11258 /* We use char because int might match the return type of a gcc2
11259 builtin and then its argument prototype would still apply. */
11260 char $ac_func ();
11261 char (*f) ();
11264 main ()
11266 /* The GNU C library defines this for functions which it implements
11267 to always fail with ENOSYS. Some functions are actually named
11268 something starting with __ and the normal name is an alias. */
11269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11270 choke me
11271 #else
11272 f = $ac_func;
11273 #endif
11276 return 0;
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -s conftest$ac_exeext'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 eval "$as_ac_var=yes"
11292 else
11293 echo "$as_me: failed program was:" >&5
11294 cat conftest.$ac_ext >&5
11295 eval "$as_ac_var=no"
11297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11301 if test `eval echo '${'$as_ac_var'}'` = yes; then
11303 cat >>confdefs.h <<_ACEOF
11304 #define CRAY_STACKSEG_END $ac_func
11305 _ACEOF
11307 break
11310 done
11313 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11314 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11315 if test "${ac_cv_c_stack_direction+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318 if test "$cross_compiling" = yes; then
11319 ac_cv_c_stack_direction=0
11320 else
11321 cat >conftest.$ac_ext <<_ACEOF
11322 #line $LINENO "configure"
11323 #include "confdefs.h"
11325 find_stack_direction ()
11327 static char *addr = 0;
11328 auto char dummy;
11329 if (addr == 0)
11331 addr = &dummy;
11332 return find_stack_direction ();
11334 else
11335 return (&dummy > addr) ? 1 : -1;
11339 main ()
11341 exit (find_stack_direction () < 0);
11343 _ACEOF
11344 rm -f conftest$ac_exeext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_cv_c_stack_direction=1
11356 else
11357 echo "$as_me: program exited with status $ac_status" >&5
11358 echo "$as_me: failed program was:" >&5
11359 cat conftest.$ac_ext >&5
11360 ( exit $ac_status )
11361 ac_cv_c_stack_direction=-1
11363 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11366 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11367 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11369 cat >>confdefs.h <<_ACEOF
11370 #define STACK_DIRECTION $ac_cv_c_stack_direction
11371 _ACEOF
11423 for ac_func in \
11424 _lwp_create \
11425 _pclose \
11426 _popen \
11427 _snprintf \
11428 _stricmp \
11429 _strnicmp \
11430 chsize \
11431 clone \
11432 ecvt \
11433 finite \
11434 fpclass \
11435 ftruncate \
11436 ftruncate64 \
11437 getnetbyaddr \
11438 getnetbyname \
11439 getpagesize \
11440 getprotobyname \
11441 getprotobynumber \
11442 getpwuid \
11443 getservbyport \
11444 getsockopt \
11445 inet_network \
11446 lseek64 \
11447 lstat \
11448 memmove \
11449 mkstemp \
11450 mmap \
11451 pclose \
11452 popen \
11453 pread \
11454 pwrite \
11455 rfork \
11456 select \
11457 sendmsg \
11458 settimeofday \
11459 sigaltstack \
11460 snprintf \
11461 statfs \
11462 strcasecmp \
11463 strerror \
11464 strncasecmp \
11465 tcgetattr \
11466 timegm \
11467 usleep \
11468 vfscanf \
11469 wait4 \
11470 waitpid \
11473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11474 echo "$as_me:$LINENO: checking for $ac_func" >&5
11475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11476 if eval "test \"\${$as_ac_var+set}\" = set"; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479 cat >conftest.$ac_ext <<_ACEOF
11480 #line $LINENO "configure"
11481 #include "confdefs.h"
11482 /* System header to define __stub macros and hopefully few prototypes,
11483 which can conflict with char $ac_func (); below. */
11484 #include <assert.h>
11485 /* Override any gcc2 internal prototype to avoid an error. */
11486 #ifdef __cplusplus
11487 extern "C"
11488 #endif
11489 /* We use char because int might match the return type of a gcc2
11490 builtin and then its argument prototype would still apply. */
11491 char $ac_func ();
11492 char (*f) ();
11495 main ()
11497 /* The GNU C library defines this for functions which it implements
11498 to always fail with ENOSYS. Some functions are actually named
11499 something starting with __ and the normal name is an alias. */
11500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11501 choke me
11502 #else
11503 f = $ac_func;
11504 #endif
11507 return 0;
11509 _ACEOF
11510 rm -f conftest.$ac_objext conftest$ac_exeext
11511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11512 (eval $ac_link) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } &&
11516 { ac_try='test -s conftest$ac_exeext'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 eval "$as_ac_var=yes"
11523 else
11524 echo "$as_me: failed program was:" >&5
11525 cat conftest.$ac_ext >&5
11526 eval "$as_ac_var=no"
11528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11532 if test `eval echo '${'$as_ac_var'}'` = yes; then
11533 cat >>confdefs.h <<_ACEOF
11534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11535 _ACEOF
11538 done
11609 for ac_header in \
11610 arpa/inet.h \
11611 arpa/nameser.h \
11612 cups/cups.h \
11613 direct.h \
11614 elf.h \
11615 float.h \
11616 ieeefp.h \
11617 io.h \
11618 libio.h \
11619 libutil.h \
11620 link.h \
11621 linux/cdrom.h \
11622 linux/hdreg.h \
11623 linux/input.h \
11624 linux/joystick.h \
11625 linux/major.h \
11626 linux/param.h \
11627 linux/serial.h \
11628 linux/ucdrom.h \
11629 netdb.h \
11630 netinet/in.h \
11631 netinet/in_systm.h \
11632 netinet/tcp.h \
11633 pty.h \
11634 pwd.h \
11635 sched.h \
11636 scsi/sg.h \
11637 socket.h \
11638 stdint.h \
11639 strings.h \
11640 sys/cdio.h \
11641 sys/errno.h \
11642 sys/file.h \
11643 sys/filio.h \
11644 sys/inttypes.h \
11645 sys/ioctl.h \
11646 sys/ipc.h \
11647 sys/link.h \
11648 sys/lwp.h \
11649 sys/mman.h \
11650 sys/modem.h \
11651 sys/msg.h \
11652 sys/param.h \
11653 sys/poll.h \
11654 sys/ptrace.h \
11655 sys/reg.h \
11656 sys/shm.h \
11657 sys/signal.h \
11658 sys/socket.h \
11659 sys/sockio.h \
11660 sys/statfs.h \
11661 sys/strtio.h \
11662 sys/syscall.h \
11663 sys/sysctl.h \
11664 sys/time.h \
11665 sys/times.h \
11666 sys/uio.h \
11667 sys/un.h \
11668 sys/v86.h \
11669 sys/v86intr.h \
11670 sys/vfs.h \
11671 sys/vm86.h \
11672 sys/wait.h \
11673 syscall.h \
11674 termios.h \
11675 unistd.h \
11676 utime.h \
11679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11681 echo "$as_me:$LINENO: checking for $ac_header" >&5
11682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11688 else
11689 # Is the header compilable?
11690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11692 cat >conftest.$ac_ext <<_ACEOF
11693 #line $LINENO "configure"
11694 #include "confdefs.h"
11695 $ac_includes_default
11696 #include <$ac_header>
11697 _ACEOF
11698 rm -f conftest.$ac_objext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11700 (eval $ac_compile) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -s conftest.$ac_objext'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 ac_header_compiler=yes
11711 else
11712 echo "$as_me: failed program was:" >&5
11713 cat conftest.$ac_ext >&5
11714 ac_header_compiler=no
11716 rm -f conftest.$ac_objext conftest.$ac_ext
11717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11718 echo "${ECHO_T}$ac_header_compiler" >&6
11720 # Is the header present?
11721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11723 cat >conftest.$ac_ext <<_ACEOF
11724 #line $LINENO "configure"
11725 #include "confdefs.h"
11726 #include <$ac_header>
11727 _ACEOF
11728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } >/dev/null; then
11736 if test -s conftest.err; then
11737 ac_cpp_err=$ac_c_preproc_warn_flag
11738 else
11739 ac_cpp_err=
11741 else
11742 ac_cpp_err=yes
11744 if test -z "$ac_cpp_err"; then
11745 ac_header_preproc=yes
11746 else
11747 echo "$as_me: failed program was:" >&5
11748 cat conftest.$ac_ext >&5
11749 ac_header_preproc=no
11751 rm -f conftest.err conftest.$ac_ext
11752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11753 echo "${ECHO_T}$ac_header_preproc" >&6
11755 # So? What about this header?
11756 case $ac_header_compiler:$ac_header_preproc in
11757 yes:no )
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11762 no:yes )
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11769 esac
11770 echo "$as_me:$LINENO: checking for $ac_header" >&5
11771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
11775 eval "$as_ac_Header=$ac_header_preproc"
11777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11782 cat >>confdefs.h <<_ACEOF
11783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11784 _ACEOF
11788 done
11790 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11791 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11792 if test "${ac_cv_header_stat_broken+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795 cat >conftest.$ac_ext <<_ACEOF
11796 #line $LINENO "configure"
11797 #include "confdefs.h"
11798 #include <sys/types.h>
11799 #include <sys/stat.h>
11801 #if defined(S_ISBLK) && defined(S_IFDIR)
11802 # if S_ISBLK (S_IFDIR)
11803 You lose.
11804 # endif
11805 #endif
11807 #if defined(S_ISBLK) && defined(S_IFCHR)
11808 # if S_ISBLK (S_IFCHR)
11809 You lose.
11810 # endif
11811 #endif
11813 #if defined(S_ISLNK) && defined(S_IFREG)
11814 # if S_ISLNK (S_IFREG)
11815 You lose.
11816 # endif
11817 #endif
11819 #if defined(S_ISSOCK) && defined(S_IFREG)
11820 # if S_ISSOCK (S_IFREG)
11821 You lose.
11822 # endif
11823 #endif
11825 _ACEOF
11826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11827 $EGREP "You lose" >/dev/null 2>&1; then
11828 ac_cv_header_stat_broken=yes
11829 else
11830 ac_cv_header_stat_broken=no
11832 rm -f conftest*
11835 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11836 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11837 if test $ac_cv_header_stat_broken = yes; then
11839 cat >>confdefs.h <<\_ACEOF
11840 #define STAT_MACROS_BROKEN 1
11841 _ACEOF
11849 for ac_header in sys/mount.h sys/user.h
11851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11852 echo "$as_me:$LINENO: checking for $ac_header" >&5
11853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857 cat >conftest.$ac_ext <<_ACEOF
11858 #line $LINENO "configure"
11859 #include "confdefs.h"
11860 #include <sys/types.h>
11861 #if HAVE_SYS_PARAM_H
11862 # include <sys/param.h>
11863 #endif
11865 #include <$ac_header>
11866 _ACEOF
11867 rm -f conftest.$ac_objext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11869 (eval $ac_compile) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
11873 { ac_try='test -s conftest.$ac_objext'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 eval "$as_ac_Header=yes"
11880 else
11881 echo "$as_me: failed program was:" >&5
11882 cat conftest.$ac_ext >&5
11883 eval "$as_ac_Header=no"
11885 rm -f conftest.$ac_objext conftest.$ac_ext
11887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11890 cat >>confdefs.h <<_ACEOF
11891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11892 _ACEOF
11896 done
11900 for ac_header in net/if.h
11902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11903 echo "$as_me:$LINENO: checking for $ac_header" >&5
11904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908 cat >conftest.$ac_ext <<_ACEOF
11909 #line $LINENO "configure"
11910 #include "confdefs.h"
11911 #include <sys/types.h>
11912 #if HAVE_SYS_SOCKET_H
11913 # include <sys/socket.h>
11914 #endif
11916 #include <$ac_header>
11917 _ACEOF
11918 rm -f conftest.$ac_objext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11920 (eval $ac_compile) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 eval "$as_ac_Header=yes"
11931 else
11932 echo "$as_me: failed program was:" >&5
11933 cat conftest.$ac_ext >&5
11934 eval "$as_ac_Header=no"
11936 rm -f conftest.$ac_objext conftest.$ac_ext
11938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11941 cat >>confdefs.h <<_ACEOF
11942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11943 _ACEOF
11947 done
11951 for ac_header in netinet/ip.h
11953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11954 echo "$as_me:$LINENO: checking for $ac_header" >&5
11955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 else
11959 cat >conftest.$ac_ext <<_ACEOF
11960 #line $LINENO "configure"
11961 #include "confdefs.h"
11962 #include <sys/types.h>
11963 #if HAVE_SYS_SOCKET_H
11964 # include <sys/socket.h>
11965 #endif
11966 #if HAVE_NETINET_IN_SYSTM_H
11967 # include <netinet/in_systm.h>
11968 #endif
11970 #include <$ac_header>
11971 _ACEOF
11972 rm -f conftest.$ac_objext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11974 (eval $ac_compile) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
11978 { ac_try='test -s conftest.$ac_objext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 eval "$as_ac_Header=yes"
11985 else
11986 echo "$as_me: failed program was:" >&5
11987 cat conftest.$ac_ext >&5
11988 eval "$as_ac_Header=no"
11990 rm -f conftest.$ac_objext conftest.$ac_ext
11992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11995 cat >>confdefs.h <<_ACEOF
11996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11997 _ACEOF
12001 done
12005 for ac_header in resolv.h
12007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12008 echo "$as_me:$LINENO: checking for $ac_header" >&5
12009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013 cat >conftest.$ac_ext <<_ACEOF
12014 #line $LINENO "configure"
12015 #include "confdefs.h"
12016 #include <sys/types.h>
12017 #if HAVE_SYS_SOCKET_H
12018 # include <sys/socket.h>
12019 #endif
12021 #include <$ac_header>
12022 _ACEOF
12023 rm -f conftest.$ac_objext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12025 (eval $ac_compile) 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -s conftest.$ac_objext'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 eval "$as_ac_Header=yes"
12036 else
12037 echo "$as_me: failed program was:" >&5
12038 cat conftest.$ac_ext >&5
12039 eval "$as_ac_Header=no"
12041 rm -f conftest.$ac_objext conftest.$ac_ext
12043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12046 cat >>confdefs.h <<_ACEOF
12047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12048 _ACEOF
12052 done
12056 for ac_header in ucontext.h
12058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12059 echo "$as_me:$LINENO: checking for $ac_header" >&5
12060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064 cat >conftest.$ac_ext <<_ACEOF
12065 #line $LINENO "configure"
12066 #include "confdefs.h"
12067 #include <signal.h>
12069 #include <$ac_header>
12070 _ACEOF
12071 rm -f conftest.$ac_objext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12073 (eval $ac_compile) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try='test -s conftest.$ac_objext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 eval "$as_ac_Header=yes"
12084 else
12085 echo "$as_me: failed program was:" >&5
12086 cat conftest.$ac_ext >&5
12087 eval "$as_ac_Header=no"
12089 rm -f conftest.$ac_objext conftest.$ac_ext
12091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12094 cat >>confdefs.h <<_ACEOF
12095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12096 _ACEOF
12100 done
12104 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12105 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12106 if test "${ac_cv_c_const+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109 cat >conftest.$ac_ext <<_ACEOF
12110 #line $LINENO "configure"
12111 #include "confdefs.h"
12114 main ()
12116 /* FIXME: Include the comments suggested by Paul. */
12117 #ifndef __cplusplus
12118 /* Ultrix mips cc rejects this. */
12119 typedef int charset[2];
12120 const charset x;
12121 /* SunOS 4.1.1 cc rejects this. */
12122 char const *const *ccp;
12123 char **p;
12124 /* NEC SVR4.0.2 mips cc rejects this. */
12125 struct point {int x, y;};
12126 static struct point const zero = {0,0};
12127 /* AIX XL C 1.02.0.0 rejects this.
12128 It does not let you subtract one const X* pointer from another in
12129 an arm of an if-expression whose if-part is not a constant
12130 expression */
12131 const char *g = "string";
12132 ccp = &g + (g ? g-g : 0);
12133 /* HPUX 7.0 cc rejects these. */
12134 ++ccp;
12135 p = (char**) ccp;
12136 ccp = (char const *const *) p;
12137 { /* SCO 3.2v4 cc rejects this. */
12138 char *t;
12139 char const *s = 0 ? (char *) 0 : (char const *) 0;
12141 *t++ = 0;
12143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12144 int x[] = {25, 17};
12145 const int *foo = &x[0];
12146 ++foo;
12148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12149 typedef const int *iptr;
12150 iptr p = 0;
12151 ++p;
12153 { /* AIX XL C 1.02.0.0 rejects this saying
12154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12155 struct s { int j; const int *ap[3]; };
12156 struct s *b; b->j = 5;
12158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12159 const int foo = 10;
12161 #endif
12164 return 0;
12166 _ACEOF
12167 rm -f conftest.$ac_objext
12168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12169 (eval $ac_compile) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } &&
12173 { ac_try='test -s conftest.$ac_objext'
12174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12176 ac_status=$?
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12179 ac_cv_c_const=yes
12180 else
12181 echo "$as_me: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12183 ac_cv_c_const=no
12185 rm -f conftest.$ac_objext conftest.$ac_ext
12187 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12188 echo "${ECHO_T}$ac_cv_c_const" >&6
12189 if test $ac_cv_c_const = no; then
12191 cat >>confdefs.h <<\_ACEOF
12192 #define const
12193 _ACEOF
12197 echo "$as_me:$LINENO: checking for inline" >&5
12198 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12199 if test "${ac_cv_c_inline+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202 ac_cv_c_inline=no
12203 for ac_kw in inline __inline__ __inline; do
12204 cat >conftest.$ac_ext <<_ACEOF
12205 #line $LINENO "configure"
12206 #include "confdefs.h"
12207 #ifndef __cplusplus
12208 typedef int foo_t;
12209 static $ac_kw foo_t static_foo () {return 0; }
12210 $ac_kw foo_t foo () {return 0; }
12211 #endif
12213 _ACEOF
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216 (eval $ac_compile) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -s conftest.$ac_objext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_cv_c_inline=$ac_kw; break
12227 else
12228 echo "$as_me: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12231 rm -f conftest.$ac_objext conftest.$ac_ext
12232 done
12235 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12236 echo "${ECHO_T}$ac_cv_c_inline" >&6
12237 case $ac_cv_c_inline in
12238 inline | yes) ;;
12240 cat >>confdefs.h <<\_ACEOF
12241 #define inline
12242 _ACEOF
12244 *) cat >>confdefs.h <<_ACEOF
12245 #define inline $ac_cv_c_inline
12246 _ACEOF
12248 esac
12250 echo "$as_me:$LINENO: checking for mode_t" >&5
12251 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12252 if test "${ac_cv_type_mode_t+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 else
12255 cat >conftest.$ac_ext <<_ACEOF
12256 #line $LINENO "configure"
12257 #include "confdefs.h"
12258 $ac_includes_default
12260 main ()
12262 if ((mode_t *) 0)
12263 return 0;
12264 if (sizeof (mode_t))
12265 return 0;
12267 return 0;
12269 _ACEOF
12270 rm -f conftest.$ac_objext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272 (eval $ac_compile) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -s conftest.$ac_objext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282 ac_cv_type_mode_t=yes
12283 else
12284 echo "$as_me: failed program was:" >&5
12285 cat conftest.$ac_ext >&5
12286 ac_cv_type_mode_t=no
12288 rm -f conftest.$ac_objext conftest.$ac_ext
12290 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12291 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12292 if test $ac_cv_type_mode_t = yes; then
12294 cat >>confdefs.h <<_ACEOF
12295 #define HAVE_MODE_T 1
12296 _ACEOF
12300 echo "$as_me:$LINENO: checking for off_t" >&5
12301 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12302 if test "${ac_cv_type_off_t+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305 cat >conftest.$ac_ext <<_ACEOF
12306 #line $LINENO "configure"
12307 #include "confdefs.h"
12308 $ac_includes_default
12310 main ()
12312 if ((off_t *) 0)
12313 return 0;
12314 if (sizeof (off_t))
12315 return 0;
12317 return 0;
12319 _ACEOF
12320 rm -f conftest.$ac_objext
12321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12322 (eval $ac_compile) 2>&5
12323 ac_status=$?
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
12326 { ac_try='test -s conftest.$ac_objext'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 ac_cv_type_off_t=yes
12333 else
12334 echo "$as_me: failed program was:" >&5
12335 cat conftest.$ac_ext >&5
12336 ac_cv_type_off_t=no
12338 rm -f conftest.$ac_objext conftest.$ac_ext
12340 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12341 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12342 if test $ac_cv_type_off_t = yes; then
12344 cat >>confdefs.h <<_ACEOF
12345 #define HAVE_OFF_T 1
12346 _ACEOF
12350 echo "$as_me:$LINENO: checking for pid_t" >&5
12351 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12352 if test "${ac_cv_type_pid_t+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 else
12355 cat >conftest.$ac_ext <<_ACEOF
12356 #line $LINENO "configure"
12357 #include "confdefs.h"
12358 $ac_includes_default
12360 main ()
12362 if ((pid_t *) 0)
12363 return 0;
12364 if (sizeof (pid_t))
12365 return 0;
12367 return 0;
12369 _ACEOF
12370 rm -f conftest.$ac_objext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12372 (eval $ac_compile) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } &&
12376 { ac_try='test -s conftest.$ac_objext'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12379 ac_status=$?
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_cv_type_pid_t=yes
12383 else
12384 echo "$as_me: failed program was:" >&5
12385 cat conftest.$ac_ext >&5
12386 ac_cv_type_pid_t=no
12388 rm -f conftest.$ac_objext conftest.$ac_ext
12390 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12391 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12392 if test $ac_cv_type_pid_t = yes; then
12394 cat >>confdefs.h <<_ACEOF
12395 #define HAVE_PID_T 1
12396 _ACEOF
12400 echo "$as_me:$LINENO: checking for size_t" >&5
12401 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12402 if test "${ac_cv_type_size_t+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405 cat >conftest.$ac_ext <<_ACEOF
12406 #line $LINENO "configure"
12407 #include "confdefs.h"
12408 $ac_includes_default
12410 main ()
12412 if ((size_t *) 0)
12413 return 0;
12414 if (sizeof (size_t))
12415 return 0;
12417 return 0;
12419 _ACEOF
12420 rm -f conftest.$ac_objext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12422 (eval $ac_compile) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } &&
12426 { ac_try='test -s conftest.$ac_objext'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12432 ac_cv_type_size_t=yes
12433 else
12434 echo "$as_me: failed program was:" >&5
12435 cat conftest.$ac_ext >&5
12436 ac_cv_type_size_t=no
12438 rm -f conftest.$ac_objext conftest.$ac_ext
12440 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12441 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12442 if test $ac_cv_type_size_t = yes; then
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_SIZE_T 1
12446 _ACEOF
12450 echo "$as_me:$LINENO: checking for ssize_t" >&5
12451 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12452 if test "${ac_cv_type_ssize_t+set}" = set; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12454 else
12455 cat >conftest.$ac_ext <<_ACEOF
12456 #line $LINENO "configure"
12457 #include "confdefs.h"
12458 $ac_includes_default
12460 main ()
12462 if ((ssize_t *) 0)
12463 return 0;
12464 if (sizeof (ssize_t))
12465 return 0;
12467 return 0;
12469 _ACEOF
12470 rm -f conftest.$ac_objext
12471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472 (eval $ac_compile) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -s conftest.$ac_objext'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 ac_cv_type_ssize_t=yes
12483 else
12484 echo "$as_me: failed program was:" >&5
12485 cat conftest.$ac_ext >&5
12486 ac_cv_type_ssize_t=no
12488 rm -f conftest.$ac_objext conftest.$ac_ext
12490 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12491 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12492 if test $ac_cv_type_ssize_t = yes; then
12494 cat >>confdefs.h <<_ACEOF
12495 #define HAVE_SSIZE_T 1
12496 _ACEOF
12501 echo "$as_me:$LINENO: checking for long long" >&5
12502 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12503 if test "${ac_cv_type_long_long+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506 cat >conftest.$ac_ext <<_ACEOF
12507 #line $LINENO "configure"
12508 #include "confdefs.h"
12509 $ac_includes_default
12511 main ()
12513 if ((long long *) 0)
12514 return 0;
12515 if (sizeof (long long))
12516 return 0;
12518 return 0;
12520 _ACEOF
12521 rm -f conftest.$ac_objext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12523 (eval $ac_compile) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -s conftest.$ac_objext'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; }; then
12533 ac_cv_type_long_long=yes
12534 else
12535 echo "$as_me: failed program was:" >&5
12536 cat conftest.$ac_ext >&5
12537 ac_cv_type_long_long=no
12539 rm -f conftest.$ac_objext conftest.$ac_ext
12541 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12542 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12544 echo "$as_me:$LINENO: checking size of long long" >&5
12545 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12546 if test "${ac_cv_sizeof_long_long+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 else
12549 if test "$ac_cv_type_long_long" = yes; then
12550 # The cast to unsigned long works around a bug in the HP C Compiler
12551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12553 # This bug is HP SR number 8606223364.
12554 if test "$cross_compiling" = yes; then
12555 # Depending upon the size, compute the lo and hi bounds.
12556 cat >conftest.$ac_ext <<_ACEOF
12557 #line $LINENO "configure"
12558 #include "confdefs.h"
12559 $ac_includes_default
12561 main ()
12563 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12564 test_array [0] = 0
12567 return 0;
12569 _ACEOF
12570 rm -f conftest.$ac_objext
12571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12572 (eval $ac_compile) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -s conftest.$ac_objext'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582 ac_lo=0 ac_mid=0
12583 while :; do
12584 cat >conftest.$ac_ext <<_ACEOF
12585 #line $LINENO "configure"
12586 #include "confdefs.h"
12587 $ac_includes_default
12589 main ()
12591 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12592 test_array [0] = 0
12595 return 0;
12597 _ACEOF
12598 rm -f conftest.$ac_objext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
12604 { ac_try='test -s conftest.$ac_objext'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 ac_hi=$ac_mid; break
12611 else
12612 echo "$as_me: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12614 ac_lo=`expr $ac_mid + 1`
12615 if test $ac_lo -le $ac_mid; then
12616 ac_lo= ac_hi=
12617 break
12619 ac_mid=`expr 2 '*' $ac_mid + 1`
12621 rm -f conftest.$ac_objext conftest.$ac_ext
12622 done
12623 else
12624 echo "$as_me: failed program was:" >&5
12625 cat conftest.$ac_ext >&5
12626 cat >conftest.$ac_ext <<_ACEOF
12627 #line $LINENO "configure"
12628 #include "confdefs.h"
12629 $ac_includes_default
12631 main ()
12633 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12634 test_array [0] = 0
12637 return 0;
12639 _ACEOF
12640 rm -f conftest.$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_hi=-1 ac_mid=-1
12653 while :; do
12654 cat >conftest.$ac_ext <<_ACEOF
12655 #line $LINENO "configure"
12656 #include "confdefs.h"
12657 $ac_includes_default
12659 main ()
12661 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12662 test_array [0] = 0
12665 return 0;
12667 _ACEOF
12668 rm -f conftest.$ac_objext
12669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12670 (eval $ac_compile) 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -s conftest.$ac_objext'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12680 ac_lo=$ac_mid; break
12681 else
12682 echo "$as_me: failed program was:" >&5
12683 cat conftest.$ac_ext >&5
12684 ac_hi=`expr '(' $ac_mid ')' - 1`
12685 if test $ac_mid -le $ac_hi; then
12686 ac_lo= ac_hi=
12687 break
12689 ac_mid=`expr 2 '*' $ac_mid`
12691 rm -f conftest.$ac_objext conftest.$ac_ext
12692 done
12693 else
12694 echo "$as_me: failed program was:" >&5
12695 cat conftest.$ac_ext >&5
12696 ac_lo= ac_hi=
12698 rm -f conftest.$ac_objext conftest.$ac_ext
12700 rm -f conftest.$ac_objext conftest.$ac_ext
12701 # Binary search between lo and hi bounds.
12702 while test "x$ac_lo" != "x$ac_hi"; do
12703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12704 cat >conftest.$ac_ext <<_ACEOF
12705 #line $LINENO "configure"
12706 #include "confdefs.h"
12707 $ac_includes_default
12709 main ()
12711 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12712 test_array [0] = 0
12715 return 0;
12717 _ACEOF
12718 rm -f conftest.$ac_objext
12719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720 (eval $ac_compile) 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -s conftest.$ac_objext'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; }; then
12730 ac_hi=$ac_mid
12731 else
12732 echo "$as_me: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12734 ac_lo=`expr '(' $ac_mid ')' + 1`
12736 rm -f conftest.$ac_objext conftest.$ac_ext
12737 done
12738 case $ac_lo in
12739 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12740 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12741 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12742 { (exit 1); exit 1; }; } ;;
12743 esac
12744 else
12745 if test "$cross_compiling" = yes; then
12746 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12747 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12748 { (exit 1); exit 1; }; }
12749 else
12750 cat >conftest.$ac_ext <<_ACEOF
12751 #line $LINENO "configure"
12752 #include "confdefs.h"
12753 $ac_includes_default
12754 long longval () { return (long) (sizeof (long long)); }
12755 unsigned long ulongval () { return (long) (sizeof (long long)); }
12756 #include <stdio.h>
12757 #include <stdlib.h>
12759 main ()
12762 FILE *f = fopen ("conftest.val", "w");
12763 if (! f)
12764 exit (1);
12765 if (((long) (sizeof (long long))) < 0)
12767 long i = longval ();
12768 if (i != ((long) (sizeof (long long))))
12769 exit (1);
12770 fprintf (f, "%ld\n", i);
12772 else
12774 unsigned long i = ulongval ();
12775 if (i != ((long) (sizeof (long long))))
12776 exit (1);
12777 fprintf (f, "%lu\n", i);
12779 exit (ferror (f) || fclose (f) != 0);
12782 return 0;
12784 _ACEOF
12785 rm -f conftest$ac_exeext
12786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787 (eval $ac_link) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 ac_cv_sizeof_long_long=`cat conftest.val`
12797 else
12798 echo "$as_me: program exited with status $ac_status" >&5
12799 echo "$as_me: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12801 ( exit $ac_status )
12802 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12803 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12804 { (exit 1); exit 1; }; }
12806 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12809 rm -f conftest.val
12810 else
12811 ac_cv_sizeof_long_long=0
12814 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12815 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12816 cat >>confdefs.h <<_ACEOF
12817 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12818 _ACEOF
12822 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
12823 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12824 if test "${wine_cv_linux_input_h+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 else
12827 cat >conftest.$ac_ext <<_ACEOF
12828 #line $LINENO "configure"
12829 #include "confdefs.h"
12831 #include <linux/input.h>
12834 main ()
12837 int foo = EVIOCGBIT(EV_ABS,42);
12838 int bar = BTN_PINKIE;
12839 int fortytwo = 42;
12842 return 0;
12844 _ACEOF
12845 rm -f conftest.$ac_objext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
12851 { ac_try='test -s conftest.$ac_objext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 wine_cv_linux_input_h=yes
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 cat conftest.$ac_ext >&5
12861 wine_cv_linux_input_h=no
12863 rm -f conftest.$ac_objext conftest.$ac_ext
12866 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
12867 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
12868 if test "$wine_cv_linux_input_h" = "yes"
12869 then
12871 cat >>confdefs.h <<\_ACEOF
12872 #define HAVE_CORRECT_LINUXINPUT_H 1
12873 _ACEOF
12878 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
12879 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
12880 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 cat >conftest.$ac_ext <<_ACEOF
12884 #line $LINENO "configure"
12885 #include "confdefs.h"
12887 #include <netdb.h>
12890 main ()
12893 char *name=NULL;
12894 struct hostent he;
12895 struct hostent *result;
12896 char *buf=NULL;
12897 int bufsize=0;
12898 int res,errnr;
12899 char *addr=NULL;
12900 int addrlen=0;
12901 int addrtype=0;
12902 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
12903 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
12906 return 0;
12908 _ACEOF
12909 rm -f conftest.$ac_objext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911 (eval $ac_compile) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -s conftest.$ac_objext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 wine_cv_linux_gethostbyname_r_6=yes
12922 else
12923 echo "$as_me: failed program was:" >&5
12924 cat conftest.$ac_ext >&5
12925 wine_cv_linux_gethostbyname_r_6=no
12928 rm -f conftest.$ac_objext conftest.$ac_ext
12931 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
12932 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
12933 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
12934 then
12936 cat >>confdefs.h <<\_ACEOF
12937 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
12938 _ACEOF
12942 if test "$ac_cv_header_linux_joystick_h" = "yes"
12943 then
12944 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
12945 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
12946 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949 cat >conftest.$ac_ext <<_ACEOF
12950 #line $LINENO "configure"
12951 #include "confdefs.h"
12953 #include <sys/ioctl.h>
12954 #include <linux/joystick.h>
12956 struct js_event blub;
12957 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
12958 #error "no 2.2 header"
12959 #endif
12962 main ()
12964 /*empty*/
12966 return 0;
12968 _ACEOF
12969 rm -f conftest.$ac_objext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971 (eval $ac_compile) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -s conftest.$ac_objext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 wine_cv_linux_joystick_22_api=yes
12982 else
12983 echo "$as_me: failed program was:" >&5
12984 cat conftest.$ac_ext >&5
12985 wine_cv_linux_joystick_22_api=no
12987 rm -f conftest.$ac_objext conftest.$ac_ext
12990 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
12991 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
12992 if test "$wine_cv_linux_joystick_22_api" = "yes"
12993 then
12995 cat >>confdefs.h <<\_ACEOF
12996 #define HAVE_LINUX_22_JOYSTICK_API 1
12997 _ACEOF
13003 if test "$ac_cv_header_sys_vfs_h" = "yes"
13004 then
13005 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
13006 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13007 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 else
13010 cat >conftest.$ac_ext <<_ACEOF
13011 #line $LINENO "configure"
13012 #include "confdefs.h"
13014 #include <sys/types.h>
13015 #ifdef HAVE_SYS_PARAM_H
13016 # include <sys/param.h>
13017 #endif
13018 #include <sys/vfs.h>
13021 main ()
13024 struct statfs stfs;
13026 memset(&stfs,0,sizeof(stfs));
13029 return 0;
13031 _ACEOF
13032 rm -f conftest.$ac_objext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
13038 { ac_try='test -s conftest.$ac_objext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 wine_cv_sys_vfs_has_statfs=yes
13045 else
13046 echo "$as_me: failed program was:" >&5
13047 cat conftest.$ac_ext >&5
13048 wine_cv_sys_vfs_has_statfs=no
13051 rm -f conftest.$ac_objext conftest.$ac_ext
13054 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
13055 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
13056 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13057 then
13059 cat >>confdefs.h <<\_ACEOF
13060 #define STATFS_DEFINED_BY_SYS_VFS 1
13061 _ACEOF
13066 if test "$ac_cv_header_sys_statfs_h" = "yes"
13067 then
13068 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
13069 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13070 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 else
13073 cat >conftest.$ac_ext <<_ACEOF
13074 #line $LINENO "configure"
13075 #include "confdefs.h"
13077 #include <sys/types.h>
13078 #ifdef HAVE_SYS_PARAM_H
13079 # include <sys/param.h>
13080 #endif
13081 #include <sys/statfs.h>
13084 main ()
13087 struct statfs stfs;
13090 return 0;
13092 _ACEOF
13093 rm -f conftest.$ac_objext
13094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13095 (eval $ac_compile) 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } &&
13099 { ac_try='test -s conftest.$ac_objext'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 wine_cv_sys_statfs_has_statfs=yes
13106 else
13107 echo "$as_me: failed program was:" >&5
13108 cat conftest.$ac_ext >&5
13109 wine_cv_sys_statfs_has_statfs=no
13112 rm -f conftest.$ac_objext conftest.$ac_ext
13115 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
13116 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
13117 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13118 then
13120 cat >>confdefs.h <<\_ACEOF
13121 #define STATFS_DEFINED_BY_SYS_STATFS 1
13122 _ACEOF
13127 if test "$ac_cv_header_sys_mount_h" = "yes"
13128 then
13129 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
13130 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13131 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13134 cat >conftest.$ac_ext <<_ACEOF
13135 #line $LINENO "configure"
13136 #include "confdefs.h"
13138 #include <sys/types.h>
13139 #ifdef HAVE_SYS_PARAM_H
13140 # include <sys/param.h>
13141 #endif
13142 #include <sys/mount.h>
13145 main ()
13148 struct statfs stfs;
13151 return 0;
13153 _ACEOF
13154 rm -f conftest.$ac_objext
13155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13156 (eval $ac_compile) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } &&
13160 { ac_try='test -s conftest.$ac_objext'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 wine_cv_sys_mount_has_statfs=yes
13167 else
13168 echo "$as_me: failed program was:" >&5
13169 cat conftest.$ac_ext >&5
13170 wine_cv_sys_mount_has_statfs=no
13173 rm -f conftest.$ac_objext conftest.$ac_ext
13176 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
13177 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
13178 if test "$wine_cv_sys_mount_has_statfs" = "yes"
13179 then
13181 cat >>confdefs.h <<\_ACEOF
13182 #define STATFS_DEFINED_BY_SYS_MOUNT 1
13183 _ACEOF
13189 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
13190 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13191 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 else
13194 cat >conftest.$ac_ext <<_ACEOF
13195 #line $LINENO "configure"
13196 #include "confdefs.h"
13197 #include <sys/types.h>
13198 #ifdef HAVE_SYS_PARAM_H
13199 # include <sys/param.h>
13200 #endif
13201 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13202 # include <sys/mount.h>
13203 #else
13204 # ifdef STATFS_DEFINED_BY_SYS_VFS
13205 # include <sys/vfs.h>
13206 # else
13207 # ifdef STATFS_DEFINED_BY_SYS_STATFS
13208 # include <sys/statfs.h>
13209 # endif
13210 # endif
13211 #endif
13213 main ()
13215 struct statfs s; s.f_bfree = 0
13217 return 0;
13219 _ACEOF
13220 rm -f conftest.$ac_objext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222 (eval $ac_compile) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } &&
13226 { ac_try='test -s conftest.$ac_objext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_c_statfs_f_bfree="yes"
13233 else
13234 echo "$as_me: failed program was:" >&5
13235 cat conftest.$ac_ext >&5
13236 ac_cv_c_statfs_f_bfree="no"
13238 rm -f conftest.$ac_objext conftest.$ac_ext
13240 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
13241 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13242 if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
13244 cat >>confdefs.h <<\_ACEOF
13245 #define STATFS_HAS_BFREE 1
13246 _ACEOF
13252 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
13253 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13254 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 else
13257 cat >conftest.$ac_ext <<_ACEOF
13258 #line $LINENO "configure"
13259 #include "confdefs.h"
13260 #include <sys/types.h>
13261 #ifdef HAVE_SYS_PARAM_H
13262 # include <sys/param.h>
13263 #endif
13264 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13265 # include <sys/mount.h>
13266 #else
13267 # ifdef STATFS_DEFINED_BY_SYS_VFS
13268 # include <sys/vfs.h>
13269 # else
13270 # ifdef STATFS_DEFINED_BY_SYS_STATFS
13271 # include <sys/statfs.h>
13272 # endif
13273 # endif
13274 #endif
13276 main ()
13278 struct statfs s; s.f_bavail = 0
13280 return 0;
13282 _ACEOF
13283 rm -f conftest.$ac_objext
13284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13285 (eval $ac_compile) 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
13289 { ac_try='test -s conftest.$ac_objext'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13295 ac_cv_c_statfs_f_bavail="yes"
13296 else
13297 echo "$as_me: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13299 ac_cv_c_statfs_f_bavail="no"
13301 rm -f conftest.$ac_objext conftest.$ac_ext
13303 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
13304 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13305 if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
13307 cat >>confdefs.h <<\_ACEOF
13308 #define STATFS_HAS_BAVAIL 1
13309 _ACEOF
13315 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
13316 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13317 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13319 else
13320 cat >conftest.$ac_ext <<_ACEOF
13321 #line $LINENO "configure"
13322 #include "confdefs.h"
13323 #include <sys/types.h>
13324 #ifdef HAVE_SYS_SOCKET_H
13325 # include <sys/socket.h>
13326 #endif
13328 main ()
13330 struct msghdr s; s.msg_accrights = 0
13332 return 0;
13334 _ACEOF
13335 rm -f conftest.$ac_objext
13336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13337 (eval $ac_compile) 2>&5
13338 ac_status=$?
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } &&
13341 { ac_try='test -s conftest.$ac_objext'
13342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13343 (eval $ac_try) 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; }; then
13347 ac_cv_c_msghdr_msg_accrights="yes"
13348 else
13349 echo "$as_me: failed program was:" >&5
13350 cat conftest.$ac_ext >&5
13351 ac_cv_c_msghdr_msg_accrights="no"
13353 rm -f conftest.$ac_objext conftest.$ac_ext
13355 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
13356 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13357 if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
13359 cat >>confdefs.h <<\_ACEOF
13360 #define HAVE_MSGHDR_ACCRIGHTS 1
13361 _ACEOF
13367 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
13368 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13369 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 else
13372 cat >conftest.$ac_ext <<_ACEOF
13373 #line $LINENO "configure"
13374 #include "confdefs.h"
13375 #include <sys/types.h>
13376 #ifdef HAVE_SYS_SOCKET_H
13377 # include <sys/socket.h>
13378 #endif
13380 main ()
13382 struct sockaddr s; s.sa_len = 0
13384 return 0;
13386 _ACEOF
13387 rm -f conftest.$ac_objext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13389 (eval $ac_compile) 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try='test -s conftest.$ac_objext'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13399 ac_cv_c_sockaddr_sa_len="yes"
13400 else
13401 echo "$as_me: failed program was:" >&5
13402 cat conftest.$ac_ext >&5
13403 ac_cv_c_sockaddr_sa_len="no"
13405 rm -f conftest.$ac_objext conftest.$ac_ext
13407 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
13408 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13409 if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
13411 cat >>confdefs.h <<\_ACEOF
13412 #define HAVE_SOCKADDR_SA_LEN 1
13413 _ACEOF
13419 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
13420 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13421 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 else
13424 cat >conftest.$ac_ext <<_ACEOF
13425 #line $LINENO "configure"
13426 #include "confdefs.h"
13427 #include <sys/types.h>
13428 #ifdef HAVE_SYS_SOCKET_H
13429 # include <sys/socket.h>
13430 #endif
13431 #ifdef HAVE_SYS_UN_H
13432 # include <sys/un.h>
13433 #endif
13435 main ()
13437 struct sockaddr_un s; s.sun_len = 0
13439 return 0;
13441 _ACEOF
13442 rm -f conftest.$ac_objext
13443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13444 (eval $ac_compile) 2>&5
13445 ac_status=$?
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -s conftest.$ac_objext'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 ac_cv_c_sockaddr_un_sun_len="yes"
13455 else
13456 echo "$as_me: failed program was:" >&5
13457 cat conftest.$ac_ext >&5
13458 ac_cv_c_sockaddr_un_sun_len="no"
13460 rm -f conftest.$ac_objext conftest.$ac_ext
13462 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
13463 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13464 if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_SOCKADDR_SUN_LEN 1
13468 _ACEOF
13475 case $host_cpu in
13476 *i345678986* )
13477 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
13478 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13479 if test "${ac_cv_cpp_def_i386+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482 cat >conftest.$ac_ext <<_ACEOF
13483 #line $LINENO "configure"
13484 #include "confdefs.h"
13485 #ifndef __i386__
13487 #endif
13488 _ACEOF
13489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13490 $EGREP "yes" >/dev/null 2>&1; then
13491 ac_cv_cpp_def_i386="yes"
13492 else
13493 ac_cv_cpp_def_i386="no"
13495 rm -f conftest*
13498 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
13499 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13501 esac
13502 if test "$ac_cv_cpp_def_i386" = "yes"
13503 then
13504 CFLAGS="$CFLAGS -D__i386__"
13505 LINTFLAGS="$LINTFLAGS -D__i386__"
13509 case $host_cpu in
13510 *sparc* )
13511 echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
13512 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
13513 if test "${ac_cv_cpp_def_sparc+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 else
13516 cat >conftest.$ac_ext <<_ACEOF
13517 #line $LINENO "configure"
13518 #include "confdefs.h"
13519 #ifndef __sparc__
13521 #endif
13522 _ACEOF
13523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13524 $EGREP "yes" >/dev/null 2>&1; then
13525 ac_cv_cpp_def_sparc="yes"
13526 else
13527 ac_cv_cpp_def_sparc="no"
13529 rm -f conftest*
13532 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5
13533 echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6
13535 esac
13536 if test "$ac_cv_cpp_def_sparc" = "yes"
13537 then
13538 CFLAGS="$CFLAGS -D__sparc__"
13539 LINTFLAGS="$LINTFLAGS -D__sparc__"
13543 case $host_vendor in
13544 *sun* )
13545 echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
13546 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
13547 if test "${ac_cv_cpp_def_sun+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 else
13550 cat >conftest.$ac_ext <<_ACEOF
13551 #line $LINENO "configure"
13552 #include "confdefs.h"
13553 #ifndef __sun__
13555 #endif
13556 _ACEOF
13557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13558 $EGREP "yes" >/dev/null 2>&1; then
13559 ac_cv_cpp_def_sun="yes"
13560 else
13561 ac_cv_cpp_def_sun="no"
13563 rm -f conftest*
13566 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5
13567 echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6
13569 esac
13570 if test "$ac_cv_cpp_def_sun" = "yes"
13571 then
13572 CFLAGS="$CFLAGS -D__sun__"
13573 LINTFLAGS="$LINTFLAGS -D__sun__"
13580 ac_config_commands="$ac_config_commands controls"
13582 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
13584 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
13586 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
13588 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
13590 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
13592 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
13594 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
13596 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
13598 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
13600 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13602 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13604 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13606 ac_config_commands="$ac_config_commands dlls/kernel/messages"
13608 ac_config_commands="$ac_config_commands dlls/user/dde"
13610 ac_config_commands="$ac_config_commands dlls/user/resources"
13612 ac_config_commands="$ac_config_commands dlls/wineps/data"
13614 ac_config_commands="$ac_config_commands files"
13616 ac_config_commands="$ac_config_commands graphics"
13618 ac_config_commands="$ac_config_commands graphics/x11drv"
13620 ac_config_commands="$ac_config_commands if1632"
13622 ac_config_commands="$ac_config_commands include/wine"
13624 ac_config_commands="$ac_config_commands loader"
13626 ac_config_commands="$ac_config_commands loader/ne"
13628 ac_config_commands="$ac_config_commands memory"
13630 ac_config_commands="$ac_config_commands misc"
13632 ac_config_commands="$ac_config_commands msdos"
13634 ac_config_commands="$ac_config_commands objects"
13636 ac_config_commands="$ac_config_commands programs/regapi/tests"
13638 ac_config_commands="$ac_config_commands programs/regedit/tests"
13640 ac_config_commands="$ac_config_commands relay32"
13642 ac_config_commands="$ac_config_commands scheduler"
13644 ac_config_commands="$ac_config_commands win32"
13646 ac_config_commands="$ac_config_commands windows"
13649 MAKE_RULES=Make.rules
13652 MAKE_DLL_RULES=dlls/Makedll.rules
13655 MAKE_TEST_RULES=dlls/Maketest.rules
13658 MAKE_PROG_RULES=programs/Makeprog.rules
13661 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/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/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/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/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/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/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/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rundll32/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile unicode/Makefile"
13664 cat >confcache <<\_ACEOF
13665 # This file is a shell script that caches the results of configure
13666 # tests run on this system so they can be shared between configure
13667 # scripts and configure runs, see configure's option --config-cache.
13668 # It is not useful on other systems. If it contains results you don't
13669 # want to keep, you may remove or edit it.
13671 # config.status only pays attention to the cache file if you give it
13672 # the --recheck option to rerun configure.
13674 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13675 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13676 # following values.
13678 _ACEOF
13680 # The following way of writing the cache mishandles newlines in values,
13681 # but we know of no workaround that is simple, portable, and efficient.
13682 # So, don't put newlines in cache variables' values.
13683 # Ultrix sh set writes to stderr and can't be redirected directly,
13684 # and sets the high bit in the cache file unless we assign to the vars.
13686 (set) 2>&1 |
13687 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13688 *ac_space=\ *)
13689 # `set' does not quote correctly, so add quotes (double-quote
13690 # substitution turns \\\\ into \\, and sed turns \\ into \).
13691 sed -n \
13692 "s/'/'\\\\''/g;
13693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13696 # `set' quotes correctly as required by POSIX, so do not add quotes.
13697 sed -n \
13698 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13700 esac;
13702 sed '
13703 t clear
13704 : clear
13705 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13706 t end
13707 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13708 : end' >>confcache
13709 if cmp -s $cache_file confcache; then :; else
13710 if test -w $cache_file; then
13711 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13712 cat confcache >$cache_file
13713 else
13714 echo "not updating unwritable cache $cache_file"
13717 rm -f confcache
13719 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13720 # Let make expand exec_prefix.
13721 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13723 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13724 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13725 # trailing colons and then remove the whole line if VPATH becomes empty
13726 # (actually we leave an empty line to preserve line numbers).
13727 if test "x$srcdir" = x.; then
13728 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13729 s/:*\$(srcdir):*/:/;
13730 s/:*\${srcdir}:*/:/;
13731 s/:*@srcdir@:*/:/;
13732 s/^\([^=]*=[ ]*\):*/\1/;
13733 s/:*$//;
13734 s/^[^=]*=[ ]*$//;
13738 DEFS=-DHAVE_CONFIG_H
13740 ac_libobjs=
13741 ac_ltlibobjs=
13742 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13743 # 1. Remove the extension, and $U if already installed.
13744 ac_i=`echo "$ac_i" |
13745 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13746 # 2. Add them.
13747 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13748 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13749 done
13750 LIBOBJS=$ac_libobjs
13752 LTLIBOBJS=$ac_ltlibobjs
13756 : ${CONFIG_STATUS=./config.status}
13757 ac_clean_files_save=$ac_clean_files
13758 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13759 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13760 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13761 cat >$CONFIG_STATUS <<_ACEOF
13762 #! $SHELL
13763 # Generated by $as_me.
13764 # Run this file to recreate the current configuration.
13765 # Compiler output produced by configure, useful for debugging
13766 # configure, is in config.log if it exists.
13768 debug=false
13769 SHELL=\${CONFIG_SHELL-$SHELL}
13770 _ACEOF
13772 cat >>$CONFIG_STATUS <<\_ACEOF
13773 ## --------------------- ##
13774 ## M4sh Initialization. ##
13775 ## --------------------- ##
13777 # Be Bourne compatible
13778 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13779 emulate sh
13780 NULLCMD=:
13781 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13782 # is contrary to our usage. Disable this feature.
13783 alias -g '${1+"$@"}'='"$@"'
13784 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13785 set -o posix
13788 # Support unset when possible.
13789 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13790 as_unset=unset
13791 else
13792 as_unset=false
13796 # Work around bugs in pre-3.0 UWIN ksh.
13797 $as_unset ENV MAIL MAILPATH
13798 PS1='$ '
13799 PS2='> '
13800 PS4='+ '
13802 # NLS nuisances.
13803 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
13805 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
13806 eval $as_var=C; export $as_var
13807 else
13808 $as_unset $as_var
13810 done
13812 # Required to use basename.
13813 if expr a : '\(a\)' >/dev/null 2>&1; then
13814 as_expr=expr
13815 else
13816 as_expr=false
13819 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13820 as_basename=basename
13821 else
13822 as_basename=false
13826 # Name of the executable.
13827 as_me=`$as_basename "$0" ||
13828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13829 X"$0" : 'X\(//\)$' \| \
13830 X"$0" : 'X\(/\)$' \| \
13831 . : '\(.\)' 2>/dev/null ||
13832 echo X/"$0" |
13833 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13834 /^X\/\(\/\/\)$/{ s//\1/; q; }
13835 /^X\/\(\/\).*/{ s//\1/; q; }
13836 s/.*/./; q'`
13839 # PATH needs CR, and LINENO needs CR and PATH.
13840 # Avoid depending upon Character Ranges.
13841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13844 as_cr_digits='0123456789'
13845 as_cr_alnum=$as_cr_Letters$as_cr_digits
13847 # The user is always right.
13848 if test "${PATH_SEPARATOR+set}" != set; then
13849 echo "#! /bin/sh" >conftest.sh
13850 echo "exit 0" >>conftest.sh
13851 chmod +x conftest.sh
13852 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
13853 PATH_SEPARATOR=';'
13854 else
13855 PATH_SEPARATOR=:
13857 rm -f conftest.sh
13861 as_lineno_1=$LINENO
13862 as_lineno_2=$LINENO
13863 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13864 test "x$as_lineno_1" != "x$as_lineno_2" &&
13865 test "x$as_lineno_3" = "x$as_lineno_2" || {
13866 # Find who we are. Look in the path if we contain no path at all
13867 # relative or not.
13868 case $0 in
13869 *[\\/]* ) as_myself=$0 ;;
13870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH
13873 IFS=$as_save_IFS
13874 test -z "$as_dir" && as_dir=.
13875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13876 done
13879 esac
13880 # We did not find ourselves, most probably we were run as `sh COMMAND'
13881 # in which case we are not to be found in the path.
13882 if test "x$as_myself" = x; then
13883 as_myself=$0
13885 if test ! -f "$as_myself"; then
13886 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13887 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13888 { (exit 1); exit 1; }; }
13890 case $CONFIG_SHELL in
13892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13893 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13895 IFS=$as_save_IFS
13896 test -z "$as_dir" && as_dir=.
13897 for as_base in sh bash ksh sh5; do
13898 case $as_dir in
13900 if ("$as_dir/$as_base" -c '
13901 as_lineno_1=$LINENO
13902 as_lineno_2=$LINENO
13903 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13904 test "x$as_lineno_1" != "x$as_lineno_2" &&
13905 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13906 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13907 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13908 CONFIG_SHELL=$as_dir/$as_base
13909 export CONFIG_SHELL
13910 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13911 fi;;
13912 esac
13913 done
13914 done
13916 esac
13918 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13919 # uniformly replaced by the line number. The first 'sed' inserts a
13920 # line-number line before each line; the second 'sed' does the real
13921 # work. The second script uses 'N' to pair each line-number line
13922 # with the numbered line, and appends trailing '-' during
13923 # substitution so that $LINENO is not a special case at line end.
13924 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13925 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13926 sed '=' <$as_myself |
13927 sed '
13929 s,$,-,
13930 : loop
13931 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13932 t loop
13933 s,-$,,
13934 s,^['$as_cr_digits']*\n,,
13935 ' >$as_me.lineno &&
13936 chmod +x $as_me.lineno ||
13937 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13938 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13939 { (exit 1); exit 1; }; }
13941 # Don't try to exec as it changes $[0], causing all sort of problems
13942 # (the dirname of $[0] is not the place where we might find the
13943 # original and so on. Autoconf is especially sensible to this).
13944 . ./$as_me.lineno
13945 # Exit status is that of the last command.
13946 exit
13950 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13951 *c*,-n*) ECHO_N= ECHO_C='
13952 ' ECHO_T=' ' ;;
13953 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13954 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13955 esac
13957 if expr a : '\(a\)' >/dev/null 2>&1; then
13958 as_expr=expr
13959 else
13960 as_expr=false
13963 rm -f conf$$ conf$$.exe conf$$.file
13964 echo >conf$$.file
13965 if ln -s conf$$.file conf$$ 2>/dev/null; then
13966 # We could just check for DJGPP; but this test a) works b) is more generic
13967 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13968 if test -f conf$$.exe; then
13969 # Don't use ln at all; we don't have any links
13970 as_ln_s='cp -p'
13971 else
13972 as_ln_s='ln -s'
13974 elif ln conf$$.file conf$$ 2>/dev/null; then
13975 as_ln_s=ln
13976 else
13977 as_ln_s='cp -p'
13979 rm -f conf$$ conf$$.exe conf$$.file
13981 if mkdir -p . 2>/dev/null; then
13982 as_mkdir_p=:
13983 else
13984 as_mkdir_p=false
13987 as_executable_p="test -f"
13989 # Sed expression to map a string onto a valid CPP name.
13990 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13992 # Sed expression to map a string onto a valid variable name.
13993 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13996 # IFS
13997 # We need space, tab and new line, in precisely that order.
13998 as_nl='
14000 IFS=" $as_nl"
14002 # CDPATH.
14003 $as_unset CDPATH
14005 exec 6>&1
14007 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14008 # report actual input values of CONFIG_FILES etc. instead of their
14009 # values after options handling. Logging --version etc. is OK.
14010 exec 5>>config.log
14012 echo
14013 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14014 ## Running $as_me. ##
14015 _ASBOX
14016 } >&5
14017 cat >&5 <<_CSEOF
14019 This file was extended by Wine $as_me 20021031, which was
14020 generated by GNU Autoconf 2.54. Invocation command line was
14022 CONFIG_FILES = $CONFIG_FILES
14023 CONFIG_HEADERS = $CONFIG_HEADERS
14024 CONFIG_LINKS = $CONFIG_LINKS
14025 CONFIG_COMMANDS = $CONFIG_COMMANDS
14026 $ $0 $@
14028 _CSEOF
14029 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14030 echo >&5
14031 _ACEOF
14033 # Files that config.status was made for.
14034 if test -n "$ac_config_files"; then
14035 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14038 if test -n "$ac_config_headers"; then
14039 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14042 if test -n "$ac_config_links"; then
14043 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14046 if test -n "$ac_config_commands"; then
14047 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14050 cat >>$CONFIG_STATUS <<\_ACEOF
14052 ac_cs_usage="\
14053 \`$as_me' instantiates files from templates according to the
14054 current configuration.
14056 Usage: $0 [OPTIONS] [FILE]...
14058 -h, --help print this help, then exit
14059 -V, --version print version number, then exit
14060 -d, --debug don't remove temporary files
14061 --recheck update $as_me by reconfiguring in the same conditions
14062 --file=FILE[:TEMPLATE]
14063 instantiate the configuration file FILE
14064 --header=FILE[:TEMPLATE]
14065 instantiate the configuration header FILE
14067 Configuration files:
14068 $config_files
14070 Configuration headers:
14071 $config_headers
14073 Configuration commands:
14074 $config_commands
14076 Report bugs to <bug-autoconf@gnu.org>."
14077 _ACEOF
14079 cat >>$CONFIG_STATUS <<_ACEOF
14080 ac_cs_version="\\
14081 Wine config.status 20021031
14082 configured by $0, generated by GNU Autoconf 2.54,
14083 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14085 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14086 Free Software Foundation, Inc.
14087 This config.status script is free software; the Free Software Foundation
14088 gives unlimited permission to copy, distribute and modify it."
14089 srcdir=$srcdir
14090 INSTALL="$INSTALL"
14091 _ACEOF
14093 cat >>$CONFIG_STATUS <<\_ACEOF
14094 # If no file are specified by the user, then we need to provide default
14095 # value. By we need to know if files were specified by the user.
14096 ac_need_defaults=:
14097 while test $# != 0
14099 case $1 in
14100 --*=*)
14101 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14102 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14103 ac_shift=:
14106 ac_option=$1
14107 ac_optarg=$2
14108 ac_shift=shift
14110 *) # This is not an option, so the user has probably given explicit
14111 # arguments.
14112 ac_option=$1
14113 ac_need_defaults=false;;
14114 esac
14116 case $ac_option in
14117 # Handling of the options.
14118 _ACEOF
14119 cat >>$CONFIG_STATUS <<_ACEOF
14120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14121 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14122 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14123 _ACEOF
14124 cat >>$CONFIG_STATUS <<\_ACEOF
14125 --version | --vers* | -V )
14126 echo "$ac_cs_version"; exit 0 ;;
14127 --he | --h)
14128 # Conflict between --help and --header
14129 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14130 Try \`$0 --help' for more information." >&5
14131 echo "$as_me: error: ambiguous option: $1
14132 Try \`$0 --help' for more information." >&2;}
14133 { (exit 1); exit 1; }; };;
14134 --help | --hel | -h )
14135 echo "$ac_cs_usage"; exit 0 ;;
14136 --debug | --d* | -d )
14137 debug=: ;;
14138 --file | --fil | --fi | --f )
14139 $ac_shift
14140 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14141 ac_need_defaults=false;;
14142 --header | --heade | --head | --hea )
14143 $ac_shift
14144 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14145 ac_need_defaults=false;;
14147 # This is an error.
14148 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14149 Try \`$0 --help' for more information." >&5
14150 echo "$as_me: error: unrecognized option: $1
14151 Try \`$0 --help' for more information." >&2;}
14152 { (exit 1); exit 1; }; } ;;
14154 *) ac_config_targets="$ac_config_targets $1" ;;
14156 esac
14157 shift
14158 done
14160 _ACEOF
14166 cat >>$CONFIG_STATUS <<\_ACEOF
14167 for ac_config_target in $ac_config_targets
14169 case "$ac_config_target" in
14170 # Handling of arguments.
14171 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14172 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
14173 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
14174 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14175 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14176 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14177 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
14178 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
14179 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14180 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
14181 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
14182 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
14183 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14184 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14185 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14186 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
14187 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
14188 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14189 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14190 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14191 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
14192 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
14193 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14194 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14195 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14196 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
14197 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
14198 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14199 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14200 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14201 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14202 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
14203 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
14204 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14205 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14206 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14207 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
14208 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
14209 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
14210 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
14211 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
14212 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14213 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
14214 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
14215 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
14216 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
14217 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
14218 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14219 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
14220 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
14221 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
14222 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
14223 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
14224 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
14225 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14226 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14227 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
14228 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
14229 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14230 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14231 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14232 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14233 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14234 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14235 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14236 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14237 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14238 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14239 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
14240 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
14241 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14242 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14243 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14244 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
14245 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
14246 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14247 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
14248 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
14249 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
14250 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14251 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14252 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
14253 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
14254 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14255 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
14256 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
14257 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
14258 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
14259 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14260 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14261 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14262 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14263 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14264 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
14265 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
14266 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14267 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14268 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14269 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14270 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14271 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14272 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14273 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
14274 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
14275 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
14276 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
14277 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
14278 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14279 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
14280 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14281 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14282 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
14283 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
14284 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14285 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14286 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14287 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14288 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14289 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
14290 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14291 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
14292 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
14293 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14294 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14295 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14296 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14297 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14298 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
14299 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
14300 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14301 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14302 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14303 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
14304 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
14305 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
14306 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14307 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
14308 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14309 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14310 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14311 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
14312 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
14313 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
14314 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
14315 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
14316 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14317 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
14318 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14319 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14320 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
14321 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14322 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14323 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14324 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
14325 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
14326 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
14327 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
14328 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
14329 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14330 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14331 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14332 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14333 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14334 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14335 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14336 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14337 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
14338 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14339 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14340 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
14341 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14342 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14343 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14344 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
14345 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14346 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14347 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14348 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
14349 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
14350 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14351 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14352 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14353 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14354 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14355 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
14356 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
14357 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
14358 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14359 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14360 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14361 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
14362 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14363 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14364 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14365 { (exit 1); exit 1; }; };;
14366 esac
14367 done
14369 # If the user did not use the arguments to specify the items to instantiate,
14370 # then the envvar interface is used. Set only those that are not.
14371 # We use the long form for the default assignment because of an extremely
14372 # bizarre bug on SunOS 4.1.3.
14373 if $ac_need_defaults; then
14374 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14375 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14376 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14379 # Create a temporary directory, and hook for its removal unless debugging.
14380 $debug ||
14382 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14383 trap '{ (exit 1); exit 1; }' 1 2 13 15
14386 # Create a (secure) tmp directory for tmp files.
14387 : ${TMPDIR=/tmp}
14389 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14390 test -n "$tmp" && test -d "$tmp"
14391 } ||
14393 tmp=$TMPDIR/cs$$-$RANDOM
14394 (umask 077 && mkdir $tmp)
14395 } ||
14397 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14398 { (exit 1); exit 1; }
14401 _ACEOF
14403 cat >>$CONFIG_STATUS <<_ACEOF
14406 # CONFIG_FILES section.
14409 # No need to generate the scripts if there are no CONFIG_FILES.
14410 # This happens for instance when ./config.status config.h
14411 if test -n "\$CONFIG_FILES"; then
14412 # Protect against being on the right side of a sed subst in config.status.
14413 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14414 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14415 s,@SHELL@,$SHELL,;t t
14416 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14417 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14418 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14419 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14420 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14421 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14422 s,@exec_prefix@,$exec_prefix,;t t
14423 s,@prefix@,$prefix,;t t
14424 s,@program_transform_name@,$program_transform_name,;t t
14425 s,@bindir@,$bindir,;t t
14426 s,@sbindir@,$sbindir,;t t
14427 s,@libexecdir@,$libexecdir,;t t
14428 s,@datadir@,$datadir,;t t
14429 s,@sysconfdir@,$sysconfdir,;t t
14430 s,@sharedstatedir@,$sharedstatedir,;t t
14431 s,@localstatedir@,$localstatedir,;t t
14432 s,@libdir@,$libdir,;t t
14433 s,@includedir@,$includedir,;t t
14434 s,@oldincludedir@,$oldincludedir,;t t
14435 s,@infodir@,$infodir,;t t
14436 s,@mandir@,$mandir,;t t
14437 s,@build_alias@,$build_alias,;t t
14438 s,@host_alias@,$host_alias,;t t
14439 s,@target_alias@,$target_alias,;t t
14440 s,@DEFS@,$DEFS,;t t
14441 s,@ECHO_C@,$ECHO_C,;t t
14442 s,@ECHO_N@,$ECHO_N,;t t
14443 s,@ECHO_T@,$ECHO_T,;t t
14444 s,@LIBS@,$LIBS,;t t
14445 s,@LIBEXT@,$LIBEXT,;t t
14446 s,@OPTIONS@,$OPTIONS,;t t
14447 s,@WIN16_FILES@,$WIN16_FILES,;t t
14448 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
14449 s,@build@,$build,;t t
14450 s,@build_cpu@,$build_cpu,;t t
14451 s,@build_vendor@,$build_vendor,;t t
14452 s,@build_os@,$build_os,;t t
14453 s,@host@,$host,;t t
14454 s,@host_cpu@,$host_cpu,;t t
14455 s,@host_vendor@,$host_vendor,;t t
14456 s,@host_os@,$host_os,;t t
14457 s,@SET_MAKE@,$SET_MAKE,;t t
14458 s,@CC@,$CC,;t t
14459 s,@CFLAGS@,$CFLAGS,;t t
14460 s,@LDFLAGS@,$LDFLAGS,;t t
14461 s,@CPPFLAGS@,$CPPFLAGS,;t t
14462 s,@ac_ct_CC@,$ac_ct_CC,;t t
14463 s,@EXEEXT@,$EXEEXT,;t t
14464 s,@OBJEXT@,$OBJEXT,;t t
14465 s,@CPP@,$CPP,;t t
14466 s,@TOOLSDIR@,$TOOLSDIR,;t t
14467 s,@X_CFLAGS@,$X_CFLAGS,;t t
14468 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14469 s,@X_LIBS@,$X_LIBS,;t t
14470 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14471 s,@YACC@,$YACC,;t t
14472 s,@LEX@,$LEX,;t t
14473 s,@LEXLIB@,$LEXLIB,;t t
14474 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14475 s,@XYACC@,$XYACC,;t t
14476 s,@XLEX@,$XLEX,;t t
14477 s,@LD@,$LD,;t t
14478 s,@ac_ct_LD@,$ac_ct_LD,;t t
14479 s,@AR@,$AR,;t t
14480 s,@ac_ct_AR@,$ac_ct_AR,;t t
14481 s,@RANLIB@,$RANLIB,;t t
14482 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14483 s,@STRIP@,$STRIP,;t t
14484 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14485 s,@WINDRES@,$WINDRES,;t t
14486 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
14487 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14488 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14489 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14490 s,@LN_S@,$LN_S,;t t
14491 s,@LN@,$LN,;t t
14492 s,@C2MAN@,$C2MAN,;t t
14493 s,@LDCONFIG@,$LDCONFIG,;t t
14494 s,@LINT@,$LINT,;t t
14495 s,@LINTFLAGS@,$LINTFLAGS,;t t
14496 s,@JPEGLIB@,$JPEGLIB,;t t
14497 s,@EGREP@,$EGREP,;t t
14498 s,@XLIB@,$XLIB,;t t
14499 s,@XFILES@,$XFILES,;t t
14500 s,@OPENGLFILES@,$OPENGLFILES,;t t
14501 s,@GLU32FILES@,$GLU32FILES,;t t
14502 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
14503 s,@NASLIBS@,$NASLIBS,;t t
14504 s,@CURSESLIBS@,$CURSESLIBS,;t t
14505 s,@sane_devel@,$sane_devel,;t t
14506 s,@SANELIBS@,$SANELIBS,;t t
14507 s,@SANEINCL@,$SANEINCL,;t t
14508 s,@ft_devel@,$ft_devel,;t t
14509 s,@ft_devel2@,$ft_devel2,;t t
14510 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
14511 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14512 s,@ARTSLIBS@,$ARTSLIBS,;t t
14513 s,@ARTSINCL@,$ARTSINCL,;t t
14514 s,@ALSALIBS@,$ALSALIBS,;t t
14515 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
14516 s,@DLLEXT@,$DLLEXT,;t t
14517 s,@DLLFLAGS@,$DLLFLAGS,;t t
14518 s,@DLLIBS@,$DLLIBS,;t t
14519 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14520 s,@LDSHARED@,$LDSHARED,;t t
14521 s,@DLLWRAP@,$DLLWRAP,;t t
14522 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
14523 s,@CROSSTEST@,$CROSSTEST,;t t
14524 s,@CROSSCC@,$CROSSCC,;t t
14525 s,@DLLTOOL@,$DLLTOOL,;t t
14526 s,@LDPATH@,$LDPATH,;t t
14527 s,@CRTLIBS@,$CRTLIBS,;t t
14528 s,@LDD@,$LDD,;t t
14529 s,@ALLOCA@,$ALLOCA,;t t
14530 s,@LIBOBJS@,$LIBOBJS,;t t
14531 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14532 /@MAKE_RULES@/r $MAKE_RULES
14533 s,@MAKE_RULES@,,;t t
14534 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14535 s,@MAKE_DLL_RULES@,,;t t
14536 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
14537 s,@MAKE_TEST_RULES@,,;t t
14538 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14539 s,@MAKE_PROG_RULES@,,;t t
14540 CEOF
14542 _ACEOF
14544 cat >>$CONFIG_STATUS <<\_ACEOF
14545 # Split the substitutions into bite-sized pieces for seds with
14546 # small command number limits, like on Digital OSF/1 and HP-UX.
14547 ac_max_sed_lines=48
14548 ac_sed_frag=1 # Number of current file.
14549 ac_beg=1 # First line for current file.
14550 ac_end=$ac_max_sed_lines # Line after last line for current file.
14551 ac_more_lines=:
14552 ac_sed_cmds=
14553 while $ac_more_lines; do
14554 if test $ac_beg -gt 1; then
14555 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14556 else
14557 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14559 if test ! -s $tmp/subs.frag; then
14560 ac_more_lines=false
14561 else
14562 # The purpose of the label and of the branching condition is to
14563 # speed up the sed processing (if there are no `@' at all, there
14564 # is no need to browse any of the substitutions).
14565 # These are the two extra sed commands mentioned above.
14566 (echo ':t
14567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14568 if test -z "$ac_sed_cmds"; then
14569 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14570 else
14571 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14573 ac_sed_frag=`expr $ac_sed_frag + 1`
14574 ac_beg=$ac_end
14575 ac_end=`expr $ac_end + $ac_max_sed_lines`
14577 done
14578 if test -z "$ac_sed_cmds"; then
14579 ac_sed_cmds=cat
14581 fi # test -n "$CONFIG_FILES"
14583 _ACEOF
14584 cat >>$CONFIG_STATUS <<\_ACEOF
14585 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14586 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14587 case $ac_file in
14588 - | *:- | *:-:* ) # input from stdin
14589 cat >$tmp/stdin
14590 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14591 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14592 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14594 * ) ac_file_in=$ac_file.in ;;
14595 esac
14597 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14598 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14600 X"$ac_file" : 'X\(//\)[^/]' \| \
14601 X"$ac_file" : 'X\(//\)$' \| \
14602 X"$ac_file" : 'X\(/\)' \| \
14603 . : '\(.\)' 2>/dev/null ||
14604 echo X"$ac_file" |
14605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14607 /^X\(\/\/\)$/{ s//\1/; q; }
14608 /^X\(\/\).*/{ s//\1/; q; }
14609 s/.*/./; q'`
14610 { if $as_mkdir_p; then
14611 mkdir -p "$ac_dir"
14612 else
14613 as_dir="$ac_dir"
14614 as_dirs=
14615 while test ! -d "$as_dir"; do
14616 as_dirs="$as_dir $as_dirs"
14617 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14618 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14619 X"$as_dir" : 'X\(//\)[^/]' \| \
14620 X"$as_dir" : 'X\(//\)$' \| \
14621 X"$as_dir" : 'X\(/\)' \| \
14622 . : '\(.\)' 2>/dev/null ||
14623 echo X"$as_dir" |
14624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14626 /^X\(\/\/\)$/{ s//\1/; q; }
14627 /^X\(\/\).*/{ s//\1/; q; }
14628 s/.*/./; q'`
14629 done
14630 test ! -n "$as_dirs" || mkdir $as_dirs
14631 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14632 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14633 { (exit 1); exit 1; }; }; }
14635 ac_builddir=.
14637 if test "$ac_dir" != .; then
14638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14639 # A "../" for each directory in $ac_dir_suffix.
14640 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14641 else
14642 ac_dir_suffix= ac_top_builddir=
14645 case $srcdir in
14646 .) # No --srcdir option. We are building in place.
14647 ac_srcdir=.
14648 if test -z "$ac_top_builddir"; then
14649 ac_top_srcdir=.
14650 else
14651 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14652 fi ;;
14653 [\\/]* | ?:[\\/]* ) # Absolute path.
14654 ac_srcdir=$srcdir$ac_dir_suffix;
14655 ac_top_srcdir=$srcdir ;;
14656 *) # Relative path.
14657 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14658 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14659 esac
14660 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14661 # absolute.
14662 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14663 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14664 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14665 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14668 case $INSTALL in
14669 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14670 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14671 esac
14673 if test x"$ac_file" != x-; then
14674 { echo "$as_me:$LINENO: creating $ac_file" >&5
14675 echo "$as_me: creating $ac_file" >&6;}
14676 rm -f "$ac_file"
14678 # Let's still pretend it is `configure' which instantiates (i.e., don't
14679 # use $as_me), people would be surprised to read:
14680 # /* config.h. Generated by config.status. */
14681 if test x"$ac_file" = x-; then
14682 configure_input=
14683 else
14684 configure_input="$ac_file. "
14686 configure_input=$configure_input"Generated from `echo $ac_file_in |
14687 sed 's,.*/,,'` by configure."
14689 # First look for the input files in the build tree, otherwise in the
14690 # src tree.
14691 ac_file_inputs=`IFS=:
14692 for f in $ac_file_in; do
14693 case $f in
14694 -) echo $tmp/stdin ;;
14695 [\\/$]*)
14696 # Absolute (can't be DOS-style, as IFS=:)
14697 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14698 echo "$as_me: error: cannot find input file: $f" >&2;}
14699 { (exit 1); exit 1; }; }
14700 echo $f;;
14701 *) # Relative
14702 if test -f "$f"; then
14703 # Build tree
14704 echo $f
14705 elif test -f "$srcdir/$f"; then
14706 # Source tree
14707 echo $srcdir/$f
14708 else
14709 # /dev/null tree
14710 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14711 echo "$as_me: error: cannot find input file: $f" >&2;}
14712 { (exit 1); exit 1; }; }
14713 fi;;
14714 esac
14715 done` || { (exit 1); exit 1; }
14716 _ACEOF
14717 cat >>$CONFIG_STATUS <<_ACEOF
14718 sed "$ac_vpsub
14719 $extrasub
14720 _ACEOF
14721 cat >>$CONFIG_STATUS <<\_ACEOF
14723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14724 s,@configure_input@,$configure_input,;t t
14725 s,@srcdir@,$ac_srcdir,;t t
14726 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14727 s,@top_srcdir@,$ac_top_srcdir,;t t
14728 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14729 s,@builddir@,$ac_builddir,;t t
14730 s,@abs_builddir@,$ac_abs_builddir,;t t
14731 s,@top_builddir@,$ac_top_builddir,;t t
14732 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14733 s,@INSTALL@,$ac_INSTALL,;t t
14734 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14735 rm -f $tmp/stdin
14736 if test x"$ac_file" != x-; then
14737 mv $tmp/out $ac_file
14738 else
14739 cat $tmp/out
14740 rm -f $tmp/out
14743 done
14744 _ACEOF
14745 cat >>$CONFIG_STATUS <<\_ACEOF
14748 # CONFIG_HEADER section.
14751 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14752 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14754 # ac_d sets the value in "#define NAME VALUE" lines.
14755 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14756 ac_dB='[ ].*$,\1#\2'
14757 ac_dC=' '
14758 ac_dD=',;t'
14759 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14760 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14761 ac_uB='$,\1#\2define\3'
14762 ac_uC=' '
14763 ac_uD=',;t'
14765 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14766 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14767 case $ac_file in
14768 - | *:- | *:-:* ) # input from stdin
14769 cat >$tmp/stdin
14770 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14771 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14772 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14773 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14774 * ) ac_file_in=$ac_file.in ;;
14775 esac
14777 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14778 echo "$as_me: creating $ac_file" >&6;}
14780 # First look for the input files in the build tree, otherwise in the
14781 # src tree.
14782 ac_file_inputs=`IFS=:
14783 for f in $ac_file_in; do
14784 case $f in
14785 -) echo $tmp/stdin ;;
14786 [\\/$]*)
14787 # Absolute (can't be DOS-style, as IFS=:)
14788 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14789 echo "$as_me: error: cannot find input file: $f" >&2;}
14790 { (exit 1); exit 1; }; }
14791 echo $f;;
14792 *) # Relative
14793 if test -f "$f"; then
14794 # Build tree
14795 echo $f
14796 elif test -f "$srcdir/$f"; then
14797 # Source tree
14798 echo $srcdir/$f
14799 else
14800 # /dev/null tree
14801 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14802 echo "$as_me: error: cannot find input file: $f" >&2;}
14803 { (exit 1); exit 1; }; }
14804 fi;;
14805 esac
14806 done` || { (exit 1); exit 1; }
14807 # Remove the trailing spaces.
14808 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14810 _ACEOF
14812 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14813 # `conftest.undefs', that substitutes the proper values into
14814 # config.h.in to produce config.h. The first handles `#define'
14815 # templates, and the second `#undef' templates.
14816 # And first: Protect against being on the right side of a sed subst in
14817 # config.status. Protect against being in an unquoted here document
14818 # in config.status.
14819 rm -f conftest.defines conftest.undefs
14820 # Using a here document instead of a string reduces the quoting nightmare.
14821 # Putting comments in sed scripts is not portable.
14823 # `end' is used to avoid that the second main sed command (meant for
14824 # 0-ary CPP macros) applies to n-ary macro definitions.
14825 # See the Autoconf documentation for `clear'.
14826 cat >confdef2sed.sed <<\_ACEOF
14827 s/[\\&,]/\\&/g
14828 s,[\\$`],\\&,g
14829 t clear
14830 : clear
14831 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14832 t end
14833 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14834 : end
14835 _ACEOF
14836 # If some macros were called several times there might be several times
14837 # the same #defines, which is useless. Nevertheless, we may not want to
14838 # sort them, since we want the *last* AC-DEFINE to be honored.
14839 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14840 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14841 rm -f confdef2sed.sed
14843 # This sed command replaces #undef with comments. This is necessary, for
14844 # example, in the case of _POSIX_SOURCE, which is predefined and required
14845 # on some systems where configure will not decide to define it.
14846 cat >>conftest.undefs <<\_ACEOF
14847 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14848 _ACEOF
14850 # Break up conftest.defines because some shells have a limit on the size
14851 # of here documents, and old seds have small limits too (100 cmds).
14852 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14853 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14854 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14855 echo ' :' >>$CONFIG_STATUS
14856 rm -f conftest.tail
14857 while grep . conftest.defines >/dev/null
14859 # Write a limited-size here document to $tmp/defines.sed.
14860 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14861 # Speed up: don't consider the non `#define' lines.
14862 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14863 # Work around the forget-to-reset-the-flag bug.
14864 echo 't clr' >>$CONFIG_STATUS
14865 echo ': clr' >>$CONFIG_STATUS
14866 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14867 echo 'CEOF
14868 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14869 rm -f $tmp/in
14870 mv $tmp/out $tmp/in
14871 ' >>$CONFIG_STATUS
14872 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14873 rm -f conftest.defines
14874 mv conftest.tail conftest.defines
14875 done
14876 rm -f conftest.defines
14877 echo ' fi # grep' >>$CONFIG_STATUS
14878 echo >>$CONFIG_STATUS
14880 # Break up conftest.undefs because some shells have a limit on the size
14881 # of here documents, and old seds have small limits too (100 cmds).
14882 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14883 rm -f conftest.tail
14884 while grep . conftest.undefs >/dev/null
14886 # Write a limited-size here document to $tmp/undefs.sed.
14887 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14888 # Speed up: don't consider the non `#undef'
14889 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14890 # Work around the forget-to-reset-the-flag bug.
14891 echo 't clr' >>$CONFIG_STATUS
14892 echo ': clr' >>$CONFIG_STATUS
14893 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14894 echo 'CEOF
14895 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14896 rm -f $tmp/in
14897 mv $tmp/out $tmp/in
14898 ' >>$CONFIG_STATUS
14899 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14900 rm -f conftest.undefs
14901 mv conftest.tail conftest.undefs
14902 done
14903 rm -f conftest.undefs
14905 cat >>$CONFIG_STATUS <<\_ACEOF
14906 # Let's still pretend it is `configure' which instantiates (i.e., don't
14907 # use $as_me), people would be surprised to read:
14908 # /* config.h. Generated by config.status. */
14909 if test x"$ac_file" = x-; then
14910 echo "/* Generated by configure. */" >$tmp/config.h
14911 else
14912 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14914 cat $tmp/in >>$tmp/config.h
14915 rm -f $tmp/in
14916 if test x"$ac_file" != x-; then
14917 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
14918 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14919 echo "$as_me: $ac_file is unchanged" >&6;}
14920 else
14921 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14923 X"$ac_file" : 'X\(//\)[^/]' \| \
14924 X"$ac_file" : 'X\(//\)$' \| \
14925 X"$ac_file" : 'X\(/\)' \| \
14926 . : '\(.\)' 2>/dev/null ||
14927 echo X"$ac_file" |
14928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14930 /^X\(\/\/\)$/{ s//\1/; q; }
14931 /^X\(\/\).*/{ s//\1/; q; }
14932 s/.*/./; q'`
14933 { if $as_mkdir_p; then
14934 mkdir -p "$ac_dir"
14935 else
14936 as_dir="$ac_dir"
14937 as_dirs=
14938 while test ! -d "$as_dir"; do
14939 as_dirs="$as_dir $as_dirs"
14940 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14942 X"$as_dir" : 'X\(//\)[^/]' \| \
14943 X"$as_dir" : 'X\(//\)$' \| \
14944 X"$as_dir" : 'X\(/\)' \| \
14945 . : '\(.\)' 2>/dev/null ||
14946 echo X"$as_dir" |
14947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14949 /^X\(\/\/\)$/{ s//\1/; q; }
14950 /^X\(\/\).*/{ s//\1/; q; }
14951 s/.*/./; q'`
14952 done
14953 test ! -n "$as_dirs" || mkdir $as_dirs
14954 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14955 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14956 { (exit 1); exit 1; }; }; }
14958 rm -f $ac_file
14959 mv $tmp/config.h $ac_file
14961 else
14962 cat $tmp/config.h
14963 rm -f $tmp/config.h
14965 done
14966 _ACEOF
14967 cat >>$CONFIG_STATUS <<\_ACEOF
14970 # CONFIG_COMMANDS section.
14972 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14973 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14974 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14975 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14976 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14977 X"$ac_dest" : 'X\(//\)[^/]' \| \
14978 X"$ac_dest" : 'X\(//\)$' \| \
14979 X"$ac_dest" : 'X\(/\)' \| \
14980 . : '\(.\)' 2>/dev/null ||
14981 echo X"$ac_dest" |
14982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14984 /^X\(\/\/\)$/{ s//\1/; q; }
14985 /^X\(\/\).*/{ s//\1/; q; }
14986 s/.*/./; q'`
14987 ac_builddir=.
14989 if test "$ac_dir" != .; then
14990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14991 # A "../" for each directory in $ac_dir_suffix.
14992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14993 else
14994 ac_dir_suffix= ac_top_builddir=
14997 case $srcdir in
14998 .) # No --srcdir option. We are building in place.
14999 ac_srcdir=.
15000 if test -z "$ac_top_builddir"; then
15001 ac_top_srcdir=.
15002 else
15003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15004 fi ;;
15005 [\\/]* | ?:[\\/]* ) # Absolute path.
15006 ac_srcdir=$srcdir$ac_dir_suffix;
15007 ac_top_srcdir=$srcdir ;;
15008 *) # Relative path.
15009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15011 esac
15012 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15013 # absolute.
15014 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15015 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15016 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15017 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15020 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15021 echo "$as_me: executing $ac_dest commands" >&6;}
15022 case $ac_dest in
15023 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15024 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
15025 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15026 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15027 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15028 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15029 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15030 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15031 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15032 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15033 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15034 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15035 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15036 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15037 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15038 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15039 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15040 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15041 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15042 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15043 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15044 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15045 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15046 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15047 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15048 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15049 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15050 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
15051 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15052 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15053 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15054 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
15055 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15056 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
15057 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15058 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15059 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15060 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15061 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15062 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15063 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15064 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
15065 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15066 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
15067 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15068 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15069 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15070 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15071 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15072 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15073 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15074 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15075 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15076 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15077 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15078 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
15079 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15080 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
15081 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15082 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
15083 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15084 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15085 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15086 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15087 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15088 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15089 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15090 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
15091 esac
15092 done
15093 _ACEOF
15095 cat >>$CONFIG_STATUS <<\_ACEOF
15097 { (exit 0); exit 0; }
15098 _ACEOF
15099 chmod +x $CONFIG_STATUS
15100 ac_clean_files=$ac_clean_files_save
15103 # configure is writing to config.log, and then calls config.status.
15104 # config.status does its own redirection, appending to config.log.
15105 # Unfortunately, on DOS this fails, as config.log is still kept open
15106 # by configure, so config.status won't be able to write to it; its
15107 # output is simply discarded. So we exec the FD to /dev/null,
15108 # effectively closing config.log, so it can be properly (re)opened and
15109 # appended to by config.status. When coming back to configure, we
15110 # need to make the FD available again.
15111 if test "$no_create" != yes; then
15112 ac_cs_success=:
15113 exec 5>/dev/null
15114 $SHELL $CONFIG_STATUS || ac_cs_success=false
15115 exec 5>>config.log
15116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15117 # would make configure fail if this is the last instruction.
15118 $ac_cs_success || { (exit 1); exit 1; }
15122 if test "$have_x" = "no"
15123 then
15124 echo
15125 echo "*** Warning: X development files not found. Wine will be built without"
15126 echo "*** X support, which currently does not work, and would probably not be"
15127 echo "*** what you want anyway. You will need to install devel packages of"
15128 echo "*** Xlib/Xfree86 at the very least."
15131 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15132 then
15133 echo
15134 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15135 echo "*** terminal resize support. Consider upgrading ncurses."
15138 if test "$wine_cv_libc_reentrant" = "no"
15139 then
15140 echo
15141 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15142 echo "*** threading support. Consider upgrading libc to a more recent"
15143 echo "*** reentrant version of libc."
15146 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15147 then
15148 echo
15149 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15150 echo "*** applications won't work properly. You should upgrade your X11 library."
15153 if test "$wine_cv_opengl_version_OK" = "no"
15154 then
15155 echo
15156 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
15157 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15160 if test "$wine_cv_msg_freetype" = "yes"
15161 then
15162 echo
15163 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
15164 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15165 echo "*** freetype-devel package (or its equivalent on your distribution) to"
15166 echo "*** enable Wine to use TrueType fonts."
15169 echo
15170 echo "Configure finished. Do 'make depend && make' to compile Wine."
15171 echo