Add stub for InvalidateNLSCache.
[wine/multimedia.git] / configure
blob9f9925e7c6cde0200d1e41c61239a5949ac0d3f7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20030318.
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 \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME='Wine'
268 PACKAGE_TARNAME='wine'
269 PACKAGE_VERSION='20030318'
270 PACKAGE_STRING='Wine 20030318'
271 PACKAGE_BUGREPORT=''
273 ac_unique_file="server/atom.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 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 OPTIONS WIN16_FILES WIN16_INSTALL LIBPTHREAD 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 AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN C2MAN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP GIFLIB 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 LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
312 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES'
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures Wine 20030318 to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 X features:
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
837 System types:
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of Wine 20030318:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-win16 do not include Win16 support
853 --disable-debug compile out all debugging messages
854 --disable-trace compile out TRACE messages
856 Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --without-opengl do not use OpenGL
860 --without-curses do not use curses
861 --with-nptl use glibc NPTL threading support
862 --with-wine-tools=<dir> use Wine tools from directory <dir>
863 --with-x use the X Window System
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CPP C preprocessor
874 Use these variables to override the choices made by `configure' or to help
875 it to find libraries and programs with nonstandard names/locations.
877 _ACEOF
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
882 ac_popdir=`pwd`
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
885 ac_builddir=.
887 if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 else
892 ac_dir_suffix= ac_top_builddir=
895 case $srcdir in
896 .) # No --srcdir option. We are building in place.
897 ac_srcdir=.
898 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=.
900 else
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 fi ;;
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
906 *) # Relative path.
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 esac
910 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
911 # absolute.
912 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
913 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
914 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
917 cd $ac_dir
918 # Check for guested configure; otherwise get Cygnus style configure.
919 if test -f $ac_srcdir/configure.gnu; then
920 echo
921 $SHELL $ac_srcdir/configure.gnu --help=recursive
922 elif test -f $ac_srcdir/configure; then
923 echo
924 $SHELL $ac_srcdir/configure --help=recursive
925 elif test -f $ac_srcdir/configure.ac ||
926 test -f $ac_srcdir/configure.in; then
927 echo
928 $ac_configure --help
929 else
930 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
932 cd $ac_popdir
933 done
936 test -n "$ac_init_help" && exit 0
937 if $ac_init_version; then
938 cat <<\_ACEOF
939 Wine configure 20030318
940 generated by GNU Autoconf 2.57
942 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
943 Free Software Foundation, Inc.
944 This configure script is free software; the Free Software Foundation
945 gives unlimited permission to copy, distribute and modify it.
946 _ACEOF
947 exit 0
949 exec 5>config.log
950 cat >&5 <<_ACEOF
951 This file contains any messages produced by compilers while
952 running configure, to aid debugging if configure makes a mistake.
954 It was created by Wine $as_me 20030318, which was
955 generated by GNU Autoconf 2.57. Invocation command line was
957 $ $0 $@
959 _ACEOF
961 cat <<_ASUNAME
962 ## --------- ##
963 ## Platform. ##
964 ## --------- ##
966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
983 _ASUNAME
985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
986 for as_dir in $PATH
988 IFS=$as_save_IFS
989 test -z "$as_dir" && as_dir=.
990 echo "PATH: $as_dir"
991 done
993 } >&5
995 cat >&5 <<_ACEOF
998 ## ----------- ##
999 ## Core tests. ##
1000 ## ----------- ##
1002 _ACEOF
1005 # Keep a trace of the command line.
1006 # Strip out --no-create and --no-recursion so they do not pile up.
1007 # Strip out --silent because we don't want to record it for future runs.
1008 # Also quote any args containing shell meta-characters.
1009 # Make two passes to allow for proper duplicate-argument suppression.
1010 ac_configure_args=
1011 ac_configure_args0=
1012 ac_configure_args1=
1013 ac_sep=
1014 ac_must_keep_next=false
1015 for ac_pass in 1 2
1017 for ac_arg
1019 case $ac_arg in
1020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 continue ;;
1024 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026 esac
1027 case $ac_pass in
1028 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1030 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031 if test $ac_must_keep_next = true; then
1032 ac_must_keep_next=false # Got value, back to normal.
1033 else
1034 case $ac_arg in
1035 *=* | --config-cache | -C | -disable-* | --disable-* \
1036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038 | -with-* | --with-* | -without-* | --without-* | --x)
1039 case "$ac_configure_args0 " in
1040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041 esac
1043 -* ) ac_must_keep_next=true ;;
1044 esac
1046 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047 # Get rid of the leading space.
1048 ac_sep=" "
1050 esac
1051 done
1052 done
1053 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log. We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062 # Save into config.log some information that might help in debugging.
1064 echo
1066 cat <<\_ASBOX
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1070 _ASBOX
1071 echo
1072 # The following way of writing the cache mishandles newlines in values,
1074 (set) 2>&1 |
1075 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076 *ac_space=\ *)
1077 sed -n \
1078 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1082 sed -n \
1083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1085 esac;
1087 echo
1089 cat <<\_ASBOX
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1093 _ASBOX
1094 echo
1095 for ac_var in $ac_subst_vars
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1099 done | sort
1100 echo
1102 if test -n "$ac_subst_files"; then
1103 cat <<\_ASBOX
1104 ## ------------- ##
1105 ## Output files. ##
1106 ## ------------- ##
1107 _ASBOX
1108 echo
1109 for ac_var in $ac_subst_files
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1113 done | sort
1114 echo
1117 if test -s confdefs.h; then
1118 cat <<\_ASBOX
1119 ## ----------- ##
1120 ## confdefs.h. ##
1121 ## ----------- ##
1122 _ASBOX
1123 echo
1124 sed "/^$/d" confdefs.h | sort
1125 echo
1127 test "$ac_signal" != 0 &&
1128 echo "$as_me: caught signal $ac_signal"
1129 echo "$as_me: exit $exit_status"
1130 } >&5
1131 rm -f core core.* *.core &&
1132 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133 exit $exit_status
1135 for ac_signal in 1 2 13 15; do
1136 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 done
1138 ac_signal=0
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 echo >confdefs.h
1145 # Predefined preprocessor variables.
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 _ACEOF
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 _ACEOF
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 _ACEOF
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 _ACEOF
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 _ACEOF
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175 if test "x$prefix" != xNONE; then
1176 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177 else
1178 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1181 for ac_site_file in $CONFIG_SITE; do
1182 if test -r "$ac_site_file"; then
1183 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185 sed 's/^/| /' "$ac_site_file" >&5
1186 . "$ac_site_file"
1188 done
1190 if test -r "$cache_file"; then
1191 # Some versions of bash will fail to source /dev/null (special
1192 # files actually), so we avoid doing that.
1193 if test -f "$cache_file"; then
1194 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1196 case $cache_file in
1197 [\\/]* | ?:[\\/]* ) . $cache_file;;
1198 *) . ./$cache_file;;
1199 esac
1201 else
1202 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1204 >$cache_file
1207 # Check that the precious variables saved in the cache have kept the same
1208 # value.
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213 eval ac_new_set=\$ac_env_${ac_var}_set
1214 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215 eval ac_new_val="\$ac_env_${ac_var}_value"
1216 case $ac_old_set,$ac_new_set in
1217 set,)
1218 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1221 ,set)
1222 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224 ac_cache_corrupted=: ;;
1225 ,);;
1227 if test "x$ac_old_val" != "x$ac_new_val"; then
1228 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1231 echo "$as_me: former value: $ac_old_val" >&2;}
1232 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1233 echo "$as_me: current value: $ac_new_val" >&2;}
1234 ac_cache_corrupted=:
1235 fi;;
1236 esac
1237 # Pass precious variables to config.status.
1238 if test "$ac_new_set" = set; then
1239 case $ac_new_val in
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 *) ac_arg=$ac_var=$ac_new_val ;;
1243 esac
1244 case " $ac_configure_args " in
1245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1246 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1247 esac
1249 done
1250 if $ac_cache_corrupted; then
1251 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255 { (exit 1); exit 1; }; }
1258 ac_ext=c
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291 ac_config_headers="$ac_config_headers include/config.h"
1293 ac_aux_dir=
1294 for ac_dir in tools $srcdir/tools; do
1295 if test -f $ac_dir/install-sh; then
1296 ac_aux_dir=$ac_dir
1297 ac_install_sh="$ac_aux_dir/install-sh -c"
1298 break
1299 elif test -f $ac_dir/install.sh; then
1300 ac_aux_dir=$ac_dir
1301 ac_install_sh="$ac_aux_dir/install.sh -c"
1302 break
1303 elif test -f $ac_dir/shtool; then
1304 ac_aux_dir=$ac_dir
1305 ac_install_sh="$ac_aux_dir/shtool install -c"
1306 break
1308 done
1309 if test -z "$ac_aux_dir"; then
1310 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1311 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1312 { (exit 1); exit 1; }; }
1314 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1315 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1316 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1320 # Check whether --enable-win16 or --disable-win16 was given.
1321 if test "${enable_win16+set}" = set; then
1322 enableval="$enable_win16"
1325 # Check whether --enable-debug or --disable-debug was given.
1326 if test "${enable_debug+set}" = set; then
1327 enableval="$enable_debug"
1330 # Check whether --enable-trace or --disable-trace was given.
1331 if test "${enable_trace+set}" = set; then
1332 enableval="$enable_trace"
1337 # Check whether --with-opengl or --without-opengl was given.
1338 if test "${with_opengl+set}" = set; then
1339 withval="$with_opengl"
1343 # Check whether --with-curses or --without-curses was given.
1344 if test "${with_curses+set}" = set; then
1345 withval="$with_curses"
1349 # Check whether --with-nptl or --without-nptl was given.
1350 if test "${with_nptl+set}" = set; then
1351 withval="$with_nptl"
1355 # Check whether --with-wine-tools or --without-wine-tools was given.
1356 if test "${with_wine_tools+set}" = set; then
1357 withval="$with_wine_tools"
1362 WIN16_FILES="\$(WIN16_FILES)"
1364 WIN16_INSTALL="\$(WIN16_INSTALL)"
1366 if test "x$enable_win16" = "xno"
1367 then
1368 WIN16_FILES=""
1369 WIN16_INSTALL=""
1371 if test "x$enable_debug" = "xno"
1372 then
1374 cat >>confdefs.h <<\_ACEOF
1375 #define NO_DEBUG_MSGS 1
1376 _ACEOF
1379 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1380 then
1382 cat >>confdefs.h <<\_ACEOF
1383 #define NO_TRACE_MSGS 1
1384 _ACEOF
1387 if test "x$with_nptl" = "xyes"
1388 then
1390 cat >>confdefs.h <<\_ACEOF
1391 #define HAVE_NPTL 1
1392 _ACEOF
1394 LIBPTHREAD="-lpthread"
1399 # Make sure we can run config.sub.
1400 $ac_config_sub sun4 >/dev/null 2>&1 ||
1401 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1402 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1403 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: checking build system type" >&5
1406 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1407 if test "${ac_cv_build+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 ac_cv_build_alias=$build_alias
1411 test -z "$ac_cv_build_alias" &&
1412 ac_cv_build_alias=`$ac_config_guess`
1413 test -z "$ac_cv_build_alias" &&
1414 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1415 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1416 { (exit 1); exit 1; }; }
1417 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1423 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1424 echo "${ECHO_T}$ac_cv_build" >&6
1425 build=$ac_cv_build
1426 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 echo "$as_me:$LINENO: checking host system type" >&5
1432 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433 if test "${ac_cv_host+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 ac_cv_host_alias=$host_alias
1437 test -z "$ac_cv_host_alias" &&
1438 ac_cv_host_alias=$ac_cv_build_alias
1439 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1446 echo "${ECHO_T}$ac_cv_host" >&6
1447 host=$ac_cv_host
1448 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1454 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1455 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1456 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459 cat >conftest.make <<\_ACEOF
1460 all:
1461 @echo 'ac_maketemp="$(MAKE)"'
1462 _ACEOF
1463 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1464 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1465 if test -n "$ac_maketemp"; then
1466 eval ac_cv_prog_make_${ac_make}_set=yes
1467 else
1468 eval ac_cv_prog_make_${ac_make}_set=no
1470 rm -f conftest.make
1472 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1473 echo "$as_me:$LINENO: result: yes" >&5
1474 echo "${ECHO_T}yes" >&6
1475 SET_MAKE=
1476 else
1477 echo "$as_me:$LINENO: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1479 SET_MAKE="MAKE=${MAKE-make}"
1482 ac_ext=c
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 if test -n "$ac_tool_prefix"; then
1488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC="$CC" # Let the user override the test.
1497 else
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 for as_dir in $PATH
1501 IFS=$as_save_IFS
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 break 2
1509 done
1510 done
1514 CC=$ac_cv_prog_CC
1515 if test -n "$CC"; then
1516 echo "$as_me:$LINENO: result: $CC" >&5
1517 echo "${ECHO_T}$CC" >&6
1518 else
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1524 if test -z "$ac_cv_prog_CC"; then
1525 ac_ct_CC=$CC
1526 # Extract the first word of "gcc", so it can be a program name with args.
1527 set dummy gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533 if test -n "$ac_ct_CC"; then
1534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1539 IFS=$as_save_IFS
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_ac_ct_CC="gcc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 break 2
1547 done
1548 done
1552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1553 if test -n "$ac_ct_CC"; then
1554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1555 echo "${ECHO_T}$ac_ct_CC" >&6
1556 else
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1561 CC=$ac_ct_CC
1562 else
1563 CC="$ac_cv_prog_CC"
1566 if test -z "$CC"; then
1567 if test -n "$ac_tool_prefix"; then
1568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1569 set dummy ${ac_tool_prefix}cc; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test.
1577 else
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 for as_dir in $PATH
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_CC="${ac_tool_prefix}cc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1589 done
1590 done
1594 CC=$ac_cv_prog_CC
1595 if test -n "$CC"; then
1596 echo "$as_me:$LINENO: result: $CC" >&5
1597 echo "${ECHO_T}$CC" >&6
1598 else
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1604 if test -z "$ac_cv_prog_CC"; then
1605 ac_ct_CC=$CC
1606 # Extract the first word of "cc", so it can be a program name with args.
1607 set dummy cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613 if test -n "$ac_ct_CC"; then
1614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_ac_ct_CC="cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1627 done
1628 done
1632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1633 if test -n "$ac_ct_CC"; then
1634 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1635 echo "${ECHO_T}$ac_ct_CC" >&6
1636 else
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1641 CC=$ac_ct_CC
1642 else
1643 CC="$ac_cv_prog_CC"
1647 if test -z "$CC"; then
1648 # Extract the first word of "cc", so it can be a program name with args.
1649 set dummy cc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658 ac_prog_rejected=no
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1662 IFS=$as_save_IFS
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1667 ac_prog_rejected=yes
1668 continue
1670 ac_cv_prog_CC="cc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1674 done
1675 done
1677 if test $ac_prog_rejected = yes; then
1678 # We found a bogon in the path, so make sure we never use it.
1679 set dummy $ac_cv_prog_CC
1680 shift
1681 if test $# != 0; then
1682 # We chose a different compiler from the bogus one.
1683 # However, it has the same basename, so the bogon will be chosen
1684 # first if we set CC to just the basename; use the full file name.
1685 shift
1686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1691 CC=$ac_cv_prog_CC
1692 if test -n "$CC"; then
1693 echo "$as_me:$LINENO: result: $CC" >&5
1694 echo "${ECHO_T}$CC" >&6
1695 else
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1701 if test -z "$CC"; then
1702 if test -n "$ac_tool_prefix"; then
1703 for ac_prog in cl
1705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1714 else
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 break 2
1726 done
1727 done
1731 CC=$ac_cv_prog_CC
1732 if test -n "$CC"; then
1733 echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1735 else
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 test -n "$CC" && break
1741 done
1743 if test -z "$CC"; then
1744 ac_ct_CC=$CC
1745 for ac_prog in cl
1747 # Extract the first word of "$ac_prog", so it can be a program name with args.
1748 set dummy $ac_prog; ac_word=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754 if test -n "$ac_ct_CC"; then
1755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1756 else
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_ac_ct_CC="$ac_prog"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766 break 2
1768 done
1769 done
1773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1774 if test -n "$ac_ct_CC"; then
1775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 echo "${ECHO_T}$ac_ct_CC" >&6
1777 else
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1782 test -n "$ac_ct_CC" && break
1783 done
1785 CC=$ac_ct_CC
1791 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1792 See \`config.log' for more details." >&5
1793 echo "$as_me: error: no acceptable C compiler found in \$PATH
1794 See \`config.log' for more details." >&2;}
1795 { (exit 1); exit 1; }; }
1797 # Provide some information about the compiler.
1798 echo "$as_me:$LINENO:" \
1799 "checking for C compiler version" >&5
1800 ac_compiler=`set X $ac_compile; echo $2`
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1802 (eval $ac_compiler --version </dev/null >&5) 2>&5
1803 ac_status=$?
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }
1806 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1807 (eval $ac_compiler -v </dev/null >&5) 2>&5
1808 ac_status=$?
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }
1811 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1812 (eval $ac_compiler -V </dev/null >&5) 2>&5
1813 ac_status=$?
1814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815 (exit $ac_status); }
1817 cat >conftest.$ac_ext <<_ACEOF
1818 #line $LINENO "configure"
1819 /* confdefs.h. */
1820 _ACEOF
1821 cat confdefs.h >>conftest.$ac_ext
1822 cat >>conftest.$ac_ext <<_ACEOF
1823 /* end confdefs.h. */
1826 main ()
1830 return 0;
1832 _ACEOF
1833 ac_clean_files_save=$ac_clean_files
1834 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1835 # Try to create an executable without -o first, disregard a.out.
1836 # It will help us diagnose broken compilers, and finding out an intuition
1837 # of exeext.
1838 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1839 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1840 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1841 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1842 (eval $ac_link_default) 2>&5
1843 ac_status=$?
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }; then
1846 # Find the output, starting from the most likely. This scheme is
1847 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1848 # resort.
1850 # Be careful to initialize this variable, since it used to be cached.
1851 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1852 ac_cv_exeext=
1853 # b.out is created by i960 compilers.
1854 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1856 test -f "$ac_file" || continue
1857 case $ac_file in
1858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1860 conftest.$ac_ext )
1861 # This is the source file.
1863 [ab].out )
1864 # We found the default executable, but exeext='' is most
1865 # certainly right.
1866 break;;
1867 *.* )
1868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869 # FIXME: I believe we export ac_cv_exeext for Libtool,
1870 # but it would be cool to find out if it's true. Does anybody
1871 # maintain Libtool? --akim.
1872 export ac_cv_exeext
1873 break;;
1875 break;;
1876 esac
1877 done
1878 else
1879 echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1883 See \`config.log' for more details." >&5
1884 echo "$as_me: error: C compiler cannot create executables
1885 See \`config.log' for more details." >&2;}
1886 { (exit 77); exit 77; }; }
1889 ac_exeext=$ac_cv_exeext
1890 echo "$as_me:$LINENO: result: $ac_file" >&5
1891 echo "${ECHO_T}$ac_file" >&6
1893 # Check the compiler produces executables we can run. If not, either
1894 # the compiler is broken, or we cross compile.
1895 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1896 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1897 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1898 # If not cross compiling, check that we can run a simple program.
1899 if test "$cross_compiling" != yes; then
1900 if { ac_try='./$ac_file'
1901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1902 (eval $ac_try) 2>&5
1903 ac_status=$?
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }; }; then
1906 cross_compiling=no
1907 else
1908 if test "$cross_compiling" = maybe; then
1909 cross_compiling=yes
1910 else
1911 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1912 If you meant to cross compile, use \`--host'.
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: cannot run C compiled programs.
1915 If you meant to cross compile, use \`--host'.
1916 See \`config.log' for more details." >&2;}
1917 { (exit 1); exit 1; }; }
1921 echo "$as_me:$LINENO: result: yes" >&5
1922 echo "${ECHO_T}yes" >&6
1924 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1925 ac_clean_files=$ac_clean_files_save
1926 # Check the compiler produces executables we can run. If not, either
1927 # the compiler is broken, or we cross compile.
1928 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1929 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1930 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1931 echo "${ECHO_T}$cross_compiling" >&6
1933 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1934 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1936 (eval $ac_link) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1941 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1942 # work properly (i.e., refer to `conftest.exe'), while it won't with
1943 # `rm'.
1944 for ac_file in conftest.exe conftest conftest.*; do
1945 test -f "$ac_file" || continue
1946 case $ac_file in
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1948 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1949 export ac_cv_exeext
1950 break;;
1951 * ) break;;
1952 esac
1953 done
1954 else
1955 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1958 See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1962 rm -f conftest$ac_cv_exeext
1963 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1964 echo "${ECHO_T}$ac_cv_exeext" >&6
1966 rm -f conftest.$ac_ext
1967 EXEEXT=$ac_cv_exeext
1968 ac_exeext=$EXEEXT
1969 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1970 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1971 if test "${ac_cv_objext+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 cat >conftest.$ac_ext <<_ACEOF
1975 #line $LINENO "configure"
1976 /* confdefs.h. */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1983 main ()
1987 return 0;
1989 _ACEOF
1990 rm -f conftest.o conftest.obj
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>&5
1993 ac_status=$?
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }; then
1996 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1997 case $ac_file in
1998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1999 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2000 break;;
2001 esac
2002 done
2003 else
2004 echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2010 See \`config.log' for more details." >&2;}
2011 { (exit 1); exit 1; }; }
2014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2016 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2017 echo "${ECHO_T}$ac_cv_objext" >&6
2018 OBJEXT=$ac_cv_objext
2019 ac_objext=$OBJEXT
2020 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025 cat >conftest.$ac_ext <<_ACEOF
2026 #line $LINENO "configure"
2027 /* confdefs.h. */
2028 _ACEOF
2029 cat confdefs.h >>conftest.$ac_ext
2030 cat >>conftest.$ac_ext <<_ACEOF
2031 /* end confdefs.h. */
2034 main ()
2036 #ifndef __GNUC__
2037 choke me
2038 #endif
2041 return 0;
2043 _ACEOF
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>&5
2047 ac_status=$?
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); } &&
2050 { ac_try='test -s conftest.$ac_objext'
2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052 (eval $ac_try) 2>&5
2053 ac_status=$?
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; }; then
2056 ac_compiler_gnu=yes
2057 else
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2061 ac_compiler_gnu=no
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2067 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2068 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2069 GCC=`test $ac_compiler_gnu = yes && echo yes`
2070 ac_test_CFLAGS=${CFLAGS+set}
2071 ac_save_CFLAGS=$CFLAGS
2072 CFLAGS="-g"
2073 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2074 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_g+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 cat >conftest.$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2080 /* confdefs.h. */
2081 _ACEOF
2082 cat confdefs.h >>conftest.$ac_ext
2083 cat >>conftest.$ac_ext <<_ACEOF
2084 /* end confdefs.h. */
2087 main ()
2091 return 0;
2093 _ACEOF
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); } &&
2100 { ac_try='test -s conftest.$ac_objext'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 (eval $ac_try) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2106 ac_cv_prog_cc_g=yes
2107 else
2108 echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2111 ac_cv_prog_cc_g=no
2113 rm -f conftest.$ac_objext conftest.$ac_ext
2115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2116 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2117 if test "$ac_test_CFLAGS" = set; then
2118 CFLAGS=$ac_save_CFLAGS
2119 elif test $ac_cv_prog_cc_g = yes; then
2120 if test "$GCC" = yes; then
2121 CFLAGS="-g -O2"
2122 else
2123 CFLAGS="-g"
2125 else
2126 if test "$GCC" = yes; then
2127 CFLAGS="-O2"
2128 else
2129 CFLAGS=
2132 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2133 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 ac_cv_prog_cc_stdc=no
2138 ac_save_CC=$CC
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #line $LINENO "configure"
2141 /* confdefs.h. */
2142 _ACEOF
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h. */
2146 #include <stdarg.h>
2147 #include <stdio.h>
2148 #include <sys/types.h>
2149 #include <sys/stat.h>
2150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2151 struct buf { int x; };
2152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2153 static char *e (p, i)
2154 char **p;
2155 int i;
2157 return p[i];
2159 static char *f (char * (*g) (char **, int), char **p, ...)
2161 char *s;
2162 va_list v;
2163 va_start (v,p);
2164 s = g (p, va_arg (v,int));
2165 va_end (v);
2166 return s;
2168 int test (int i, double x);
2169 struct s1 {int (*f) (int a);};
2170 struct s2 {int (*f) (double a);};
2171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2172 int argc;
2173 char **argv;
2175 main ()
2177 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2179 return 0;
2181 _ACEOF
2182 # Don't try gcc -ansi; that turns off useful extensions and
2183 # breaks some systems' header files.
2184 # AIX -qlanglvl=ansi
2185 # Ultrix and OSF/1 -std1
2186 # HP-UX 10.20 and later -Ae
2187 # HP-UX older versions -Aa -D_HPUX_SOURCE
2188 # SVR4 -Xc -D__EXTENSIONS__
2189 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2191 CC="$ac_save_CC $ac_arg"
2192 rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 ac_cv_prog_cc_stdc=$ac_arg
2205 break
2206 else
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2211 rm -f conftest.$ac_objext
2212 done
2213 rm -f conftest.$ac_ext conftest.$ac_objext
2214 CC=$ac_save_CC
2218 case "x$ac_cv_prog_cc_stdc" in
2219 x|xno)
2220 echo "$as_me:$LINENO: result: none needed" >&5
2221 echo "${ECHO_T}none needed" >&6 ;;
2223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2224 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2225 CC="$CC $ac_cv_prog_cc_stdc" ;;
2226 esac
2228 # Some people use a C++ compiler to compile C. Since we use `exit',
2229 # in C++ we need to declare it. In case someone uses the same compiler
2230 # for both compiling C and C++ we need to have the C++ compiler decide
2231 # the declaration of exit, since it's the most demanding environment.
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #ifndef __cplusplus
2234 choke me
2235 #endif
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 for ac_declaration in \
2251 '#include <stdlib.h>' \
2252 'extern "C" void std::exit (int) throw (); using std::exit;' \
2253 'extern "C" void std::exit (int); using std::exit;' \
2254 'extern "C" void exit (int) throw ();' \
2255 'extern "C" void exit (int);' \
2256 'void exit (int);'
2258 cat >conftest.$ac_ext <<_ACEOF
2259 #line $LINENO "configure"
2260 /* confdefs.h. */
2261 _ACEOF
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h. */
2265 #include <stdlib.h>
2266 $ac_declaration
2268 main ()
2270 exit (42);
2272 return 0;
2274 _ACEOF
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277 (eval $ac_compile) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2288 else
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2292 continue
2294 rm -f conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2302 $ac_declaration
2304 main ()
2306 exit (42);
2308 return 0;
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2323 break
2324 else
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2330 done
2331 rm -f conftest*
2332 if test -n "$ac_declaration"; then
2333 echo '#ifdef __cplusplus' >>confdefs.h
2334 echo $ac_declaration >>confdefs.h
2335 echo '#endif' >>confdefs.h
2338 else
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2343 rm -f conftest.$ac_objext conftest.$ac_ext
2344 ac_ext=c
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2356 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2357 # On Suns, sometimes $CPP names a directory.
2358 if test -n "$CPP" && test -d "$CPP"; then
2359 CPP=
2361 if test -z "$CPP"; then
2362 if test "${ac_cv_prog_CPP+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 # Double quotes because CPP needs to be expanded
2366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2368 ac_preproc_ok=false
2369 for ac_c_preproc_warn_flag in '' yes
2371 # Use a header file that comes with gcc, so configuring glibc
2372 # with a fresh cross-compiler works.
2373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2374 # <limits.h> exists even on freestanding compilers.
2375 # On the NeXT, cc -E runs the code through the compiler's parser,
2376 # not just through cpp. "Syntax error" is here to catch this case.
2377 cat >conftest.$ac_ext <<_ACEOF
2378 #line $LINENO "configure"
2379 /* confdefs.h. */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2384 #ifdef __STDC__
2385 # include <limits.h>
2386 #else
2387 # include <assert.h>
2388 #endif
2389 Syntax error
2390 _ACEOF
2391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } >/dev/null; then
2399 if test -s conftest.err; then
2400 ac_cpp_err=$ac_c_preproc_warn_flag
2401 else
2402 ac_cpp_err=
2404 else
2405 ac_cpp_err=yes
2407 if test -z "$ac_cpp_err"; then
2409 else
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2413 # Broken: fails on valid input.
2414 continue
2416 rm -f conftest.err conftest.$ac_ext
2418 # OK, works on sane cases. Now check whether non-existent headers
2419 # can be detected and how.
2420 cat >conftest.$ac_ext <<_ACEOF
2421 #line $LINENO "configure"
2422 /* confdefs.h. */
2423 _ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2427 #include <ac_nonexistent.h>
2428 _ACEOF
2429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2431 ac_status=$?
2432 grep -v '^ *+' conftest.er1 >conftest.err
2433 rm -f conftest.er1
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } >/dev/null; then
2437 if test -s conftest.err; then
2438 ac_cpp_err=$ac_c_preproc_warn_flag
2439 else
2440 ac_cpp_err=
2442 else
2443 ac_cpp_err=yes
2445 if test -z "$ac_cpp_err"; then
2446 # Broken: success on invalid input.
2447 continue
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2452 # Passes both tests.
2453 ac_preproc_ok=:
2454 break
2456 rm -f conftest.err conftest.$ac_ext
2458 done
2459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2460 rm -f conftest.err conftest.$ac_ext
2461 if $ac_preproc_ok; then
2462 break
2465 done
2466 ac_cv_prog_CPP=$CPP
2469 CPP=$ac_cv_prog_CPP
2470 else
2471 ac_cv_prog_CPP=$CPP
2473 echo "$as_me:$LINENO: result: $CPP" >&5
2474 echo "${ECHO_T}$CPP" >&6
2475 ac_preproc_ok=false
2476 for ac_c_preproc_warn_flag in '' yes
2478 # Use a header file that comes with gcc, so configuring glibc
2479 # with a fresh cross-compiler works.
2480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2481 # <limits.h> exists even on freestanding compilers.
2482 # On the NeXT, cc -E runs the code through the compiler's parser,
2483 # not just through cpp. "Syntax error" is here to catch this case.
2484 cat >conftest.$ac_ext <<_ACEOF
2485 #line $LINENO "configure"
2486 /* confdefs.h. */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2491 #ifdef __STDC__
2492 # include <limits.h>
2493 #else
2494 # include <assert.h>
2495 #endif
2496 Syntax error
2497 _ACEOF
2498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } >/dev/null; then
2506 if test -s conftest.err; then
2507 ac_cpp_err=$ac_c_preproc_warn_flag
2508 else
2509 ac_cpp_err=
2511 else
2512 ac_cpp_err=yes
2514 if test -z "$ac_cpp_err"; then
2516 else
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2520 # Broken: fails on valid input.
2521 continue
2523 rm -f conftest.err conftest.$ac_ext
2525 # OK, works on sane cases. Now check whether non-existent headers
2526 # can be detected and how.
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2534 #include <ac_nonexistent.h>
2535 _ACEOF
2536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2538 ac_status=$?
2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } >/dev/null; then
2544 if test -s conftest.err; then
2545 ac_cpp_err=$ac_c_preproc_warn_flag
2546 else
2547 ac_cpp_err=
2549 else
2550 ac_cpp_err=yes
2552 if test -z "$ac_cpp_err"; then
2553 # Broken: success on invalid input.
2554 continue
2555 else
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2559 # Passes both tests.
2560 ac_preproc_ok=:
2561 break
2563 rm -f conftest.err conftest.$ac_ext
2565 done
2566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2567 rm -f conftest.err conftest.$ac_ext
2568 if $ac_preproc_ok; then
2570 else
2571 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2572 See \`config.log' for more details." >&5
2573 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2574 See \`config.log' for more details." >&2;}
2575 { (exit 1); exit 1; }; }
2578 ac_ext=c
2579 ac_cpp='$CPP $CPPFLAGS'
2580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2586 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2587 if test "${wine_cv_toolsdir+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590 if test -z "$with_wine_tools"; then
2591 if test "$cross_compiling" = "yes"; then
2592 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2593 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2594 { (exit 1); exit 1; }; }
2595 else
2596 wine_cv_toolsdir="\$(TOPOBJDIR)"
2598 elif test -d "$with_wine_tools/tools/winebuild"; then
2599 case $with_wine_tools in
2600 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2601 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2602 esac
2603 else
2604 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2605 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2606 { (exit 1); exit 1; }; }
2609 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2610 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2611 TOOLSDIR=$wine_cv_toolsdir
2616 echo "$as_me:$LINENO: checking for X" >&5
2617 echo $ECHO_N "checking for X... $ECHO_C" >&6
2620 # Check whether --with-x or --without-x was given.
2621 if test "${with_x+set}" = set; then
2622 withval="$with_x"
2625 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2626 if test "x$with_x" = xno; then
2627 # The user explicitly disabled X.
2628 have_x=disabled
2629 else
2630 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2631 # Both variables are already set.
2632 have_x=yes
2633 else
2634 if test "${ac_cv_have_x+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637 # One or both of the vars are not set, and there is no cached value.
2638 ac_x_includes=no ac_x_libraries=no
2639 rm -fr conftest.dir
2640 if mkdir conftest.dir; then
2641 cd conftest.dir
2642 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2643 cat >Imakefile <<'_ACEOF'
2644 acfindx:
2645 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2646 _ACEOF
2647 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2648 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2649 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2650 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2651 for ac_extension in a so sl; do
2652 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2653 test -f $ac_im_libdir/libX11.$ac_extension; then
2654 ac_im_usrlibdir=$ac_im_libdir; break
2656 done
2657 # Screen out bogus values from the imake configuration. They are
2658 # bogus both because they are the default anyway, and because
2659 # using them would break gcc on systems where it needs fixed includes.
2660 case $ac_im_incroot in
2661 /usr/include) ;;
2662 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2663 esac
2664 case $ac_im_usrlibdir in
2665 /usr/lib | /lib) ;;
2666 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2667 esac
2669 cd ..
2670 rm -fr conftest.dir
2673 # Standard set of common directories for X headers.
2674 # Check X11 before X11Rn because it is often a symlink to the current release.
2675 ac_x_header_dirs='
2676 /usr/X11/include
2677 /usr/X11R6/include
2678 /usr/X11R5/include
2679 /usr/X11R4/include
2681 /usr/include/X11
2682 /usr/include/X11R6
2683 /usr/include/X11R5
2684 /usr/include/X11R4
2686 /usr/local/X11/include
2687 /usr/local/X11R6/include
2688 /usr/local/X11R5/include
2689 /usr/local/X11R4/include
2691 /usr/local/include/X11
2692 /usr/local/include/X11R6
2693 /usr/local/include/X11R5
2694 /usr/local/include/X11R4
2696 /usr/X386/include
2697 /usr/x386/include
2698 /usr/XFree86/include/X11
2700 /usr/include
2701 /usr/local/include
2702 /usr/unsupported/include
2703 /usr/athena/include
2704 /usr/local/x11r5/include
2705 /usr/lpp/Xamples/include
2707 /usr/openwin/include
2708 /usr/openwin/share/include'
2710 if test "$ac_x_includes" = no; then
2711 # Guess where to find include files, by looking for Intrinsic.h.
2712 # First, try using that file with no special directory specified.
2713 cat >conftest.$ac_ext <<_ACEOF
2714 #line $LINENO "configure"
2715 /* confdefs.h. */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2720 #include <X11/Intrinsic.h>
2721 _ACEOF
2722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2724 ac_status=$?
2725 grep -v '^ *+' conftest.er1 >conftest.err
2726 rm -f conftest.er1
2727 cat conftest.err >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } >/dev/null; then
2730 if test -s conftest.err; then
2731 ac_cpp_err=$ac_c_preproc_warn_flag
2732 else
2733 ac_cpp_err=
2735 else
2736 ac_cpp_err=yes
2738 if test -z "$ac_cpp_err"; then
2739 # We can compile using X headers with no special include directory.
2740 ac_x_includes=
2741 else
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2745 for ac_dir in $ac_x_header_dirs; do
2746 if test -r "$ac_dir/X11/Intrinsic.h"; then
2747 ac_x_includes=$ac_dir
2748 break
2750 done
2752 rm -f conftest.err conftest.$ac_ext
2753 fi # $ac_x_includes = no
2755 if test "$ac_x_libraries" = no; then
2756 # Check for the libraries.
2757 # See if we find them without any special options.
2758 # Don't add to $LIBS permanently.
2759 ac_save_LIBS=$LIBS
2760 LIBS="-lXt $LIBS"
2761 cat >conftest.$ac_ext <<_ACEOF
2762 #line $LINENO "configure"
2763 /* confdefs.h. */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2768 #include <X11/Intrinsic.h>
2770 main ()
2772 XtMalloc (0)
2774 return 0;
2776 _ACEOF
2777 rm -f conftest.$ac_objext conftest$ac_exeext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2779 (eval $ac_link) 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -s conftest$ac_exeext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 LIBS=$ac_save_LIBS
2790 # We can link X programs with no special library path.
2791 ac_x_libraries=
2792 else
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2796 LIBS=$ac_save_LIBS
2797 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2799 # Don't even attempt the hair of trying to link an X program!
2800 for ac_extension in a so sl; do
2801 if test -r $ac_dir/libXt.$ac_extension; then
2802 ac_x_libraries=$ac_dir
2803 break 2
2805 done
2806 done
2808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2809 fi # $ac_x_libraries = no
2811 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2812 # Didn't find X anywhere. Cache the known absence of X.
2813 ac_cv_have_x="have_x=no"
2814 else
2815 # Record where we found X for the cache.
2816 ac_cv_have_x="have_x=yes \
2817 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2822 eval "$ac_cv_have_x"
2823 fi # $with_x != no
2825 if test "$have_x" != yes; then
2826 echo "$as_me:$LINENO: result: $have_x" >&5
2827 echo "${ECHO_T}$have_x" >&6
2828 no_x=yes
2829 else
2830 # If each of the values was on the command line, it overrides each guess.
2831 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2832 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2833 # Update the cache value to reflect the command line values.
2834 ac_cv_have_x="have_x=yes \
2835 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2836 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2837 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2840 if test "$no_x" = yes; then
2841 # Not all programs may use this symbol, but it does not hurt to define it.
2843 cat >>confdefs.h <<\_ACEOF
2844 #define X_DISPLAY_MISSING 1
2845 _ACEOF
2847 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2848 else
2849 if test -n "$x_includes"; then
2850 X_CFLAGS="$X_CFLAGS -I$x_includes"
2853 # It would also be nice to do this for all -L options, not just this one.
2854 if test -n "$x_libraries"; then
2855 X_LIBS="$X_LIBS -L$x_libraries"
2856 # For Solaris; some versions of Sun CC require a space after -R and
2857 # others require no space. Words are not sufficient . . . .
2858 case `(uname -sr) 2>/dev/null` in
2859 "SunOS 5"*)
2860 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2861 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2862 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2863 cat >conftest.$ac_ext <<_ACEOF
2864 #line $LINENO "configure"
2865 /* confdefs.h. */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2872 main ()
2876 return 0;
2878 _ACEOF
2879 rm -f conftest.$ac_objext conftest$ac_exeext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2881 (eval $ac_link) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -s conftest$ac_exeext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_R_nospace=yes
2892 else
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2896 ac_R_nospace=no
2898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2899 if test $ac_R_nospace = yes; then
2900 echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2902 X_LIBS="$X_LIBS -R$x_libraries"
2903 else
2904 LIBS="$ac_xsave_LIBS -R $x_libraries"
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2914 main ()
2918 return 0;
2920 _ACEOF
2921 rm -f conftest.$ac_objext conftest$ac_exeext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2923 (eval $ac_link) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -s conftest$ac_exeext'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 (eval $ac_try) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
2933 ac_R_space=yes
2934 else
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2938 ac_R_space=no
2940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2941 if test $ac_R_space = yes; then
2942 echo "$as_me:$LINENO: result: yes" >&5
2943 echo "${ECHO_T}yes" >&6
2944 X_LIBS="$X_LIBS -R $x_libraries"
2945 else
2946 echo "$as_me:$LINENO: result: neither works" >&5
2947 echo "${ECHO_T}neither works" >&6
2950 LIBS=$ac_xsave_LIBS
2951 esac
2954 # Check for system-dependent libraries X programs must link with.
2955 # Do this before checking for the system-independent R6 libraries
2956 # (-lICE), since we may need -lsocket or whatever for X linking.
2958 if test "$ISC" = yes; then
2959 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2960 else
2961 # Martyn Johnson says this is needed for Ultrix, if the X
2962 # libraries were built with DECnet support. And Karl Berry says
2963 # the Alpha needs dnet_stub (dnet does not exist).
2964 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2965 cat >conftest.$ac_ext <<_ACEOF
2966 #line $LINENO "configure"
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2973 /* Override any gcc2 internal prototype to avoid an error. */
2974 #ifdef __cplusplus
2975 extern "C"
2976 #endif
2977 /* We use char because int might match the return type of a gcc2
2978 builtin and then its argument prototype would still apply. */
2979 char XOpenDisplay ();
2981 main ()
2983 XOpenDisplay ();
2985 return 0;
2987 _ACEOF
2988 rm -f conftest.$ac_objext conftest$ac_exeext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2990 (eval $ac_link) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest$ac_exeext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3001 else
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3006 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3007 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010 ac_check_lib_save_LIBS=$LIBS
3011 LIBS="-ldnet $LIBS"
3012 cat >conftest.$ac_ext <<_ACEOF
3013 #line $LINENO "configure"
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3020 /* Override any gcc2 internal prototype to avoid an error. */
3021 #ifdef __cplusplus
3022 extern "C"
3023 #endif
3024 /* We use char because int might match the return type of a gcc2
3025 builtin and then its argument prototype would still apply. */
3026 char dnet_ntoa ();
3028 main ()
3030 dnet_ntoa ();
3032 return 0;
3034 _ACEOF
3035 rm -f conftest.$ac_objext conftest$ac_exeext
3036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3037 (eval $ac_link) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -s conftest$ac_exeext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 ac_cv_lib_dnet_dnet_ntoa=yes
3048 else
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 ac_cv_lib_dnet_dnet_ntoa=no
3054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3055 LIBS=$ac_check_lib_save_LIBS
3057 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3058 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3059 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3060 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3063 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3064 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3065 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3066 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069 ac_check_lib_save_LIBS=$LIBS
3070 LIBS="-ldnet_stub $LIBS"
3071 cat >conftest.$ac_ext <<_ACEOF
3072 #line $LINENO "configure"
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3079 /* Override any gcc2 internal prototype to avoid an error. */
3080 #ifdef __cplusplus
3081 extern "C"
3082 #endif
3083 /* We use char because int might match the return type of a gcc2
3084 builtin and then its argument prototype would still apply. */
3085 char dnet_ntoa ();
3087 main ()
3089 dnet_ntoa ();
3091 return 0;
3093 _ACEOF
3094 rm -f conftest.$ac_objext conftest$ac_exeext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3096 (eval $ac_link) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -s conftest$ac_exeext'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 (eval $ac_try) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3107 else
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 ac_cv_lib_dnet_stub_dnet_ntoa=no
3113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3114 LIBS=$ac_check_lib_save_LIBS
3116 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3117 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3118 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3119 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3125 LIBS="$ac_xsave_LIBS"
3127 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3128 # to get the SysV transport functions.
3129 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3130 # needs -lnsl.
3131 # The nsl library prevents programs from opening the X display
3132 # on Irix 5.2, according to T.E. Dickey.
3133 # The functions gethostbyname, getservbyname, and inet_addr are
3134 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3135 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3136 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3137 if test "${ac_cv_func_gethostbyname+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140 cat >conftest.$ac_ext <<_ACEOF
3141 #line $LINENO "configure"
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3147 /* System header to define __stub macros and hopefully few prototypes,
3148 which can conflict with char gethostbyname (); below.
3149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3150 <limits.h> exists even on freestanding compilers. */
3151 #ifdef __STDC__
3152 # include <limits.h>
3153 #else
3154 # include <assert.h>
3155 #endif
3156 /* Override any gcc2 internal prototype to avoid an error. */
3157 #ifdef __cplusplus
3158 extern "C"
3160 #endif
3161 /* We use char because int might match the return type of a gcc2
3162 builtin and then its argument prototype would still apply. */
3163 char gethostbyname ();
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_gethostbyname) || defined (__stub___gethostbyname)
3168 choke me
3169 #else
3170 char (*f) () = gethostbyname;
3171 #endif
3172 #ifdef __cplusplus
3174 #endif
3177 main ()
3179 return f != gethostbyname;
3181 return 0;
3183 _ACEOF
3184 rm -f conftest.$ac_objext conftest$ac_exeext
3185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3186 (eval $ac_link) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -s conftest$ac_exeext'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 (eval $ac_try) 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3196 ac_cv_func_gethostbyname=yes
3197 else
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 ac_cv_func_gethostbyname=no
3203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3205 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3206 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3208 if test $ac_cv_func_gethostbyname = no; then
3209 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3210 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3211 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 ac_check_lib_save_LIBS=$LIBS
3215 LIBS="-lnsl $LIBS"
3216 cat >conftest.$ac_ext <<_ACEOF
3217 #line $LINENO "configure"
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3224 /* Override any gcc2 internal prototype to avoid an error. */
3225 #ifdef __cplusplus
3226 extern "C"
3227 #endif
3228 /* We use char because int might match the return type of a gcc2
3229 builtin and then its argument prototype would still apply. */
3230 char gethostbyname ();
3232 main ()
3234 gethostbyname ();
3236 return 0;
3238 _ACEOF
3239 rm -f conftest.$ac_objext conftest$ac_exeext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3241 (eval $ac_link) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -s conftest$ac_exeext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 ac_cv_lib_nsl_gethostbyname=yes
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3256 ac_cv_lib_nsl_gethostbyname=no
3258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3259 LIBS=$ac_check_lib_save_LIBS
3261 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3262 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3263 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3267 if test $ac_cv_lib_nsl_gethostbyname = no; then
3268 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3269 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3270 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273 ac_check_lib_save_LIBS=$LIBS
3274 LIBS="-lbsd $LIBS"
3275 cat >conftest.$ac_ext <<_ACEOF
3276 #line $LINENO "configure"
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3283 /* Override any gcc2 internal prototype to avoid an error. */
3284 #ifdef __cplusplus
3285 extern "C"
3286 #endif
3287 /* We use char because int might match the return type of a gcc2
3288 builtin and then its argument prototype would still apply. */
3289 char gethostbyname ();
3291 main ()
3293 gethostbyname ();
3295 return 0;
3297 _ACEOF
3298 rm -f conftest.$ac_objext conftest$ac_exeext
3299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3300 (eval $ac_link) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } &&
3304 { ac_try='test -s conftest$ac_exeext'
3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 (eval $ac_try) 2>&5
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; }; then
3310 ac_cv_lib_bsd_gethostbyname=yes
3311 else
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 ac_cv_lib_bsd_gethostbyname=no
3317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3318 LIBS=$ac_check_lib_save_LIBS
3320 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3321 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3322 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3329 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3330 # socket/setsockopt and other routines are undefined under SCO ODT
3331 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3332 # on later versions), says Simon Leinen: it contains gethostby*
3333 # variants that don't use the name server (or something). -lsocket
3334 # must be given before -lnsl if both are needed. We assume that
3335 # if connect needs -lnsl, so does gethostbyname.
3336 echo "$as_me:$LINENO: checking for connect" >&5
3337 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3338 if test "${ac_cv_func_connect+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341 cat >conftest.$ac_ext <<_ACEOF
3342 #line $LINENO "configure"
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348 /* System header to define __stub macros and hopefully few prototypes,
3349 which can conflict with char connect (); below.
3350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3351 <limits.h> exists even on freestanding compilers. */
3352 #ifdef __STDC__
3353 # include <limits.h>
3354 #else
3355 # include <assert.h>
3356 #endif
3357 /* Override any gcc2 internal prototype to avoid an error. */
3358 #ifdef __cplusplus
3359 extern "C"
3361 #endif
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3364 char connect ();
3365 /* The GNU C library defines this for functions which it implements
3366 to always fail with ENOSYS. Some functions are actually named
3367 something starting with __ and the normal name is an alias. */
3368 #if defined (__stub_connect) || defined (__stub___connect)
3369 choke me
3370 #else
3371 char (*f) () = connect;
3372 #endif
3373 #ifdef __cplusplus
3375 #endif
3378 main ()
3380 return f != connect;
3382 return 0;
3384 _ACEOF
3385 rm -f conftest.$ac_objext conftest$ac_exeext
3386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3387 (eval $ac_link) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try='test -s conftest$ac_exeext'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3397 ac_cv_func_connect=yes
3398 else
3399 echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3402 ac_cv_func_connect=no
3404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3406 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3407 echo "${ECHO_T}$ac_cv_func_connect" >&6
3409 if test $ac_cv_func_connect = no; then
3410 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3411 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3412 if test "${ac_cv_lib_socket_connect+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 ac_check_lib_save_LIBS=$LIBS
3416 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3417 cat >conftest.$ac_ext <<_ACEOF
3418 #line $LINENO "configure"
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3425 /* Override any gcc2 internal prototype to avoid an error. */
3426 #ifdef __cplusplus
3427 extern "C"
3428 #endif
3429 /* We use char because int might match the return type of a gcc2
3430 builtin and then its argument prototype would still apply. */
3431 char connect ();
3433 main ()
3435 connect ();
3437 return 0;
3439 _ACEOF
3440 rm -f conftest.$ac_objext conftest$ac_exeext
3441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3442 (eval $ac_link) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } &&
3446 { ac_try='test -s conftest$ac_exeext'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 (eval $ac_try) 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; }; then
3452 ac_cv_lib_socket_connect=yes
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 ac_cv_lib_socket_connect=no
3459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3460 LIBS=$ac_check_lib_save_LIBS
3462 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3463 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3464 if test $ac_cv_lib_socket_connect = yes; then
3465 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3470 # Guillermo Gomez says -lposix is necessary on A/UX.
3471 echo "$as_me:$LINENO: checking for remove" >&5
3472 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3473 if test "${ac_cv_func_remove+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476 cat >conftest.$ac_ext <<_ACEOF
3477 #line $LINENO "configure"
3478 /* confdefs.h. */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483 /* System header to define __stub macros and hopefully few prototypes,
3484 which can conflict with char remove (); below.
3485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 <limits.h> exists even on freestanding compilers. */
3487 #ifdef __STDC__
3488 # include <limits.h>
3489 #else
3490 # include <assert.h>
3491 #endif
3492 /* Override any gcc2 internal prototype to avoid an error. */
3493 #ifdef __cplusplus
3494 extern "C"
3496 #endif
3497 /* We use char because int might match the return type of a gcc2
3498 builtin and then its argument prototype would still apply. */
3499 char remove ();
3500 /* The GNU C library defines this for functions which it implements
3501 to always fail with ENOSYS. Some functions are actually named
3502 something starting with __ and the normal name is an alias. */
3503 #if defined (__stub_remove) || defined (__stub___remove)
3504 choke me
3505 #else
3506 char (*f) () = remove;
3507 #endif
3508 #ifdef __cplusplus
3510 #endif
3513 main ()
3515 return f != remove;
3517 return 0;
3519 _ACEOF
3520 rm -f conftest.$ac_objext conftest$ac_exeext
3521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3522 (eval $ac_link) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -s conftest$ac_exeext'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; }; then
3532 ac_cv_func_remove=yes
3533 else
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3537 ac_cv_func_remove=no
3539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3541 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3542 echo "${ECHO_T}$ac_cv_func_remove" >&6
3544 if test $ac_cv_func_remove = no; then
3545 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3546 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3547 if test "${ac_cv_lib_posix_remove+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550 ac_check_lib_save_LIBS=$LIBS
3551 LIBS="-lposix $LIBS"
3552 cat >conftest.$ac_ext <<_ACEOF
3553 #line $LINENO "configure"
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3560 /* Override any gcc2 internal prototype to avoid an error. */
3561 #ifdef __cplusplus
3562 extern "C"
3563 #endif
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
3566 char remove ();
3568 main ()
3570 remove ();
3572 return 0;
3574 _ACEOF
3575 rm -f conftest.$ac_objext conftest$ac_exeext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3577 (eval $ac_link) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try='test -s conftest$ac_exeext'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; }; then
3587 ac_cv_lib_posix_remove=yes
3588 else
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 ac_cv_lib_posix_remove=no
3594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3595 LIBS=$ac_check_lib_save_LIBS
3597 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3598 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3599 if test $ac_cv_lib_posix_remove = yes; then
3600 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3605 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3606 echo "$as_me:$LINENO: checking for shmat" >&5
3607 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3608 if test "${ac_cv_func_shmat+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 cat >conftest.$ac_ext <<_ACEOF
3612 #line $LINENO "configure"
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 /* System header to define __stub macros and hopefully few prototypes,
3619 which can conflict with char shmat (); below.
3620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3621 <limits.h> exists even on freestanding compilers. */
3622 #ifdef __STDC__
3623 # include <limits.h>
3624 #else
3625 # include <assert.h>
3626 #endif
3627 /* Override any gcc2 internal prototype to avoid an error. */
3628 #ifdef __cplusplus
3629 extern "C"
3631 #endif
3632 /* We use char because int might match the return type of a gcc2
3633 builtin and then its argument prototype would still apply. */
3634 char shmat ();
3635 /* The GNU C library defines this for functions which it implements
3636 to always fail with ENOSYS. Some functions are actually named
3637 something starting with __ and the normal name is an alias. */
3638 #if defined (__stub_shmat) || defined (__stub___shmat)
3639 choke me
3640 #else
3641 char (*f) () = shmat;
3642 #endif
3643 #ifdef __cplusplus
3645 #endif
3648 main ()
3650 return f != shmat;
3652 return 0;
3654 _ACEOF
3655 rm -f conftest.$ac_objext conftest$ac_exeext
3656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3657 (eval $ac_link) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -s conftest$ac_exeext'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 ac_cv_func_shmat=yes
3668 else
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3672 ac_cv_func_shmat=no
3674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3676 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3677 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3679 if test $ac_cv_func_shmat = no; then
3680 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3681 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3682 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 ac_check_lib_save_LIBS=$LIBS
3686 LIBS="-lipc $LIBS"
3687 cat >conftest.$ac_ext <<_ACEOF
3688 #line $LINENO "configure"
3689 /* confdefs.h. */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3695 /* Override any gcc2 internal prototype to avoid an error. */
3696 #ifdef __cplusplus
3697 extern "C"
3698 #endif
3699 /* We use char because int might match the return type of a gcc2
3700 builtin and then its argument prototype would still apply. */
3701 char shmat ();
3703 main ()
3705 shmat ();
3707 return 0;
3709 _ACEOF
3710 rm -f conftest.$ac_objext conftest$ac_exeext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3712 (eval $ac_link) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -s conftest$ac_exeext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 ac_cv_lib_ipc_shmat=yes
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 ac_cv_lib_ipc_shmat=no
3729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3730 LIBS=$ac_check_lib_save_LIBS
3732 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3733 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3734 if test $ac_cv_lib_ipc_shmat = yes; then
3735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3741 # Check for libraries that X11R6 Xt/Xaw programs need.
3742 ac_save_LDFLAGS=$LDFLAGS
3743 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3744 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3745 # check for ICE first), but we must link in the order -lSM -lICE or
3746 # we get undefined symbols. So assume we have SM if we have ICE.
3747 # These have to be linked with before -lX11, unlike the other
3748 # libraries we check for below, so use a different variable.
3749 # John Interrante, Karl Berry
3750 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3751 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3752 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755 ac_check_lib_save_LIBS=$LIBS
3756 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3757 cat >conftest.$ac_ext <<_ACEOF
3758 #line $LINENO "configure"
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3765 /* Override any gcc2 internal prototype to avoid an error. */
3766 #ifdef __cplusplus
3767 extern "C"
3768 #endif
3769 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */
3771 char IceConnectionNumber ();
3773 main ()
3775 IceConnectionNumber ();
3777 return 0;
3779 _ACEOF
3780 rm -f conftest.$ac_objext conftest$ac_exeext
3781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3782 (eval $ac_link) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
3786 { ac_try='test -s conftest$ac_exeext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 ac_cv_lib_ICE_IceConnectionNumber=yes
3793 else
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 ac_cv_lib_ICE_IceConnectionNumber=no
3799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3800 LIBS=$ac_check_lib_save_LIBS
3802 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3803 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3804 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3805 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3808 LDFLAGS=$ac_save_LDFLAGS
3812 for ac_prog in 'bison -y' byacc
3814 # Extract the first word of "$ac_prog", so it can be a program name with args.
3815 set dummy $ac_prog; ac_word=$2
3816 echo "$as_me:$LINENO: checking for $ac_word" >&5
3817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3818 if test "${ac_cv_prog_YACC+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 if test -n "$YACC"; then
3822 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3823 else
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3831 ac_cv_prog_YACC="$ac_prog"
3832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3835 done
3836 done
3840 YACC=$ac_cv_prog_YACC
3841 if test -n "$YACC"; then
3842 echo "$as_me:$LINENO: result: $YACC" >&5
3843 echo "${ECHO_T}$YACC" >&6
3844 else
3845 echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3849 test -n "$YACC" && break
3850 done
3851 test -n "$YACC" || YACC="yacc"
3853 for ac_prog in flex lex
3855 # Extract the first word of "$ac_prog", so it can be a program name with args.
3856 set dummy $ac_prog; ac_word=$2
3857 echo "$as_me:$LINENO: checking for $ac_word" >&5
3858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3859 if test "${ac_cv_prog_LEX+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862 if test -n "$LEX"; then
3863 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3864 else
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872 ac_cv_prog_LEX="$ac_prog"
3873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 break 2
3876 done
3877 done
3881 LEX=$ac_cv_prog_LEX
3882 if test -n "$LEX"; then
3883 echo "$as_me:$LINENO: result: $LEX" >&5
3884 echo "${ECHO_T}$LEX" >&6
3885 else
3886 echo "$as_me:$LINENO: result: no" >&5
3887 echo "${ECHO_T}no" >&6
3890 test -n "$LEX" && break
3891 done
3892 test -n "$LEX" || LEX=":"
3894 if test -z "$LEXLIB"
3895 then
3896 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3897 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3898 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 ac_check_lib_save_LIBS=$LIBS
3902 LIBS="-lfl $LIBS"
3903 cat >conftest.$ac_ext <<_ACEOF
3904 #line $LINENO "configure"
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3911 /* Override any gcc2 internal prototype to avoid an error. */
3912 #ifdef __cplusplus
3913 extern "C"
3914 #endif
3915 /* We use char because int might match the return type of a gcc2
3916 builtin and then its argument prototype would still apply. */
3917 char yywrap ();
3919 main ()
3921 yywrap ();
3923 return 0;
3925 _ACEOF
3926 rm -f conftest.$ac_objext conftest$ac_exeext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -s conftest$ac_exeext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_lib_fl_yywrap=yes
3939 else
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 ac_cv_lib_fl_yywrap=no
3945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3946 LIBS=$ac_check_lib_save_LIBS
3948 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3949 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3950 if test $ac_cv_lib_fl_yywrap = yes; then
3951 LEXLIB="-lfl"
3952 else
3953 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3954 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3955 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958 ac_check_lib_save_LIBS=$LIBS
3959 LIBS="-ll $LIBS"
3960 cat >conftest.$ac_ext <<_ACEOF
3961 #line $LINENO "configure"
3962 /* confdefs.h. */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 #ifdef __cplusplus
3970 extern "C"
3971 #endif
3972 /* We use char because int might match the return type of a gcc2
3973 builtin and then its argument prototype would still apply. */
3974 char yywrap ();
3976 main ()
3978 yywrap ();
3980 return 0;
3982 _ACEOF
3983 rm -f conftest.$ac_objext conftest$ac_exeext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3985 (eval $ac_link) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } &&
3989 { ac_try='test -s conftest$ac_exeext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_lib_l_yywrap=yes
3996 else
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 ac_cv_lib_l_yywrap=no
4002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4003 LIBS=$ac_check_lib_save_LIBS
4005 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4006 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4007 if test $ac_cv_lib_l_yywrap = yes; then
4008 LEXLIB="-ll"
4015 if test "x$LEX" != "x:"; then
4016 echo "$as_me:$LINENO: checking lex output file root" >&5
4017 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4018 if test "${ac_cv_prog_lex_root+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 # The minimal lex program is just a single line: %%. But some broken lexes
4022 # (Solaris, I think it was) want two %% lines, so accommodate them.
4023 cat >conftest.l <<_ACEOF
4026 _ACEOF
4027 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4028 (eval $LEX conftest.l) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }
4032 if test -f lex.yy.c; then
4033 ac_cv_prog_lex_root=lex.yy
4034 elif test -f lexyy.c; then
4035 ac_cv_prog_lex_root=lexyy
4036 else
4037 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4038 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4039 { (exit 1); exit 1; }; }
4042 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4043 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4044 rm -f conftest.l
4045 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4047 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4048 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4049 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 # POSIX says lex can declare yytext either as a pointer or an array; the
4053 # default is implementation-dependent. Figure out which it is, since
4054 # not all implementations provide the %pointer and %array declarations.
4055 ac_cv_prog_lex_yytext_pointer=no
4056 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4057 ac_save_LIBS=$LIBS
4058 LIBS="$LIBS $LEXLIB"
4059 cat >conftest.$ac_ext <<_ACEOF
4060 `cat $LEX_OUTPUT_ROOT.c`
4061 _ACEOF
4062 rm -f conftest.$ac_objext conftest$ac_exeext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4064 (eval $ac_link) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -s conftest$ac_exeext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_cv_prog_lex_yytext_pointer=yes
4075 else
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4081 LIBS=$ac_save_LIBS
4082 rm -f "${LEX_OUTPUT_ROOT}.c"
4085 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4086 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4087 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4089 cat >>confdefs.h <<\_ACEOF
4090 #define YYTEXT_POINTER 1
4091 _ACEOF
4097 for ac_prog in $YACC bison yacc
4099 # Extract the first word of "$ac_prog", so it can be a program name with args.
4100 set dummy $ac_prog; ac_word=$2
4101 echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103 if test "${ac_cv_prog_XYACC+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 if test -n "$XYACC"; then
4107 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_XYACC="$ac_prog"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4120 done
4121 done
4125 XYACC=$ac_cv_prog_XYACC
4126 if test -n "$XYACC"; then
4127 echo "$as_me:$LINENO: result: $XYACC" >&5
4128 echo "${ECHO_T}$XYACC" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 test -n "$XYACC" && break
4135 done
4136 test -n "$XYACC" || XYACC="none"
4138 if test "$XYACC" = "none"
4139 then
4140 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4141 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4142 { (exit 1); exit 1; }; }
4144 for ac_prog in $LEX flex lex
4146 # Extract the first word of "$ac_prog", so it can be a program name with args.
4147 set dummy $ac_prog; ac_word=$2
4148 echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_XLEX+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 if test -n "$XLEX"; then
4154 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_XLEX="$ac_prog"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4167 done
4168 done
4172 XLEX=$ac_cv_prog_XLEX
4173 if test -n "$XLEX"; then
4174 echo "$as_me:$LINENO: result: $XLEX" >&5
4175 echo "${ECHO_T}$XLEX" >&6
4176 else
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4181 test -n "$XLEX" && break
4182 done
4183 test -n "$XLEX" || XLEX="none"
4185 if test "$XLEX" = "none"
4186 then
4187 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4188 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4189 { (exit 1); exit 1; }; }
4192 if test -n "$ac_tool_prefix"; then
4193 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4194 set dummy ${ac_tool_prefix}as; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_AS+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 if test -n "$AS"; then
4201 ac_cv_prog_AS="$AS" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_AS="${ac_tool_prefix}as"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4214 done
4215 done
4219 AS=$ac_cv_prog_AS
4220 if test -n "$AS"; then
4221 echo "$as_me:$LINENO: result: $AS" >&5
4222 echo "${ECHO_T}$AS" >&6
4223 else
4224 echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4229 if test -z "$ac_cv_prog_AS"; then
4230 ac_ct_AS=$AS
4231 # Extract the first word of "as", so it can be a program name with args.
4232 set dummy as; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 if test -n "$ac_ct_AS"; then
4239 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 ac_cv_prog_ac_ct_AS="as"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4255 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="as"
4258 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4259 if test -n "$ac_ct_AS"; then
4260 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4261 echo "${ECHO_T}$ac_ct_AS" >&6
4262 else
4263 echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6
4267 AS=$ac_ct_AS
4268 else
4269 AS="$ac_cv_prog_AS"
4272 if test -n "$ac_tool_prefix"; then
4273 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4274 set dummy ${ac_tool_prefix}ld; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_LD+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 if test -n "$LD"; then
4281 ac_cv_prog_LD="$LD" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_prog_LD="${ac_tool_prefix}ld"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4294 done
4295 done
4299 LD=$ac_cv_prog_LD
4300 if test -n "$LD"; then
4301 echo "$as_me:$LINENO: result: $LD" >&5
4302 echo "${ECHO_T}$LD" >&6
4303 else
4304 echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4309 if test -z "$ac_cv_prog_LD"; then
4310 ac_ct_LD=$LD
4311 # Extract the first word of "ld", so it can be a program name with args.
4312 set dummy ld; ac_word=$2
4313 echo "$as_me:$LINENO: checking for $ac_word" >&5
4314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4315 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 if test -n "$ac_ct_LD"; then
4319 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_prog_ac_ct_LD="ld"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4335 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4338 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4339 if test -n "$ac_ct_LD"; then
4340 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4341 echo "${ECHO_T}$ac_ct_LD" >&6
4342 else
4343 echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4347 LD=$ac_ct_LD
4348 else
4349 LD="$ac_cv_prog_LD"
4352 if test -n "$ac_tool_prefix"; then
4353 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4354 set dummy ${ac_tool_prefix}ar; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_prog_AR+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 if test -n "$AR"; then
4361 ac_cv_prog_AR="$AR" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_AR="${ac_tool_prefix}ar"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4374 done
4375 done
4379 AR=$ac_cv_prog_AR
4380 if test -n "$AR"; then
4381 echo "$as_me:$LINENO: result: $AR" >&5
4382 echo "${ECHO_T}$AR" >&6
4383 else
4384 echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4389 if test -z "$ac_cv_prog_AR"; then
4390 ac_ct_AR=$AR
4391 # Extract the first word of "ar", so it can be a program name with args.
4392 set dummy ar; ac_word=$2
4393 echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4395 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398 if test -n "$ac_ct_AR"; then
4399 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4408 ac_cv_prog_ac_ct_AR="ar"
4409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4412 done
4413 done
4415 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4418 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4419 if test -n "$ac_ct_AR"; then
4420 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4421 echo "${ECHO_T}$ac_ct_AR" >&6
4422 else
4423 echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6
4427 AR=$ac_ct_AR
4428 else
4429 AR="$ac_cv_prog_AR"
4432 if test -n "$ac_tool_prefix"; then
4433 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4434 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4435 echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4437 if test "${ac_cv_prog_RANLIB+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440 if test -n "$RANLIB"; then
4441 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4454 done
4455 done
4459 RANLIB=$ac_cv_prog_RANLIB
4460 if test -n "$RANLIB"; then
4461 echo "$as_me:$LINENO: result: $RANLIB" >&5
4462 echo "${ECHO_T}$RANLIB" >&6
4463 else
4464 echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6
4469 if test -z "$ac_cv_prog_RANLIB"; then
4470 ac_ct_RANLIB=$RANLIB
4471 # Extract the first word of "ranlib", so it can be a program name with args.
4472 set dummy ranlib; ac_word=$2
4473 echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4475 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478 if test -n "$ac_ct_RANLIB"; then
4479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4480 else
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 ac_cv_prog_ac_ct_RANLIB="ranlib"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4492 done
4493 done
4495 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4499 if test -n "$ac_ct_RANLIB"; then
4500 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4501 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4502 else
4503 echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4507 RANLIB=$ac_ct_RANLIB
4508 else
4509 RANLIB="$ac_cv_prog_RANLIB"
4512 if test -n "$ac_tool_prefix"; then
4513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4514 set dummy ${ac_tool_prefix}strip; ac_word=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_prog_STRIP+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 if test -n "$STRIP"; then
4521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4534 done
4535 done
4539 STRIP=$ac_cv_prog_STRIP
4540 if test -n "$STRIP"; then
4541 echo "$as_me:$LINENO: result: $STRIP" >&5
4542 echo "${ECHO_T}$STRIP" >&6
4543 else
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4549 if test -z "$ac_cv_prog_STRIP"; then
4550 ac_ct_STRIP=$STRIP
4551 # Extract the first word of "strip", so it can be a program name with args.
4552 set dummy strip; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558 if test -n "$ac_ct_STRIP"; then
4559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_ac_ct_STRIP="strip"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4575 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4578 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4579 if test -n "$ac_ct_STRIP"; then
4580 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4581 echo "${ECHO_T}$ac_ct_STRIP" >&6
4582 else
4583 echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6
4587 STRIP=$ac_ct_STRIP
4588 else
4589 STRIP="$ac_cv_prog_STRIP"
4592 if test -n "$ac_tool_prefix"; then
4593 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4594 set dummy ${ac_tool_prefix}windres; ac_word=$2
4595 echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4597 if test "${ac_cv_prog_WINDRES+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 if test -n "$WINDRES"; then
4601 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4619 WINDRES=$ac_cv_prog_WINDRES
4620 if test -n "$WINDRES"; then
4621 echo "$as_me:$LINENO: result: $WINDRES" >&5
4622 echo "${ECHO_T}$WINDRES" >&6
4623 else
4624 echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6
4629 if test -z "$ac_cv_prog_WINDRES"; then
4630 ac_ct_WINDRES=$WINDRES
4631 # Extract the first word of "windres", so it can be a program name with args.
4632 set dummy windres; ac_word=$2
4633 echo "$as_me:$LINENO: checking for $ac_word" >&5
4634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4635 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638 if test -n "$ac_ct_WINDRES"; then
4639 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_ac_ct_WINDRES="windres"
4649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4652 done
4653 done
4655 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4658 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4659 if test -n "$ac_ct_WINDRES"; then
4660 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4661 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4662 else
4663 echo "$as_me:$LINENO: result: no" >&5
4664 echo "${ECHO_T}no" >&6
4667 WINDRES=$ac_ct_WINDRES
4668 else
4669 WINDRES="$ac_cv_prog_WINDRES"
4672 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4673 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4674 LN_S=$as_ln_s
4675 if test "$LN_S" = "ln -s"; then
4676 echo "$as_me:$LINENO: result: yes" >&5
4677 echo "${ECHO_T}yes" >&6
4678 else
4679 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4680 echo "${ECHO_T}no, using $LN_S" >&6
4683 echo "$as_me:$LINENO: checking whether ln works" >&5
4684 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4685 rm -f conf$$ conf$$.file
4686 echo >conf$$.file
4687 if ln conf$$.file conf$$ 2>/dev/null; then
4688 LN=ln
4690 echo "$as_me:$LINENO: result: yes" >&5
4691 echo "${ECHO_T}yes" >&6
4692 else
4693 LN="cp -p"
4695 echo "$as_me:$LINENO: result: no, using $LN" >&5
4696 echo "${ECHO_T}no, using $LN" >&6
4698 rm -f conf$$ conf$$.file
4699 # Extract the first word of "c2man", so it can be a program name with args.
4700 set dummy c2man; ac_word=$2
4701 echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4703 if test "${ac_cv_prog_C2MAN+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706 if test -n "$C2MAN"; then
4707 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_prog_C2MAN="c2man"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4720 done
4721 done
4723 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4726 C2MAN=$ac_cv_prog_C2MAN
4727 if test -n "$C2MAN"; then
4728 echo "$as_me:$LINENO: result: $C2MAN" >&5
4729 echo "${ECHO_T}$C2MAN" >&6
4730 else
4731 echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6
4735 # Extract the first word of "ldconfig", so it can be a program name with args.
4736 set dummy ldconfig; ac_word=$2
4737 echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4739 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742 case $LDCONFIG in
4743 [\\/]* | ?:[\\/]*)
4744 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in /sbin /usr/sbin $PATH
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4758 done
4759 done
4761 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4763 esac
4765 LDCONFIG=$ac_cv_path_LDCONFIG
4767 if test -n "$LDCONFIG"; then
4768 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4769 echo "${ECHO_T}$LDCONFIG" >&6
4770 else
4771 echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4775 # Find a good install program. We prefer a C program (faster),
4776 # so one script is as good as another. But avoid the broken or
4777 # incompatible versions:
4778 # SysV /etc/install, /usr/sbin/install
4779 # SunOS /usr/etc/install
4780 # IRIX /sbin/install
4781 # AIX /bin/install
4782 # AmigaOS /C/install, which installs bootblocks on floppy discs
4783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4786 # ./install, which can be erroneously created by make from ./install.sh.
4787 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4788 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4789 if test -z "$INSTALL"; then
4790 if test "${ac_cv_path_install+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 # Account for people who put trailing slashes in PATH elements.
4799 case $as_dir/ in
4800 ./ | .// | /cC/* | \
4801 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4802 /usr/ucb/* ) ;;
4804 # OSF1 and SCO ODT 3.0 have their own names for install.
4805 # Don't use installbsd from OSF since it installs stuff as root
4806 # by default.
4807 for ac_prog in ginstall scoinst install; do
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4810 if test $ac_prog = install &&
4811 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4812 # AIX install. It has an incompatible calling convention.
4814 elif test $ac_prog = install &&
4815 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4816 # program-specific install script used by HP pwplus--don't use.
4818 else
4819 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4820 break 3
4823 done
4824 done
4826 esac
4827 done
4831 if test "${ac_cv_path_install+set}" = set; then
4832 INSTALL=$ac_cv_path_install
4833 else
4834 # As a last resort, use the slow shell script. We don't cache a
4835 # path for INSTALL within a source directory, because that will
4836 # break other packages using the cache if that directory is
4837 # removed, or if the path is relative.
4838 INSTALL=$ac_install_sh
4841 echo "$as_me:$LINENO: result: $INSTALL" >&5
4842 echo "${ECHO_T}$INSTALL" >&6
4844 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4845 # It thinks the first close brace ends the variable substitution.
4846 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4848 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4850 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4852 case "$INSTALL" in
4853 [\\/$]* | ?:[\\/]* ) ;;
4854 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4855 esac
4857 for ac_prog in lclint lint
4859 # Extract the first word of "$ac_prog", so it can be a program name with args.
4860 set dummy $ac_prog; ac_word=$2
4861 echo "$as_me:$LINENO: checking for $ac_word" >&5
4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4863 if test "${ac_cv_prog_LINT+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 if test -n "$LINT"; then
4867 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876 ac_cv_prog_LINT="$ac_prog"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4880 done
4881 done
4885 LINT=$ac_cv_prog_LINT
4886 if test -n "$LINT"; then
4887 echo "$as_me:$LINENO: result: $LINT" >&5
4888 echo "${ECHO_T}$LINT" >&6
4889 else
4890 echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6
4894 test -n "$LINT" && break
4895 done
4897 if test "$LINT" = "lint"
4898 then
4899 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4904 for ac_prog in docbook2html db2html
4906 # Extract the first word of "$ac_prog", so it can be a program name with args.
4907 set dummy $ac_prog; ac_word=$2
4908 echo "$as_me:$LINENO: checking for $ac_word" >&5
4909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4910 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 if test -n "$DB2HTML"; then
4914 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4923 ac_cv_prog_DB2HTML="$ac_prog"
4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4927 done
4928 done
4932 DB2HTML=$ac_cv_prog_DB2HTML
4933 if test -n "$DB2HTML"; then
4934 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4935 echo "${ECHO_T}$DB2HTML" >&6
4936 else
4937 echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6
4941 test -n "$DB2HTML" && break
4942 done
4943 test -n "$DB2HTML" || DB2HTML="false"
4947 for ac_prog in docbook2pdf db2pdf
4949 # Extract the first word of "$ac_prog", so it can be a program name with args.
4950 set dummy $ac_prog; ac_word=$2
4951 echo "$as_me:$LINENO: checking for $ac_word" >&5
4952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4953 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956 if test -n "$DB2PDF"; then
4957 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966 ac_cv_prog_DB2PDF="$ac_prog"
4967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 break 2
4970 done
4971 done
4975 DB2PDF=$ac_cv_prog_DB2PDF
4976 if test -n "$DB2PDF"; then
4977 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4978 echo "${ECHO_T}$DB2PDF" >&6
4979 else
4980 echo "$as_me:$LINENO: result: no" >&5
4981 echo "${ECHO_T}no" >&6
4984 test -n "$DB2PDF" && break
4985 done
4986 test -n "$DB2PDF" || DB2PDF="false"
4990 for ac_prog in docbook2ps db2ps
4992 # Extract the first word of "$ac_prog", so it can be a program name with args.
4993 set dummy $ac_prog; ac_word=$2
4994 echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4996 if test "${ac_cv_prog_DB2PS+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 if test -n "$DB2PS"; then
5000 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_prog_DB2PS="$ac_prog"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5013 done
5014 done
5018 DB2PS=$ac_cv_prog_DB2PS
5019 if test -n "$DB2PS"; then
5020 echo "$as_me:$LINENO: result: $DB2PS" >&5
5021 echo "${ECHO_T}$DB2PS" >&6
5022 else
5023 echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6
5027 test -n "$DB2PS" && break
5028 done
5029 test -n "$DB2PS" || DB2PS="false"
5035 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5036 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5037 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040 ac_check_lib_save_LIBS=$LIBS
5041 LIBS="-lm $LIBS"
5042 cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5044 /* confdefs.h. */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5050 /* Override any gcc2 internal prototype to avoid an error. */
5051 #ifdef __cplusplus
5052 extern "C"
5053 #endif
5054 /* We use char because int might match the return type of a gcc2
5055 builtin and then its argument prototype would still apply. */
5056 char sqrt ();
5058 main ()
5060 sqrt ();
5062 return 0;
5064 _ACEOF
5065 rm -f conftest.$ac_objext conftest$ac_exeext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5067 (eval $ac_link) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try='test -s conftest$ac_exeext'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; }; then
5077 ac_cv_lib_m_sqrt=yes
5078 else
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 ac_cv_lib_m_sqrt=no
5084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5085 LIBS=$ac_check_lib_save_LIBS
5087 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5088 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5089 if test $ac_cv_lib_m_sqrt = yes; then
5090 cat >>confdefs.h <<_ACEOF
5091 #define HAVE_LIBM 1
5092 _ACEOF
5094 LIBS="-lm $LIBS"
5099 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5100 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5101 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104 ac_check_lib_save_LIBS=$LIBS
5105 LIBS="-li386 $LIBS"
5106 cat >conftest.$ac_ext <<_ACEOF
5107 #line $LINENO "configure"
5108 /* confdefs.h. */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5114 /* Override any gcc2 internal prototype to avoid an error. */
5115 #ifdef __cplusplus
5116 extern "C"
5117 #endif
5118 /* We use char because int might match the return type of a gcc2
5119 builtin and then its argument prototype would still apply. */
5120 char i386_set_ldt ();
5122 main ()
5124 i386_set_ldt ();
5126 return 0;
5128 _ACEOF
5129 rm -f conftest.$ac_objext conftest$ac_exeext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131 (eval $ac_link) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try='test -s conftest$ac_exeext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_cv_lib_i386_i386_set_ldt=yes
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 ac_cv_lib_i386_i386_set_ldt=no
5148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5149 LIBS=$ac_check_lib_save_LIBS
5151 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5152 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5153 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5154 cat >>confdefs.h <<_ACEOF
5155 #define HAVE_LIBI386 1
5156 _ACEOF
5158 LIBS="-li386 $LIBS"
5163 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5164 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5165 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 ac_check_lib_save_LIBS=$LIBS
5169 LIBS="-lossaudio $LIBS"
5170 cat >conftest.$ac_ext <<_ACEOF
5171 #line $LINENO "configure"
5172 /* confdefs.h. */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 #ifdef __cplusplus
5180 extern "C"
5181 #endif
5182 /* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
5184 char _oss_ioctl ();
5186 main ()
5188 _oss_ioctl ();
5190 return 0;
5192 _ACEOF
5193 rm -f conftest.$ac_objext conftest$ac_exeext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5195 (eval $ac_link) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } &&
5199 { ac_try='test -s conftest$ac_exeext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_lib_ossaudio__oss_ioctl=yes
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 ac_cv_lib_ossaudio__oss_ioctl=no
5212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5213 LIBS=$ac_check_lib_save_LIBS
5215 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5216 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5217 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5218 cat >>confdefs.h <<_ACEOF
5219 #define HAVE_LIBOSSAUDIO 1
5220 _ACEOF
5222 LIBS="-lossaudio $LIBS"
5227 for ac_func in iswalnum
5229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5230 echo "$as_me:$LINENO: checking for $ac_func" >&5
5231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5232 if eval "test \"\${$as_ac_var+set}\" = set"; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 /* confdefs.h. */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 /* System header to define __stub macros and hopefully few prototypes,
5243 which can conflict with char $ac_func (); below.
5244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5245 <limits.h> exists even on freestanding compilers. */
5246 #ifdef __STDC__
5247 # include <limits.h>
5248 #else
5249 # include <assert.h>
5250 #endif
5251 /* Override any gcc2 internal prototype to avoid an error. */
5252 #ifdef __cplusplus
5253 extern "C"
5255 #endif
5256 /* We use char because int might match the return type of a gcc2
5257 builtin and then its argument prototype would still apply. */
5258 char $ac_func ();
5259 /* The GNU C library defines this for functions which it implements
5260 to always fail with ENOSYS. Some functions are actually named
5261 something starting with __ and the normal name is an alias. */
5262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5263 choke me
5264 #else
5265 char (*f) () = $ac_func;
5266 #endif
5267 #ifdef __cplusplus
5269 #endif
5272 main ()
5274 return f != $ac_func;
5276 return 0;
5278 _ACEOF
5279 rm -f conftest.$ac_objext conftest$ac_exeext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5281 (eval $ac_link) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } &&
5285 { ac_try='test -s conftest$ac_exeext'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 (eval $ac_try) 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 eval "$as_ac_var=yes"
5292 else
5293 echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5296 eval "$as_ac_var=no"
5298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5302 if test `eval echo '${'$as_ac_var'}'` = yes; then
5303 cat >>confdefs.h <<_ACEOF
5304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5305 _ACEOF
5307 else
5309 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5310 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5311 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 ac_check_lib_save_LIBS=$LIBS
5315 LIBS="-lw $LIBS"
5316 cat >conftest.$ac_ext <<_ACEOF
5317 #line $LINENO "configure"
5318 /* confdefs.h. */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5324 /* Override any gcc2 internal prototype to avoid an error. */
5325 #ifdef __cplusplus
5326 extern "C"
5327 #endif
5328 /* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5330 char iswalnum ();
5332 main ()
5334 iswalnum ();
5336 return 0;
5338 _ACEOF
5339 rm -f conftest.$ac_objext conftest$ac_exeext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5341 (eval $ac_link) 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } &&
5345 { ac_try='test -s conftest$ac_exeext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 ac_cv_lib_w_iswalnum=yes
5352 else
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 ac_cv_lib_w_iswalnum=no
5358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5359 LIBS=$ac_check_lib_save_LIBS
5361 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5362 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5363 if test $ac_cv_lib_w_iswalnum = yes; then
5364 cat >>confdefs.h <<_ACEOF
5365 #define HAVE_LIBW 1
5366 _ACEOF
5368 LIBS="-lw $LIBS"
5373 done
5376 for ac_func in gethostbyname
5378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5379 echo "$as_me:$LINENO: checking for $ac_func" >&5
5380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5381 if eval "test \"\${$as_ac_var+set}\" = set"; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384 cat >conftest.$ac_ext <<_ACEOF
5385 #line $LINENO "configure"
5386 /* confdefs.h. */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 /* System header to define __stub macros and hopefully few prototypes,
5392 which can conflict with char $ac_func (); below.
5393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5394 <limits.h> exists even on freestanding compilers. */
5395 #ifdef __STDC__
5396 # include <limits.h>
5397 #else
5398 # include <assert.h>
5399 #endif
5400 /* Override any gcc2 internal prototype to avoid an error. */
5401 #ifdef __cplusplus
5402 extern "C"
5404 #endif
5405 /* We use char because int might match the return type of a gcc2
5406 builtin and then its argument prototype would still apply. */
5407 char $ac_func ();
5408 /* The GNU C library defines this for functions which it implements
5409 to always fail with ENOSYS. Some functions are actually named
5410 something starting with __ and the normal name is an alias. */
5411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5412 choke me
5413 #else
5414 char (*f) () = $ac_func;
5415 #endif
5416 #ifdef __cplusplus
5418 #endif
5421 main ()
5423 return f != $ac_func;
5425 return 0;
5427 _ACEOF
5428 rm -f conftest.$ac_objext conftest$ac_exeext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5430 (eval $ac_link) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
5434 { ac_try='test -s conftest$ac_exeext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 eval "$as_ac_var=yes"
5441 else
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 eval "$as_ac_var=no"
5447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5451 if test `eval echo '${'$as_ac_var'}'` = yes; then
5452 cat >>confdefs.h <<_ACEOF
5453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5454 _ACEOF
5456 else
5458 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5459 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5460 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463 ac_check_lib_save_LIBS=$LIBS
5464 LIBS="-lnsl $LIBS"
5465 cat >conftest.$ac_ext <<_ACEOF
5466 #line $LINENO "configure"
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 /* Override any gcc2 internal prototype to avoid an error. */
5474 #ifdef __cplusplus
5475 extern "C"
5476 #endif
5477 /* We use char because int might match the return type of a gcc2
5478 builtin and then its argument prototype would still apply. */
5479 char gethostbyname ();
5481 main ()
5483 gethostbyname ();
5485 return 0;
5487 _ACEOF
5488 rm -f conftest.$ac_objext conftest$ac_exeext
5489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5490 (eval $ac_link) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } &&
5494 { ac_try='test -s conftest$ac_exeext'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 (eval $ac_try) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; }; then
5500 ac_cv_lib_nsl_gethostbyname=yes
5501 else
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 ac_cv_lib_nsl_gethostbyname=no
5507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5508 LIBS=$ac_check_lib_save_LIBS
5510 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5511 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5512 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5513 cat >>confdefs.h <<_ACEOF
5514 #define HAVE_LIBNSL 1
5515 _ACEOF
5517 LIBS="-lnsl $LIBS"
5522 done
5525 for ac_func in connect
5527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5528 echo "$as_me:$LINENO: checking for $ac_func" >&5
5529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5530 if eval "test \"\${$as_ac_var+set}\" = set"; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533 cat >conftest.$ac_ext <<_ACEOF
5534 #line $LINENO "configure"
5535 /* confdefs.h. */
5536 _ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5540 /* System header to define __stub macros and hopefully few prototypes,
5541 which can conflict with char $ac_func (); below.
5542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5543 <limits.h> exists even on freestanding compilers. */
5544 #ifdef __STDC__
5545 # include <limits.h>
5546 #else
5547 # include <assert.h>
5548 #endif
5549 /* Override any gcc2 internal prototype to avoid an error. */
5550 #ifdef __cplusplus
5551 extern "C"
5553 #endif
5554 /* We use char because int might match the return type of a gcc2
5555 builtin and then its argument prototype would still apply. */
5556 char $ac_func ();
5557 /* The GNU C library defines this for functions which it implements
5558 to always fail with ENOSYS. Some functions are actually named
5559 something starting with __ and the normal name is an alias. */
5560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5561 choke me
5562 #else
5563 char (*f) () = $ac_func;
5564 #endif
5565 #ifdef __cplusplus
5567 #endif
5570 main ()
5572 return f != $ac_func;
5574 return 0;
5576 _ACEOF
5577 rm -f conftest.$ac_objext conftest$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579 (eval $ac_link) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try='test -s conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 eval "$as_ac_var=yes"
5590 else
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 eval "$as_ac_var=no"
5596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5600 if test `eval echo '${'$as_ac_var'}'` = yes; then
5601 cat >>confdefs.h <<_ACEOF
5602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5603 _ACEOF
5605 else
5607 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5608 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5609 if test "${ac_cv_lib_socket_connect+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 ac_check_lib_save_LIBS=$LIBS
5613 LIBS="-lsocket $LIBS"
5614 cat >conftest.$ac_ext <<_ACEOF
5615 #line $LINENO "configure"
5616 /* confdefs.h. */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5622 /* Override any gcc2 internal prototype to avoid an error. */
5623 #ifdef __cplusplus
5624 extern "C"
5625 #endif
5626 /* We use char because int might match the return type of a gcc2
5627 builtin and then its argument prototype would still apply. */
5628 char connect ();
5630 main ()
5632 connect ();
5634 return 0;
5636 _ACEOF
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -s conftest$ac_exeext'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; }; then
5649 ac_cv_lib_socket_connect=yes
5650 else
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ac_cv_lib_socket_connect=no
5656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5657 LIBS=$ac_check_lib_save_LIBS
5659 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5660 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5661 if test $ac_cv_lib_socket_connect = yes; then
5662 cat >>confdefs.h <<_ACEOF
5663 #define HAVE_LIBSOCKET 1
5664 _ACEOF
5666 LIBS="-lsocket $LIBS"
5671 done
5674 for ac_func in inet_aton
5676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5677 echo "$as_me:$LINENO: checking for $ac_func" >&5
5678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5679 if eval "test \"\${$as_ac_var+set}\" = set"; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 cat >conftest.$ac_ext <<_ACEOF
5683 #line $LINENO "configure"
5684 /* confdefs.h. */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689 /* System header to define __stub macros and hopefully few prototypes,
5690 which can conflict with char $ac_func (); below.
5691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5692 <limits.h> exists even on freestanding compilers. */
5693 #ifdef __STDC__
5694 # include <limits.h>
5695 #else
5696 # include <assert.h>
5697 #endif
5698 /* Override any gcc2 internal prototype to avoid an error. */
5699 #ifdef __cplusplus
5700 extern "C"
5702 #endif
5703 /* We use char because int might match the return type of a gcc2
5704 builtin and then its argument prototype would still apply. */
5705 char $ac_func ();
5706 /* The GNU C library defines this for functions which it implements
5707 to always fail with ENOSYS. Some functions are actually named
5708 something starting with __ and the normal name is an alias. */
5709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5710 choke me
5711 #else
5712 char (*f) () = $ac_func;
5713 #endif
5714 #ifdef __cplusplus
5716 #endif
5719 main ()
5721 return f != $ac_func;
5723 return 0;
5725 _ACEOF
5726 rm -f conftest.$ac_objext conftest$ac_exeext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728 (eval $ac_link) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -s conftest$ac_exeext'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 (eval $ac_try) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5738 eval "$as_ac_var=yes"
5739 else
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 eval "$as_ac_var=no"
5745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5749 if test `eval echo '${'$as_ac_var'}'` = yes; then
5750 cat >>confdefs.h <<_ACEOF
5751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5752 _ACEOF
5754 else
5756 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5757 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5758 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 ac_check_lib_save_LIBS=$LIBS
5762 LIBS="-lresolv $LIBS"
5763 cat >conftest.$ac_ext <<_ACEOF
5764 #line $LINENO "configure"
5765 /* confdefs.h. */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5771 /* Override any gcc2 internal prototype to avoid an error. */
5772 #ifdef __cplusplus
5773 extern "C"
5774 #endif
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5777 char inet_aton ();
5779 main ()
5781 inet_aton ();
5783 return 0;
5785 _ACEOF
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788 (eval $ac_link) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -s conftest$ac_exeext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 ac_cv_lib_resolv_inet_aton=yes
5799 else
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 ac_cv_lib_resolv_inet_aton=no
5805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5806 LIBS=$ac_check_lib_save_LIBS
5808 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5809 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5810 if test $ac_cv_lib_resolv_inet_aton = yes; then
5811 cat >>confdefs.h <<_ACEOF
5812 #define HAVE_LIBRESOLV 1
5813 _ACEOF
5815 LIBS="-lresolv $LIBS"
5820 done
5823 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5824 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5825 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828 ac_check_lib_save_LIBS=$LIBS
5829 LIBS="-lxpg4 $LIBS"
5830 cat >conftest.$ac_ext <<_ACEOF
5831 #line $LINENO "configure"
5832 /* confdefs.h. */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5838 /* Override any gcc2 internal prototype to avoid an error. */
5839 #ifdef __cplusplus
5840 extern "C"
5841 #endif
5842 /* We use char because int might match the return type of a gcc2
5843 builtin and then its argument prototype would still apply. */
5844 char _xpg4_setrunelocale ();
5846 main ()
5848 _xpg4_setrunelocale ();
5850 return 0;
5852 _ACEOF
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855 (eval $ac_link) 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
5859 { ac_try='test -s conftest$ac_exeext'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 (eval $ac_try) 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5865 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5873 LIBS=$ac_check_lib_save_LIBS
5875 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5876 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5877 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5878 cat >>confdefs.h <<_ACEOF
5879 #define HAVE_LIBXPG4 1
5880 _ACEOF
5882 LIBS="-lxpg4 $LIBS"
5887 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5888 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5889 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 ac_check_lib_save_LIBS=$LIBS
5893 LIBS="-lmmap $LIBS"
5894 cat >conftest.$ac_ext <<_ACEOF
5895 #line $LINENO "configure"
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5902 /* Override any gcc2 internal prototype to avoid an error. */
5903 #ifdef __cplusplus
5904 extern "C"
5905 #endif
5906 /* We use char because int might match the return type of a gcc2
5907 builtin and then its argument prototype would still apply. */
5908 char mmap ();
5910 main ()
5912 mmap ();
5914 return 0;
5916 _ACEOF
5917 rm -f conftest.$ac_objext conftest$ac_exeext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5919 (eval $ac_link) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try='test -s conftest$ac_exeext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_lib_mmap_mmap=yes
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 ac_cv_lib_mmap_mmap=no
5936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5937 LIBS=$ac_check_lib_save_LIBS
5939 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5940 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5941 if test $ac_cv_lib_mmap_mmap = yes; then
5942 cat >>confdefs.h <<_ACEOF
5943 #define HAVE_LIBMMAP 1
5944 _ACEOF
5946 LIBS="-lmmap $LIBS"
5951 JPEGLIB=""
5953 echo "$as_me:$LINENO: checking for egrep" >&5
5954 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5955 if test "${ac_cv_prog_egrep+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5959 then ac_cv_prog_egrep='grep -E'
5960 else ac_cv_prog_egrep='egrep'
5963 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5964 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5965 EGREP=$ac_cv_prog_egrep
5968 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5970 if test "${ac_cv_header_stdc+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973 cat >conftest.$ac_ext <<_ACEOF
5974 #line $LINENO "configure"
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #include <stdlib.h>
5981 #include <stdarg.h>
5982 #include <string.h>
5983 #include <float.h>
5986 main ()
5990 return 0;
5992 _ACEOF
5993 rm -f conftest.$ac_objext
5994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5995 (eval $ac_compile) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_header_stdc=yes
6006 else
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 ac_cv_header_stdc=no
6012 rm -f conftest.$ac_objext conftest.$ac_ext
6014 if test $ac_cv_header_stdc = yes; then
6015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6016 cat >conftest.$ac_ext <<_ACEOF
6017 #line $LINENO "configure"
6018 /* confdefs.h. */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 #include <string.h>
6025 _ACEOF
6026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027 $EGREP "memchr" >/dev/null 2>&1; then
6029 else
6030 ac_cv_header_stdc=no
6032 rm -f conftest*
6036 if test $ac_cv_header_stdc = yes; then
6037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6038 cat >conftest.$ac_ext <<_ACEOF
6039 #line $LINENO "configure"
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 #include <stdlib.h>
6047 _ACEOF
6048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6049 $EGREP "free" >/dev/null 2>&1; then
6051 else
6052 ac_cv_header_stdc=no
6054 rm -f conftest*
6058 if test $ac_cv_header_stdc = yes; then
6059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6060 if test "$cross_compiling" = yes; then
6062 else
6063 cat >conftest.$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <ctype.h>
6071 #if ((' ' & 0x0FF) == 0x020)
6072 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6073 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6074 #else
6075 # define ISLOWER(c) \
6076 (('a' <= (c) && (c) <= 'i') \
6077 || ('j' <= (c) && (c) <= 'r') \
6078 || ('s' <= (c) && (c) <= 'z'))
6079 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6080 #endif
6082 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6084 main ()
6086 int i;
6087 for (i = 0; i < 256; i++)
6088 if (XOR (islower (i), ISLOWER (i))
6089 || toupper (i) != TOUPPER (i))
6090 exit(2);
6091 exit (0);
6093 _ACEOF
6094 rm -f conftest$ac_exeext
6095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6096 (eval $ac_link) 2>&5
6097 ac_status=$?
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6106 else
6107 echo "$as_me: program exited with status $ac_status" >&5
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ( exit $ac_status )
6112 ac_cv_header_stdc=no
6114 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6118 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6119 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6120 if test $ac_cv_header_stdc = yes; then
6122 cat >>confdefs.h <<\_ACEOF
6123 #define STDC_HEADERS 1
6124 _ACEOF
6128 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6138 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6139 inttypes.h stdint.h unistd.h
6141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6142 echo "$as_me:$LINENO: checking for $ac_header" >&5
6143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147 cat >conftest.$ac_ext <<_ACEOF
6148 #line $LINENO "configure"
6149 /* confdefs.h. */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 $ac_includes_default
6156 #include <$ac_header>
6157 _ACEOF
6158 rm -f conftest.$ac_objext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 (eval $ac_try) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 eval "$as_ac_Header=yes"
6171 else
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 eval "$as_ac_Header=no"
6177 rm -f conftest.$ac_objext conftest.$ac_ext
6179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6182 cat >>confdefs.h <<_ACEOF
6183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6184 _ACEOF
6188 done
6192 for ac_header in jpeglib.h
6194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6196 echo "$as_me:$LINENO: checking for $ac_header" >&5
6197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6203 else
6204 # Is the header compilable?
6205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6207 cat >conftest.$ac_ext <<_ACEOF
6208 #line $LINENO "configure"
6209 /* confdefs.h. */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 $ac_includes_default
6215 #include <$ac_header>
6216 _ACEOF
6217 rm -f conftest.$ac_objext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219 (eval $ac_compile) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } &&
6223 { ac_try='test -s conftest.$ac_objext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 (eval $ac_try) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 ac_header_compiler=yes
6230 else
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 ac_header_compiler=no
6236 rm -f conftest.$ac_objext conftest.$ac_ext
6237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6238 echo "${ECHO_T}$ac_header_compiler" >&6
6240 # Is the header present?
6241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6243 cat >conftest.$ac_ext <<_ACEOF
6244 #line $LINENO "configure"
6245 /* confdefs.h. */
6246 _ACEOF
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h. */
6250 #include <$ac_header>
6251 _ACEOF
6252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6254 ac_status=$?
6255 grep -v '^ *+' conftest.er1 >conftest.err
6256 rm -f conftest.er1
6257 cat conftest.err >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } >/dev/null; then
6260 if test -s conftest.err; then
6261 ac_cpp_err=$ac_c_preproc_warn_flag
6262 else
6263 ac_cpp_err=
6265 else
6266 ac_cpp_err=yes
6268 if test -z "$ac_cpp_err"; then
6269 ac_header_preproc=yes
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274 ac_header_preproc=no
6276 rm -f conftest.err conftest.$ac_ext
6277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6278 echo "${ECHO_T}$ac_header_preproc" >&6
6280 # So? What about this header?
6281 case $ac_header_compiler:$ac_header_preproc in
6282 yes:no )
6283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6288 cat <<\_ASBOX
6289 ## ------------------------------------ ##
6290 ## Report this to bug-autoconf@gnu.org. ##
6291 ## ------------------------------------ ##
6292 _ASBOX
6294 sed "s/^/$as_me: WARNING: /" >&2
6296 no:yes )
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6304 cat <<\_ASBOX
6305 ## ------------------------------------ ##
6306 ## Report this to bug-autoconf@gnu.org. ##
6307 ## ------------------------------------ ##
6308 _ASBOX
6310 sed "s/^/$as_me: WARNING: /" >&2
6312 esac
6313 echo "$as_me:$LINENO: checking for $ac_header" >&5
6314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 eval "$as_ac_Header=$ac_header_preproc"
6320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6325 cat >>confdefs.h <<_ACEOF
6326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6327 _ACEOF
6328 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6329 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6330 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333 ac_check_lib_save_LIBS=$LIBS
6334 LIBS="-ljpeg $LIBS"
6335 cat >conftest.$ac_ext <<_ACEOF
6336 #line $LINENO "configure"
6337 /* confdefs.h. */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6343 /* Override any gcc2 internal prototype to avoid an error. */
6344 #ifdef __cplusplus
6345 extern "C"
6346 #endif
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6349 char jpeg_start_decompress ();
6351 main ()
6353 jpeg_start_decompress ();
6355 return 0;
6357 _ACEOF
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -s conftest$ac_exeext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 ac_cv_lib_jpeg_jpeg_start_decompress=yes
6371 else
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 ac_cv_lib_jpeg_jpeg_start_decompress=no
6377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6378 LIBS=$ac_check_lib_save_LIBS
6380 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6381 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6382 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6384 cat >>confdefs.h <<\_ACEOF
6385 #define HAVE_LIBJPEG 1
6386 _ACEOF
6388 JPEGLIB="-ljpeg"
6395 done
6398 GIFLIB=""
6401 for ac_header in gif_lib.h
6403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405 echo "$as_me:$LINENO: checking for $ac_header" >&5
6406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6412 else
6413 # Is the header compilable?
6414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6416 cat >conftest.$ac_ext <<_ACEOF
6417 #line $LINENO "configure"
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 $ac_includes_default
6424 #include <$ac_header>
6425 _ACEOF
6426 rm -f conftest.$ac_objext
6427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428 (eval $ac_compile) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -s conftest.$ac_objext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_header_compiler=yes
6439 else
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6443 ac_header_compiler=no
6445 rm -f conftest.$ac_objext conftest.$ac_ext
6446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6447 echo "${ECHO_T}$ac_header_compiler" >&6
6449 # Is the header present?
6450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6452 cat >conftest.$ac_ext <<_ACEOF
6453 #line $LINENO "configure"
6454 /* confdefs.h. */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 #include <$ac_header>
6460 _ACEOF
6461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } >/dev/null; then
6469 if test -s conftest.err; then
6470 ac_cpp_err=$ac_c_preproc_warn_flag
6471 else
6472 ac_cpp_err=
6474 else
6475 ac_cpp_err=yes
6477 if test -z "$ac_cpp_err"; then
6478 ac_header_preproc=yes
6479 else
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 ac_header_preproc=no
6485 rm -f conftest.err conftest.$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6487 echo "${ECHO_T}$ac_header_preproc" >&6
6489 # So? What about this header?
6490 case $ac_header_compiler:$ac_header_preproc in
6491 yes:no )
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6497 cat <<\_ASBOX
6498 ## ------------------------------------ ##
6499 ## Report this to bug-autoconf@gnu.org. ##
6500 ## ------------------------------------ ##
6501 _ASBOX
6503 sed "s/^/$as_me: WARNING: /" >&2
6505 no:yes )
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6513 cat <<\_ASBOX
6514 ## ------------------------------------ ##
6515 ## Report this to bug-autoconf@gnu.org. ##
6516 ## ------------------------------------ ##
6517 _ASBOX
6519 sed "s/^/$as_me: WARNING: /" >&2
6521 esac
6522 echo "$as_me:$LINENO: checking for $ac_header" >&5
6523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 eval "$as_ac_Header=$ac_header_preproc"
6529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6534 cat >>confdefs.h <<_ACEOF
6535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6536 _ACEOF
6537 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6538 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6539 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 ac_check_lib_save_LIBS=$LIBS
6543 LIBS="-lungif $LIBS"
6544 cat >conftest.$ac_ext <<_ACEOF
6545 #line $LINENO "configure"
6546 /* confdefs.h. */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6552 /* Override any gcc2 internal prototype to avoid an error. */
6553 #ifdef __cplusplus
6554 extern "C"
6555 #endif
6556 /* We use char because int might match the return type of a gcc2
6557 builtin and then its argument prototype would still apply. */
6558 char DGifOpen ();
6560 main ()
6562 DGifOpen ();
6564 return 0;
6566 _ACEOF
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -s conftest$ac_exeext'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6579 ac_cv_lib_ungif_DGifOpen=yes
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6584 ac_cv_lib_ungif_DGifOpen=no
6586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6587 LIBS=$ac_check_lib_save_LIBS
6589 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6590 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6591 if test $ac_cv_lib_ungif_DGifOpen = yes; then
6593 cat >>confdefs.h <<\_ACEOF
6594 #define HAVE_LIBGIF 1
6595 _ACEOF
6597 GIFLIB="-lungif"
6598 else
6599 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6600 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6601 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 ac_check_lib_save_LIBS=$LIBS
6605 LIBS="-lgif $LIBS"
6606 cat >conftest.$ac_ext <<_ACEOF
6607 #line $LINENO "configure"
6608 /* confdefs.h. */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 #ifdef __cplusplus
6616 extern "C"
6617 #endif
6618 /* We use char because int might match the return type of a gcc2
6619 builtin and then its argument prototype would still apply. */
6620 char DGifOpen ();
6622 main ()
6624 DGifOpen ();
6626 return 0;
6628 _ACEOF
6629 rm -f conftest.$ac_objext conftest$ac_exeext
6630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6631 (eval $ac_link) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -s conftest$ac_exeext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_lib_gif_DGifOpen=yes
6642 else
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 ac_cv_lib_gif_DGifOpen=no
6648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6649 LIBS=$ac_check_lib_save_LIBS
6651 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6652 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6653 if test $ac_cv_lib_gif_DGifOpen = yes; then
6654 cat >>confdefs.h <<\_ACEOF
6655 #define HAVE_LIBGIF 1
6656 _ACEOF
6658 GIFLIB="-lgif"
6665 done
6671 XFILES=""
6673 OPENGLFILES=""
6675 GLU32FILES=""
6677 OPENGL_LIBS=""
6678 if test "$have_x" = "yes"
6679 then
6680 XLIB="-lXext -lX11"
6681 ac_save_CPPFLAGS="$CPPFLAGS"
6682 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6685 for ac_header in X11/Xlib.h
6687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6689 echo "$as_me:$LINENO: checking for $ac_header" >&5
6690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6696 else
6697 # Is the header compilable?
6698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6700 cat >conftest.$ac_ext <<_ACEOF
6701 #line $LINENO "configure"
6702 /* confdefs.h. */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 $ac_includes_default
6708 #include <$ac_header>
6709 _ACEOF
6710 rm -f conftest.$ac_objext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6712 (eval $ac_compile) 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } &&
6716 { ac_try='test -s conftest.$ac_objext'
6717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 (eval $ac_try) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; }; then
6722 ac_header_compiler=yes
6723 else
6724 echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6727 ac_header_compiler=no
6729 rm -f conftest.$ac_objext conftest.$ac_ext
6730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6731 echo "${ECHO_T}$ac_header_compiler" >&6
6733 # Is the header present?
6734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6736 cat >conftest.$ac_ext <<_ACEOF
6737 #line $LINENO "configure"
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 #include <$ac_header>
6744 _ACEOF
6745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev/null; then
6753 if test -s conftest.err; then
6754 ac_cpp_err=$ac_c_preproc_warn_flag
6755 else
6756 ac_cpp_err=
6758 else
6759 ac_cpp_err=yes
6761 if test -z "$ac_cpp_err"; then
6762 ac_header_preproc=yes
6763 else
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_header_preproc=no
6769 rm -f conftest.err conftest.$ac_ext
6770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6771 echo "${ECHO_T}$ac_header_preproc" >&6
6773 # So? What about this header?
6774 case $ac_header_compiler:$ac_header_preproc in
6775 yes:no )
6776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6781 cat <<\_ASBOX
6782 ## ------------------------------------ ##
6783 ## Report this to bug-autoconf@gnu.org. ##
6784 ## ------------------------------------ ##
6785 _ASBOX
6787 sed "s/^/$as_me: WARNING: /" >&2
6789 no:yes )
6790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6797 cat <<\_ASBOX
6798 ## ------------------------------------ ##
6799 ## Report this to bug-autoconf@gnu.org. ##
6800 ## ------------------------------------ ##
6801 _ASBOX
6803 sed "s/^/$as_me: WARNING: /" >&2
6805 esac
6806 echo "$as_me:$LINENO: checking for $ac_header" >&5
6807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811 eval "$as_ac_Header=$ac_header_preproc"
6813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6818 cat >>confdefs.h <<_ACEOF
6819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6820 _ACEOF
6823 for ac_header in X11/XKBlib.h
6825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6826 echo "$as_me:$LINENO: checking for $ac_header" >&5
6827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831 cat >conftest.$ac_ext <<_ACEOF
6832 #line $LINENO "configure"
6833 /* confdefs.h. */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 #include <X11/Xlib.h>
6840 #include <$ac_header>
6841 _ACEOF
6842 rm -f conftest.$ac_objext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6844 (eval $ac_compile) 2>&5
6845 ac_status=$?
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } &&
6848 { ac_try='test -s conftest.$ac_objext'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 (eval $ac_try) 2>&5
6851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 eval "$as_ac_Header=yes"
6855 else
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6859 eval "$as_ac_Header=no"
6861 rm -f conftest.$ac_objext conftest.$ac_ext
6863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6866 cat >>confdefs.h <<_ACEOF
6867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6868 _ACEOF
6869 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6870 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6871 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874 ac_check_lib_save_LIBS=$LIBS
6875 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6876 cat >conftest.$ac_ext <<_ACEOF
6877 #line $LINENO "configure"
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6884 /* Override any gcc2 internal prototype to avoid an error. */
6885 #ifdef __cplusplus
6886 extern "C"
6887 #endif
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6890 char XkbQueryExtension ();
6892 main ()
6894 XkbQueryExtension ();
6896 return 0;
6898 _ACEOF
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
6905 { ac_try='test -s conftest$ac_exeext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 ac_cv_lib_X11_XkbQueryExtension=yes
6912 else
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6916 ac_cv_lib_X11_XkbQueryExtension=no
6918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6919 LIBS=$ac_check_lib_save_LIBS
6921 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6922 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6923 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6925 cat >>confdefs.h <<\_ACEOF
6926 #define HAVE_XKB 1
6927 _ACEOF
6932 else
6933 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6934 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6937 done
6941 for ac_header in X11/extensions/XShm.h
6943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6944 echo "$as_me:$LINENO: checking for $ac_header" >&5
6945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 cat >conftest.$ac_ext <<_ACEOF
6950 #line $LINENO "configure"
6951 /* confdefs.h. */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 #include <X11/Xlib.h>
6958 #include <$ac_header>
6959 _ACEOF
6960 rm -f conftest.$ac_objext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962 (eval $ac_compile) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } &&
6966 { ac_try='test -s conftest.$ac_objext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 eval "$as_ac_Header=yes"
6973 else
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 eval "$as_ac_Header=no"
6979 rm -f conftest.$ac_objext conftest.$ac_ext
6981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6984 cat >>confdefs.h <<_ACEOF
6985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6986 _ACEOF
6987 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6988 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6989 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 ac_check_lib_save_LIBS=$LIBS
6993 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6994 cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 /* confdefs.h. */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7002 /* Override any gcc2 internal prototype to avoid an error. */
7003 #ifdef __cplusplus
7004 extern "C"
7005 #endif
7006 /* We use char because int might match the return type of a gcc2
7007 builtin and then its argument prototype would still apply. */
7008 char XShmQueryExtension ();
7010 main ()
7012 XShmQueryExtension ();
7014 return 0;
7016 _ACEOF
7017 rm -f conftest.$ac_objext conftest$ac_exeext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019 (eval $ac_link) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } &&
7023 { ac_try='test -s conftest$ac_exeext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 ac_cv_lib_Xext_XShmQueryExtension=yes
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7034 ac_cv_lib_Xext_XShmQueryExtension=no
7036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7037 LIBS=$ac_check_lib_save_LIBS
7039 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7040 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7041 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7043 cat >>confdefs.h <<\_ACEOF
7044 #define HAVE_LIBXXSHM 1
7045 _ACEOF
7050 else
7051 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
7052 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
7055 done
7059 for ac_header in X11/Xutil.h
7061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7062 echo "$as_me:$LINENO: checking for $ac_header" >&5
7063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 cat >conftest.$ac_ext <<_ACEOF
7068 #line $LINENO "configure"
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 #include <X11/Xlib.h>
7076 #include <$ac_header>
7077 _ACEOF
7078 rm -f conftest.$ac_objext
7079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7080 (eval $ac_compile) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try='test -s conftest.$ac_objext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 (eval $ac_try) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 eval "$as_ac_Header=yes"
7091 else
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7095 eval "$as_ac_Header=no"
7097 rm -f conftest.$ac_objext conftest.$ac_ext
7099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7102 cat >>confdefs.h <<_ACEOF
7103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7104 _ACEOF
7108 done
7112 for ac_header in X11/extensions/shape.h
7114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7115 echo "$as_me:$LINENO: checking for $ac_header" >&5
7116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120 cat >conftest.$ac_ext <<_ACEOF
7121 #line $LINENO "configure"
7122 /* confdefs.h. */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 #include <X11/Xlib.h>
7128 #ifdef HAVE_X11_XUTIL_H
7129 # include <X11/Xutil.h>
7130 #endif
7132 #include <$ac_header>
7133 _ACEOF
7134 rm -f conftest.$ac_objext
7135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136 (eval $ac_compile) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } &&
7140 { ac_try='test -s conftest.$ac_objext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 eval "$as_ac_Header=yes"
7147 else
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7151 eval "$as_ac_Header=no"
7153 rm -f conftest.$ac_objext conftest.$ac_ext
7155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7158 cat >>confdefs.h <<_ACEOF
7159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7160 _ACEOF
7161 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7162 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7163 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 ac_check_lib_save_LIBS=$LIBS
7167 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7168 cat >conftest.$ac_ext <<_ACEOF
7169 #line $LINENO "configure"
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7176 /* Override any gcc2 internal prototype to avoid an error. */
7177 #ifdef __cplusplus
7178 extern "C"
7179 #endif
7180 /* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */
7182 char XShapeQueryExtension ();
7184 main ()
7186 XShapeQueryExtension ();
7188 return 0;
7190 _ACEOF
7191 rm -f conftest.$ac_objext conftest$ac_exeext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7193 (eval $ac_link) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -s conftest$ac_exeext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 (eval $ac_try) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_lib_Xext_XShapeQueryExtension=yes
7204 else
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 ac_cv_lib_Xext_XShapeQueryExtension=no
7210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7211 LIBS=$ac_check_lib_save_LIBS
7213 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7214 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7215 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7217 cat >>confdefs.h <<\_ACEOF
7218 #define HAVE_LIBXSHAPE 1
7219 _ACEOF
7224 else
7225 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
7226 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
7229 done
7233 for ac_header in X11/extensions/xf86dga.h
7235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7236 echo "$as_me:$LINENO: checking for $ac_header" >&5
7237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 cat >conftest.$ac_ext <<_ACEOF
7242 #line $LINENO "configure"
7243 /* confdefs.h. */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 #include <X11/Xlib.h>
7250 #include <$ac_header>
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>&5
7255 ac_status=$?
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } &&
7258 { ac_try='test -s conftest.$ac_objext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 (eval $ac_try) 2>&5
7261 ac_status=$?
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 eval "$as_ac_Header=yes"
7265 else
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 eval "$as_ac_Header=no"
7271 rm -f conftest.$ac_objext conftest.$ac_ext
7273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7276 cat >>confdefs.h <<_ACEOF
7277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7278 _ACEOF
7279 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7280 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7281 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284 ac_check_lib_save_LIBS=$LIBS
7285 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7286 $LIBS"
7287 cat >conftest.$ac_ext <<_ACEOF
7288 #line $LINENO "configure"
7289 /* confdefs.h. */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7295 /* Override any gcc2 internal prototype to avoid an error. */
7296 #ifdef __cplusplus
7297 extern "C"
7298 #endif
7299 /* We use char because int might match the return type of a gcc2
7300 builtin and then its argument prototype would still apply. */
7301 char XDGAQueryExtension ();
7303 main ()
7305 XDGAQueryExtension ();
7307 return 0;
7309 _ACEOF
7310 rm -f conftest.$ac_objext conftest$ac_exeext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312 (eval $ac_link) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try='test -s conftest$ac_exeext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7323 else
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7327 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7330 LIBS=$ac_check_lib_save_LIBS
7332 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7333 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7334 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7336 cat >>confdefs.h <<\_ACEOF
7337 #define HAVE_LIBXXF86DGA2 1
7338 _ACEOF
7340 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7342 else
7343 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7344 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7345 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348 ac_check_lib_save_LIBS=$LIBS
7349 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7350 $LIBS"
7351 cat >conftest.$ac_ext <<_ACEOF
7352 #line $LINENO "configure"
7353 /* confdefs.h. */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7359 /* Override any gcc2 internal prototype to avoid an error. */
7360 #ifdef __cplusplus
7361 extern "C"
7362 #endif
7363 /* We use char because int might match the return type of a gcc2
7364 builtin and then its argument prototype would still apply. */
7365 char XF86DGAQueryExtension ();
7367 main ()
7369 XF86DGAQueryExtension ();
7371 return 0;
7373 _ACEOF
7374 rm -f conftest.$ac_objext conftest$ac_exeext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7376 (eval $ac_link) 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try='test -s conftest$ac_exeext'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 (eval $ac_try) 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
7386 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7387 else
7388 echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7391 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7394 LIBS=$ac_check_lib_save_LIBS
7396 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7397 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7398 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7400 cat >>confdefs.h <<\_ACEOF
7401 #define HAVE_LIBXXF86DGA 1
7402 _ACEOF
7404 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7412 else
7413 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
7414 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
7417 done
7421 for ac_header in X11/extensions/xf86vmode.h
7423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7424 echo "$as_me:$LINENO: checking for $ac_header" >&5
7425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429 cat >conftest.$ac_ext <<_ACEOF
7430 #line $LINENO "configure"
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 #include <X11/Xlib.h>
7438 #include <$ac_header>
7439 _ACEOF
7440 rm -f conftest.$ac_objext
7441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7442 (eval $ac_compile) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } &&
7446 { ac_try='test -s conftest.$ac_objext'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 (eval $ac_try) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; }; then
7452 eval "$as_ac_Header=yes"
7453 else
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7457 eval "$as_ac_Header=no"
7459 rm -f conftest.$ac_objext conftest.$ac_ext
7461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7464 cat >>confdefs.h <<_ACEOF
7465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7466 _ACEOF
7467 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7468 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7469 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472 ac_check_lib_save_LIBS=$LIBS
7473 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7474 $LIBS"
7475 cat >conftest.$ac_ext <<_ACEOF
7476 #line $LINENO "configure"
7477 /* confdefs.h. */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7483 /* Override any gcc2 internal prototype to avoid an error. */
7484 #ifdef __cplusplus
7485 extern "C"
7486 #endif
7487 /* We use char because int might match the return type of a gcc2
7488 builtin and then its argument prototype would still apply. */
7489 char XF86VidModeQueryExtension ();
7491 main ()
7493 XF86VidModeQueryExtension ();
7495 return 0;
7497 _ACEOF
7498 rm -f conftest.$ac_objext conftest$ac_exeext
7499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7500 (eval $ac_link) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } &&
7504 { ac_try='test -s conftest$ac_exeext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7511 else
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7515 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7518 LIBS=$ac_check_lib_save_LIBS
7520 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7521 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7522 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7524 cat >>confdefs.h <<\_ACEOF
7525 #define HAVE_LIBXXF86VM 1
7526 _ACEOF
7528 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7533 else
7534 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7535 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
7538 done
7542 for ac_header in X11/extensions/Xvlib.h
7544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7545 echo "$as_me:$LINENO: checking for $ac_header" >&5
7546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550 cat >conftest.$ac_ext <<_ACEOF
7551 #line $LINENO "configure"
7552 /* confdefs.h. */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7557 #include <X11/Xlib.h>
7559 #include <$ac_header>
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7563 (eval $ac_compile) 2>&5
7564 ac_status=$?
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } &&
7567 { ac_try='test -s conftest.$ac_objext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 (eval $ac_try) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7573 eval "$as_ac_Header=yes"
7574 else
7575 echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.$ac_ext >&5
7578 eval "$as_ac_Header=no"
7580 rm -f conftest.$ac_objext conftest.$ac_ext
7582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7585 cat >>confdefs.h <<_ACEOF
7586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7587 _ACEOF
7588 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7589 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7590 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 ac_check_lib_save_LIBS=$LIBS
7594 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7595 $LIBS"
7596 cat >conftest.$ac_ext <<_ACEOF
7597 #line $LINENO "configure"
7598 /* confdefs.h. */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7604 /* Override any gcc2 internal prototype to avoid an error. */
7605 #ifdef __cplusplus
7606 extern "C"
7607 #endif
7608 /* We use char because int might match the return type of a gcc2
7609 builtin and then its argument prototype would still apply. */
7610 char XvShmCreateImage ();
7612 main ()
7614 XvShmCreateImage ();
7616 return 0;
7618 _ACEOF
7619 rm -f conftest.$ac_objext conftest$ac_exeext
7620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7621 (eval $ac_link) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_cv_lib_Xv_XvShmCreateImage=yes
7632 else
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 ac_cv_lib_Xv_XvShmCreateImage=no
7638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7639 LIBS=$ac_check_lib_save_LIBS
7641 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7642 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7643 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7645 cat >>confdefs.h <<\_ACEOF
7646 #define HAVE_XVIDEO 1
7647 _ACEOF
7649 X_PRE_LIBS="$X_PRE_LIBS -lXv"
7654 else
7655 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7656 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
7659 done
7663 for ac_header in X11/extensions/Xrender.h
7665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7666 echo "$as_me:$LINENO: checking for $ac_header" >&5
7667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671 cat >conftest.$ac_ext <<_ACEOF
7672 #line $LINENO "configure"
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <X11/Xlib.h>
7680 #include <$ac_header>
7681 _ACEOF
7682 rm -f conftest.$ac_objext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684 (eval $ac_compile) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } &&
7688 { ac_try='test -s conftest.$ac_objext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 eval "$as_ac_Header=yes"
7695 else
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 eval "$as_ac_Header=no"
7701 rm -f conftest.$ac_objext conftest.$ac_ext
7703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7706 cat >>confdefs.h <<_ACEOF
7707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7708 _ACEOF
7712 done
7718 done
7720 if test "x$with_opengl" != "xno"
7721 then
7722 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7723 then
7724 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7725 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7726 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7727 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7728 { (exit 1); exit 1; }; }
7733 for ac_header in GL/gl.h GL/glx.h
7735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7737 echo "$as_me:$LINENO: checking for $ac_header" >&5
7738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7744 else
7745 # Is the header compilable?
7746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7748 cat >conftest.$ac_ext <<_ACEOF
7749 #line $LINENO "configure"
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7756 #include <$ac_header>
7757 _ACEOF
7758 rm -f conftest.$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_header_compiler=yes
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7775 ac_header_compiler=no
7777 rm -f conftest.$ac_objext conftest.$ac_ext
7778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7779 echo "${ECHO_T}$ac_header_compiler" >&6
7781 # Is the header present?
7782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7784 cat >conftest.$ac_ext <<_ACEOF
7785 #line $LINENO "configure"
7786 /* confdefs.h. */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 #include <$ac_header>
7792 _ACEOF
7793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7795 ac_status=$?
7796 grep -v '^ *+' conftest.er1 >conftest.err
7797 rm -f conftest.er1
7798 cat conftest.err >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } >/dev/null; then
7801 if test -s conftest.err; then
7802 ac_cpp_err=$ac_c_preproc_warn_flag
7803 else
7804 ac_cpp_err=
7806 else
7807 ac_cpp_err=yes
7809 if test -z "$ac_cpp_err"; then
7810 ac_header_preproc=yes
7811 else
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 ac_header_preproc=no
7817 rm -f conftest.err conftest.$ac_ext
7818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7819 echo "${ECHO_T}$ac_header_preproc" >&6
7821 # So? What about this header?
7822 case $ac_header_compiler:$ac_header_preproc in
7823 yes:no )
7824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7829 cat <<\_ASBOX
7830 ## ------------------------------------ ##
7831 ## Report this to bug-autoconf@gnu.org. ##
7832 ## ------------------------------------ ##
7833 _ASBOX
7835 sed "s/^/$as_me: WARNING: /" >&2
7837 no:yes )
7838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7845 cat <<\_ASBOX
7846 ## ------------------------------------ ##
7847 ## Report this to bug-autoconf@gnu.org. ##
7848 ## ------------------------------------ ##
7849 _ASBOX
7851 sed "s/^/$as_me: WARNING: /" >&2
7853 esac
7854 echo "$as_me:$LINENO: checking for $ac_header" >&5
7855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859 eval "$as_ac_Header=$ac_header_preproc"
7861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7866 cat >>confdefs.h <<_ACEOF
7867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7868 _ACEOF
7872 done
7874 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7875 then
7877 for ac_header in GL/glext.h
7879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7880 echo "$as_me:$LINENO: checking for $ac_header" >&5
7881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885 cat >conftest.$ac_ext <<_ACEOF
7886 #line $LINENO "configure"
7887 /* confdefs.h. */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 #include <GL/glx.h>
7894 #include <$ac_header>
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898 (eval $ac_compile) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } &&
7902 { ac_try='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 eval "$as_ac_Header=yes"
7909 else
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 eval "$as_ac_Header=no"
7915 rm -f conftest.$ac_objext conftest.$ac_ext
7917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7920 cat >>confdefs.h <<_ACEOF
7921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7922 _ACEOF
7926 done
7928 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7929 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7930 if test "${wine_cv_opengl_version_OK+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933 cat >conftest.$ac_ext <<_ACEOF
7934 #line $LINENO "configure"
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 #include <GL/gl.h>
7942 main ()
7944 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7946 return 0;
7948 _ACEOF
7949 rm -f conftest.$ac_objext
7950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7951 (eval $ac_compile) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -s conftest.$ac_objext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 wine_cv_opengl_version_OK="yes"
7962 else
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7966 wine_cv_opengl_version_OK="no"
7969 rm -f conftest.$ac_objext conftest.$ac_ext
7972 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7973 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7975 if test "$wine_cv_opengl_version_OK" = "yes"
7976 then
7977 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7978 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7979 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982 ac_check_lib_save_LIBS=$LIBS
7983 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7984 cat >conftest.$ac_ext <<_ACEOF
7985 #line $LINENO "configure"
7986 /* confdefs.h. */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7992 /* Override any gcc2 internal prototype to avoid an error. */
7993 #ifdef __cplusplus
7994 extern "C"
7995 #endif
7996 /* We use char because int might match the return type of a gcc2
7997 builtin and then its argument prototype would still apply. */
7998 char glXCreateContext ();
8000 main ()
8002 glXCreateContext ();
8004 return 0;
8006 _ACEOF
8007 rm -f conftest.$ac_objext conftest$ac_exeext
8008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8009 (eval $ac_link) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -s conftest$ac_exeext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 ac_cv_lib_GL_glXCreateContext=yes
8020 else
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 ac_cv_lib_GL_glXCreateContext=no
8026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8027 LIBS=$ac_check_lib_save_LIBS
8029 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8030 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8031 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8032 OPENGL_LIBS="-lGL"
8037 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8038 then
8039 OPENGLFILES='$(OPENGLFILES)'
8041 cat >>confdefs.h <<\_ACEOF
8042 #define HAVE_OPENGL 1
8043 _ACEOF
8046 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8047 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8048 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051 ac_check_lib_save_LIBS=$LIBS
8052 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8053 cat >conftest.$ac_ext <<_ACEOF
8054 #line $LINENO "configure"
8055 /* confdefs.h. */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8061 /* Override any gcc2 internal prototype to avoid an error. */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8067 char glXGetProcAddressARB ();
8069 main ()
8071 glXGetProcAddressARB ();
8073 return 0;
8075 _ACEOF
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -s conftest$ac_exeext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_cv_lib_GL_glXGetProcAddressARB=yes
8089 else
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8093 ac_cv_lib_GL_glXGetProcAddressARB=no
8095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8096 LIBS=$ac_check_lib_save_LIBS
8098 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8099 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8100 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8102 cat >>confdefs.h <<\_ACEOF
8103 #define HAVE_GLX_GETPROCADDRESS 1
8104 _ACEOF
8109 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8110 then
8111 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8112 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8113 if test "${wine_cv_extension_prototypes+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116 cat >conftest.$ac_ext <<_ACEOF
8117 #line $LINENO "configure"
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 #include <GL/gl.h>
8124 #ifdef HAVE_GL_GLEXT_H
8125 # include <GL/glext.h>
8126 #endif
8129 main ()
8131 PFNGLCOLORTABLEEXTPROC test_proc;
8133 return 0;
8135 _ACEOF
8136 rm -f conftest.$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -s conftest.$ac_objext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 (eval $ac_try) 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 wine_cv_extension_prototypes="yes"
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 wine_cv_extension_prototypes="no"
8156 rm -f conftest.$ac_objext conftest.$ac_ext
8159 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8160 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8161 if test "$wine_cv_extension_prototypes" = "yes"
8162 then
8164 cat >>confdefs.h <<\_ACEOF
8165 #define HAVE_GLEXT_PROTOTYPES 1
8166 _ACEOF
8172 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8173 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8174 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 ac_check_lib_save_LIBS=$LIBS
8178 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8179 $LIBS"
8180 cat >conftest.$ac_ext <<_ACEOF
8181 #line $LINENO "configure"
8182 /* confdefs.h. */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8188 /* Override any gcc2 internal prototype to avoid an error. */
8189 #ifdef __cplusplus
8190 extern "C"
8191 #endif
8192 /* We use char because int might match the return type of a gcc2
8193 builtin and then its argument prototype would still apply. */
8194 char gluLookAt ();
8196 main ()
8198 gluLookAt ();
8200 return 0;
8202 _ACEOF
8203 rm -f conftest.$ac_objext conftest$ac_exeext
8204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8205 (eval $ac_link) 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } &&
8209 { ac_try='test -s conftest$ac_exeext'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 (eval $ac_try) 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 ac_cv_lib_GLU_gluLookAt=yes
8216 else
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8220 ac_cv_lib_GLU_gluLookAt=no
8222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8223 LIBS=$ac_check_lib_save_LIBS
8225 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8226 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8227 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8228 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8229 GLU32FILES='$(GLU32FILES)'
8237 NASLIBS=""
8240 for ac_header in audio/audiolib.h
8242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8244 echo "$as_me:$LINENO: checking for $ac_header" >&5
8245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8251 else
8252 # Is the header compilable?
8253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8255 cat >conftest.$ac_ext <<_ACEOF
8256 #line $LINENO "configure"
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 $ac_includes_default
8263 #include <$ac_header>
8264 _ACEOF
8265 rm -f conftest.$ac_objext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8267 (eval $ac_compile) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -s conftest.$ac_objext'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8277 ac_header_compiler=yes
8278 else
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8282 ac_header_compiler=no
8284 rm -f conftest.$ac_objext conftest.$ac_ext
8285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8286 echo "${ECHO_T}$ac_header_compiler" >&6
8288 # Is the header present?
8289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8291 cat >conftest.$ac_ext <<_ACEOF
8292 #line $LINENO "configure"
8293 /* confdefs.h. */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 #include <$ac_header>
8299 _ACEOF
8300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8302 ac_status=$?
8303 grep -v '^ *+' conftest.er1 >conftest.err
8304 rm -f conftest.er1
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } >/dev/null; then
8308 if test -s conftest.err; then
8309 ac_cpp_err=$ac_c_preproc_warn_flag
8310 else
8311 ac_cpp_err=
8313 else
8314 ac_cpp_err=yes
8316 if test -z "$ac_cpp_err"; then
8317 ac_header_preproc=yes
8318 else
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8322 ac_header_preproc=no
8324 rm -f conftest.err conftest.$ac_ext
8325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8326 echo "${ECHO_T}$ac_header_preproc" >&6
8328 # So? What about this header?
8329 case $ac_header_compiler:$ac_header_preproc in
8330 yes:no )
8331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8336 cat <<\_ASBOX
8337 ## ------------------------------------ ##
8338 ## Report this to bug-autoconf@gnu.org. ##
8339 ## ------------------------------------ ##
8340 _ASBOX
8342 sed "s/^/$as_me: WARNING: /" >&2
8344 no:yes )
8345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8352 cat <<\_ASBOX
8353 ## ------------------------------------ ##
8354 ## Report this to bug-autoconf@gnu.org. ##
8355 ## ------------------------------------ ##
8356 _ASBOX
8358 sed "s/^/$as_me: WARNING: /" >&2
8360 esac
8361 echo "$as_me:$LINENO: checking for $ac_header" >&5
8362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366 eval "$as_ac_Header=$ac_header_preproc"
8368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8373 cat >>confdefs.h <<_ACEOF
8374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8375 _ACEOF
8377 for ac_header in audio/soundlib.h
8379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8380 echo "$as_me:$LINENO: checking for $ac_header" >&5
8381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 else
8385 cat >conftest.$ac_ext <<_ACEOF
8386 #line $LINENO "configure"
8387 /* confdefs.h. */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 #include <audio/audiolib.h>
8394 #include <$ac_header>
8395 _ACEOF
8396 rm -f conftest.$ac_objext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398 (eval $ac_compile) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -s conftest.$ac_objext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 eval "$as_ac_Header=yes"
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 eval "$as_ac_Header=no"
8415 rm -f conftest.$ac_objext conftest.$ac_ext
8417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8420 cat >>confdefs.h <<_ACEOF
8421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8422 _ACEOF
8426 done
8428 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8429 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8430 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433 ac_check_lib_save_LIBS=$LIBS
8434 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8435 cat >conftest.$ac_ext <<_ACEOF
8436 #line $LINENO "configure"
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8443 /* Override any gcc2 internal prototype to avoid an error. */
8444 #ifdef __cplusplus
8445 extern "C"
8446 #endif
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8449 char AuCreateFlow ();
8451 main ()
8453 AuCreateFlow ();
8455 return 0;
8457 _ACEOF
8458 rm -f conftest.$ac_objext conftest$ac_exeext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8460 (eval $ac_link) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8464 { ac_try='test -s conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_lib_audio_AuCreateFlow=yes
8471 else
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_cv_lib_audio_AuCreateFlow=no
8477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8478 LIBS=$ac_check_lib_save_LIBS
8480 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8481 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8482 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8484 cat >>confdefs.h <<\_ACEOF
8485 #define HAVE_NAS 1
8486 _ACEOF
8488 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8493 done
8496 CPPFLAGS="$ac_save_CPPFLAGS"
8497 XFILES='$(XFILES)'
8498 else
8499 XLIB=""
8500 X_CFLAGS=""
8501 X_LIBS=""
8504 CURSESLIBS=""
8505 if test "x$with_curses" != "xno"
8506 then
8508 for ac_header in ncurses.h
8510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8512 echo "$as_me:$LINENO: checking for $ac_header" >&5
8513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8519 else
8520 # Is the header compilable?
8521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8524 #line $LINENO "configure"
8525 /* confdefs.h. */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8530 $ac_includes_default
8531 #include <$ac_header>
8532 _ACEOF
8533 rm -f conftest.$ac_objext
8534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8535 (eval $ac_compile) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -s conftest.$ac_objext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 ac_header_compiler=yes
8546 else
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 ac_header_compiler=no
8552 rm -f conftest.$ac_objext conftest.$ac_ext
8553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8554 echo "${ECHO_T}$ac_header_compiler" >&6
8556 # Is the header present?
8557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8559 cat >conftest.$ac_ext <<_ACEOF
8560 #line $LINENO "configure"
8561 /* confdefs.h. */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 #include <$ac_header>
8567 _ACEOF
8568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } >/dev/null; then
8576 if test -s conftest.err; then
8577 ac_cpp_err=$ac_c_preproc_warn_flag
8578 else
8579 ac_cpp_err=
8581 else
8582 ac_cpp_err=yes
8584 if test -z "$ac_cpp_err"; then
8585 ac_header_preproc=yes
8586 else
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_header_preproc=no
8592 rm -f conftest.err conftest.$ac_ext
8593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8594 echo "${ECHO_T}$ac_header_preproc" >&6
8596 # So? What about this header?
8597 case $ac_header_compiler:$ac_header_preproc in
8598 yes:no )
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8604 cat <<\_ASBOX
8605 ## ------------------------------------ ##
8606 ## Report this to bug-autoconf@gnu.org. ##
8607 ## ------------------------------------ ##
8608 _ASBOX
8610 sed "s/^/$as_me: WARNING: /" >&2
8612 no:yes )
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8620 cat <<\_ASBOX
8621 ## ------------------------------------ ##
8622 ## Report this to bug-autoconf@gnu.org. ##
8623 ## ------------------------------------ ##
8624 _ASBOX
8626 sed "s/^/$as_me: WARNING: /" >&2
8628 esac
8629 echo "$as_me:$LINENO: checking for $ac_header" >&5
8630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634 eval "$as_ac_Header=$ac_header_preproc"
8636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8641 cat >>confdefs.h <<_ACEOF
8642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8643 _ACEOF
8644 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8645 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8646 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 ac_check_lib_save_LIBS=$LIBS
8650 LIBS="-lncurses $LIBS"
8651 cat >conftest.$ac_ext <<_ACEOF
8652 #line $LINENO "configure"
8653 /* confdefs.h. */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8659 /* Override any gcc2 internal prototype to avoid an error. */
8660 #ifdef __cplusplus
8661 extern "C"
8662 #endif
8663 /* We use char because int might match the return type of a gcc2
8664 builtin and then its argument prototype would still apply. */
8665 char waddch ();
8667 main ()
8669 waddch ();
8671 return 0;
8673 _ACEOF
8674 rm -f conftest.$ac_objext conftest$ac_exeext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676 (eval $ac_link) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -s conftest$ac_exeext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_cv_lib_ncurses_waddch=yes
8687 else
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 ac_cv_lib_ncurses_waddch=no
8693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8694 LIBS=$ac_check_lib_save_LIBS
8696 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8697 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8698 if test $ac_cv_lib_ncurses_waddch = yes; then
8700 cat >>confdefs.h <<\_ACEOF
8701 #define HAVE_LIBNCURSES 1
8702 _ACEOF
8704 CURSESLIBS="-lncurses"
8705 else
8707 for ac_header in curses.h
8709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8711 echo "$as_me:$LINENO: checking for $ac_header" >&5
8712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8718 else
8719 # Is the header compilable?
8720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 /* confdefs.h. */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8729 $ac_includes_default
8730 #include <$ac_header>
8731 _ACEOF
8732 rm -f conftest.$ac_objext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8734 (eval $ac_compile) 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try='test -s conftest.$ac_objext'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 (eval $ac_try) 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_header_compiler=yes
8745 else
8746 echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8749 ac_header_compiler=no
8751 rm -f conftest.$ac_objext conftest.$ac_ext
8752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8753 echo "${ECHO_T}$ac_header_compiler" >&6
8755 # Is the header present?
8756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8758 cat >conftest.$ac_ext <<_ACEOF
8759 #line $LINENO "configure"
8760 /* confdefs.h. */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765 #include <$ac_header>
8766 _ACEOF
8767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8769 ac_status=$?
8770 grep -v '^ *+' conftest.er1 >conftest.err
8771 rm -f conftest.er1
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } >/dev/null; then
8775 if test -s conftest.err; then
8776 ac_cpp_err=$ac_c_preproc_warn_flag
8777 else
8778 ac_cpp_err=
8780 else
8781 ac_cpp_err=yes
8783 if test -z "$ac_cpp_err"; then
8784 ac_header_preproc=yes
8785 else
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 ac_header_preproc=no
8791 rm -f conftest.err conftest.$ac_ext
8792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8793 echo "${ECHO_T}$ac_header_preproc" >&6
8795 # So? What about this header?
8796 case $ac_header_compiler:$ac_header_preproc in
8797 yes:no )
8798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8803 cat <<\_ASBOX
8804 ## ------------------------------------ ##
8805 ## Report this to bug-autoconf@gnu.org. ##
8806 ## ------------------------------------ ##
8807 _ASBOX
8809 sed "s/^/$as_me: WARNING: /" >&2
8811 no:yes )
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8819 cat <<\_ASBOX
8820 ## ------------------------------------ ##
8821 ## Report this to bug-autoconf@gnu.org. ##
8822 ## ------------------------------------ ##
8823 _ASBOX
8825 sed "s/^/$as_me: WARNING: /" >&2
8827 esac
8828 echo "$as_me:$LINENO: checking for $ac_header" >&5
8829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 else
8833 eval "$as_ac_Header=$ac_header_preproc"
8835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8840 cat >>confdefs.h <<_ACEOF
8841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8842 _ACEOF
8843 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8844 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8845 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 ac_check_lib_save_LIBS=$LIBS
8849 LIBS="-lcurses $LIBS"
8850 cat >conftest.$ac_ext <<_ACEOF
8851 #line $LINENO "configure"
8852 /* confdefs.h. */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8858 /* Override any gcc2 internal prototype to avoid an error. */
8859 #ifdef __cplusplus
8860 extern "C"
8861 #endif
8862 /* We use char because int might match the return type of a gcc2
8863 builtin and then its argument prototype would still apply. */
8864 char waddch ();
8866 main ()
8868 waddch ();
8870 return 0;
8872 _ACEOF
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try='test -s conftest$ac_exeext'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 (eval $ac_try) 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
8885 ac_cv_lib_curses_waddch=yes
8886 else
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8890 ac_cv_lib_curses_waddch=no
8892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8896 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8897 if test $ac_cv_lib_curses_waddch = yes; then
8899 cat >>confdefs.h <<\_ACEOF
8900 #define HAVE_LIBCURSES 1
8901 _ACEOF
8903 CURSESLIBS="-lcurses"
8908 done
8914 done
8916 saved_libs="$LIBS"
8917 LIBS="$CURSESLIBS $LIBS"
8920 for ac_func in getbkgd resizeterm
8922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8923 echo "$as_me:$LINENO: checking for $ac_func" >&5
8924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8925 if eval "test \"\${$as_ac_var+set}\" = set"; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928 cat >conftest.$ac_ext <<_ACEOF
8929 #line $LINENO "configure"
8930 /* confdefs.h. */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8935 /* System header to define __stub macros and hopefully few prototypes,
8936 which can conflict with char $ac_func (); below.
8937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938 <limits.h> exists even on freestanding compilers. */
8939 #ifdef __STDC__
8940 # include <limits.h>
8941 #else
8942 # include <assert.h>
8943 #endif
8944 /* Override any gcc2 internal prototype to avoid an error. */
8945 #ifdef __cplusplus
8946 extern "C"
8948 #endif
8949 /* We use char because int might match the return type of a gcc2
8950 builtin and then its argument prototype would still apply. */
8951 char $ac_func ();
8952 /* The GNU C library defines this for functions which it implements
8953 to always fail with ENOSYS. Some functions are actually named
8954 something starting with __ and the normal name is an alias. */
8955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8956 choke me
8957 #else
8958 char (*f) () = $ac_func;
8959 #endif
8960 #ifdef __cplusplus
8962 #endif
8965 main ()
8967 return f != $ac_func;
8969 return 0;
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -s conftest$ac_exeext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 eval "$as_ac_var=yes"
8985 else
8986 echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8989 eval "$as_ac_var=no"
8991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8995 if test `eval echo '${'$as_ac_var'}'` = yes; then
8996 cat >>confdefs.h <<_ACEOF
8997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8998 _ACEOF
9001 done
9003 LIBS="$saved_libs"
9007 # Extract the first word of "sane-config", so it can be a program name with args.
9008 set dummy sane-config; ac_word=$2
9009 echo "$as_me:$LINENO: checking for $ac_word" >&5
9010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9011 if test "${ac_cv_prog_sane_devel+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014 if test -n "$sane_devel"; then
9015 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9016 else
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9020 IFS=$as_save_IFS
9021 test -z "$as_dir" && as_dir=.
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9024 ac_cv_prog_sane_devel="sane-config"
9025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 break 2
9028 done
9029 done
9031 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9034 sane_devel=$ac_cv_prog_sane_devel
9035 if test -n "$sane_devel"; then
9036 echo "$as_me:$LINENO: result: $sane_devel" >&5
9037 echo "${ECHO_T}$sane_devel" >&6
9038 else
9039 echo "$as_me:$LINENO: result: no" >&5
9040 echo "${ECHO_T}no" >&6
9043 if test "$sane_devel" = "no"
9044 then
9045 SANELIBS=""
9046 SANEINCL=""
9047 else
9048 SANELIBS="`$sane_devel --libs`"
9049 SANEINCL="`$sane_devel --cflags`"
9050 ac_save_CPPFLAGS="$CPPFLAGS"
9051 ac_save_LIBS="$LIBS"
9052 CPPFLAGS="$CPPFLAGS $SANEINCL"
9053 LIBS="$LIBS $SANELIBS"
9054 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9055 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9056 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9057 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9061 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9062 else
9063 # Is the header compilable?
9064 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9065 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9066 cat >conftest.$ac_ext <<_ACEOF
9067 #line $LINENO "configure"
9068 /* confdefs.h. */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9073 $ac_includes_default
9074 #include <sane/sane.h>
9075 _ACEOF
9076 rm -f conftest.$ac_objext
9077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9078 (eval $ac_compile) 2>&5
9079 ac_status=$?
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
9082 { ac_try='test -s conftest.$ac_objext'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 (eval $ac_try) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; }; then
9088 ac_header_compiler=yes
9089 else
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 ac_header_compiler=no
9095 rm -f conftest.$ac_objext conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9097 echo "${ECHO_T}$ac_header_compiler" >&6
9099 # Is the header present?
9100 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9101 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9102 cat >conftest.$ac_ext <<_ACEOF
9103 #line $LINENO "configure"
9104 /* confdefs.h. */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 #include <sane/sane.h>
9110 _ACEOF
9111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9113 ac_status=$?
9114 grep -v '^ *+' conftest.er1 >conftest.err
9115 rm -f conftest.er1
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } >/dev/null; then
9119 if test -s conftest.err; then
9120 ac_cpp_err=$ac_c_preproc_warn_flag
9121 else
9122 ac_cpp_err=
9124 else
9125 ac_cpp_err=yes
9127 if test -z "$ac_cpp_err"; then
9128 ac_header_preproc=yes
9129 else
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 ac_header_preproc=no
9135 rm -f conftest.err conftest.$ac_ext
9136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9137 echo "${ECHO_T}$ac_header_preproc" >&6
9139 # So? What about this header?
9140 case $ac_header_compiler:$ac_header_preproc in
9141 yes:no )
9142 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9143 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9145 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9147 cat <<\_ASBOX
9148 ## ------------------------------------ ##
9149 ## Report this to bug-autoconf@gnu.org. ##
9150 ## ------------------------------------ ##
9151 _ASBOX
9153 sed "s/^/$as_me: WARNING: /" >&2
9155 no:yes )
9156 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9157 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9158 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9159 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9161 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9163 cat <<\_ASBOX
9164 ## ------------------------------------ ##
9165 ## Report this to bug-autoconf@gnu.org. ##
9166 ## ------------------------------------ ##
9167 _ASBOX
9169 sed "s/^/$as_me: WARNING: /" >&2
9171 esac
9172 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9173 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9174 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177 ac_cv_header_sane_sane_h=$ac_header_preproc
9179 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9180 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9183 if test $ac_cv_header_sane_sane_h = yes; then
9184 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9185 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9186 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189 ac_check_lib_save_LIBS=$LIBS
9190 LIBS="-lsane $LIBS"
9191 cat >conftest.$ac_ext <<_ACEOF
9192 #line $LINENO "configure"
9193 /* confdefs.h. */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9199 /* Override any gcc2 internal prototype to avoid an error. */
9200 #ifdef __cplusplus
9201 extern "C"
9202 #endif
9203 /* We use char because int might match the return type of a gcc2
9204 builtin and then its argument prototype would still apply. */
9205 char sane_open ();
9207 main ()
9209 sane_open ();
9211 return 0;
9213 _ACEOF
9214 rm -f conftest.$ac_objext conftest$ac_exeext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9216 (eval $ac_link) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -s conftest$ac_exeext'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9226 ac_cv_lib_sane_sane_open=yes
9227 else
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9231 ac_cv_lib_sane_sane_open=no
9233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9234 LIBS=$ac_check_lib_save_LIBS
9236 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9237 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9238 if test $ac_cv_lib_sane_sane_open = yes; then
9240 cat >>confdefs.h <<\_ACEOF
9241 #define HAVE_SANE 1
9242 _ACEOF
9244 else
9245 SANELIBS=""
9246 SANEINCL=""
9249 else
9250 SANELIBS=""
9251 SANEINCL=""
9255 LIBS="$ac_save_LIBS"
9256 CPPFLAGS="$ac_save_CPPFLAGS"
9261 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9262 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9263 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266 ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-lfreetype $X_LIBS $LIBS"
9268 cat >conftest.$ac_ext <<_ACEOF
9269 #line $LINENO "configure"
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9276 /* Override any gcc2 internal prototype to avoid an error. */
9277 #ifdef __cplusplus
9278 extern "C"
9279 #endif
9280 /* We use char because int might match the return type of a gcc2
9281 builtin and then its argument prototype would still apply. */
9282 char FT_Init_FreeType ();
9284 main ()
9286 FT_Init_FreeType ();
9288 return 0;
9290 _ACEOF
9291 rm -f conftest.$ac_objext conftest$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293 (eval $ac_link) 2>&5
9294 ac_status=$?
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -s conftest$ac_exeext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 (eval $ac_try) 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 ac_cv_lib_freetype_FT_Init_FreeType=yes
9304 else
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9308 ac_cv_lib_freetype_FT_Init_FreeType=no
9310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9313 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9314 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9315 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9316 ft_lib=yes
9317 else
9318 ft_lib=no
9321 if test "$ft_lib" = "no"
9322 then
9323 FREETYPEINCL=""
9324 wine_cv_msg_freetype=no
9325 else
9326 # Extract the first word of "freetype-config", so it can be a program name with args.
9327 set dummy freetype-config; ac_word=$2
9328 echo "$as_me:$LINENO: checking for $ac_word" >&5
9329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9330 if test "${ac_cv_prog_ft_devel+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333 if test -n "$ft_devel"; then
9334 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9335 else
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9343 ac_cv_prog_ft_devel="freetype-config"
9344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 break 2
9347 done
9348 done
9350 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9353 ft_devel=$ac_cv_prog_ft_devel
9354 if test -n "$ft_devel"; then
9355 echo "$as_me:$LINENO: result: $ft_devel" >&5
9356 echo "${ECHO_T}$ft_devel" >&6
9357 else
9358 echo "$as_me:$LINENO: result: no" >&5
9359 echo "${ECHO_T}no" >&6
9362 if test "$ft_devel" = "no"
9363 then
9364 # Extract the first word of "freetype2-config", so it can be a program name with args.
9365 set dummy freetype2-config; ac_word=$2
9366 echo "$as_me:$LINENO: checking for $ac_word" >&5
9367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9368 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371 if test -n "$ft_devel2"; then
9372 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9373 else
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375 for as_dir in $PATH
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9381 ac_cv_prog_ft_devel2="freetype2-config"
9382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9383 break 2
9385 done
9386 done
9388 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9391 ft_devel2=$ac_cv_prog_ft_devel2
9392 if test -n "$ft_devel2"; then
9393 echo "$as_me:$LINENO: result: $ft_devel2" >&5
9394 echo "${ECHO_T}$ft_devel2" >&6
9395 else
9396 echo "$as_me:$LINENO: result: no" >&5
9397 echo "${ECHO_T}no" >&6
9400 if test "$ft_devel2" = "freetype2-config"
9401 then
9402 ft_devel=$ft_devel2
9405 if test "$ft_devel" = "no"
9406 then
9407 FREETYPEINCL=""
9408 wine_cv_msg_freetype=yes
9409 else
9410 FREETYPEINCL=`$ft_devel --cflags`
9411 ac_save_CPPFLAGS="$CPPFLAGS"
9412 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9421 for ac_header in freetype/freetype.h \
9422 freetype/ftglyph.h \
9423 freetype/tttables.h \
9424 freetype/ftnames.h \
9425 freetype/ftsnames.h \
9426 freetype/ttnameid.h \
9427 freetype/ftoutln.h \
9428 freetype/internal/sfnt.h
9430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9432 echo "$as_me:$LINENO: checking for $ac_header" >&5
9433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9439 else
9440 # Is the header compilable?
9441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9443 cat >conftest.$ac_ext <<_ACEOF
9444 #line $LINENO "configure"
9445 /* confdefs.h. */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 $ac_includes_default
9451 #include <$ac_header>
9452 _ACEOF
9453 rm -f conftest.$ac_objext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9455 (eval $ac_compile) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_header_compiler=yes
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9470 ac_header_compiler=no
9472 rm -f conftest.$ac_objext conftest.$ac_ext
9473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9474 echo "${ECHO_T}$ac_header_compiler" >&6
9476 # Is the header present?
9477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9479 cat >conftest.$ac_ext <<_ACEOF
9480 #line $LINENO "configure"
9481 /* confdefs.h. */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 #include <$ac_header>
9487 _ACEOF
9488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } >/dev/null; then
9496 if test -s conftest.err; then
9497 ac_cpp_err=$ac_c_preproc_warn_flag
9498 else
9499 ac_cpp_err=
9501 else
9502 ac_cpp_err=yes
9504 if test -z "$ac_cpp_err"; then
9505 ac_header_preproc=yes
9506 else
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9510 ac_header_preproc=no
9512 rm -f conftest.err conftest.$ac_ext
9513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9514 echo "${ECHO_T}$ac_header_preproc" >&6
9516 # So? What about this header?
9517 case $ac_header_compiler:$ac_header_preproc in
9518 yes:no )
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9524 cat <<\_ASBOX
9525 ## ------------------------------------ ##
9526 ## Report this to bug-autoconf@gnu.org. ##
9527 ## ------------------------------------ ##
9528 _ASBOX
9530 sed "s/^/$as_me: WARNING: /" >&2
9532 no:yes )
9533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9540 cat <<\_ASBOX
9541 ## ------------------------------------ ##
9542 ## Report this to bug-autoconf@gnu.org. ##
9543 ## ------------------------------------ ##
9544 _ASBOX
9546 sed "s/^/$as_me: WARNING: /" >&2
9548 esac
9549 echo "$as_me:$LINENO: checking for $ac_header" >&5
9550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554 eval "$as_ac_Header=$ac_header_preproc"
9556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9561 cat >>confdefs.h <<_ACEOF
9562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9563 _ACEOF
9567 done
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 /* confdefs.h. */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 #include <ft2build.h>
9577 #include <freetype/fttrigon.h>
9578 _ACEOF
9579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9581 ac_status=$?
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } >/dev/null; then
9587 if test -s conftest.err; then
9588 ac_cpp_err=$ac_c_preproc_warn_flag
9589 else
9590 ac_cpp_err=
9592 else
9593 ac_cpp_err=yes
9595 if test -z "$ac_cpp_err"; then
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_FREETYPE_FTTRIGON_H 1
9599 _ACEOF
9601 wine_cv_fttrigon=yes
9602 else
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 wine_cv_fttrigon=no
9608 rm -f conftest.err conftest.$ac_ext
9609 CPPFLAGS="$ac_save_CPPFLAGS"
9610 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9611 then
9613 cat >>confdefs.h <<\_ACEOF
9614 #define HAVE_FREETYPE 1
9615 _ACEOF
9617 wine_cv_msg_freetype=no
9618 else
9619 FREETYPEINCL=""
9620 wine_cv_msg_freetype=yes
9626 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9627 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9628 if test "${ac_cv_c_ppdev+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631 cat >conftest.$ac_ext <<_ACEOF
9632 #line $LINENO "configure"
9633 /* confdefs.h. */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9638 #include <linux/ppdev.h>
9640 main ()
9642 ioctl (1,PPCLAIM,0)
9644 return 0;
9646 _ACEOF
9647 rm -f conftest.$ac_objext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9649 (eval $ac_compile) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } &&
9653 { ac_try='test -s conftest.$ac_objext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 (eval $ac_try) 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_c_ppdev="yes"
9660 else
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_cv_c_ppdev="no"
9666 rm -f conftest.$ac_objext conftest.$ac_ext
9669 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9670 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9671 if test "$ac_cv_c_ppdev" = "yes"
9672 then
9674 cat >>confdefs.h <<\_ACEOF
9675 #define HAVE_PPDEV 1
9676 _ACEOF
9680 echo "$as_me:$LINENO: checking for va_copy" >&5
9681 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9682 if test "${ac_cv_c_va_copy+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685 cat >conftest.$ac_ext <<_ACEOF
9686 #line $LINENO "configure"
9687 /* confdefs.h. */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9692 #include <stdarg.h>
9694 main ()
9696 va_list ap1, ap2;
9697 va_copy(ap1,ap2);
9700 return 0;
9702 _ACEOF
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9705 (eval $ac_link) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -s conftest$ac_exeext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 ac_cv_c_va_copy="yes"
9716 else
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 ac_cv_c_va_copy="no"
9722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9725 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9726 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9727 if test "$ac_cv_c_va_copy" = "yes"
9728 then
9730 cat >>confdefs.h <<\_ACEOF
9731 #define HAVE_VA_COPY 1
9732 _ACEOF
9735 echo "$as_me:$LINENO: checking for __va_copy" >&5
9736 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9737 if test "${ac_cv_c___va_copy+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 else
9740 cat >conftest.$ac_ext <<_ACEOF
9741 #line $LINENO "configure"
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 #include <stdarg.h>
9749 main ()
9751 va_list ap1, ap2;
9752 __va_copy(ap1,ap2);
9755 return 0;
9757 _ACEOF
9758 rm -f conftest.$ac_objext conftest$ac_exeext
9759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760 (eval $ac_link) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } &&
9764 { ac_try='test -s conftest$ac_exeext'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; }; then
9770 ac_cv_c___va_copy="yes"
9771 else
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9775 ac_cv_c___va_copy="no"
9777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9780 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9781 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9782 if test "$ac_cv_c___va_copy" = "yes"
9783 then
9785 cat >>confdefs.h <<\_ACEOF
9786 #define HAVE___VA_COPY 1
9787 _ACEOF
9794 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9798 echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9805 else
9806 # Is the header compilable?
9807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9809 cat >conftest.$ac_ext <<_ACEOF
9810 #line $LINENO "configure"
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 $ac_includes_default
9817 #include <$ac_header>
9818 _ACEOF
9819 rm -f conftest.$ac_objext
9820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9821 (eval $ac_compile) 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -s conftest.$ac_objext'
9826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 (eval $ac_try) 2>&5
9828 ac_status=$?
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; }; then
9831 ac_header_compiler=yes
9832 else
9833 echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9836 ac_header_compiler=no
9838 rm -f conftest.$ac_objext conftest.$ac_ext
9839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9840 echo "${ECHO_T}$ac_header_compiler" >&6
9842 # Is the header present?
9843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9845 cat >conftest.$ac_ext <<_ACEOF
9846 #line $LINENO "configure"
9847 /* confdefs.h. */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9852 #include <$ac_header>
9853 _ACEOF
9854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } >/dev/null; then
9862 if test -s conftest.err; then
9863 ac_cpp_err=$ac_c_preproc_warn_flag
9864 else
9865 ac_cpp_err=
9867 else
9868 ac_cpp_err=yes
9870 if test -z "$ac_cpp_err"; then
9871 ac_header_preproc=yes
9872 else
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9876 ac_header_preproc=no
9878 rm -f conftest.err conftest.$ac_ext
9879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9880 echo "${ECHO_T}$ac_header_preproc" >&6
9882 # So? What about this header?
9883 case $ac_header_compiler:$ac_header_preproc in
9884 yes:no )
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9890 cat <<\_ASBOX
9891 ## ------------------------------------ ##
9892 ## Report this to bug-autoconf@gnu.org. ##
9893 ## ------------------------------------ ##
9894 _ASBOX
9896 sed "s/^/$as_me: WARNING: /" >&2
9898 no:yes )
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9906 cat <<\_ASBOX
9907 ## ------------------------------------ ##
9908 ## Report this to bug-autoconf@gnu.org. ##
9909 ## ------------------------------------ ##
9910 _ASBOX
9912 sed "s/^/$as_me: WARNING: /" >&2
9914 esac
9915 echo "$as_me:$LINENO: checking for $ac_header" >&5
9916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920 eval "$as_ac_Header=$ac_header_preproc"
9922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9927 cat >>confdefs.h <<_ACEOF
9928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9929 _ACEOF
9930 break
9933 done
9936 echo "$as_me:$LINENO: checking for Open Sound System" >&5
9937 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9938 if test "${ac_cv_c_opensoundsystem+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941 cat >conftest.$ac_ext <<_ACEOF
9942 #line $LINENO "configure"
9943 /* confdefs.h. */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 #if defined(HAVE_SYS_SOUNDCARD_H)
9950 #include <sys/soundcard.h>
9951 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9952 #include <machine/soundcard.h>
9953 #elif defined(HAVE_SOUNDCARD_H)
9954 #include <soundcard.h>
9955 #endif
9958 main ()
9962 /* check for one of the Open Sound System specific SNDCTL_ defines */
9963 #if !defined(SNDCTL_DSP_STEREO)
9964 #error No open sound system
9965 #endif
9968 return 0;
9970 _ACEOF
9971 rm -f conftest.$ac_objext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9973 (eval $ac_compile) 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -s conftest.$ac_objext'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 ac_cv_c_opensoundsystem="yes"
9984 else
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 ac_cv_c_opensoundsystem="no"
9990 rm -f conftest.$ac_objext conftest.$ac_ext
9992 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
9993 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
9995 if test "$ac_cv_c_opensoundsystem" = "yes"
9996 then
9998 cat >>confdefs.h <<\_ACEOF
9999 #define HAVE_OSS 1
10000 _ACEOF
10004 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10005 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10006 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009 cat >conftest.$ac_ext <<_ACEOF
10010 #line $LINENO "configure"
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10017 #if defined(HAVE_SYS_SOUNDCARD_H)
10018 #include <sys/soundcard.h>
10019 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10020 #include <machine/soundcard.h>
10021 #elif defined(HAVE_SOUNDCARD_H)
10022 #include <soundcard.h>
10023 #endif
10026 main ()
10030 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10031 #if !defined(SNDCTL_SEQ_SYNC)
10032 #error No open sound system MIDI interface
10033 #endif
10036 return 0;
10038 _ACEOF
10039 rm -f conftest.$ac_objext
10040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -s conftest.$ac_objext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 ac_cv_c_opensoundsystem_midi="yes"
10052 else
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_cv_c_opensoundsystem_midi="no"
10058 rm -f conftest.$ac_objext conftest.$ac_ext
10060 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10061 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10063 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10064 then
10066 cat >>confdefs.h <<\_ACEOF
10067 #define HAVE_OSS_MIDI 1
10068 _ACEOF
10072 # Extract the first word of "artsc-config", so it can be a program name with args.
10073 set dummy artsc-config; ac_word=$2
10074 echo "$as_me:$LINENO: checking for $ac_word" >&5
10075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10076 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079 case $ARTSCCONFIG in
10080 [\\/]* | ?:[\\/]*)
10081 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10091 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 break 2
10095 done
10096 done
10099 esac
10101 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10103 if test -n "$ARTSCCONFIG"; then
10104 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10105 echo "${ECHO_T}$ARTSCCONFIG" >&6
10106 else
10107 echo "$as_me:$LINENO: result: no" >&5
10108 echo "${ECHO_T}no" >&6
10111 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
10112 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10113 if test "${ac_cv_c_artsserver+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10117 then
10118 ac_cv_c_artsserver=no
10119 else
10120 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10121 ARTSC_LIBS=`$ARTSCCONFIG --libs`
10122 ac_cv_c_artsserver=no
10123 save_CFLAGS="$CFLAGS"
10124 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10125 cat >conftest.$ac_ext <<_ACEOF
10126 #line $LINENO "configure"
10127 /* confdefs.h. */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10133 #include <artsc.h>
10136 main ()
10139 arts_stream_t stream;
10142 return 0;
10144 _ACEOF
10145 rm -f conftest.$ac_objext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10147 (eval $ac_compile) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -s conftest.$ac_objext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10158 ac_cv_c_artsserver=yes
10160 else
10161 echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10165 rm -f conftest.$ac_objext conftest.$ac_ext
10166 CFLAGS="$save_CFLAGS"
10169 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10170 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10172 if test "$ac_cv_c_artsserver" = "yes"
10173 then
10174 ARTSLIBS=$ARTSC_LIBS
10176 ARTSINCL=$ARTSC_CFLAGS
10180 cat >>confdefs.h <<\_ACEOF
10181 #define HAVE_ARTS 1
10182 _ACEOF
10186 ALSALIBS=""
10190 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10194 echo "$as_me:$LINENO: checking for $ac_header" >&5
10195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10201 else
10202 # Is the header compilable?
10203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10205 cat >conftest.$ac_ext <<_ACEOF
10206 #line $LINENO "configure"
10207 /* confdefs.h. */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212 $ac_includes_default
10213 #include <$ac_header>
10214 _ACEOF
10215 rm -f conftest.$ac_objext
10216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10217 (eval $ac_compile) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -s conftest.$ac_objext'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_header_compiler=yes
10228 else
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10232 ac_header_compiler=no
10234 rm -f conftest.$ac_objext conftest.$ac_ext
10235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10236 echo "${ECHO_T}$ac_header_compiler" >&6
10238 # Is the header present?
10239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10241 cat >conftest.$ac_ext <<_ACEOF
10242 #line $LINENO "configure"
10243 /* confdefs.h. */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 #include <$ac_header>
10249 _ACEOF
10250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10252 ac_status=$?
10253 grep -v '^ *+' conftest.er1 >conftest.err
10254 rm -f conftest.er1
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } >/dev/null; then
10258 if test -s conftest.err; then
10259 ac_cpp_err=$ac_c_preproc_warn_flag
10260 else
10261 ac_cpp_err=
10263 else
10264 ac_cpp_err=yes
10266 if test -z "$ac_cpp_err"; then
10267 ac_header_preproc=yes
10268 else
10269 echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10272 ac_header_preproc=no
10274 rm -f conftest.err conftest.$ac_ext
10275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10276 echo "${ECHO_T}$ac_header_preproc" >&6
10278 # So? What about this header?
10279 case $ac_header_compiler:$ac_header_preproc in
10280 yes:no )
10281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10286 cat <<\_ASBOX
10287 ## ------------------------------------ ##
10288 ## Report this to bug-autoconf@gnu.org. ##
10289 ## ------------------------------------ ##
10290 _ASBOX
10292 sed "s/^/$as_me: WARNING: /" >&2
10294 no:yes )
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10302 cat <<\_ASBOX
10303 ## ------------------------------------ ##
10304 ## Report this to bug-autoconf@gnu.org. ##
10305 ## ------------------------------------ ##
10306 _ASBOX
10308 sed "s/^/$as_me: WARNING: /" >&2
10310 esac
10311 echo "$as_me:$LINENO: checking for $ac_header" >&5
10312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 else
10316 eval "$as_ac_Header=$ac_header_preproc"
10318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10323 cat >>confdefs.h <<_ACEOF
10324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10325 _ACEOF
10326 break
10329 done
10331 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10332 then
10333 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10334 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10335 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338 ac_check_lib_save_LIBS=$LIBS
10339 LIBS="-lasound $LIBS"
10340 cat >conftest.$ac_ext <<_ACEOF
10341 #line $LINENO "configure"
10342 /* confdefs.h. */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10348 /* Override any gcc2 internal prototype to avoid an error. */
10349 #ifdef __cplusplus
10350 extern "C"
10351 #endif
10352 /* We use char because int might match the return type of a gcc2
10353 builtin and then its argument prototype would still apply. */
10354 char snd_pcm_open ();
10356 main ()
10358 snd_pcm_open ();
10360 return 0;
10362 _ACEOF
10363 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365 (eval $ac_link) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } &&
10369 { ac_try='test -s conftest$ac_exeext'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10375 ac_cv_lib_asound_snd_pcm_open=yes
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_cv_lib_asound_snd_pcm_open=no
10382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10383 LIBS=$ac_check_lib_save_LIBS
10385 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10386 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10387 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10389 cat >>confdefs.h <<\_ACEOF
10390 #define HAVE_ALSA 1
10391 _ACEOF
10393 ALSALIBS="-lasound"
10399 AUDIOIOLIBS=""
10402 for ac_header in libaudioio.h
10404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10406 echo "$as_me:$LINENO: checking for $ac_header" >&5
10407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10413 else
10414 # Is the header compilable?
10415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10417 cat >conftest.$ac_ext <<_ACEOF
10418 #line $LINENO "configure"
10419 /* confdefs.h. */
10420 _ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10424 $ac_includes_default
10425 #include <$ac_header>
10426 _ACEOF
10427 rm -f conftest.$ac_objext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10429 (eval $ac_compile) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -s conftest.$ac_objext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_header_compiler=yes
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ac_header_compiler=no
10446 rm -f conftest.$ac_objext conftest.$ac_ext
10447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10448 echo "${ECHO_T}$ac_header_compiler" >&6
10450 # Is the header present?
10451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10453 cat >conftest.$ac_ext <<_ACEOF
10454 #line $LINENO "configure"
10455 /* confdefs.h. */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 #include <$ac_header>
10461 _ACEOF
10462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } >/dev/null; then
10470 if test -s conftest.err; then
10471 ac_cpp_err=$ac_c_preproc_warn_flag
10472 else
10473 ac_cpp_err=
10475 else
10476 ac_cpp_err=yes
10478 if test -z "$ac_cpp_err"; then
10479 ac_header_preproc=yes
10480 else
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10484 ac_header_preproc=no
10486 rm -f conftest.err conftest.$ac_ext
10487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10488 echo "${ECHO_T}$ac_header_preproc" >&6
10490 # So? What about this header?
10491 case $ac_header_compiler:$ac_header_preproc in
10492 yes:no )
10493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10498 cat <<\_ASBOX
10499 ## ------------------------------------ ##
10500 ## Report this to bug-autoconf@gnu.org. ##
10501 ## ------------------------------------ ##
10502 _ASBOX
10504 sed "s/^/$as_me: WARNING: /" >&2
10506 no:yes )
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10514 cat <<\_ASBOX
10515 ## ------------------------------------ ##
10516 ## Report this to bug-autoconf@gnu.org. ##
10517 ## ------------------------------------ ##
10518 _ASBOX
10520 sed "s/^/$as_me: WARNING: /" >&2
10522 esac
10523 echo "$as_me:$LINENO: checking for $ac_header" >&5
10524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528 eval "$as_ac_Header=$ac_header_preproc"
10530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10535 cat >>confdefs.h <<_ACEOF
10536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10537 _ACEOF
10538 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10539 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10540 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 else
10543 ac_check_lib_save_LIBS=$LIBS
10544 LIBS="-laudioio $LIBS"
10545 cat >conftest.$ac_ext <<_ACEOF
10546 #line $LINENO "configure"
10547 /* confdefs.h. */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10553 /* Override any gcc2 internal prototype to avoid an error. */
10554 #ifdef __cplusplus
10555 extern "C"
10556 #endif
10557 /* We use char because int might match the return type of a gcc2
10558 builtin and then its argument prototype would still apply. */
10559 char AudioIOGetVersion ();
10561 main ()
10563 AudioIOGetVersion ();
10565 return 0;
10567 _ACEOF
10568 rm -f conftest.$ac_objext conftest$ac_exeext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570 (eval $ac_link) 2>&5
10571 ac_status=$?
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -s conftest$ac_exeext'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; }; then
10580 ac_cv_lib_audioio_AudioIOGetVersion=yes
10581 else
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 ac_cv_lib_audioio_AudioIOGetVersion=no
10587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10590 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10591 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10592 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10593 AUDIOIOLIBS="-laudioio"
10595 cat >>confdefs.h <<\_ACEOF
10596 #define HAVE_LIBAUDIOIO 1
10597 _ACEOF
10603 done
10607 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
10608 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10609 if test "${ac_cv_mmap64_works+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 if test "$cross_compiling" = yes; then
10613 ac_cv_mmap64_works="no"
10614 else
10615 cat >conftest.$ac_ext <<_ACEOF
10616 #line $LINENO "configure"
10617 /* confdefs.h. */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10623 #define _FILE_OFFSET_BITS 64
10624 #include <stdio.h>
10625 #include <unistd.h>
10626 #include <fcntl.h>
10627 #include <sys/mman.h>
10628 #include <errno.h>
10630 int main(int argc,char **argv) {
10631 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10632 if (fd == -1) exit(1);
10634 unlink("conftest.map");
10636 write(fd,"test",4);
10638 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10639 (errno == EINVAL)
10641 exit(1);
10643 close(fd);
10644 fprintf(stderr,"success!\n");
10645 exit(0);
10649 _ACEOF
10650 rm -f conftest$ac_exeext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10652 (eval $ac_link) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; }; then
10661 ac_cv_mmap64_works="yes"
10662 else
10663 echo "$as_me: program exited with status $ac_status" >&5
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 ( exit $ac_status )
10668 ac_cv_mmap64_works="no"
10670 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10673 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
10674 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
10676 if test "$ac_cv_mmap64_works" = "yes"
10677 then
10679 cat >>confdefs.h <<\_ACEOF
10680 #define _FILE_OFFSET_BITS 64
10681 _ACEOF
10686 if test "x${GCC}" = "xyes"
10687 then
10688 CFLAGS="$CFLAGS -Wall"
10690 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
10691 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10692 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 else
10695 if test "$cross_compiling" = yes; then
10696 ac_cv_c_gcc_strength_bug="yes"
10697 else
10698 cat >conftest.$ac_ext <<_ACEOF
10699 #line $LINENO "configure"
10700 /* confdefs.h. */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10706 int L[4] = {0,1,2,3};
10707 int main(void) {
10708 static int Array[3];
10709 unsigned int B = 3;
10710 int i;
10711 for(i=0; i<B; i++) Array[i] = i - 3;
10712 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10713 L[i] = 4;
10715 exit( Array[1] != -2 || L[2] != 3);
10717 _ACEOF
10718 rm -f conftest$ac_exeext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10720 (eval $ac_link) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 ac_cv_c_gcc_strength_bug="no"
10730 else
10731 echo "$as_me: program exited with status $ac_status" >&5
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 ( exit $ac_status )
10736 ac_cv_c_gcc_strength_bug="yes"
10738 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10741 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
10742 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
10743 if test "$ac_cv_c_gcc_strength_bug" = "yes"
10744 then
10745 CFLAGS="$CFLAGS -fno-strength-reduce"
10748 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
10749 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10750 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753 ac_wine_try_cflags_saved=$CFLAGS
10754 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10755 cat >conftest.$ac_ext <<_ACEOF
10756 #line $LINENO "configure"
10757 /* confdefs.h. */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10764 main ()
10768 return 0;
10770 _ACEOF
10771 rm -f conftest.$ac_objext conftest$ac_exeext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10773 (eval $ac_link) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
10777 { ac_try='test -s conftest$ac_exeext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 ac_cv_c_gcc_stack_boundary="yes"
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 ac_cv_c_gcc_stack_boundary="no"
10790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10791 CFLAGS=$ac_wine_try_cflags_saved
10793 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
10794 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
10795 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10796 then
10797 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10800 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
10801 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
10802 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805 ac_wine_try_cflags_saved=$CFLAGS
10806 CFLAGS="$CFLAGS -gstabs+"
10807 cat >conftest.$ac_ext <<_ACEOF
10808 #line $LINENO "configure"
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10816 main ()
10820 return 0;
10822 _ACEOF
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10825 (eval $ac_link) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -s conftest$ac_exeext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 ac_cv_c_gcc_gstabs="yes"
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 ac_cv_c_gcc_gstabs="no"
10842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10843 CFLAGS=$ac_wine_try_cflags_saved
10845 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
10846 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
10847 if test "$ac_cv_c_gcc_gstabs" = "yes"
10848 then
10849 CFLAGS="$CFLAGS -gstabs+"
10852 saved_CFLAGS="$CFLAGS"
10853 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
10854 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
10855 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
10856 if test "${ac_cv_c_string_h_warnings+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859 cat >conftest.$ac_ext <<_ACEOF
10860 #line $LINENO "configure"
10861 /* confdefs.h. */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 #include <string.h>
10868 main ()
10872 return 0;
10874 _ACEOF
10875 rm -f conftest.$ac_objext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10877 (eval $ac_compile) 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } &&
10881 { ac_try='test -s conftest.$ac_objext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 ac_cv_c_string_h_warnings=no
10888 else
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 ac_cv_c_string_h_warnings=yes
10894 rm -f conftest.$ac_objext conftest.$ac_ext
10896 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
10897 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
10898 CFLAGS="$saved_CFLAGS"
10899 if test "$ac_cv_c_string_h_warnings" = "no"
10900 then
10901 CFLAGS="$CFLAGS -Wpointer-arith"
10906 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
10907 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
10908 if test "${ac_cv_asm_func_def+set}" = set; then
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10910 else
10911 cat >conftest.$ac_ext <<_ACEOF
10912 #line $LINENO "configure"
10913 /* confdefs.h. */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10918 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"); }
10921 main ()
10925 return 0;
10927 _ACEOF
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10930 (eval $ac_link) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -s conftest$ac_exeext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_cv_asm_func_def=".def"
10941 else
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 cat >conftest.$ac_ext <<_ACEOF
10946 #line $LINENO "configure"
10947 /* confdefs.h. */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10952 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
10955 main ()
10959 return 0;
10961 _ACEOF
10962 rm -f conftest.$ac_objext 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); } &&
10968 { ac_try='test -s conftest$ac_exeext'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
10974 ac_cv_asm_func_def=".type @function"
10975 else
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10979 cat >conftest.$ac_ext <<_ACEOF
10980 #line $LINENO "configure"
10981 /* confdefs.h. */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
10989 main ()
10993 return 0;
10995 _ACEOF
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10998 (eval $ac_link) 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } &&
11002 { ac_try='test -s conftest$ac_exeext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 ac_cv_asm_func_def=".type 2"
11009 else
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 ac_cv_asm_func_def="unknown"
11015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11021 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11022 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11026 case "$ac_cv_asm_func_def" in
11027 ".def")
11028 cat >>confdefs.h <<\_ACEOF
11029 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11030 _ACEOF
11032 ".type @function")
11033 cat >>confdefs.h <<\_ACEOF
11034 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11035 _ACEOF
11037 ".type 2")
11038 cat >>confdefs.h <<\_ACEOF
11039 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11040 _ACEOF
11043 cat >>confdefs.h <<\_ACEOF
11044 #define __ASM_FUNC(name) ""
11045 _ACEOF
11047 esac
11050 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11051 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11052 if test "${ac_cv_c_extern_prefix+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055 cat >conftest.$ac_ext <<_ACEOF
11056 #line $LINENO "configure"
11057 /* confdefs.h. */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11062 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11063 extern int ac_test;
11065 main ()
11067 if (ac_test) return 1
11069 return 0;
11071 _ACEOF
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074 (eval $ac_link) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try='test -s conftest$ac_exeext'
11079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11081 ac_status=$?
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; }; then
11084 ac_cv_c_extern_prefix="yes"
11085 else
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 ac_cv_c_extern_prefix="no"
11091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11093 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11094 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11098 if test "$ac_cv_c_extern_prefix" = "yes"
11099 then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define __ASM_NAME(name) "_" name
11102 _ACEOF
11104 else
11105 cat >>confdefs.h <<\_ACEOF
11106 #define __ASM_NAME(name) name
11107 _ACEOF
11112 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11113 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11114 if test "${ac_cv_c_asm_string+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 else
11117 cat >conftest.$ac_ext <<_ACEOF
11118 #line $LINENO "configure"
11119 /* confdefs.h. */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
11127 main ()
11131 return 0;
11133 _ACEOF
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>&5
11137 ac_status=$?
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } &&
11140 { ac_try='test -s conftest$ac_exeext'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 ac_cv_c_asm_string="yes"
11147 else
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 ac_cv_c_asm_string="no"
11153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11155 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11156 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11157 if test "$ac_cv_c_asm_string" = "yes"
11158 then
11160 cat >>confdefs.h <<\_ACEOF
11161 #define __ASM_STRING ".string"
11162 _ACEOF
11164 else
11165 echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11166 echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11167 if test "${ac_cv_c_asm_asciz+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170 cat >conftest.$ac_ext <<_ACEOF
11171 #line $LINENO "configure"
11172 /* confdefs.h. */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11180 main ()
11184 return 0;
11186 _ACEOF
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189 (eval $ac_link) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } &&
11193 { ac_try='test -s conftest$ac_exeext'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
11199 ac_cv_c_asm_asciz="yes"
11200 else
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11204 ac_cv_c_asm_asciz="no"
11206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11208 echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11209 echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11210 if test "$ac_cv_c_asm_asciz" = "yes"
11211 then
11212 cat >>confdefs.h <<\_ACEOF
11213 #define __ASM_STRING ".asciz"
11214 _ACEOF
11216 else
11217 cat >>confdefs.h <<\_ACEOF
11218 #define __ASM_STRING ".ascii"
11219 _ACEOF
11225 echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11226 echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11227 if test "${ac_cv_c_asm_short+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230 cat >conftest.$ac_ext <<_ACEOF
11231 #line $LINENO "configure"
11232 /* confdefs.h. */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11240 main ()
11244 return 0;
11246 _ACEOF
11247 rm -f conftest.$ac_objext conftest$ac_exeext
11248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11249 (eval $ac_link) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try='test -s conftest$ac_exeext'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11256 ac_status=$?
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; }; then
11259 ac_cv_c_asm_short="yes"
11260 else
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11264 ac_cv_c_asm_short="no"
11266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11268 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11269 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11270 if test "$ac_cv_c_asm_short" = "yes"
11271 then
11273 cat >>confdefs.h <<\_ACEOF
11274 #define __ASM_SHORT ".short"
11275 _ACEOF
11277 else
11278 cat >>confdefs.h <<\_ACEOF
11279 #define __ASM_SHORT ".half"
11280 _ACEOF
11285 DLLEXT=""
11287 DLLFLAGS=""
11289 DLLIBS=""
11291 LDDLLFLAGS=""
11293 LDSHARED=""
11295 LIBEXT="so"
11297 IMPLIBEXT="def"
11300 case $host_os in
11301 cygwin*|mingw32*)
11302 if test -n "$ac_tool_prefix"; then
11303 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11304 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11305 echo "$as_me:$LINENO: checking for $ac_word" >&5
11306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11307 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310 if test -n "$DLLTOOL"; then
11311 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11312 else
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11320 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 break 2
11324 done
11325 done
11329 DLLTOOL=$ac_cv_prog_DLLTOOL
11330 if test -n "$DLLTOOL"; then
11331 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11332 echo "${ECHO_T}$DLLTOOL" >&6
11333 else
11334 echo "$as_me:$LINENO: result: no" >&5
11335 echo "${ECHO_T}no" >&6
11339 if test -z "$ac_cv_prog_DLLTOOL"; then
11340 ac_ct_DLLTOOL=$DLLTOOL
11341 # Extract the first word of "dlltool", so it can be a program name with args.
11342 set dummy dlltool; ac_word=$2
11343 echo "$as_me:$LINENO: checking for $ac_word" >&5
11344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11345 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348 if test -n "$ac_ct_DLLTOOL"; then
11349 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11350 else
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11362 done
11363 done
11365 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11368 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11369 if test -n "$ac_ct_DLLTOOL"; then
11370 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11371 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11372 else
11373 echo "$as_me:$LINENO: result: no" >&5
11374 echo "${ECHO_T}no" >&6
11377 DLLTOOL=$ac_ct_DLLTOOL
11378 else
11379 DLLTOOL="$ac_cv_prog_DLLTOOL"
11382 if test -n "$ac_tool_prefix"; then
11383 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11384 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11385 echo "$as_me:$LINENO: checking for $ac_word" >&5
11386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11387 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390 if test -n "$DLLWRAP"; then
11391 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11392 else
11393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394 for as_dir in $PATH
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11400 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 break 2
11404 done
11405 done
11409 DLLWRAP=$ac_cv_prog_DLLWRAP
11410 if test -n "$DLLWRAP"; then
11411 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11412 echo "${ECHO_T}$DLLWRAP" >&6
11413 else
11414 echo "$as_me:$LINENO: result: no" >&5
11415 echo "${ECHO_T}no" >&6
11419 if test -z "$ac_cv_prog_DLLWRAP"; then
11420 ac_ct_DLLWRAP=$DLLWRAP
11421 # Extract the first word of "dllwrap", so it can be a program name with args.
11422 set dummy dllwrap; ac_word=$2
11423 echo "$as_me:$LINENO: checking for $ac_word" >&5
11424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11425 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428 if test -n "$ac_ct_DLLWRAP"; then
11429 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11430 else
11431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $PATH
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11438 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 break 2
11442 done
11443 done
11445 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11448 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11449 if test -n "$ac_ct_DLLWRAP"; then
11450 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11451 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11452 else
11453 echo "$as_me:$LINENO: result: no" >&5
11454 echo "${ECHO_T}no" >&6
11457 DLLWRAP=$ac_ct_DLLWRAP
11458 else
11459 DLLWRAP="$ac_cv_prog_DLLWRAP"
11462 if test "$DLLWRAP" = "false"; then
11463 LIBEXT="a"
11464 else
11465 LIBEXT="dll"
11467 IMPLIBEXT="a"
11471 for ac_header in dlfcn.h
11473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11475 echo "$as_me:$LINENO: checking for $ac_header" >&5
11476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11482 else
11483 # Is the header compilable?
11484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11486 cat >conftest.$ac_ext <<_ACEOF
11487 #line $LINENO "configure"
11488 /* confdefs.h. */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 $ac_includes_default
11494 #include <$ac_header>
11495 _ACEOF
11496 rm -f conftest.$ac_objext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11498 (eval $ac_compile) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } &&
11502 { ac_try='test -s conftest.$ac_objext'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 ac_header_compiler=yes
11509 else
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ac_header_compiler=no
11515 rm -f conftest.$ac_objext conftest.$ac_ext
11516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11517 echo "${ECHO_T}$ac_header_compiler" >&6
11519 # Is the header present?
11520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11522 cat >conftest.$ac_ext <<_ACEOF
11523 #line $LINENO "configure"
11524 /* confdefs.h. */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 #include <$ac_header>
11530 _ACEOF
11531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } >/dev/null; then
11539 if test -s conftest.err; then
11540 ac_cpp_err=$ac_c_preproc_warn_flag
11541 else
11542 ac_cpp_err=
11544 else
11545 ac_cpp_err=yes
11547 if test -z "$ac_cpp_err"; then
11548 ac_header_preproc=yes
11549 else
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 ac_header_preproc=no
11555 rm -f conftest.err conftest.$ac_ext
11556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11557 echo "${ECHO_T}$ac_header_preproc" >&6
11559 # So? What about this header?
11560 case $ac_header_compiler:$ac_header_preproc in
11561 yes:no )
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11567 cat <<\_ASBOX
11568 ## ------------------------------------ ##
11569 ## Report this to bug-autoconf@gnu.org. ##
11570 ## ------------------------------------ ##
11571 _ASBOX
11573 sed "s/^/$as_me: WARNING: /" >&2
11575 no:yes )
11576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11583 cat <<\_ASBOX
11584 ## ------------------------------------ ##
11585 ## Report this to bug-autoconf@gnu.org. ##
11586 ## ------------------------------------ ##
11587 _ASBOX
11589 sed "s/^/$as_me: WARNING: /" >&2
11591 esac
11592 echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597 eval "$as_ac_Header=$ac_header_preproc"
11599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11604 cat >>confdefs.h <<_ACEOF
11605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11606 _ACEOF
11608 for ac_func in dlopen
11610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11611 echo "$as_me:$LINENO: checking for $ac_func" >&5
11612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11613 if eval "test \"\${$as_ac_var+set}\" = set"; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616 cat >conftest.$ac_ext <<_ACEOF
11617 #line $LINENO "configure"
11618 /* confdefs.h. */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11623 /* System header to define __stub macros and hopefully few prototypes,
11624 which can conflict with char $ac_func (); below.
11625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11626 <limits.h> exists even on freestanding compilers. */
11627 #ifdef __STDC__
11628 # include <limits.h>
11629 #else
11630 # include <assert.h>
11631 #endif
11632 /* Override any gcc2 internal prototype to avoid an error. */
11633 #ifdef __cplusplus
11634 extern "C"
11636 #endif
11637 /* We use char because int might match the return type of a gcc2
11638 builtin and then its argument prototype would still apply. */
11639 char $ac_func ();
11640 /* The GNU C library defines this for functions which it implements
11641 to always fail with ENOSYS. Some functions are actually named
11642 something starting with __ and the normal name is an alias. */
11643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11644 choke me
11645 #else
11646 char (*f) () = $ac_func;
11647 #endif
11648 #ifdef __cplusplus
11650 #endif
11653 main ()
11655 return f != $ac_func;
11657 return 0;
11659 _ACEOF
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11662 (eval $ac_link) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -s conftest$ac_exeext'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 eval "$as_ac_var=yes"
11673 else
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 eval "$as_ac_var=no"
11679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11683 if test `eval echo '${'$as_ac_var'}'` = yes; then
11684 cat >>confdefs.h <<_ACEOF
11685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11686 _ACEOF
11688 else
11689 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11690 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11691 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694 ac_check_lib_save_LIBS=$LIBS
11695 LIBS="-ldl $LIBS"
11696 cat >conftest.$ac_ext <<_ACEOF
11697 #line $LINENO "configure"
11698 /* confdefs.h. */
11699 _ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h. */
11704 /* Override any gcc2 internal prototype to avoid an error. */
11705 #ifdef __cplusplus
11706 extern "C"
11707 #endif
11708 /* We use char because int might match the return type of a gcc2
11709 builtin and then its argument prototype would still apply. */
11710 char dlopen ();
11712 main ()
11714 dlopen ();
11716 return 0;
11718 _ACEOF
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } &&
11725 { ac_try='test -s conftest$ac_exeext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_cv_lib_dl_dlopen=yes
11732 else
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 ac_cv_lib_dl_dlopen=no
11738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11739 LIBS=$ac_check_lib_save_LIBS
11741 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11742 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11743 if test $ac_cv_lib_dl_dlopen = yes; then
11745 cat >>confdefs.h <<\_ACEOF
11746 #define HAVE_DLOPEN 1
11747 _ACEOF
11749 DLLIBS="-ldl"
11750 else
11751 LIBEXT="a"
11755 done
11757 else
11758 LIBEXT="a"
11761 done
11764 if test "$LIBEXT" = "so"
11765 then
11766 DLLFLAGS="-fPIC"
11767 DLLEXT=".so"
11768 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
11769 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11770 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 else
11773 ac_wine_try_cflags_saved=$CFLAGS
11774 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11775 cat >conftest.$ac_ext <<_ACEOF
11776 #line $LINENO "configure"
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11784 main ()
11788 return 0;
11790 _ACEOF
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11793 (eval $ac_link) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try='test -s conftest$ac_exeext'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
11803 ac_cv_c_dll_gnuelf="yes"
11804 else
11805 echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11808 ac_cv_c_dll_gnuelf="no"
11810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11811 CFLAGS=$ac_wine_try_cflags_saved
11813 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
11814 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
11815 if test "$ac_cv_c_dll_gnuelf" = "yes"
11816 then
11817 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
11818 LDDLLFLAGS="-Wl,-Bsymbolic"
11819 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
11820 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
11821 if test "${ac_cv_c_dll_zdefs+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11824 ac_wine_try_cflags_saved=$CFLAGS
11825 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
11826 cat >conftest.$ac_ext <<_ACEOF
11827 #line $LINENO "configure"
11828 /* confdefs.h. */
11829 _ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11835 main ()
11839 return 0;
11841 _ACEOF
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11844 (eval $ac_link) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -s conftest$ac_exeext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_cv_c_dll_zdefs="yes"
11855 else
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11859 ac_cv_c_dll_zdefs="no"
11861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11862 CFLAGS=$ac_wine_try_cflags_saved
11864 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
11865 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
11866 if test "$ac_cv_c_dll_zdefs" = "yes"
11867 then
11868 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
11870 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5
11871 echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6
11872 if test "${ac_cv_ld_reloc_exec+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875 saved_CFLAGS="$CFLAGS"
11876 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
11877 if test "$cross_compiling" = yes; then
11878 ac_cv_ld_reloc_exec="no"
11879 else
11880 cat >conftest.$ac_ext <<_ACEOF
11881 #line $LINENO "configure"
11882 /* confdefs.h. */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 #include <unistd.h>
11888 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
11889 _ACEOF
11890 rm -f conftest$ac_exeext
11891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11892 (eval $ac_link) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_cv_ld_reloc_exec="yes"
11902 else
11903 echo "$as_me: program exited with status $ac_status" >&5
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 ( exit $ac_status )
11908 ac_cv_ld_reloc_exec="no"
11910 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11912 CFLAGS="$saved_CFLAGS"
11914 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
11915 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
11916 if test "$ac_cv_ld_reloc_exec" = "yes"
11917 then
11918 LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100"
11921 else
11922 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
11923 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
11924 if test "${ac_cv_c_dll_unixware+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 else
11927 ac_wine_try_cflags_saved=$CFLAGS
11928 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
11929 cat >conftest.$ac_ext <<_ACEOF
11930 #line $LINENO "configure"
11931 /* confdefs.h. */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11938 main ()
11942 return 0;
11944 _ACEOF
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11947 (eval $ac_link) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
11951 { ac_try='test -s conftest$ac_exeext'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_cv_c_dll_unixware="yes"
11958 else
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_cv_c_dll_unixware="no"
11964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11965 CFLAGS=$ac_wine_try_cflags_saved
11967 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
11968 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
11969 if test "$ac_cv_c_dll_unixware" = "yes"
11970 then
11971 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
11972 LDDLLFLAGS="-Wl,-B,symbolic"
11977 CROSSTEST=""
11979 if test "$cross_compiling" = "no"
11980 then
11981 for ac_prog in i586-mingw32msvc-gcc
11983 # Extract the first word of "$ac_prog", so it can be a program name with args.
11984 set dummy $ac_prog; ac_word=$2
11985 echo "$as_me:$LINENO: checking for $ac_word" >&5
11986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11987 if test "${ac_cv_prog_CROSSCC+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 else
11990 if test -n "$CROSSCC"; then
11991 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
11992 else
11993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11994 for as_dir in $PATH
11996 IFS=$as_save_IFS
11997 test -z "$as_dir" && as_dir=.
11998 for ac_exec_ext in '' $ac_executable_extensions; do
11999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12000 ac_cv_prog_CROSSCC="$ac_prog"
12001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12002 break 2
12004 done
12005 done
12009 CROSSCC=$ac_cv_prog_CROSSCC
12010 if test -n "$CROSSCC"; then
12011 echo "$as_me:$LINENO: result: $CROSSCC" >&5
12012 echo "${ECHO_T}$CROSSCC" >&6
12013 else
12014 echo "$as_me:$LINENO: result: no" >&5
12015 echo "${ECHO_T}no" >&6
12018 test -n "$CROSSCC" && break
12019 done
12020 test -n "$CROSSCC" || CROSSCC="false"
12022 for ac_prog in i586-mingw32msvc-dlltool
12024 # Extract the first word of "$ac_prog", so it can be a program name with args.
12025 set dummy $ac_prog; ac_word=$2
12026 echo "$as_me:$LINENO: checking for $ac_word" >&5
12027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12028 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031 if test -n "$DLLTOOL"; then
12032 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12033 else
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035 for as_dir in $PATH
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12041 ac_cv_prog_DLLTOOL="$ac_prog"
12042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12043 break 2
12045 done
12046 done
12050 DLLTOOL=$ac_cv_prog_DLLTOOL
12051 if test -n "$DLLTOOL"; then
12052 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12053 echo "${ECHO_T}$DLLTOOL" >&6
12054 else
12055 echo "$as_me:$LINENO: result: no" >&5
12056 echo "${ECHO_T}no" >&6
12059 test -n "$DLLTOOL" && break
12060 done
12061 test -n "$DLLTOOL" || DLLTOOL="false"
12063 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12066 esac
12068 if test "$LIBEXT" = "a"; then
12069 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
12070 It is currently not possible to build Wine without shared library
12071 (.so) support to allow transparent switch between .so and .dll files.
12072 If you are using Linux, you will need a newer binutils.
12073 " >&5
12074 echo "$as_me: error: could not find a way to build shared libraries.
12075 It is currently not possible to build Wine without shared library
12076 (.so) support to allow transparent switch between .so and .dll files.
12077 If you are using Linux, you will need a newer binutils.
12078 " >&2;}
12079 { (exit 1); exit 1; }; }
12082 case $build_os in
12083 cygwin*|mingw32*)
12084 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
12087 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
12089 esac
12091 CRTLIBS=""
12093 case $host_os in
12094 mingw32*)
12095 CRTLIBS="-lmsvcrt" ;;
12096 esac
12099 if test "$LIBEXT" = "so"
12100 then
12101 # Extract the first word of "ldd", so it can be a program name with args.
12102 set dummy ldd; ac_word=$2
12103 echo "$as_me:$LINENO: checking for $ac_word" >&5
12104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12105 if test "${ac_cv_path_LDD+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108 case $LDD in
12109 [\\/]* | ?:[\\/]*)
12110 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 as_dummy="/sbin:/usr/sbin:$PATH"
12115 for as_dir in $as_dummy
12117 IFS=$as_save_IFS
12118 test -z "$as_dir" && as_dir=.
12119 for ac_exec_ext in '' $ac_executable_extensions; do
12120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12121 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12123 break 2
12125 done
12126 done
12128 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12130 esac
12132 LDD=$ac_cv_path_LDD
12134 if test -n "$LDD"; then
12135 echo "$as_me:$LINENO: result: $LDD" >&5
12136 echo "${ECHO_T}$LDD" >&6
12137 else
12138 echo "$as_me:$LINENO: result: no" >&5
12139 echo "${ECHO_T}no" >&6
12143 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12144 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12145 if test "${ac_cv_lib_soname_X11+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148 ac_get_soname_save_LIBS=$LIBS
12149 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12150 cat >conftest.$ac_ext <<_ACEOF
12151 #line $LINENO "configure"
12152 /* confdefs.h. */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12158 /* Override any gcc2 internal prototype to avoid an error. */
12159 #ifdef __cplusplus
12160 extern "C"
12161 #endif
12162 /* We use char because int might match the return type of a gcc2
12163 builtin and then its argument prototype would still apply. */
12164 char XCreateWindow ();
12166 main ()
12168 XCreateWindow ();
12170 return 0;
12172 _ACEOF
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12175 (eval $ac_link) 2>&5
12176 ac_status=$?
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
12179 { ac_try='test -s conftest$ac_exeext'
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; }; then
12185 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12186 if test "x$ac_cv_lib_soname_X11" = "x"
12187 then
12188 ac_cv_lib_soname_X11="libX11.so"
12190 else
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194 ac_cv_lib_soname_X11="libX11.so"
12196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12197 LIBS=$ac_get_soname_save_LIBS
12199 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12200 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12201 if test "x$ac_cv_lib_soname_X11" != xNONE
12202 then
12203 cat >>confdefs.h <<_ACEOF
12204 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12205 _ACEOF
12208 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12209 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12210 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 else
12213 ac_get_soname_save_LIBS=$LIBS
12214 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12215 cat >conftest.$ac_ext <<_ACEOF
12216 #line $LINENO "configure"
12217 /* confdefs.h. */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12223 /* Override any gcc2 internal prototype to avoid an error. */
12224 #ifdef __cplusplus
12225 extern "C"
12226 #endif
12227 /* We use char because int might match the return type of a gcc2
12228 builtin and then its argument prototype would still apply. */
12229 char XextCreateExtension ();
12231 main ()
12233 XextCreateExtension ();
12235 return 0;
12237 _ACEOF
12238 rm -f conftest.$ac_objext conftest$ac_exeext
12239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12240 (eval $ac_link) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
12244 { ac_try='test -s conftest$ac_exeext'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
12250 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12251 if test "x$ac_cv_lib_soname_Xext" = "x"
12252 then
12253 ac_cv_lib_soname_Xext="libXext.so"
12255 else
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12259 ac_cv_lib_soname_Xext="libXext.so"
12261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_get_soname_save_LIBS
12264 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12265 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12266 if test "x$ac_cv_lib_soname_Xext" != xNONE
12267 then
12268 cat >>confdefs.h <<_ACEOF
12269 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12270 _ACEOF
12273 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12274 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12275 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278 ac_get_soname_save_LIBS=$LIBS
12279 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12280 cat >conftest.$ac_ext <<_ACEOF
12281 #line $LINENO "configure"
12282 /* confdefs.h. */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12288 /* Override any gcc2 internal prototype to avoid an error. */
12289 #ifdef __cplusplus
12290 extern "C"
12291 #endif
12292 /* We use char because int might match the return type of a gcc2
12293 builtin and then its argument prototype would still apply. */
12294 char XRenderQueryExtension ();
12296 main ()
12298 XRenderQueryExtension ();
12300 return 0;
12302 _ACEOF
12303 rm -f conftest.$ac_objext conftest$ac_exeext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305 (eval $ac_link) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } &&
12309 { ac_try='test -s conftest$ac_exeext'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12316 if test "x$ac_cv_lib_soname_Xrender" = "x"
12317 then
12318 ac_cv_lib_soname_Xrender="libXrender.so"
12320 else
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12324 ac_cv_lib_soname_Xrender="libXrender.so"
12326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_get_soname_save_LIBS
12329 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12330 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12331 if test "x$ac_cv_lib_soname_Xrender" != xNONE
12332 then
12333 cat >>confdefs.h <<_ACEOF
12334 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12335 _ACEOF
12338 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12339 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12340 if test "${ac_cv_lib_soname_freetype+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343 ac_get_soname_save_LIBS=$LIBS
12344 LIBS="-lfreetype $X_LIBS $LIBS"
12345 cat >conftest.$ac_ext <<_ACEOF
12346 #line $LINENO "configure"
12347 /* confdefs.h. */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12353 /* Override any gcc2 internal prototype to avoid an error. */
12354 #ifdef __cplusplus
12355 extern "C"
12356 #endif
12357 /* We use char because int might match the return type of a gcc2
12358 builtin and then its argument prototype would still apply. */
12359 char FT_Init_FreeType ();
12361 main ()
12363 FT_Init_FreeType ();
12365 return 0;
12367 _ACEOF
12368 rm -f conftest.$ac_objext conftest$ac_exeext
12369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12370 (eval $ac_link) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try='test -s conftest$ac_exeext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12381 if test "x$ac_cv_lib_soname_freetype" = "x"
12382 then
12383 ac_cv_lib_soname_freetype="libfreetype.so"
12385 else
12386 echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12389 ac_cv_lib_soname_freetype="libfreetype.so"
12391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12392 LIBS=$ac_get_soname_save_LIBS
12394 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12395 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12396 if test "x$ac_cv_lib_soname_freetype" != xNONE
12397 then
12398 cat >>confdefs.h <<_ACEOF
12399 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12400 _ACEOF
12403 echo "$as_me:$LINENO: checking for -lGL soname" >&5
12404 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12405 if test "${ac_cv_lib_soname_GL+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 else
12408 ac_get_soname_save_LIBS=$LIBS
12409 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12410 cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12418 /* Override any gcc2 internal prototype to avoid an error. */
12419 #ifdef __cplusplus
12420 extern "C"
12421 #endif
12422 /* We use char because int might match the return type of a gcc2
12423 builtin and then its argument prototype would still apply. */
12424 char glXQueryExtension ();
12426 main ()
12428 glXQueryExtension ();
12430 return 0;
12432 _ACEOF
12433 rm -f conftest.$ac_objext conftest$ac_exeext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12435 (eval $ac_link) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } &&
12439 { ac_try='test -s conftest$ac_exeext'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12446 if test "x$ac_cv_lib_soname_GL" = "x"
12447 then
12448 ac_cv_lib_soname_GL="libGL.so"
12450 else
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ac_cv_lib_soname_GL="libGL.so"
12456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_get_soname_save_LIBS
12459 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12460 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12461 if test "x$ac_cv_lib_soname_GL" != xNONE
12462 then
12463 cat >>confdefs.h <<_ACEOF
12464 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12465 _ACEOF
12468 echo "$as_me:$LINENO: checking for -lcups soname" >&5
12469 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12470 if test "${ac_cv_lib_soname_cups+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473 ac_get_soname_save_LIBS=$LIBS
12474 LIBS="-lcups $LIBS"
12475 cat >conftest.$ac_ext <<_ACEOF
12476 #line $LINENO "configure"
12477 /* confdefs.h. */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12483 /* Override any gcc2 internal prototype to avoid an error. */
12484 #ifdef __cplusplus
12485 extern "C"
12486 #endif
12487 /* We use char because int might match the return type of a gcc2
12488 builtin and then its argument prototype would still apply. */
12489 char cupsGetDefault ();
12491 main ()
12493 cupsGetDefault ();
12495 return 0;
12497 _ACEOF
12498 rm -f conftest.$ac_objext conftest$ac_exeext
12499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12500 (eval $ac_link) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } &&
12504 { ac_try='test -s conftest$ac_exeext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12511 if test "x$ac_cv_lib_soname_cups" = "x"
12512 then
12513 ac_cv_lib_soname_cups="libcups.so"
12515 else
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12519 ac_cv_lib_soname_cups="libcups.so"
12521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_get_soname_save_LIBS
12524 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12525 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12526 if test "x$ac_cv_lib_soname_cups" != xNONE
12527 then
12528 cat >>confdefs.h <<_ACEOF
12529 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12530 _ACEOF
12533 echo "$as_me:$LINENO: checking for -ljack soname" >&5
12534 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12535 if test "${ac_cv_lib_soname_jack+set}" = set; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 else
12538 ac_get_soname_save_LIBS=$LIBS
12539 LIBS="-ljack $LIBS"
12540 cat >conftest.$ac_ext <<_ACEOF
12541 #line $LINENO "configure"
12542 /* confdefs.h. */
12543 _ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h. */
12548 /* Override any gcc2 internal prototype to avoid an error. */
12549 #ifdef __cplusplus
12550 extern "C"
12551 #endif
12552 /* We use char because int might match the return type of a gcc2
12553 builtin and then its argument prototype would still apply. */
12554 char jack_client_new ();
12556 main ()
12558 jack_client_new ();
12560 return 0;
12562 _ACEOF
12563 rm -f conftest.$ac_objext conftest$ac_exeext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12565 (eval $ac_link) 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12576 if test "x$ac_cv_lib_soname_jack" = "x"
12577 then
12578 ac_cv_lib_soname_jack="libjack.so"
12580 else
12581 echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12584 ac_cv_lib_soname_jack="libjack.so"
12586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12587 LIBS=$ac_get_soname_save_LIBS
12589 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12590 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12591 if test "x$ac_cv_lib_soname_jack" != xNONE
12592 then
12593 cat >>confdefs.h <<_ACEOF
12594 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12595 _ACEOF
12601 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12602 # for constant arguments. Useless!
12603 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12604 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12605 if test "${ac_cv_working_alloca_h+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608 cat >conftest.$ac_ext <<_ACEOF
12609 #line $LINENO "configure"
12610 /* confdefs.h. */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 #include <alloca.h>
12617 main ()
12619 char *p = (char *) alloca (2 * sizeof (int));
12621 return 0;
12623 _ACEOF
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12626 (eval $ac_link) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -s conftest$ac_exeext'
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 ac_cv_working_alloca_h=yes
12637 else
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12641 ac_cv_working_alloca_h=no
12643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12645 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12646 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12647 if test $ac_cv_working_alloca_h = yes; then
12649 cat >>confdefs.h <<\_ACEOF
12650 #define HAVE_ALLOCA_H 1
12651 _ACEOF
12655 echo "$as_me:$LINENO: checking for alloca" >&5
12656 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12657 if test "${ac_cv_func_alloca_works+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12659 else
12660 cat >conftest.$ac_ext <<_ACEOF
12661 #line $LINENO "configure"
12662 /* confdefs.h. */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12667 #ifdef __GNUC__
12668 # define alloca __builtin_alloca
12669 #else
12670 # ifdef _MSC_VER
12671 # include <malloc.h>
12672 # define alloca _alloca
12673 # else
12674 # if HAVE_ALLOCA_H
12675 # include <alloca.h>
12676 # else
12677 # ifdef _AIX
12678 #pragma alloca
12679 # else
12680 # ifndef alloca /* predefined by HP cc +Olibcalls */
12681 char *alloca ();
12682 # endif
12683 # endif
12684 # endif
12685 # endif
12686 #endif
12689 main ()
12691 char *p = (char *) alloca (1);
12693 return 0;
12695 _ACEOF
12696 rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12698 (eval $ac_link) 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
12702 { ac_try='test -s conftest$ac_exeext'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
12708 ac_cv_func_alloca_works=yes
12709 else
12710 echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12713 ac_cv_func_alloca_works=no
12715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12717 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12718 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12720 if test $ac_cv_func_alloca_works = yes; then
12722 cat >>confdefs.h <<\_ACEOF
12723 #define HAVE_ALLOCA 1
12724 _ACEOF
12726 else
12727 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12728 # that cause trouble. Some versions do not even contain alloca or
12729 # contain a buggy version. If you still want to use their alloca,
12730 # use ar to extract alloca.o from them instead of compiling alloca.c.
12732 ALLOCA=alloca.$ac_objext
12734 cat >>confdefs.h <<\_ACEOF
12735 #define C_ALLOCA 1
12736 _ACEOF
12739 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12740 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12741 if test "${ac_cv_os_cray+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744 cat >conftest.$ac_ext <<_ACEOF
12745 #line $LINENO "configure"
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 #if defined(CRAY) && ! defined(CRAY2)
12752 webecray
12753 #else
12754 wenotbecray
12755 #endif
12757 _ACEOF
12758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12759 $EGREP "webecray" >/dev/null 2>&1; then
12760 ac_cv_os_cray=yes
12761 else
12762 ac_cv_os_cray=no
12764 rm -f conftest*
12767 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12768 echo "${ECHO_T}$ac_cv_os_cray" >&6
12769 if test $ac_cv_os_cray = yes; then
12770 for ac_func in _getb67 GETB67 getb67; do
12771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12772 echo "$as_me:$LINENO: checking for $ac_func" >&5
12773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12774 if eval "test \"\${$as_ac_var+set}\" = set"; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777 cat >conftest.$ac_ext <<_ACEOF
12778 #line $LINENO "configure"
12779 /* confdefs.h. */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784 /* System header to define __stub macros and hopefully few prototypes,
12785 which can conflict with char $ac_func (); below.
12786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12787 <limits.h> exists even on freestanding compilers. */
12788 #ifdef __STDC__
12789 # include <limits.h>
12790 #else
12791 # include <assert.h>
12792 #endif
12793 /* Override any gcc2 internal prototype to avoid an error. */
12794 #ifdef __cplusplus
12795 extern "C"
12797 #endif
12798 /* We use char because int might match the return type of a gcc2
12799 builtin and then its argument prototype would still apply. */
12800 char $ac_func ();
12801 /* The GNU C library defines this for functions which it implements
12802 to always fail with ENOSYS. Some functions are actually named
12803 something starting with __ and the normal name is an alias. */
12804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12805 choke me
12806 #else
12807 char (*f) () = $ac_func;
12808 #endif
12809 #ifdef __cplusplus
12811 #endif
12814 main ()
12816 return f != $ac_func;
12818 return 0;
12820 _ACEOF
12821 rm -f conftest.$ac_objext conftest$ac_exeext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12823 (eval $ac_link) 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -s conftest$ac_exeext'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; }; then
12833 eval "$as_ac_var=yes"
12834 else
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 eval "$as_ac_var=no"
12840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12844 if test `eval echo '${'$as_ac_var'}'` = yes; then
12846 cat >>confdefs.h <<_ACEOF
12847 #define CRAY_STACKSEG_END $ac_func
12848 _ACEOF
12850 break
12853 done
12856 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12857 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12858 if test "${ac_cv_c_stack_direction+set}" = set; then
12859 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 else
12861 if test "$cross_compiling" = yes; then
12862 ac_cv_c_stack_direction=0
12863 else
12864 cat >conftest.$ac_ext <<_ACEOF
12865 #line $LINENO "configure"
12866 /* confdefs.h. */
12867 _ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12872 find_stack_direction ()
12874 static char *addr = 0;
12875 auto char dummy;
12876 if (addr == 0)
12878 addr = &dummy;
12879 return find_stack_direction ();
12881 else
12882 return (&dummy > addr) ? 1 : -1;
12886 main ()
12888 exit (find_stack_direction () < 0);
12890 _ACEOF
12891 rm -f conftest$ac_exeext
12892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12893 (eval $ac_link) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; }; then
12902 ac_cv_c_stack_direction=1
12903 else
12904 echo "$as_me: program exited with status $ac_status" >&5
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12908 ( exit $ac_status )
12909 ac_cv_c_stack_direction=-1
12911 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12914 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12915 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12917 cat >>confdefs.h <<_ACEOF
12918 #define STACK_DIRECTION $ac_cv_c_stack_direction
12919 _ACEOF
12979 for ac_func in \
12980 _lwp_create \
12981 _lwp_self \
12982 _pclose \
12983 _popen \
12984 _snprintf \
12985 _spawnvp \
12986 _stricmp \
12987 _strnicmp \
12988 _vsnprintf \
12989 chsize \
12990 clone \
12991 finite \
12992 fpclass \
12993 ftruncate \
12994 ftruncate64 \
12995 getnetbyaddr \
12996 getnetbyname \
12997 getopt_long \
12998 getpagesize \
12999 getprotobyname \
13000 getprotobynumber \
13001 getpwuid \
13002 getservbyport \
13003 gettimeofday \
13004 inet_network \
13005 lseek64 \
13006 lstat \
13007 memmove \
13008 mmap \
13009 pclose \
13010 popen \
13011 pread \
13012 pthread_getspecific \
13013 pthread_key_create \
13014 pthread_mutex_lock \
13015 pthread_mutex_unlock \
13016 pthread_setspecific \
13017 pwrite \
13018 rfork \
13019 select \
13020 sendmsg \
13021 settimeofday \
13022 sigaltstack \
13023 snprintf \
13024 statfs \
13025 strcasecmp \
13026 strerror \
13027 strncasecmp \
13028 tcgetattr \
13029 timegm \
13030 usleep \
13031 vfscanf \
13032 vsnprintf \
13033 wait4 \
13034 waitpid \
13037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13038 echo "$as_me:$LINENO: checking for $ac_func" >&5
13039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13040 if eval "test \"\${$as_ac_var+set}\" = set"; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13042 else
13043 cat >conftest.$ac_ext <<_ACEOF
13044 #line $LINENO "configure"
13045 /* confdefs.h. */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13050 /* System header to define __stub macros and hopefully few prototypes,
13051 which can conflict with char $ac_func (); below.
13052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13053 <limits.h> exists even on freestanding compilers. */
13054 #ifdef __STDC__
13055 # include <limits.h>
13056 #else
13057 # include <assert.h>
13058 #endif
13059 /* Override any gcc2 internal prototype to avoid an error. */
13060 #ifdef __cplusplus
13061 extern "C"
13063 #endif
13064 /* We use char because int might match the return type of a gcc2
13065 builtin and then its argument prototype would still apply. */
13066 char $ac_func ();
13067 /* The GNU C library defines this for functions which it implements
13068 to always fail with ENOSYS. Some functions are actually named
13069 something starting with __ and the normal name is an alias. */
13070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13071 choke me
13072 #else
13073 char (*f) () = $ac_func;
13074 #endif
13075 #ifdef __cplusplus
13077 #endif
13080 main ()
13082 return f != $ac_func;
13084 return 0;
13086 _ACEOF
13087 rm -f conftest.$ac_objext conftest$ac_exeext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -s conftest$ac_exeext'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099 eval "$as_ac_var=yes"
13100 else
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13104 eval "$as_ac_var=no"
13106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13110 if test `eval echo '${'$as_ac_var'}'` = yes; then
13111 cat >>confdefs.h <<_ACEOF
13112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13113 _ACEOF
13116 done
13191 for ac_header in \
13192 arpa/inet.h \
13193 arpa/nameser.h \
13194 cups/cups.h \
13195 direct.h \
13196 elf.h \
13197 float.h \
13198 getopt.h \
13199 ieeefp.h \
13200 io.h \
13201 jack/jack.h \
13202 libio.h \
13203 libutil.h \
13204 link.h \
13205 linux/cdrom.h \
13206 linux/hdreg.h \
13207 linux/input.h \
13208 linux/joystick.h \
13209 linux/major.h \
13210 linux/param.h \
13211 linux/serial.h \
13212 linux/ucdrom.h \
13213 netdb.h \
13214 netinet/in.h \
13215 netinet/in_systm.h \
13216 netinet/tcp.h \
13217 pty.h \
13218 pwd.h \
13219 regex.h \
13220 sched.h \
13221 scsi/sg.h \
13222 socket.h \
13223 stdint.h \
13224 strings.h \
13225 sys/cdio.h \
13226 sys/errno.h \
13227 sys/file.h \
13228 sys/filio.h \
13229 sys/inttypes.h \
13230 sys/ioctl.h \
13231 sys/ipc.h \
13232 sys/link.h \
13233 sys/lwp.h \
13234 sys/mman.h \
13235 sys/modem.h \
13236 sys/msg.h \
13237 sys/param.h \
13238 sys/poll.h \
13239 sys/ptrace.h \
13240 sys/reg.h \
13241 sys/shm.h \
13242 sys/signal.h \
13243 sys/socket.h \
13244 sys/sockio.h \
13245 sys/statfs.h \
13246 sys/strtio.h \
13247 sys/syscall.h \
13248 sys/sysctl.h \
13249 sys/time.h \
13250 sys/times.h \
13251 sys/uio.h \
13252 sys/un.h \
13253 sys/v86.h \
13254 sys/v86intr.h \
13255 sys/vfs.h \
13256 sys/vm86.h \
13257 sys/wait.h \
13258 syscall.h \
13259 termios.h \
13260 unistd.h \
13261 utime.h \
13262 valgrind/memcheck.h
13265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13267 echo "$as_me:$LINENO: checking for $ac_header" >&5
13268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13274 else
13275 # Is the header compilable?
13276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13278 cat >conftest.$ac_ext <<_ACEOF
13279 #line $LINENO "configure"
13280 /* confdefs.h. */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13285 $ac_includes_default
13286 #include <$ac_header>
13287 _ACEOF
13288 rm -f conftest.$ac_objext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290 (eval $ac_compile) 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -s conftest.$ac_objext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 ac_header_compiler=yes
13301 else
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305 ac_header_compiler=no
13307 rm -f conftest.$ac_objext conftest.$ac_ext
13308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13309 echo "${ECHO_T}$ac_header_compiler" >&6
13311 # Is the header present?
13312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13314 cat >conftest.$ac_ext <<_ACEOF
13315 #line $LINENO "configure"
13316 /* confdefs.h. */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 #include <$ac_header>
13322 _ACEOF
13323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } >/dev/null; then
13331 if test -s conftest.err; then
13332 ac_cpp_err=$ac_c_preproc_warn_flag
13333 else
13334 ac_cpp_err=
13336 else
13337 ac_cpp_err=yes
13339 if test -z "$ac_cpp_err"; then
13340 ac_header_preproc=yes
13341 else
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ac_header_preproc=no
13347 rm -f conftest.err conftest.$ac_ext
13348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13349 echo "${ECHO_T}$ac_header_preproc" >&6
13351 # So? What about this header?
13352 case $ac_header_compiler:$ac_header_preproc in
13353 yes:no )
13354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13359 cat <<\_ASBOX
13360 ## ------------------------------------ ##
13361 ## Report this to bug-autoconf@gnu.org. ##
13362 ## ------------------------------------ ##
13363 _ASBOX
13365 sed "s/^/$as_me: WARNING: /" >&2
13367 no:yes )
13368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13375 cat <<\_ASBOX
13376 ## ------------------------------------ ##
13377 ## Report this to bug-autoconf@gnu.org. ##
13378 ## ------------------------------------ ##
13379 _ASBOX
13381 sed "s/^/$as_me: WARNING: /" >&2
13383 esac
13384 echo "$as_me:$LINENO: checking for $ac_header" >&5
13385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388 else
13389 eval "$as_ac_Header=$ac_header_preproc"
13391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13396 cat >>confdefs.h <<_ACEOF
13397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13398 _ACEOF
13402 done
13404 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13405 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13406 if test "${ac_cv_header_stat_broken+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 else
13409 cat >conftest.$ac_ext <<_ACEOF
13410 #line $LINENO "configure"
13411 /* confdefs.h. */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13416 #include <sys/types.h>
13417 #include <sys/stat.h>
13419 #if defined(S_ISBLK) && defined(S_IFDIR)
13420 # if S_ISBLK (S_IFDIR)
13421 You lose.
13422 # endif
13423 #endif
13425 #if defined(S_ISBLK) && defined(S_IFCHR)
13426 # if S_ISBLK (S_IFCHR)
13427 You lose.
13428 # endif
13429 #endif
13431 #if defined(S_ISLNK) && defined(S_IFREG)
13432 # if S_ISLNK (S_IFREG)
13433 You lose.
13434 # endif
13435 #endif
13437 #if defined(S_ISSOCK) && defined(S_IFREG)
13438 # if S_ISSOCK (S_IFREG)
13439 You lose.
13440 # endif
13441 #endif
13443 _ACEOF
13444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13445 $EGREP "You lose" >/dev/null 2>&1; then
13446 ac_cv_header_stat_broken=yes
13447 else
13448 ac_cv_header_stat_broken=no
13450 rm -f conftest*
13453 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13454 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13455 if test $ac_cv_header_stat_broken = yes; then
13457 cat >>confdefs.h <<\_ACEOF
13458 #define STAT_MACROS_BROKEN 1
13459 _ACEOF
13467 for ac_header in sys/mount.h sys/user.h
13469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13470 echo "$as_me:$LINENO: checking for $ac_header" >&5
13471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 else
13475 cat >conftest.$ac_ext <<_ACEOF
13476 #line $LINENO "configure"
13477 /* confdefs.h. */
13478 _ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482 #include <sys/types.h>
13483 #if HAVE_SYS_PARAM_H
13484 # include <sys/param.h>
13485 #endif
13487 #include <$ac_header>
13488 _ACEOF
13489 rm -f conftest.$ac_objext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491 (eval $ac_compile) 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } &&
13495 { ac_try='test -s conftest.$ac_objext'
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13501 eval "$as_ac_Header=yes"
13502 else
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 eval "$as_ac_Header=no"
13508 rm -f conftest.$ac_objext conftest.$ac_ext
13510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13513 cat >>confdefs.h <<_ACEOF
13514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13515 _ACEOF
13519 done
13523 for ac_header in net/if.h
13525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13526 echo "$as_me:$LINENO: checking for $ac_header" >&5
13527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531 cat >conftest.$ac_ext <<_ACEOF
13532 #line $LINENO "configure"
13533 /* confdefs.h. */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13538 #include <sys/types.h>
13539 #if HAVE_SYS_SOCKET_H
13540 # include <sys/socket.h>
13541 #endif
13543 #include <$ac_header>
13544 _ACEOF
13545 rm -f conftest.$ac_objext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } &&
13551 { ac_try='test -s conftest.$ac_objext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 eval "$as_ac_Header=yes"
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 eval "$as_ac_Header=no"
13564 rm -f conftest.$ac_objext conftest.$ac_ext
13566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13569 cat >>confdefs.h <<_ACEOF
13570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13571 _ACEOF
13575 done
13579 for ac_header in netinet/ip.h
13581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13582 echo "$as_me:$LINENO: checking for $ac_header" >&5
13583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587 cat >conftest.$ac_ext <<_ACEOF
13588 #line $LINENO "configure"
13589 /* confdefs.h. */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 #include <sys/types.h>
13595 #if HAVE_SYS_SOCKET_H
13596 # include <sys/socket.h>
13597 #endif
13598 #if HAVE_NETINET_IN_SYSTM_H
13599 # include <netinet/in_systm.h>
13600 #endif
13602 #include <$ac_header>
13603 _ACEOF
13604 rm -f conftest.$ac_objext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 eval "$as_ac_Header=yes"
13617 else
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 eval "$as_ac_Header=no"
13623 rm -f conftest.$ac_objext conftest.$ac_ext
13625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13628 cat >>confdefs.h <<_ACEOF
13629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13630 _ACEOF
13634 done
13638 for ac_header in resolv.h
13640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13641 echo "$as_me:$LINENO: checking for $ac_header" >&5
13642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 else
13646 cat >conftest.$ac_ext <<_ACEOF
13647 #line $LINENO "configure"
13648 /* confdefs.h. */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13653 #include <sys/types.h>
13654 #if HAVE_SYS_SOCKET_H
13655 # include <sys/socket.h>
13656 #endif
13658 #include <$ac_header>
13659 _ACEOF
13660 rm -f conftest.$ac_objext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662 (eval $ac_compile) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try='test -s conftest.$ac_objext'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 eval "$as_ac_Header=yes"
13673 else
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 eval "$as_ac_Header=no"
13679 rm -f conftest.$ac_objext conftest.$ac_ext
13681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13684 cat >>confdefs.h <<_ACEOF
13685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13686 _ACEOF
13690 done
13694 for ac_header in ucontext.h
13696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13697 echo "$as_me:$LINENO: checking for $ac_header" >&5
13698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702 cat >conftest.$ac_ext <<_ACEOF
13703 #line $LINENO "configure"
13704 /* confdefs.h. */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 #include <signal.h>
13711 #include <$ac_header>
13712 _ACEOF
13713 rm -f conftest.$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try='test -s conftest.$ac_objext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 eval "$as_ac_Header=yes"
13726 else
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 eval "$as_ac_Header=no"
13732 rm -f conftest.$ac_objext conftest.$ac_ext
13734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13737 cat >>confdefs.h <<_ACEOF
13738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13739 _ACEOF
13743 done
13747 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
13748 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
13749 if test "${ac_cv_c_ipx_gnu+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 cat >conftest.$ac_ext <<_ACEOF
13753 #line $LINENO "configure"
13754 /* confdefs.h. */
13755 _ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 #include <sys/types.h>
13760 #ifdef HAVE_SYS_SOCKET_H
13761 # include <sys/socket.h>
13762 #endif
13763 #include <netipx/ipx.h>
13765 main ()
13767 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
13769 return 0;
13771 _ACEOF
13772 rm -f conftest.$ac_objext
13773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13774 (eval $ac_compile) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } &&
13778 { ac_try='test -s conftest.$ac_objext'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
13784 ac_cv_c_ipx_gnu="yes"
13785 else
13786 echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13789 ac_cv_c_ipx_gnu="no"
13791 rm -f conftest.$ac_objext conftest.$ac_ext
13794 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
13795 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
13796 if test "$ac_cv_c_ipx_gnu" = "yes"
13797 then
13799 cat >>confdefs.h <<\_ACEOF
13800 #define HAVE_IPX_GNU 1
13801 _ACEOF
13805 if test "$ac_cv_c_ipx_gnu" = "no"
13806 then
13807 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
13808 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
13809 if test "${ac_cv_c_ipx_linux+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 else
13812 cat >conftest.$ac_ext <<_ACEOF
13813 #line $LINENO "configure"
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 #include <sys/types.h>
13820 #ifdef HAVE_SYS_SOCKET_H
13821 # include <sys/socket.h>
13822 #endif
13823 #include <asm/types.h>
13824 #include <linux/ipx.h>
13826 main ()
13828 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
13830 return 0;
13832 _ACEOF
13833 rm -f conftest.$ac_objext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13835 (eval $ac_compile) 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -s conftest.$ac_objext'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 ac_cv_c_ipx_linux="yes"
13846 else
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13850 ac_cv_c_ipx_linux="no"
13852 rm -f conftest.$ac_objext conftest.$ac_ext
13855 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
13856 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
13857 if test "$ac_cv_c_ipx_linux" = "yes"
13858 then
13860 cat >>confdefs.h <<\_ACEOF
13861 #define HAVE_IPX_LINUX 1
13862 _ACEOF
13868 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13869 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13870 if test "${ac_cv_c_const+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 cat >conftest.$ac_ext <<_ACEOF
13874 #line $LINENO "configure"
13875 /* confdefs.h. */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13882 main ()
13884 /* FIXME: Include the comments suggested by Paul. */
13885 #ifndef __cplusplus
13886 /* Ultrix mips cc rejects this. */
13887 typedef int charset[2];
13888 const charset x;
13889 /* SunOS 4.1.1 cc rejects this. */
13890 char const *const *ccp;
13891 char **p;
13892 /* NEC SVR4.0.2 mips cc rejects this. */
13893 struct point {int x, y;};
13894 static struct point const zero = {0,0};
13895 /* AIX XL C 1.02.0.0 rejects this.
13896 It does not let you subtract one const X* pointer from another in
13897 an arm of an if-expression whose if-part is not a constant
13898 expression */
13899 const char *g = "string";
13900 ccp = &g + (g ? g-g : 0);
13901 /* HPUX 7.0 cc rejects these. */
13902 ++ccp;
13903 p = (char**) ccp;
13904 ccp = (char const *const *) p;
13905 { /* SCO 3.2v4 cc rejects this. */
13906 char *t;
13907 char const *s = 0 ? (char *) 0 : (char const *) 0;
13909 *t++ = 0;
13911 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13912 int x[] = {25, 17};
13913 const int *foo = &x[0];
13914 ++foo;
13916 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13917 typedef const int *iptr;
13918 iptr p = 0;
13919 ++p;
13921 { /* AIX XL C 1.02.0.0 rejects this saying
13922 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13923 struct s { int j; const int *ap[3]; };
13924 struct s *b; b->j = 5;
13926 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13927 const int foo = 10;
13929 #endif
13932 return 0;
13934 _ACEOF
13935 rm -f conftest.$ac_objext
13936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13937 (eval $ac_compile) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } &&
13941 { ac_try='test -s conftest.$ac_objext'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_cv_c_const=yes
13948 else
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_cv_c_const=no
13954 rm -f conftest.$ac_objext conftest.$ac_ext
13956 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13957 echo "${ECHO_T}$ac_cv_c_const" >&6
13958 if test $ac_cv_c_const = no; then
13960 cat >>confdefs.h <<\_ACEOF
13961 #define const
13962 _ACEOF
13966 echo "$as_me:$LINENO: checking for inline" >&5
13967 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13968 if test "${ac_cv_c_inline+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 else
13971 ac_cv_c_inline=no
13972 for ac_kw in inline __inline__ __inline; do
13973 cat >conftest.$ac_ext <<_ACEOF
13974 #line $LINENO "configure"
13975 /* confdefs.h. */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 #ifndef __cplusplus
13981 typedef int foo_t;
13982 static $ac_kw foo_t static_foo () {return 0; }
13983 $ac_kw foo_t foo () {return 0; }
13984 #endif
13986 _ACEOF
13987 rm -f conftest.$ac_objext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13989 (eval $ac_compile) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -s conftest.$ac_objext'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 ac_cv_c_inline=$ac_kw; break
14000 else
14001 echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14005 rm -f conftest.$ac_objext conftest.$ac_ext
14006 done
14009 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14010 echo "${ECHO_T}$ac_cv_c_inline" >&6
14011 case $ac_cv_c_inline in
14012 inline | yes) ;;
14014 cat >>confdefs.h <<\_ACEOF
14015 #define inline
14016 _ACEOF
14018 *) cat >>confdefs.h <<_ACEOF
14019 #define inline $ac_cv_c_inline
14020 _ACEOF
14022 esac
14024 echo "$as_me:$LINENO: checking for mode_t" >&5
14025 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14026 if test "${ac_cv_type_mode_t+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029 cat >conftest.$ac_ext <<_ACEOF
14030 #line $LINENO "configure"
14031 /* confdefs.h. */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14036 $ac_includes_default
14038 main ()
14040 if ((mode_t *) 0)
14041 return 0;
14042 if (sizeof (mode_t))
14043 return 0;
14045 return 0;
14047 _ACEOF
14048 rm -f conftest.$ac_objext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14050 (eval $ac_compile) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try='test -s conftest.$ac_objext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_cv_type_mode_t=yes
14061 else
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 ac_cv_type_mode_t=no
14067 rm -f conftest.$ac_objext conftest.$ac_ext
14069 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14070 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14071 if test $ac_cv_type_mode_t = yes; then
14073 cat >>confdefs.h <<_ACEOF
14074 #define HAVE_MODE_T 1
14075 _ACEOF
14079 echo "$as_me:$LINENO: checking for off_t" >&5
14080 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14081 if test "${ac_cv_type_off_t+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084 cat >conftest.$ac_ext <<_ACEOF
14085 #line $LINENO "configure"
14086 /* confdefs.h. */
14087 _ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h. */
14091 $ac_includes_default
14093 main ()
14095 if ((off_t *) 0)
14096 return 0;
14097 if (sizeof (off_t))
14098 return 0;
14100 return 0;
14102 _ACEOF
14103 rm -f conftest.$ac_objext
14104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14105 (eval $ac_compile) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
14109 { ac_try='test -s conftest.$ac_objext'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 ac_cv_type_off_t=yes
14116 else
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 ac_cv_type_off_t=no
14122 rm -f conftest.$ac_objext conftest.$ac_ext
14124 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14125 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14126 if test $ac_cv_type_off_t = yes; then
14128 cat >>confdefs.h <<_ACEOF
14129 #define HAVE_OFF_T 1
14130 _ACEOF
14134 echo "$as_me:$LINENO: checking for pid_t" >&5
14135 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14136 if test "${ac_cv_type_pid_t+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139 cat >conftest.$ac_ext <<_ACEOF
14140 #line $LINENO "configure"
14141 /* confdefs.h. */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 $ac_includes_default
14148 main ()
14150 if ((pid_t *) 0)
14151 return 0;
14152 if (sizeof (pid_t))
14153 return 0;
14155 return 0;
14157 _ACEOF
14158 rm -f conftest.$ac_objext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160 (eval $ac_compile) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
14164 { ac_try='test -s conftest.$ac_objext'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
14170 ac_cv_type_pid_t=yes
14171 else
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14175 ac_cv_type_pid_t=no
14177 rm -f conftest.$ac_objext conftest.$ac_ext
14179 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14180 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14181 if test $ac_cv_type_pid_t = yes; then
14183 cat >>confdefs.h <<_ACEOF
14184 #define HAVE_PID_T 1
14185 _ACEOF
14189 echo "$as_me:$LINENO: checking for size_t" >&5
14190 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14191 if test "${ac_cv_type_size_t+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 else
14194 cat >conftest.$ac_ext <<_ACEOF
14195 #line $LINENO "configure"
14196 /* confdefs.h. */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 $ac_includes_default
14203 main ()
14205 if ((size_t *) 0)
14206 return 0;
14207 if (sizeof (size_t))
14208 return 0;
14210 return 0;
14212 _ACEOF
14213 rm -f conftest.$ac_objext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215 (eval $ac_compile) 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } &&
14219 { ac_try='test -s conftest.$ac_objext'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 ac_cv_type_size_t=yes
14226 else
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 ac_cv_type_size_t=no
14232 rm -f conftest.$ac_objext conftest.$ac_ext
14234 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14235 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14236 if test $ac_cv_type_size_t = yes; then
14238 cat >>confdefs.h <<_ACEOF
14239 #define HAVE_SIZE_T 1
14240 _ACEOF
14244 echo "$as_me:$LINENO: checking for ssize_t" >&5
14245 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14246 if test "${ac_cv_type_ssize_t+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249 cat >conftest.$ac_ext <<_ACEOF
14250 #line $LINENO "configure"
14251 /* confdefs.h. */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256 $ac_includes_default
14258 main ()
14260 if ((ssize_t *) 0)
14261 return 0;
14262 if (sizeof (ssize_t))
14263 return 0;
14265 return 0;
14267 _ACEOF
14268 rm -f conftest.$ac_objext
14269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14270 (eval $ac_compile) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -s conftest.$ac_objext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_cv_type_ssize_t=yes
14281 else
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_cv_type_ssize_t=no
14287 rm -f conftest.$ac_objext conftest.$ac_ext
14289 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14290 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14291 if test $ac_cv_type_ssize_t = yes; then
14293 cat >>confdefs.h <<_ACEOF
14294 #define HAVE_SSIZE_T 1
14295 _ACEOF
14300 echo "$as_me:$LINENO: checking for long long" >&5
14301 echo $ECHO_N "checking for long long... $ECHO_C" >&6
14302 if test "${ac_cv_type_long_long+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 else
14305 cat >conftest.$ac_ext <<_ACEOF
14306 #line $LINENO "configure"
14307 /* confdefs.h. */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 $ac_includes_default
14314 main ()
14316 if ((long long *) 0)
14317 return 0;
14318 if (sizeof (long long))
14319 return 0;
14321 return 0;
14323 _ACEOF
14324 rm -f conftest.$ac_objext
14325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14326 (eval $ac_compile) 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -s conftest.$ac_objext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_cv_type_long_long=yes
14337 else
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ac_cv_type_long_long=no
14343 rm -f conftest.$ac_objext conftest.$ac_ext
14345 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14346 echo "${ECHO_T}$ac_cv_type_long_long" >&6
14348 echo "$as_me:$LINENO: checking size of long long" >&5
14349 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14350 if test "${ac_cv_sizeof_long_long+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 else
14353 if test "$ac_cv_type_long_long" = yes; then
14354 # The cast to unsigned long works around a bug in the HP C Compiler
14355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14357 # This bug is HP SR number 8606223364.
14358 if test "$cross_compiling" = yes; then
14359 # Depending upon the size, compute the lo and hi bounds.
14360 cat >conftest.$ac_ext <<_ACEOF
14361 #line $LINENO "configure"
14362 /* confdefs.h. */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 $ac_includes_default
14369 main ()
14371 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14372 test_array [0] = 0
14375 return 0;
14377 _ACEOF
14378 rm -f conftest.$ac_objext
14379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14380 (eval $ac_compile) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -s conftest.$ac_objext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_lo=0 ac_mid=0
14391 while :; do
14392 cat >conftest.$ac_ext <<_ACEOF
14393 #line $LINENO "configure"
14394 /* confdefs.h. */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 $ac_includes_default
14401 main ()
14403 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14404 test_array [0] = 0
14407 return 0;
14409 _ACEOF
14410 rm -f conftest.$ac_objext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14412 (eval $ac_compile) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } &&
14416 { ac_try='test -s conftest.$ac_objext'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 ac_hi=$ac_mid; break
14423 else
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 ac_lo=`expr $ac_mid + 1`
14428 if test $ac_lo -le $ac_mid; then
14429 ac_lo= ac_hi=
14430 break
14432 ac_mid=`expr 2 '*' $ac_mid + 1`
14434 rm -f conftest.$ac_objext conftest.$ac_ext
14435 done
14436 else
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14440 cat >conftest.$ac_ext <<_ACEOF
14441 #line $LINENO "configure"
14442 /* confdefs.h. */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447 $ac_includes_default
14449 main ()
14451 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14452 test_array [0] = 0
14455 return 0;
14457 _ACEOF
14458 rm -f conftest.$ac_objext
14459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14460 (eval $ac_compile) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } &&
14464 { ac_try='test -s conftest.$ac_objext'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 ac_hi=-1 ac_mid=-1
14471 while :; do
14472 cat >conftest.$ac_ext <<_ACEOF
14473 #line $LINENO "configure"
14474 /* confdefs.h. */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 $ac_includes_default
14481 main ()
14483 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14484 test_array [0] = 0
14487 return 0;
14489 _ACEOF
14490 rm -f conftest.$ac_objext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492 (eval $ac_compile) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try='test -s conftest.$ac_objext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14502 ac_lo=$ac_mid; break
14503 else
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14507 ac_hi=`expr '(' $ac_mid ')' - 1`
14508 if test $ac_mid -le $ac_hi; then
14509 ac_lo= ac_hi=
14510 break
14512 ac_mid=`expr 2 '*' $ac_mid`
14514 rm -f conftest.$ac_objext conftest.$ac_ext
14515 done
14516 else
14517 echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14520 ac_lo= ac_hi=
14522 rm -f conftest.$ac_objext conftest.$ac_ext
14524 rm -f conftest.$ac_objext conftest.$ac_ext
14525 # Binary search between lo and hi bounds.
14526 while test "x$ac_lo" != "x$ac_hi"; do
14527 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14528 cat >conftest.$ac_ext <<_ACEOF
14529 #line $LINENO "configure"
14530 /* confdefs.h. */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 $ac_includes_default
14537 main ()
14539 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14540 test_array [0] = 0
14543 return 0;
14545 _ACEOF
14546 rm -f conftest.$ac_objext
14547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14548 (eval $ac_compile) 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } &&
14552 { ac_try='test -s conftest.$ac_objext'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14555 ac_status=$?
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; }; then
14558 ac_hi=$ac_mid
14559 else
14560 echo "$as_me: failed program was:" >&5
14561 sed 's/^/| /' conftest.$ac_ext >&5
14563 ac_lo=`expr '(' $ac_mid ')' + 1`
14565 rm -f conftest.$ac_objext conftest.$ac_ext
14566 done
14567 case $ac_lo in
14568 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14569 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14570 See \`config.log' for more details." >&5
14571 echo "$as_me: error: cannot compute sizeof (long long), 77
14572 See \`config.log' for more details." >&2;}
14573 { (exit 1); exit 1; }; } ;;
14574 esac
14575 else
14576 if test "$cross_compiling" = yes; then
14577 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14578 See \`config.log' for more details." >&5
14579 echo "$as_me: error: cannot run test program while cross compiling
14580 See \`config.log' for more details." >&2;}
14581 { (exit 1); exit 1; }; }
14582 else
14583 cat >conftest.$ac_ext <<_ACEOF
14584 #line $LINENO "configure"
14585 /* confdefs.h. */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 $ac_includes_default
14591 long longval () { return (long) (sizeof (long long)); }
14592 unsigned long ulongval () { return (long) (sizeof (long long)); }
14593 #include <stdio.h>
14594 #include <stdlib.h>
14596 main ()
14599 FILE *f = fopen ("conftest.val", "w");
14600 if (! f)
14601 exit (1);
14602 if (((long) (sizeof (long long))) < 0)
14604 long i = longval ();
14605 if (i != ((long) (sizeof (long long))))
14606 exit (1);
14607 fprintf (f, "%ld\n", i);
14609 else
14611 unsigned long i = ulongval ();
14612 if (i != ((long) (sizeof (long long))))
14613 exit (1);
14614 fprintf (f, "%lu\n", i);
14616 exit (ferror (f) || fclose (f) != 0);
14619 return 0;
14621 _ACEOF
14622 rm -f conftest$ac_exeext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14624 (eval $ac_link) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14633 ac_cv_sizeof_long_long=`cat conftest.val`
14634 else
14635 echo "$as_me: program exited with status $ac_status" >&5
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14639 ( exit $ac_status )
14640 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14641 See \`config.log' for more details." >&5
14642 echo "$as_me: error: cannot compute sizeof (long long), 77
14643 See \`config.log' for more details." >&2;}
14644 { (exit 1); exit 1; }; }
14646 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14649 rm -f conftest.val
14650 else
14651 ac_cv_sizeof_long_long=0
14654 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14655 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
14656 cat >>confdefs.h <<_ACEOF
14657 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14658 _ACEOF
14662 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
14663 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
14664 if test "${wine_cv_linux_input_h+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 else
14667 cat >conftest.$ac_ext <<_ACEOF
14668 #line $LINENO "configure"
14669 /* confdefs.h. */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14675 #include <linux/input.h>
14678 main ()
14681 int foo = EVIOCGBIT(EV_ABS,42);
14682 int bar = BTN_PINKIE;
14683 int fortytwo = 42;
14686 return 0;
14688 _ACEOF
14689 rm -f conftest.$ac_objext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14691 (eval $ac_compile) 2>&5
14692 ac_status=$?
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -s conftest.$ac_objext'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14698 ac_status=$?
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 wine_cv_linux_input_h=yes
14702 else
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 wine_cv_linux_input_h=no
14708 rm -f conftest.$ac_objext conftest.$ac_ext
14711 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
14712 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
14713 if test "$wine_cv_linux_input_h" = "yes"
14714 then
14716 cat >>confdefs.h <<\_ACEOF
14717 #define HAVE_CORRECT_LINUXINPUT_H 1
14718 _ACEOF
14723 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14724 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
14725 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 else
14728 cat >conftest.$ac_ext <<_ACEOF
14729 #line $LINENO "configure"
14730 /* confdefs.h. */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14736 #include <netdb.h>
14739 main ()
14742 char *name=NULL;
14743 struct hostent he;
14744 struct hostent *result;
14745 char *buf=NULL;
14746 int bufsize=0;
14747 int res,errnr;
14748 char *addr=NULL;
14749 int addrlen=0;
14750 int addrtype=0;
14751 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14752 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14755 return 0;
14757 _ACEOF
14758 rm -f conftest.$ac_objext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14760 (eval $ac_compile) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -s conftest.$ac_objext'
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14770 wine_cv_linux_gethostbyname_r_6=yes
14771 else
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14775 wine_cv_linux_gethostbyname_r_6=no
14778 rm -f conftest.$ac_objext conftest.$ac_ext
14781 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
14782 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
14783 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14784 then
14786 cat >>confdefs.h <<\_ACEOF
14787 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
14788 _ACEOF
14792 if test "$ac_cv_header_linux_joystick_h" = "yes"
14793 then
14794 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14795 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
14796 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 else
14799 cat >conftest.$ac_ext <<_ACEOF
14800 #line $LINENO "configure"
14801 /* confdefs.h. */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14807 #include <sys/ioctl.h>
14808 #include <linux/joystick.h>
14810 struct js_event blub;
14811 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14812 #error "no 2.2 header"
14813 #endif
14816 main ()
14818 /*empty*/
14820 return 0;
14822 _ACEOF
14823 rm -f conftest.$ac_objext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14825 (eval $ac_compile) 2>&5
14826 ac_status=$?
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try='test -s conftest.$ac_objext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 wine_cv_linux_joystick_22_api=yes
14836 else
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 wine_cv_linux_joystick_22_api=no
14842 rm -f conftest.$ac_objext conftest.$ac_ext
14845 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
14846 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
14847 if test "$wine_cv_linux_joystick_22_api" = "yes"
14848 then
14850 cat >>confdefs.h <<\_ACEOF
14851 #define HAVE_LINUX_22_JOYSTICK_API 1
14852 _ACEOF
14858 if test "$ac_cv_header_sys_vfs_h" = "yes"
14859 then
14860 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
14861 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
14862 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 else
14865 cat >conftest.$ac_ext <<_ACEOF
14866 #line $LINENO "configure"
14867 /* confdefs.h. */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14873 #include <sys/types.h>
14874 #ifdef HAVE_SYS_PARAM_H
14875 # include <sys/param.h>
14876 #endif
14877 #include <sys/vfs.h>
14880 main ()
14883 struct statfs stfs;
14885 memset(&stfs,0,sizeof(stfs));
14888 return 0;
14890 _ACEOF
14891 rm -f conftest.$ac_objext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14893 (eval $ac_compile) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 wine_cv_sys_vfs_has_statfs=yes
14904 else
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14908 wine_cv_sys_vfs_has_statfs=no
14911 rm -f conftest.$ac_objext conftest.$ac_ext
14914 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
14915 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
14916 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
14917 then
14919 cat >>confdefs.h <<\_ACEOF
14920 #define STATFS_DEFINED_BY_SYS_VFS 1
14921 _ACEOF
14926 if test "$ac_cv_header_sys_statfs_h" = "yes"
14927 then
14928 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
14929 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
14930 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
14932 else
14933 cat >conftest.$ac_ext <<_ACEOF
14934 #line $LINENO "configure"
14935 /* confdefs.h. */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14941 #include <sys/types.h>
14942 #ifdef HAVE_SYS_PARAM_H
14943 # include <sys/param.h>
14944 #endif
14945 #include <sys/statfs.h>
14948 main ()
14951 struct statfs stfs;
14954 return 0;
14956 _ACEOF
14957 rm -f conftest.$ac_objext
14958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14959 (eval $ac_compile) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
14963 { ac_try='test -s conftest.$ac_objext'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14969 wine_cv_sys_statfs_has_statfs=yes
14970 else
14971 echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14974 wine_cv_sys_statfs_has_statfs=no
14977 rm -f conftest.$ac_objext conftest.$ac_ext
14980 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
14981 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
14982 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
14983 then
14985 cat >>confdefs.h <<\_ACEOF
14986 #define STATFS_DEFINED_BY_SYS_STATFS 1
14987 _ACEOF
14992 if test "$ac_cv_header_sys_mount_h" = "yes"
14993 then
14994 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
14995 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
14996 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 else
14999 cat >conftest.$ac_ext <<_ACEOF
15000 #line $LINENO "configure"
15001 /* confdefs.h. */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15007 #include <sys/types.h>
15008 #ifdef HAVE_SYS_PARAM_H
15009 # include <sys/param.h>
15010 #endif
15011 #include <sys/mount.h>
15014 main ()
15017 struct statfs stfs;
15020 return 0;
15022 _ACEOF
15023 rm -f conftest.$ac_objext
15024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15025 (eval $ac_compile) 2>&5
15026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -s conftest.$ac_objext'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; }; then
15035 wine_cv_sys_mount_has_statfs=yes
15036 else
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15040 wine_cv_sys_mount_has_statfs=no
15043 rm -f conftest.$ac_objext conftest.$ac_ext
15046 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
15047 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
15048 if test "$wine_cv_sys_mount_has_statfs" = "yes"
15049 then
15051 cat >>confdefs.h <<\_ACEOF
15052 #define STATFS_DEFINED_BY_SYS_MOUNT 1
15053 _ACEOF
15059 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
15060 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
15061 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 else
15064 cat >conftest.$ac_ext <<_ACEOF
15065 #line $LINENO "configure"
15066 /* confdefs.h. */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071 #include <sys/types.h>
15072 #ifdef HAVE_SYS_PARAM_H
15073 # include <sys/param.h>
15074 #endif
15075 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15076 # include <sys/mount.h>
15077 #else
15078 # ifdef STATFS_DEFINED_BY_SYS_VFS
15079 # include <sys/vfs.h>
15080 # else
15081 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15082 # include <sys/statfs.h>
15083 # endif
15084 # endif
15085 #endif
15088 main ()
15090 static struct statfs ac_aggr;
15091 if (ac_aggr.f_bfree)
15092 return 0;
15094 return 0;
15096 _ACEOF
15097 rm -f conftest.$ac_objext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099 (eval $ac_compile) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try='test -s conftest.$ac_objext'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 ac_cv_member_struct_statfs_f_bfree=yes
15110 else
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 cat >conftest.$ac_ext <<_ACEOF
15115 #line $LINENO "configure"
15116 /* confdefs.h. */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 #include <sys/types.h>
15122 #ifdef HAVE_SYS_PARAM_H
15123 # include <sys/param.h>
15124 #endif
15125 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15126 # include <sys/mount.h>
15127 #else
15128 # ifdef STATFS_DEFINED_BY_SYS_VFS
15129 # include <sys/vfs.h>
15130 # else
15131 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15132 # include <sys/statfs.h>
15133 # endif
15134 # endif
15135 #endif
15138 main ()
15140 static struct statfs ac_aggr;
15141 if (sizeof ac_aggr.f_bfree)
15142 return 0;
15144 return 0;
15146 _ACEOF
15147 rm -f conftest.$ac_objext
15148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15149 (eval $ac_compile) 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try='test -s conftest.$ac_objext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_member_struct_statfs_f_bfree=yes
15160 else
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15164 ac_cv_member_struct_statfs_f_bfree=no
15166 rm -f conftest.$ac_objext conftest.$ac_ext
15168 rm -f conftest.$ac_objext conftest.$ac_ext
15170 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
15171 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
15172 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
15174 cat >>confdefs.h <<_ACEOF
15175 #define HAVE_STRUCT_STATFS_F_BFREE 1
15176 _ACEOF
15180 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
15181 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
15182 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185 cat >conftest.$ac_ext <<_ACEOF
15186 #line $LINENO "configure"
15187 /* confdefs.h. */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 #include <sys/types.h>
15193 #ifdef HAVE_SYS_PARAM_H
15194 # include <sys/param.h>
15195 #endif
15196 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15197 # include <sys/mount.h>
15198 #else
15199 # ifdef STATFS_DEFINED_BY_SYS_VFS
15200 # include <sys/vfs.h>
15201 # else
15202 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15203 # include <sys/statfs.h>
15204 # endif
15205 # endif
15206 #endif
15209 main ()
15211 static struct statfs ac_aggr;
15212 if (ac_aggr.f_bavail)
15213 return 0;
15215 return 0;
15217 _ACEOF
15218 rm -f conftest.$ac_objext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220 (eval $ac_compile) 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -s conftest.$ac_objext'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15227 ac_status=$?
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; }; then
15230 ac_cv_member_struct_statfs_f_bavail=yes
15231 else
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 cat >conftest.$ac_ext <<_ACEOF
15236 #line $LINENO "configure"
15237 /* confdefs.h. */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15242 #include <sys/types.h>
15243 #ifdef HAVE_SYS_PARAM_H
15244 # include <sys/param.h>
15245 #endif
15246 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15247 # include <sys/mount.h>
15248 #else
15249 # ifdef STATFS_DEFINED_BY_SYS_VFS
15250 # include <sys/vfs.h>
15251 # else
15252 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15253 # include <sys/statfs.h>
15254 # endif
15255 # endif
15256 #endif
15259 main ()
15261 static struct statfs ac_aggr;
15262 if (sizeof ac_aggr.f_bavail)
15263 return 0;
15265 return 0;
15267 _ACEOF
15268 rm -f conftest.$ac_objext
15269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15270 (eval $ac_compile) 2>&5
15271 ac_status=$?
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
15274 { ac_try='test -s conftest.$ac_objext'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 ac_cv_member_struct_statfs_f_bavail=yes
15281 else
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 ac_cv_member_struct_statfs_f_bavail=no
15287 rm -f conftest.$ac_objext conftest.$ac_ext
15289 rm -f conftest.$ac_objext conftest.$ac_ext
15291 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
15292 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
15293 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
15295 cat >>confdefs.h <<_ACEOF
15296 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15297 _ACEOF
15303 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
15304 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
15305 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308 cat >conftest.$ac_ext <<_ACEOF
15309 #line $LINENO "configure"
15310 /* confdefs.h. */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 #include <sys/types.h>
15316 #ifdef HAVE_SYS_SOCKET_H
15317 # include <sys/socket.h>
15318 #endif
15319 #ifdef HAVE_SYS_UN_H
15320 # include <sys/un.h>
15321 #endif
15324 main ()
15326 static struct msghdr ac_aggr;
15327 if (ac_aggr.msg_accrights)
15328 return 0;
15330 return 0;
15332 _ACEOF
15333 rm -f conftest.$ac_objext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15335 (eval $ac_compile) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -s conftest.$ac_objext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 ac_cv_member_struct_msghdr_msg_accrights=yes
15346 else
15347 echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15350 cat >conftest.$ac_ext <<_ACEOF
15351 #line $LINENO "configure"
15352 /* confdefs.h. */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 #include <sys/types.h>
15358 #ifdef HAVE_SYS_SOCKET_H
15359 # include <sys/socket.h>
15360 #endif
15361 #ifdef HAVE_SYS_UN_H
15362 # include <sys/un.h>
15363 #endif
15366 main ()
15368 static struct msghdr ac_aggr;
15369 if (sizeof ac_aggr.msg_accrights)
15370 return 0;
15372 return 0;
15374 _ACEOF
15375 rm -f conftest.$ac_objext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
15381 { ac_try='test -s conftest.$ac_objext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_cv_member_struct_msghdr_msg_accrights=yes
15388 else
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_cv_member_struct_msghdr_msg_accrights=no
15394 rm -f conftest.$ac_objext conftest.$ac_ext
15396 rm -f conftest.$ac_objext conftest.$ac_ext
15398 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
15399 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
15400 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
15402 cat >>confdefs.h <<_ACEOF
15403 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15404 _ACEOF
15408 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15409 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
15410 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413 cat >conftest.$ac_ext <<_ACEOF
15414 #line $LINENO "configure"
15415 /* confdefs.h. */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15420 #include <sys/types.h>
15421 #ifdef HAVE_SYS_SOCKET_H
15422 # include <sys/socket.h>
15423 #endif
15424 #ifdef HAVE_SYS_UN_H
15425 # include <sys/un.h>
15426 #endif
15429 main ()
15431 static struct sockaddr ac_aggr;
15432 if (ac_aggr.sa_len)
15433 return 0;
15435 return 0;
15437 _ACEOF
15438 rm -f conftest.$ac_objext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try='test -s conftest.$ac_objext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_cv_member_struct_sockaddr_sa_len=yes
15451 else
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 cat >conftest.$ac_ext <<_ACEOF
15456 #line $LINENO "configure"
15457 /* confdefs.h. */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 #include <sys/types.h>
15463 #ifdef HAVE_SYS_SOCKET_H
15464 # include <sys/socket.h>
15465 #endif
15466 #ifdef HAVE_SYS_UN_H
15467 # include <sys/un.h>
15468 #endif
15471 main ()
15473 static struct sockaddr ac_aggr;
15474 if (sizeof ac_aggr.sa_len)
15475 return 0;
15477 return 0;
15479 _ACEOF
15480 rm -f conftest.$ac_objext
15481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15482 (eval $ac_compile) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } &&
15486 { ac_try='test -s conftest.$ac_objext'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 ac_cv_member_struct_sockaddr_sa_len=yes
15493 else
15494 echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.$ac_ext >&5
15497 ac_cv_member_struct_sockaddr_sa_len=no
15499 rm -f conftest.$ac_objext conftest.$ac_ext
15501 rm -f conftest.$ac_objext conftest.$ac_ext
15503 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15504 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
15505 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15507 cat >>confdefs.h <<_ACEOF
15508 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15509 _ACEOF
15513 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
15514 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
15515 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 else
15518 cat >conftest.$ac_ext <<_ACEOF
15519 #line $LINENO "configure"
15520 /* confdefs.h. */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15525 #include <sys/types.h>
15526 #ifdef HAVE_SYS_SOCKET_H
15527 # include <sys/socket.h>
15528 #endif
15529 #ifdef HAVE_SYS_UN_H
15530 # include <sys/un.h>
15531 #endif
15534 main ()
15536 static struct sockaddr_un ac_aggr;
15537 if (ac_aggr.sun_len)
15538 return 0;
15540 return 0;
15542 _ACEOF
15543 rm -f conftest.$ac_objext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15545 (eval $ac_compile) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } &&
15549 { ac_try='test -s conftest.$ac_objext'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 ac_cv_member_struct_sockaddr_un_sun_len=yes
15556 else
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 cat >conftest.$ac_ext <<_ACEOF
15561 #line $LINENO "configure"
15562 /* confdefs.h. */
15563 _ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15567 #include <sys/types.h>
15568 #ifdef HAVE_SYS_SOCKET_H
15569 # include <sys/socket.h>
15570 #endif
15571 #ifdef HAVE_SYS_UN_H
15572 # include <sys/un.h>
15573 #endif
15576 main ()
15578 static struct sockaddr_un ac_aggr;
15579 if (sizeof ac_aggr.sun_len)
15580 return 0;
15582 return 0;
15584 _ACEOF
15585 rm -f conftest.$ac_objext
15586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15587 (eval $ac_compile) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 ac_cv_member_struct_sockaddr_un_sun_len=yes
15598 else
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 ac_cv_member_struct_sockaddr_un_sun_len=no
15604 rm -f conftest.$ac_objext conftest.$ac_ext
15606 rm -f conftest.$ac_objext conftest.$ac_ext
15608 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
15609 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
15610 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
15612 cat >>confdefs.h <<_ACEOF
15613 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15614 _ACEOF
15620 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
15621 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
15622 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 else
15625 cat >conftest.$ac_ext <<_ACEOF
15626 #line $LINENO "configure"
15627 /* confdefs.h. */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 #include <signal.h>
15635 main ()
15637 static siginfo_t ac_aggr;
15638 if (ac_aggr.si_fd)
15639 return 0;
15641 return 0;
15643 _ACEOF
15644 rm -f conftest.$ac_objext
15645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15646 (eval $ac_compile) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
15650 { ac_try='test -s conftest.$ac_objext'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15653 ac_status=$?
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; }; then
15656 ac_cv_member_siginfo_t_si_fd=yes
15657 else
15658 echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15661 cat >conftest.$ac_ext <<_ACEOF
15662 #line $LINENO "configure"
15663 /* confdefs.h. */
15664 _ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h. */
15668 #include <signal.h>
15671 main ()
15673 static siginfo_t ac_aggr;
15674 if (sizeof ac_aggr.si_fd)
15675 return 0;
15677 return 0;
15679 _ACEOF
15680 rm -f conftest.$ac_objext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15682 (eval $ac_compile) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
15686 { ac_try='test -s conftest.$ac_objext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_cv_member_siginfo_t_si_fd=yes
15693 else
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15697 ac_cv_member_siginfo_t_si_fd=no
15699 rm -f conftest.$ac_objext conftest.$ac_ext
15701 rm -f conftest.$ac_objext conftest.$ac_ext
15703 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
15704 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
15705 if test $ac_cv_member_siginfo_t_si_fd = yes; then
15707 cat >>confdefs.h <<_ACEOF
15708 #define HAVE_SIGINFO_T_SI_FD 1
15709 _ACEOF
15716 case $host_cpu in
15717 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
15718 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
15719 if test "${ac_cv_cpp_def___i386__+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722 cat >conftest.$ac_ext <<_ACEOF
15723 #line $LINENO "configure"
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 #ifndef __i386__
15731 #endif
15732 _ACEOF
15733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15734 $EGREP "yes" >/dev/null 2>&1; then
15735 ac_cv_cpp_def___i386__=yes
15736 else
15737 ac_cv_cpp_def___i386__=no
15739 rm -f conftest*
15742 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
15743 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
15744 if test $ac_cv_cpp_def___i386__ = yes; then
15745 CFLAGS="$CFLAGS -D__i386__"
15746 LINTFLAGS="$LINTFLAGS -D__i386__"
15749 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
15750 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
15751 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754 cat >conftest.$ac_ext <<_ACEOF
15755 #line $LINENO "configure"
15756 /* confdefs.h. */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 #ifndef __ALPHA__
15763 #endif
15764 _ACEOF
15765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15766 $EGREP "yes" >/dev/null 2>&1; then
15767 ac_cv_cpp_def___ALPHA__=yes
15768 else
15769 ac_cv_cpp_def___ALPHA__=no
15771 rm -f conftest*
15774 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
15775 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
15776 if test $ac_cv_cpp_def___ALPHA__ = yes; then
15777 CFLAGS="$CFLAGS -D__ALPHA__"
15778 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
15781 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
15782 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
15783 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786 cat >conftest.$ac_ext <<_ACEOF
15787 #line $LINENO "configure"
15788 /* confdefs.h. */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15793 #ifndef __sparc__
15795 #endif
15796 _ACEOF
15797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15798 $EGREP "yes" >/dev/null 2>&1; then
15799 ac_cv_cpp_def___sparc__=yes
15800 else
15801 ac_cv_cpp_def___sparc__=no
15803 rm -f conftest*
15806 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
15807 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
15808 if test $ac_cv_cpp_def___sparc__ = yes; then
15809 CFLAGS="$CFLAGS -D__sparc__"
15810 LINTFLAGS="$LINTFLAGS -D__sparc__"
15813 esac
15815 case $host_vendor in
15816 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
15817 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
15818 if test "${ac_cv_cpp_def___sun__+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821 cat >conftest.$ac_ext <<_ACEOF
15822 #line $LINENO "configure"
15823 /* confdefs.h. */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828 #ifndef __sun__
15830 #endif
15831 _ACEOF
15832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15833 $EGREP "yes" >/dev/null 2>&1; then
15834 ac_cv_cpp_def___sun__=yes
15835 else
15836 ac_cv_cpp_def___sun__=no
15838 rm -f conftest*
15841 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
15842 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
15843 if test $ac_cv_cpp_def___sun__ = yes; then
15844 CFLAGS="$CFLAGS -D__sun__"
15845 LINTFLAGS="$LINTFLAGS -D__sun__"
15848 esac
15854 ac_config_commands="$ac_config_commands controls"
15856 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
15858 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
15860 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
15862 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
15864 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
15866 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
15868 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
15870 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
15872 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
15874 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
15876 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
15878 ac_config_commands="$ac_config_commands dlls/kernel/messages"
15880 ac_config_commands="$ac_config_commands dlls/user/dde"
15882 ac_config_commands="$ac_config_commands dlls/user/resources"
15884 ac_config_commands="$ac_config_commands dlls/wineps/data"
15886 ac_config_commands="$ac_config_commands files"
15888 ac_config_commands="$ac_config_commands graphics"
15890 ac_config_commands="$ac_config_commands graphics/x11drv"
15892 ac_config_commands="$ac_config_commands if1632"
15894 ac_config_commands="$ac_config_commands include/wine"
15896 ac_config_commands="$ac_config_commands loader"
15898 ac_config_commands="$ac_config_commands loader/ne"
15900 ac_config_commands="$ac_config_commands memory"
15902 ac_config_commands="$ac_config_commands misc"
15904 ac_config_commands="$ac_config_commands msdos"
15906 ac_config_commands="$ac_config_commands objects"
15908 ac_config_commands="$ac_config_commands ole"
15910 ac_config_commands="$ac_config_commands programs/regapi/tests"
15912 ac_config_commands="$ac_config_commands programs/regedit/tests"
15914 ac_config_commands="$ac_config_commands relay32"
15916 ac_config_commands="$ac_config_commands scheduler"
15918 ac_config_commands="$ac_config_commands win32"
15920 ac_config_commands="$ac_config_commands windows"
15923 MAKE_RULES=Make.rules
15926 MAKE_DLL_RULES=dlls/Makedll.rules
15929 MAKE_TEST_RULES=dlls/Maketest.rules
15932 MAKE_PROG_RULES=programs/Makeprog.rules
15935 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/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/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/msvcrtd/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/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile miscemu/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/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/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"
15938 cat >confcache <<\_ACEOF
15939 # This file is a shell script that caches the results of configure
15940 # tests run on this system so they can be shared between configure
15941 # scripts and configure runs, see configure's option --config-cache.
15942 # It is not useful on other systems. If it contains results you don't
15943 # want to keep, you may remove or edit it.
15945 # config.status only pays attention to the cache file if you give it
15946 # the --recheck option to rerun configure.
15948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15950 # following values.
15952 _ACEOF
15954 # The following way of writing the cache mishandles newlines in values,
15955 # but we know of no workaround that is simple, portable, and efficient.
15956 # So, don't put newlines in cache variables' values.
15957 # Ultrix sh set writes to stderr and can't be redirected directly,
15958 # and sets the high bit in the cache file unless we assign to the vars.
15960 (set) 2>&1 |
15961 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15962 *ac_space=\ *)
15963 # `set' does not quote correctly, so add quotes (double-quote
15964 # substitution turns \\\\ into \\, and sed turns \\ into \).
15965 sed -n \
15966 "s/'/'\\\\''/g;
15967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15970 # `set' quotes correctly as required by POSIX, so do not add quotes.
15971 sed -n \
15972 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15974 esac;
15976 sed '
15977 t clear
15978 : clear
15979 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15980 t end
15981 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15982 : end' >>confcache
15983 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15984 if test -w $cache_file; then
15985 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15986 cat confcache >$cache_file
15987 else
15988 echo "not updating unwritable cache $cache_file"
15991 rm -f confcache
15993 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15994 # Let make expand exec_prefix.
15995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15997 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15998 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15999 # trailing colons and then remove the whole line if VPATH becomes empty
16000 # (actually we leave an empty line to preserve line numbers).
16001 if test "x$srcdir" = x.; then
16002 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16003 s/:*\$(srcdir):*/:/;
16004 s/:*\${srcdir}:*/:/;
16005 s/:*@srcdir@:*/:/;
16006 s/^\([^=]*=[ ]*\):*/\1/;
16007 s/:*$//;
16008 s/^[^=]*=[ ]*$//;
16012 DEFS=-DHAVE_CONFIG_H
16014 ac_libobjs=
16015 ac_ltlibobjs=
16016 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16017 # 1. Remove the extension, and $U if already installed.
16018 ac_i=`echo "$ac_i" |
16019 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16020 # 2. Add them.
16021 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16022 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16023 done
16024 LIBOBJS=$ac_libobjs
16026 LTLIBOBJS=$ac_ltlibobjs
16030 : ${CONFIG_STATUS=./config.status}
16031 ac_clean_files_save=$ac_clean_files
16032 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16033 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16034 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16035 cat >$CONFIG_STATUS <<_ACEOF
16036 #! $SHELL
16037 # Generated by $as_me.
16038 # Run this file to recreate the current configuration.
16039 # Compiler output produced by configure, useful for debugging
16040 # configure, is in config.log if it exists.
16042 debug=false
16043 ac_cs_recheck=false
16044 ac_cs_silent=false
16045 SHELL=\${CONFIG_SHELL-$SHELL}
16046 _ACEOF
16048 cat >>$CONFIG_STATUS <<\_ACEOF
16049 ## --------------------- ##
16050 ## M4sh Initialization. ##
16051 ## --------------------- ##
16053 # Be Bourne compatible
16054 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16055 emulate sh
16056 NULLCMD=:
16057 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16058 # is contrary to our usage. Disable this feature.
16059 alias -g '${1+"$@"}'='"$@"'
16060 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16061 set -o posix
16064 # Support unset when possible.
16065 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16066 as_unset=unset
16067 else
16068 as_unset=false
16072 # Work around bugs in pre-3.0 UWIN ksh.
16073 $as_unset ENV MAIL MAILPATH
16074 PS1='$ '
16075 PS2='> '
16076 PS4='+ '
16078 # NLS nuisances.
16079 for as_var in \
16080 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16081 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16082 LC_TELEPHONE LC_TIME
16084 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16085 eval $as_var=C; export $as_var
16086 else
16087 $as_unset $as_var
16089 done
16091 # Required to use basename.
16092 if expr a : '\(a\)' >/dev/null 2>&1; then
16093 as_expr=expr
16094 else
16095 as_expr=false
16098 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16099 as_basename=basename
16100 else
16101 as_basename=false
16105 # Name of the executable.
16106 as_me=`$as_basename "$0" ||
16107 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16108 X"$0" : 'X\(//\)$' \| \
16109 X"$0" : 'X\(/\)$' \| \
16110 . : '\(.\)' 2>/dev/null ||
16111 echo X/"$0" |
16112 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16113 /^X\/\(\/\/\)$/{ s//\1/; q; }
16114 /^X\/\(\/\).*/{ s//\1/; q; }
16115 s/.*/./; q'`
16118 # PATH needs CR, and LINENO needs CR and PATH.
16119 # Avoid depending upon Character Ranges.
16120 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16121 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16122 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16123 as_cr_digits='0123456789'
16124 as_cr_alnum=$as_cr_Letters$as_cr_digits
16126 # The user is always right.
16127 if test "${PATH_SEPARATOR+set}" != set; then
16128 echo "#! /bin/sh" >conf$$.sh
16129 echo "exit 0" >>conf$$.sh
16130 chmod +x conf$$.sh
16131 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16132 PATH_SEPARATOR=';'
16133 else
16134 PATH_SEPARATOR=:
16136 rm -f conf$$.sh
16140 as_lineno_1=$LINENO
16141 as_lineno_2=$LINENO
16142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16143 test "x$as_lineno_1" != "x$as_lineno_2" &&
16144 test "x$as_lineno_3" = "x$as_lineno_2" || {
16145 # Find who we are. Look in the path if we contain no path at all
16146 # relative or not.
16147 case $0 in
16148 *[\\/]* ) as_myself=$0 ;;
16149 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16150 for as_dir in $PATH
16152 IFS=$as_save_IFS
16153 test -z "$as_dir" && as_dir=.
16154 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16155 done
16158 esac
16159 # We did not find ourselves, most probably we were run as `sh COMMAND'
16160 # in which case we are not to be found in the path.
16161 if test "x$as_myself" = x; then
16162 as_myself=$0
16164 if test ! -f "$as_myself"; then
16165 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16166 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16167 { (exit 1); exit 1; }; }
16169 case $CONFIG_SHELL in
16171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16172 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16174 IFS=$as_save_IFS
16175 test -z "$as_dir" && as_dir=.
16176 for as_base in sh bash ksh sh5; do
16177 case $as_dir in
16179 if ("$as_dir/$as_base" -c '
16180 as_lineno_1=$LINENO
16181 as_lineno_2=$LINENO
16182 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16183 test "x$as_lineno_1" != "x$as_lineno_2" &&
16184 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16185 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16186 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16187 CONFIG_SHELL=$as_dir/$as_base
16188 export CONFIG_SHELL
16189 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16190 fi;;
16191 esac
16192 done
16193 done
16195 esac
16197 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16198 # uniformly replaced by the line number. The first 'sed' inserts a
16199 # line-number line before each line; the second 'sed' does the real
16200 # work. The second script uses 'N' to pair each line-number line
16201 # with the numbered line, and appends trailing '-' during
16202 # substitution so that $LINENO is not a special case at line end.
16203 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16204 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16205 sed '=' <$as_myself |
16206 sed '
16208 s,$,-,
16209 : loop
16210 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16211 t loop
16212 s,-$,,
16213 s,^['$as_cr_digits']*\n,,
16214 ' >$as_me.lineno &&
16215 chmod +x $as_me.lineno ||
16216 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16217 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16218 { (exit 1); exit 1; }; }
16220 # Don't try to exec as it changes $[0], causing all sort of problems
16221 # (the dirname of $[0] is not the place where we might find the
16222 # original and so on. Autoconf is especially sensible to this).
16223 . ./$as_me.lineno
16224 # Exit status is that of the last command.
16225 exit
16229 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16230 *c*,-n*) ECHO_N= ECHO_C='
16231 ' ECHO_T=' ' ;;
16232 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16233 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16234 esac
16236 if expr a : '\(a\)' >/dev/null 2>&1; then
16237 as_expr=expr
16238 else
16239 as_expr=false
16242 rm -f conf$$ conf$$.exe conf$$.file
16243 echo >conf$$.file
16244 if ln -s conf$$.file conf$$ 2>/dev/null; then
16245 # We could just check for DJGPP; but this test a) works b) is more generic
16246 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16247 if test -f conf$$.exe; then
16248 # Don't use ln at all; we don't have any links
16249 as_ln_s='cp -p'
16250 else
16251 as_ln_s='ln -s'
16253 elif ln conf$$.file conf$$ 2>/dev/null; then
16254 as_ln_s=ln
16255 else
16256 as_ln_s='cp -p'
16258 rm -f conf$$ conf$$.exe conf$$.file
16260 if mkdir -p . 2>/dev/null; then
16261 as_mkdir_p=:
16262 else
16263 as_mkdir_p=false
16266 as_executable_p="test -f"
16268 # Sed expression to map a string onto a valid CPP name.
16269 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16271 # Sed expression to map a string onto a valid variable name.
16272 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16275 # IFS
16276 # We need space, tab and new line, in precisely that order.
16277 as_nl='
16279 IFS=" $as_nl"
16281 # CDPATH.
16282 $as_unset CDPATH
16284 exec 6>&1
16286 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16287 # report actual input values of CONFIG_FILES etc. instead of their
16288 # values after options handling. Logging --version etc. is OK.
16289 exec 5>>config.log
16291 echo
16292 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16293 ## Running $as_me. ##
16294 _ASBOX
16295 } >&5
16296 cat >&5 <<_CSEOF
16298 This file was extended by Wine $as_me 20030318, which was
16299 generated by GNU Autoconf 2.57. Invocation command line was
16301 CONFIG_FILES = $CONFIG_FILES
16302 CONFIG_HEADERS = $CONFIG_HEADERS
16303 CONFIG_LINKS = $CONFIG_LINKS
16304 CONFIG_COMMANDS = $CONFIG_COMMANDS
16305 $ $0 $@
16307 _CSEOF
16308 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16309 echo >&5
16310 _ACEOF
16312 # Files that config.status was made for.
16313 if test -n "$ac_config_files"; then
16314 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16317 if test -n "$ac_config_headers"; then
16318 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16321 if test -n "$ac_config_links"; then
16322 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16325 if test -n "$ac_config_commands"; then
16326 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16329 cat >>$CONFIG_STATUS <<\_ACEOF
16331 ac_cs_usage="\
16332 \`$as_me' instantiates files from templates according to the
16333 current configuration.
16335 Usage: $0 [OPTIONS] [FILE]...
16337 -h, --help print this help, then exit
16338 -V, --version print version number, then exit
16339 -q, --quiet do not print progress messages
16340 -d, --debug don't remove temporary files
16341 --recheck update $as_me by reconfiguring in the same conditions
16342 --file=FILE[:TEMPLATE]
16343 instantiate the configuration file FILE
16344 --header=FILE[:TEMPLATE]
16345 instantiate the configuration header FILE
16347 Configuration files:
16348 $config_files
16350 Configuration headers:
16351 $config_headers
16353 Configuration commands:
16354 $config_commands
16356 Report bugs to <bug-autoconf@gnu.org>."
16357 _ACEOF
16359 cat >>$CONFIG_STATUS <<_ACEOF
16360 ac_cs_version="\\
16361 Wine config.status 20030318
16362 configured by $0, generated by GNU Autoconf 2.57,
16363 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16365 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16366 Free Software Foundation, Inc.
16367 This config.status script is free software; the Free Software Foundation
16368 gives unlimited permission to copy, distribute and modify it."
16369 srcdir=$srcdir
16370 INSTALL="$INSTALL"
16371 _ACEOF
16373 cat >>$CONFIG_STATUS <<\_ACEOF
16374 # If no file are specified by the user, then we need to provide default
16375 # value. By we need to know if files were specified by the user.
16376 ac_need_defaults=:
16377 while test $# != 0
16379 case $1 in
16380 --*=*)
16381 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16382 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16383 ac_shift=:
16386 ac_option=$1
16387 ac_optarg=$2
16388 ac_shift=shift
16390 *) # This is not an option, so the user has probably given explicit
16391 # arguments.
16392 ac_option=$1
16393 ac_need_defaults=false;;
16394 esac
16396 case $ac_option in
16397 # Handling of the options.
16398 _ACEOF
16399 cat >>$CONFIG_STATUS <<\_ACEOF
16400 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16401 ac_cs_recheck=: ;;
16402 --version | --vers* | -V )
16403 echo "$ac_cs_version"; exit 0 ;;
16404 --he | --h)
16405 # Conflict between --help and --header
16406 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16407 Try \`$0 --help' for more information." >&5
16408 echo "$as_me: error: ambiguous option: $1
16409 Try \`$0 --help' for more information." >&2;}
16410 { (exit 1); exit 1; }; };;
16411 --help | --hel | -h )
16412 echo "$ac_cs_usage"; exit 0 ;;
16413 --debug | --d* | -d )
16414 debug=: ;;
16415 --file | --fil | --fi | --f )
16416 $ac_shift
16417 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16418 ac_need_defaults=false;;
16419 --header | --heade | --head | --hea )
16420 $ac_shift
16421 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16422 ac_need_defaults=false;;
16423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16424 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16425 ac_cs_silent=: ;;
16427 # This is an error.
16428 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16429 Try \`$0 --help' for more information." >&5
16430 echo "$as_me: error: unrecognized option: $1
16431 Try \`$0 --help' for more information." >&2;}
16432 { (exit 1); exit 1; }; } ;;
16434 *) ac_config_targets="$ac_config_targets $1" ;;
16436 esac
16437 shift
16438 done
16440 ac_configure_extra_args=
16442 if $ac_cs_silent; then
16443 exec 6>/dev/null
16444 ac_configure_extra_args="$ac_configure_extra_args --silent"
16447 _ACEOF
16448 cat >>$CONFIG_STATUS <<_ACEOF
16449 if \$ac_cs_recheck; then
16450 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16451 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16454 _ACEOF
16460 cat >>$CONFIG_STATUS <<\_ACEOF
16461 for ac_config_target in $ac_config_targets
16463 case "$ac_config_target" in
16464 # Handling of arguments.
16465 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16466 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16467 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
16468 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16469 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16470 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
16471 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
16472 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
16473 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
16474 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
16475 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
16476 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
16477 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
16478 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
16479 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
16480 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
16481 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
16482 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
16483 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
16484 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
16485 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
16486 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
16487 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
16488 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
16489 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
16490 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
16491 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
16492 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
16493 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
16494 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
16495 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
16496 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
16497 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
16498 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
16499 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
16500 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
16501 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
16502 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
16503 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
16504 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
16505 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
16506 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
16507 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
16508 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
16509 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
16510 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
16511 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
16512 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
16513 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
16514 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
16515 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
16516 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
16517 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
16518 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
16519 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
16520 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
16521 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
16522 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
16523 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
16524 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
16525 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
16526 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
16527 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
16528 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
16529 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
16530 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
16531 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
16532 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
16533 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
16534 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
16535 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
16536 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
16537 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
16538 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
16539 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
16540 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
16541 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
16542 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
16543 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
16544 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
16545 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
16546 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
16547 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
16548 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
16549 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
16550 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
16551 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
16552 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
16553 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
16554 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
16555 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
16556 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
16557 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
16558 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
16559 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
16560 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
16561 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
16562 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
16563 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
16564 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
16565 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
16566 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
16567 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
16568 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
16569 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
16570 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
16571 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
16572 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
16573 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
16574 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
16575 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
16576 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
16577 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
16578 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
16579 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
16580 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
16581 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
16582 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
16583 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
16584 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
16585 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
16586 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
16587 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
16588 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
16589 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
16590 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
16591 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
16592 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
16593 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
16594 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
16595 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
16596 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
16597 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
16598 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
16599 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
16600 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
16601 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
16602 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16603 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
16604 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
16605 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
16606 "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
16607 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
16608 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
16609 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
16610 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
16611 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
16612 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
16613 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
16614 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
16615 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
16616 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
16617 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
16618 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
16619 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
16620 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
16621 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
16622 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
16623 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
16624 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
16625 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
16626 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
16627 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
16628 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
16629 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
16630 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
16631 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
16632 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
16633 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
16634 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
16635 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
16636 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
16637 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
16638 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16639 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
16640 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
16641 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
16642 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
16643 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
16644 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
16645 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
16646 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
16647 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
16648 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
16649 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
16650 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
16651 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
16652 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
16653 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
16654 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
16655 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
16656 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
16657 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
16658 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
16659 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
16660 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
16661 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
16662 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
16663 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
16664 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
16665 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
16666 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16667 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
16668 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
16669 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
16670 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
16671 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
16672 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
16673 "ole" ) CONFIG_COMMANDS="$CONFIG_COMMANDS ole" ;;
16674 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
16675 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
16676 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
16677 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
16678 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
16679 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
16680 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16681 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16682 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16683 { (exit 1); exit 1; }; };;
16684 esac
16685 done
16687 # If the user did not use the arguments to specify the items to instantiate,
16688 # then the envvar interface is used. Set only those that are not.
16689 # We use the long form for the default assignment because of an extremely
16690 # bizarre bug on SunOS 4.1.3.
16691 if $ac_need_defaults; then
16692 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16693 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16694 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16697 # Have a temporary directory for convenience. Make it in the build tree
16698 # simply because there is no reason to put it here, and in addition,
16699 # creating and moving files from /tmp can sometimes cause problems.
16700 # Create a temporary directory, and hook for its removal unless debugging.
16701 $debug ||
16703 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16704 trap '{ (exit 1); exit 1; }' 1 2 13 15
16707 # Create a (secure) tmp directory for tmp files.
16710 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16711 test -n "$tmp" && test -d "$tmp"
16712 } ||
16714 tmp=./confstat$$-$RANDOM
16715 (umask 077 && mkdir $tmp)
16716 } ||
16718 echo "$me: cannot create a temporary directory in ." >&2
16719 { (exit 1); exit 1; }
16722 _ACEOF
16724 cat >>$CONFIG_STATUS <<_ACEOF
16727 # CONFIG_FILES section.
16730 # No need to generate the scripts if there are no CONFIG_FILES.
16731 # This happens for instance when ./config.status config.h
16732 if test -n "\$CONFIG_FILES"; then
16733 # Protect against being on the right side of a sed subst in config.status.
16734 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16735 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16736 s,@SHELL@,$SHELL,;t t
16737 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16738 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16739 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16740 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16741 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16742 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16743 s,@exec_prefix@,$exec_prefix,;t t
16744 s,@prefix@,$prefix,;t t
16745 s,@program_transform_name@,$program_transform_name,;t t
16746 s,@bindir@,$bindir,;t t
16747 s,@sbindir@,$sbindir,;t t
16748 s,@libexecdir@,$libexecdir,;t t
16749 s,@datadir@,$datadir,;t t
16750 s,@sysconfdir@,$sysconfdir,;t t
16751 s,@sharedstatedir@,$sharedstatedir,;t t
16752 s,@localstatedir@,$localstatedir,;t t
16753 s,@libdir@,$libdir,;t t
16754 s,@includedir@,$includedir,;t t
16755 s,@oldincludedir@,$oldincludedir,;t t
16756 s,@infodir@,$infodir,;t t
16757 s,@mandir@,$mandir,;t t
16758 s,@build_alias@,$build_alias,;t t
16759 s,@host_alias@,$host_alias,;t t
16760 s,@target_alias@,$target_alias,;t t
16761 s,@DEFS@,$DEFS,;t t
16762 s,@ECHO_C@,$ECHO_C,;t t
16763 s,@ECHO_N@,$ECHO_N,;t t
16764 s,@ECHO_T@,$ECHO_T,;t t
16765 s,@LIBS@,$LIBS,;t t
16766 s,@OPTIONS@,$OPTIONS,;t t
16767 s,@WIN16_FILES@,$WIN16_FILES,;t t
16768 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
16769 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
16770 s,@build@,$build,;t t
16771 s,@build_cpu@,$build_cpu,;t t
16772 s,@build_vendor@,$build_vendor,;t t
16773 s,@build_os@,$build_os,;t t
16774 s,@host@,$host,;t t
16775 s,@host_cpu@,$host_cpu,;t t
16776 s,@host_vendor@,$host_vendor,;t t
16777 s,@host_os@,$host_os,;t t
16778 s,@SET_MAKE@,$SET_MAKE,;t t
16779 s,@CC@,$CC,;t t
16780 s,@CFLAGS@,$CFLAGS,;t t
16781 s,@LDFLAGS@,$LDFLAGS,;t t
16782 s,@CPPFLAGS@,$CPPFLAGS,;t t
16783 s,@ac_ct_CC@,$ac_ct_CC,;t t
16784 s,@EXEEXT@,$EXEEXT,;t t
16785 s,@OBJEXT@,$OBJEXT,;t t
16786 s,@CPP@,$CPP,;t t
16787 s,@TOOLSDIR@,$TOOLSDIR,;t t
16788 s,@X_CFLAGS@,$X_CFLAGS,;t t
16789 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16790 s,@X_LIBS@,$X_LIBS,;t t
16791 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16792 s,@YACC@,$YACC,;t t
16793 s,@LEX@,$LEX,;t t
16794 s,@LEXLIB@,$LEXLIB,;t t
16795 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16796 s,@XYACC@,$XYACC,;t t
16797 s,@XLEX@,$XLEX,;t t
16798 s,@AS@,$AS,;t t
16799 s,@ac_ct_AS@,$ac_ct_AS,;t t
16800 s,@LD@,$LD,;t t
16801 s,@ac_ct_LD@,$ac_ct_LD,;t t
16802 s,@AR@,$AR,;t t
16803 s,@ac_ct_AR@,$ac_ct_AR,;t t
16804 s,@RANLIB@,$RANLIB,;t t
16805 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16806 s,@STRIP@,$STRIP,;t t
16807 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16808 s,@WINDRES@,$WINDRES,;t t
16809 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
16810 s,@LN_S@,$LN_S,;t t
16811 s,@LN@,$LN,;t t
16812 s,@C2MAN@,$C2MAN,;t t
16813 s,@LDCONFIG@,$LDCONFIG,;t t
16814 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16815 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16816 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16817 s,@LINT@,$LINT,;t t
16818 s,@LINTFLAGS@,$LINTFLAGS,;t t
16819 s,@DB2HTML@,$DB2HTML,;t t
16820 s,@DB2PDF@,$DB2PDF,;t t
16821 s,@DB2PS@,$DB2PS,;t t
16822 s,@JPEGLIB@,$JPEGLIB,;t t
16823 s,@EGREP@,$EGREP,;t t
16824 s,@GIFLIB@,$GIFLIB,;t t
16825 s,@XLIB@,$XLIB,;t t
16826 s,@XFILES@,$XFILES,;t t
16827 s,@OPENGLFILES@,$OPENGLFILES,;t t
16828 s,@GLU32FILES@,$GLU32FILES,;t t
16829 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
16830 s,@NASLIBS@,$NASLIBS,;t t
16831 s,@CURSESLIBS@,$CURSESLIBS,;t t
16832 s,@sane_devel@,$sane_devel,;t t
16833 s,@SANELIBS@,$SANELIBS,;t t
16834 s,@SANEINCL@,$SANEINCL,;t t
16835 s,@ft_devel@,$ft_devel,;t t
16836 s,@ft_devel2@,$ft_devel2,;t t
16837 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
16838 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
16839 s,@ARTSLIBS@,$ARTSLIBS,;t t
16840 s,@ARTSINCL@,$ARTSINCL,;t t
16841 s,@ALSALIBS@,$ALSALIBS,;t t
16842 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
16843 s,@DLLEXT@,$DLLEXT,;t t
16844 s,@DLLFLAGS@,$DLLFLAGS,;t t
16845 s,@DLLIBS@,$DLLIBS,;t t
16846 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
16847 s,@LDSHARED@,$LDSHARED,;t t
16848 s,@LIBEXT@,$LIBEXT,;t t
16849 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
16850 s,@DLLTOOL@,$DLLTOOL,;t t
16851 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
16852 s,@DLLWRAP@,$DLLWRAP,;t t
16853 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
16854 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
16855 s,@CROSSTEST@,$CROSSTEST,;t t
16856 s,@CROSSCC@,$CROSSCC,;t t
16857 s,@LDPATH@,$LDPATH,;t t
16858 s,@CRTLIBS@,$CRTLIBS,;t t
16859 s,@LDD@,$LDD,;t t
16860 s,@ALLOCA@,$ALLOCA,;t t
16861 s,@LIBOBJS@,$LIBOBJS,;t t
16862 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16863 /@MAKE_RULES@/r $MAKE_RULES
16864 s,@MAKE_RULES@,,;t t
16865 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
16866 s,@MAKE_DLL_RULES@,,;t t
16867 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
16868 s,@MAKE_TEST_RULES@,,;t t
16869 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
16870 s,@MAKE_PROG_RULES@,,;t t
16871 CEOF
16873 _ACEOF
16875 cat >>$CONFIG_STATUS <<\_ACEOF
16876 # Split the substitutions into bite-sized pieces for seds with
16877 # small command number limits, like on Digital OSF/1 and HP-UX.
16878 ac_max_sed_lines=48
16879 ac_sed_frag=1 # Number of current file.
16880 ac_beg=1 # First line for current file.
16881 ac_end=$ac_max_sed_lines # Line after last line for current file.
16882 ac_more_lines=:
16883 ac_sed_cmds=
16884 while $ac_more_lines; do
16885 if test $ac_beg -gt 1; then
16886 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16887 else
16888 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16890 if test ! -s $tmp/subs.frag; then
16891 ac_more_lines=false
16892 else
16893 # The purpose of the label and of the branching condition is to
16894 # speed up the sed processing (if there are no `@' at all, there
16895 # is no need to browse any of the substitutions).
16896 # These are the two extra sed commands mentioned above.
16897 (echo ':t
16898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16899 if test -z "$ac_sed_cmds"; then
16900 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16901 else
16902 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16904 ac_sed_frag=`expr $ac_sed_frag + 1`
16905 ac_beg=$ac_end
16906 ac_end=`expr $ac_end + $ac_max_sed_lines`
16908 done
16909 if test -z "$ac_sed_cmds"; then
16910 ac_sed_cmds=cat
16912 fi # test -n "$CONFIG_FILES"
16914 _ACEOF
16915 cat >>$CONFIG_STATUS <<\_ACEOF
16916 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16918 case $ac_file in
16919 - | *:- | *:-:* ) # input from stdin
16920 cat >$tmp/stdin
16921 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16923 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16925 * ) ac_file_in=$ac_file.in ;;
16926 esac
16928 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16929 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16930 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16931 X"$ac_file" : 'X\(//\)[^/]' \| \
16932 X"$ac_file" : 'X\(//\)$' \| \
16933 X"$ac_file" : 'X\(/\)' \| \
16934 . : '\(.\)' 2>/dev/null ||
16935 echo X"$ac_file" |
16936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16938 /^X\(\/\/\)$/{ s//\1/; q; }
16939 /^X\(\/\).*/{ s//\1/; q; }
16940 s/.*/./; q'`
16941 { if $as_mkdir_p; then
16942 mkdir -p "$ac_dir"
16943 else
16944 as_dir="$ac_dir"
16945 as_dirs=
16946 while test ! -d "$as_dir"; do
16947 as_dirs="$as_dir $as_dirs"
16948 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16950 X"$as_dir" : 'X\(//\)[^/]' \| \
16951 X"$as_dir" : 'X\(//\)$' \| \
16952 X"$as_dir" : 'X\(/\)' \| \
16953 . : '\(.\)' 2>/dev/null ||
16954 echo X"$as_dir" |
16955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16957 /^X\(\/\/\)$/{ s//\1/; q; }
16958 /^X\(\/\).*/{ s//\1/; q; }
16959 s/.*/./; q'`
16960 done
16961 test ! -n "$as_dirs" || mkdir $as_dirs
16962 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16963 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16964 { (exit 1); exit 1; }; }; }
16966 ac_builddir=.
16968 if test "$ac_dir" != .; then
16969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16970 # A "../" for each directory in $ac_dir_suffix.
16971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16972 else
16973 ac_dir_suffix= ac_top_builddir=
16976 case $srcdir in
16977 .) # No --srcdir option. We are building in place.
16978 ac_srcdir=.
16979 if test -z "$ac_top_builddir"; then
16980 ac_top_srcdir=.
16981 else
16982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16983 fi ;;
16984 [\\/]* | ?:[\\/]* ) # Absolute path.
16985 ac_srcdir=$srcdir$ac_dir_suffix;
16986 ac_top_srcdir=$srcdir ;;
16987 *) # Relative path.
16988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16990 esac
16991 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16992 # absolute.
16993 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16994 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16995 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16996 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16999 case $INSTALL in
17000 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17001 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17002 esac
17004 if test x"$ac_file" != x-; then
17005 { echo "$as_me:$LINENO: creating $ac_file" >&5
17006 echo "$as_me: creating $ac_file" >&6;}
17007 rm -f "$ac_file"
17009 # Let's still pretend it is `configure' which instantiates (i.e., don't
17010 # use $as_me), people would be surprised to read:
17011 # /* config.h. Generated by config.status. */
17012 if test x"$ac_file" = x-; then
17013 configure_input=
17014 else
17015 configure_input="$ac_file. "
17017 configure_input=$configure_input"Generated from `echo $ac_file_in |
17018 sed 's,.*/,,'` by configure."
17020 # First look for the input files in the build tree, otherwise in the
17021 # src tree.
17022 ac_file_inputs=`IFS=:
17023 for f in $ac_file_in; do
17024 case $f in
17025 -) echo $tmp/stdin ;;
17026 [\\/$]*)
17027 # Absolute (can't be DOS-style, as IFS=:)
17028 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17029 echo "$as_me: error: cannot find input file: $f" >&2;}
17030 { (exit 1); exit 1; }; }
17031 echo $f;;
17032 *) # Relative
17033 if test -f "$f"; then
17034 # Build tree
17035 echo $f
17036 elif test -f "$srcdir/$f"; then
17037 # Source tree
17038 echo $srcdir/$f
17039 else
17040 # /dev/null tree
17041 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17042 echo "$as_me: error: cannot find input file: $f" >&2;}
17043 { (exit 1); exit 1; }; }
17044 fi;;
17045 esac
17046 done` || { (exit 1); exit 1; }
17047 _ACEOF
17048 cat >>$CONFIG_STATUS <<_ACEOF
17049 sed "$ac_vpsub
17050 $extrasub
17051 _ACEOF
17052 cat >>$CONFIG_STATUS <<\_ACEOF
17054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17055 s,@configure_input@,$configure_input,;t t
17056 s,@srcdir@,$ac_srcdir,;t t
17057 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17058 s,@top_srcdir@,$ac_top_srcdir,;t t
17059 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17060 s,@builddir@,$ac_builddir,;t t
17061 s,@abs_builddir@,$ac_abs_builddir,;t t
17062 s,@top_builddir@,$ac_top_builddir,;t t
17063 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17064 s,@INSTALL@,$ac_INSTALL,;t t
17065 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17066 rm -f $tmp/stdin
17067 if test x"$ac_file" != x-; then
17068 mv $tmp/out $ac_file
17069 else
17070 cat $tmp/out
17071 rm -f $tmp/out
17074 done
17075 _ACEOF
17076 cat >>$CONFIG_STATUS <<\_ACEOF
17079 # CONFIG_HEADER section.
17082 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17083 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17085 # ac_d sets the value in "#define NAME VALUE" lines.
17086 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17087 ac_dB='[ ].*$,\1#\2'
17088 ac_dC=' '
17089 ac_dD=',;t'
17090 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17091 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17092 ac_uB='$,\1#\2define\3'
17093 ac_uC=' '
17094 ac_uD=',;t'
17096 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17097 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17098 case $ac_file in
17099 - | *:- | *:-:* ) # input from stdin
17100 cat >$tmp/stdin
17101 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17102 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17103 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17104 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17105 * ) ac_file_in=$ac_file.in ;;
17106 esac
17108 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17109 echo "$as_me: creating $ac_file" >&6;}
17111 # First look for the input files in the build tree, otherwise in the
17112 # src tree.
17113 ac_file_inputs=`IFS=:
17114 for f in $ac_file_in; do
17115 case $f in
17116 -) echo $tmp/stdin ;;
17117 [\\/$]*)
17118 # Absolute (can't be DOS-style, as IFS=:)
17119 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17120 echo "$as_me: error: cannot find input file: $f" >&2;}
17121 { (exit 1); exit 1; }; }
17122 echo $f;;
17123 *) # Relative
17124 if test -f "$f"; then
17125 # Build tree
17126 echo $f
17127 elif test -f "$srcdir/$f"; then
17128 # Source tree
17129 echo $srcdir/$f
17130 else
17131 # /dev/null tree
17132 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17133 echo "$as_me: error: cannot find input file: $f" >&2;}
17134 { (exit 1); exit 1; }; }
17135 fi;;
17136 esac
17137 done` || { (exit 1); exit 1; }
17138 # Remove the trailing spaces.
17139 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17141 _ACEOF
17143 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17144 # `conftest.undefs', that substitutes the proper values into
17145 # config.h.in to produce config.h. The first handles `#define'
17146 # templates, and the second `#undef' templates.
17147 # And first: Protect against being on the right side of a sed subst in
17148 # config.status. Protect against being in an unquoted here document
17149 # in config.status.
17150 rm -f conftest.defines conftest.undefs
17151 # Using a here document instead of a string reduces the quoting nightmare.
17152 # Putting comments in sed scripts is not portable.
17154 # `end' is used to avoid that the second main sed command (meant for
17155 # 0-ary CPP macros) applies to n-ary macro definitions.
17156 # See the Autoconf documentation for `clear'.
17157 cat >confdef2sed.sed <<\_ACEOF
17158 s/[\\&,]/\\&/g
17159 s,[\\$`],\\&,g
17160 t clear
17161 : clear
17162 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17163 t end
17164 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17165 : end
17166 _ACEOF
17167 # If some macros were called several times there might be several times
17168 # the same #defines, which is useless. Nevertheless, we may not want to
17169 # sort them, since we want the *last* AC-DEFINE to be honored.
17170 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17171 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17172 rm -f confdef2sed.sed
17174 # This sed command replaces #undef with comments. This is necessary, for
17175 # example, in the case of _POSIX_SOURCE, which is predefined and required
17176 # on some systems where configure will not decide to define it.
17177 cat >>conftest.undefs <<\_ACEOF
17178 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17179 _ACEOF
17181 # Break up conftest.defines because some shells have a limit on the size
17182 # of here documents, and old seds have small limits too (100 cmds).
17183 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17184 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17185 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17186 echo ' :' >>$CONFIG_STATUS
17187 rm -f conftest.tail
17188 while grep . conftest.defines >/dev/null
17190 # Write a limited-size here document to $tmp/defines.sed.
17191 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17192 # Speed up: don't consider the non `#define' lines.
17193 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17194 # Work around the forget-to-reset-the-flag bug.
17195 echo 't clr' >>$CONFIG_STATUS
17196 echo ': clr' >>$CONFIG_STATUS
17197 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17198 echo 'CEOF
17199 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17200 rm -f $tmp/in
17201 mv $tmp/out $tmp/in
17202 ' >>$CONFIG_STATUS
17203 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17204 rm -f conftest.defines
17205 mv conftest.tail conftest.defines
17206 done
17207 rm -f conftest.defines
17208 echo ' fi # grep' >>$CONFIG_STATUS
17209 echo >>$CONFIG_STATUS
17211 # Break up conftest.undefs because some shells have a limit on the size
17212 # of here documents, and old seds have small limits too (100 cmds).
17213 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17214 rm -f conftest.tail
17215 while grep . conftest.undefs >/dev/null
17217 # Write a limited-size here document to $tmp/undefs.sed.
17218 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17219 # Speed up: don't consider the non `#undef'
17220 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17221 # Work around the forget-to-reset-the-flag bug.
17222 echo 't clr' >>$CONFIG_STATUS
17223 echo ': clr' >>$CONFIG_STATUS
17224 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17225 echo 'CEOF
17226 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17227 rm -f $tmp/in
17228 mv $tmp/out $tmp/in
17229 ' >>$CONFIG_STATUS
17230 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17231 rm -f conftest.undefs
17232 mv conftest.tail conftest.undefs
17233 done
17234 rm -f conftest.undefs
17236 cat >>$CONFIG_STATUS <<\_ACEOF
17237 # Let's still pretend it is `configure' which instantiates (i.e., don't
17238 # use $as_me), people would be surprised to read:
17239 # /* config.h. Generated by config.status. */
17240 if test x"$ac_file" = x-; then
17241 echo "/* Generated by configure. */" >$tmp/config.h
17242 else
17243 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17245 cat $tmp/in >>$tmp/config.h
17246 rm -f $tmp/in
17247 if test x"$ac_file" != x-; then
17248 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17249 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17250 echo "$as_me: $ac_file is unchanged" >&6;}
17251 else
17252 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17254 X"$ac_file" : 'X\(//\)[^/]' \| \
17255 X"$ac_file" : 'X\(//\)$' \| \
17256 X"$ac_file" : 'X\(/\)' \| \
17257 . : '\(.\)' 2>/dev/null ||
17258 echo X"$ac_file" |
17259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17261 /^X\(\/\/\)$/{ s//\1/; q; }
17262 /^X\(\/\).*/{ s//\1/; q; }
17263 s/.*/./; q'`
17264 { if $as_mkdir_p; then
17265 mkdir -p "$ac_dir"
17266 else
17267 as_dir="$ac_dir"
17268 as_dirs=
17269 while test ! -d "$as_dir"; do
17270 as_dirs="$as_dir $as_dirs"
17271 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17273 X"$as_dir" : 'X\(//\)[^/]' \| \
17274 X"$as_dir" : 'X\(//\)$' \| \
17275 X"$as_dir" : 'X\(/\)' \| \
17276 . : '\(.\)' 2>/dev/null ||
17277 echo X"$as_dir" |
17278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17280 /^X\(\/\/\)$/{ s//\1/; q; }
17281 /^X\(\/\).*/{ s//\1/; q; }
17282 s/.*/./; q'`
17283 done
17284 test ! -n "$as_dirs" || mkdir $as_dirs
17285 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17286 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17287 { (exit 1); exit 1; }; }; }
17289 rm -f $ac_file
17290 mv $tmp/config.h $ac_file
17292 else
17293 cat $tmp/config.h
17294 rm -f $tmp/config.h
17296 done
17297 _ACEOF
17298 cat >>$CONFIG_STATUS <<\_ACEOF
17301 # CONFIG_COMMANDS section.
17303 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17304 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17305 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17306 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17307 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17308 X"$ac_dest" : 'X\(//\)[^/]' \| \
17309 X"$ac_dest" : 'X\(//\)$' \| \
17310 X"$ac_dest" : 'X\(/\)' \| \
17311 . : '\(.\)' 2>/dev/null ||
17312 echo X"$ac_dest" |
17313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17315 /^X\(\/\/\)$/{ s//\1/; q; }
17316 /^X\(\/\).*/{ s//\1/; q; }
17317 s/.*/./; q'`
17318 ac_builddir=.
17320 if test "$ac_dir" != .; then
17321 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17322 # A "../" for each directory in $ac_dir_suffix.
17323 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17324 else
17325 ac_dir_suffix= ac_top_builddir=
17328 case $srcdir in
17329 .) # No --srcdir option. We are building in place.
17330 ac_srcdir=.
17331 if test -z "$ac_top_builddir"; then
17332 ac_top_srcdir=.
17333 else
17334 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17335 fi ;;
17336 [\\/]* | ?:[\\/]* ) # Absolute path.
17337 ac_srcdir=$srcdir$ac_dir_suffix;
17338 ac_top_srcdir=$srcdir ;;
17339 *) # Relative path.
17340 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17341 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17342 esac
17343 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17344 # absolute.
17345 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17346 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17347 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17348 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17351 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17352 echo "$as_me: executing $ac_dest commands" >&6;}
17353 case $ac_dest in
17354 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
17355 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
17356 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
17357 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
17358 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
17359 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
17360 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
17361 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
17362 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
17363 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
17364 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
17365 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
17366 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
17367 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
17368 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
17369 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
17370 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
17371 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
17372 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
17373 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
17374 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
17375 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
17376 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
17377 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
17378 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
17379 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
17380 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
17381 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
17382 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
17383 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
17384 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
17385 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
17386 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
17387 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
17388 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
17389 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
17390 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
17391 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
17392 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
17393 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
17394 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
17395 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
17396 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
17397 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
17398 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
17399 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
17400 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
17401 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
17402 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
17403 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
17404 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
17405 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
17406 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
17407 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
17408 ole ) test -d "ole" || ({ echo "$as_me:$LINENO: creating ole" >&5
17409 echo "$as_me: creating ole" >&6;} && mkdir "ole") ;;
17410 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
17411 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
17412 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
17413 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
17414 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
17415 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
17416 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
17417 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
17418 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
17419 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
17420 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
17421 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
17422 esac
17423 done
17424 _ACEOF
17426 cat >>$CONFIG_STATUS <<\_ACEOF
17428 { (exit 0); exit 0; }
17429 _ACEOF
17430 chmod +x $CONFIG_STATUS
17431 ac_clean_files=$ac_clean_files_save
17434 # configure is writing to config.log, and then calls config.status.
17435 # config.status does its own redirection, appending to config.log.
17436 # Unfortunately, on DOS this fails, as config.log is still kept open
17437 # by configure, so config.status won't be able to write to it; its
17438 # output is simply discarded. So we exec the FD to /dev/null,
17439 # effectively closing config.log, so it can be properly (re)opened and
17440 # appended to by config.status. When coming back to configure, we
17441 # need to make the FD available again.
17442 if test "$no_create" != yes; then
17443 ac_cs_success=:
17444 ac_config_status_args=
17445 test "$silent" = yes &&
17446 ac_config_status_args="$ac_config_status_args --quiet"
17447 exec 5>/dev/null
17448 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17449 exec 5>>config.log
17450 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17451 # would make configure fail if this is the last instruction.
17452 $ac_cs_success || { (exit 1); exit 1; }
17456 if test "$have_x" = "no"
17457 then
17458 echo
17459 echo "*** Warning: X development files not found. Wine will be built without"
17460 echo "*** X support, which currently does not work, and would probably not be"
17461 echo "*** what you want anyway. You will need to install devel packages of"
17462 echo "*** Xlib/Xfree86 at the very least."
17465 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
17466 then
17467 echo
17468 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
17469 echo "*** terminal resize support. Consider upgrading ncurses."
17472 if test "$wine_cv_libc_reentrant" = "no"
17473 then
17474 echo
17475 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
17476 echo "*** threading support. Consider upgrading libc to a more recent"
17477 echo "*** reentrant version of libc."
17480 if test "$wine_cv_opengl_version_OK" = "no"
17481 then
17482 echo
17483 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
17484 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
17487 if test "$wine_cv_msg_freetype" = "yes"
17488 then
17489 echo
17490 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
17491 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
17492 echo "*** freetype-devel package (or its equivalent on your distribution) to"
17493 echo "*** enable Wine to use TrueType fonts."
17496 echo
17497 echo "Configure finished. Do 'make depend && make' to compile Wine."
17498 echo