- started implementing ntdll.NtDeviceIoControlFile and made
[wine/wine-kai.git] / configure
blobc63f3bd3889700f5d14cafc147bed134c75bb36e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20030618.
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='20030618'
270 PACKAGE_STRING='Wine 20030618'
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 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 ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
312 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_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 20030618 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 20030618:";;
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 20030618
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 20030618, 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"
1361 WIN16_FILES="\$(WIN16_FILES)"
1363 WIN16_INSTALL="\$(WIN16_INSTALL)"
1365 if test "x$enable_win16" = "xno"
1366 then
1367 WIN16_FILES=""
1368 WIN16_INSTALL=""
1370 if test "x$enable_debug" = "xno"
1371 then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define NO_DEBUG_MSGS 1
1375 _ACEOF
1378 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1379 then
1381 cat >>confdefs.h <<\_ACEOF
1382 #define NO_TRACE_MSGS 1
1383 _ACEOF
1386 if test "x$with_nptl" = "xyes"
1387 then
1389 cat >>confdefs.h <<\_ACEOF
1390 #define HAVE_NPTL 1
1391 _ACEOF
1393 LIBPTHREAD="-lpthread"
1398 # Make sure we can run config.sub.
1399 $ac_config_sub sun4 >/dev/null 2>&1 ||
1400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402 { (exit 1); exit 1; }; }
1404 echo "$as_me:$LINENO: checking build system type" >&5
1405 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406 if test "${ac_cv_build+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409 ac_cv_build_alias=$build_alias
1410 test -z "$ac_cv_build_alias" &&
1411 ac_cv_build_alias=`$ac_config_guess`
1412 test -z "$ac_cv_build_alias" &&
1413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415 { (exit 1); exit 1; }; }
1416 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423 echo "${ECHO_T}$ac_cv_build" >&6
1424 build=$ac_cv_build
1425 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430 echo "$as_me:$LINENO: checking host system type" >&5
1431 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432 if test "${ac_cv_host+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435 ac_cv_host_alias=$host_alias
1436 test -z "$ac_cv_host_alias" &&
1437 ac_cv_host_alias=$ac_cv_build_alias
1438 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445 echo "${ECHO_T}$ac_cv_host" >&6
1446 host=$ac_cv_host
1447 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1453 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1454 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1455 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458 cat >conftest.make <<\_ACEOF
1459 all:
1460 @echo 'ac_maketemp="$(MAKE)"'
1461 _ACEOF
1462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1463 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1464 if test -n "$ac_maketemp"; then
1465 eval ac_cv_prog_make_${ac_make}_set=yes
1466 else
1467 eval ac_cv_prog_make_${ac_make}_set=no
1469 rm -f conftest.make
1471 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1472 echo "$as_me:$LINENO: result: yes" >&5
1473 echo "${ECHO_T}yes" >&6
1474 SET_MAKE=
1475 else
1476 echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1478 SET_MAKE="MAKE=${MAKE-make}"
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486 if test -n "$ac_tool_prefix"; then
1487 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1488 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1489 echo "$as_me:$LINENO: checking for $ac_word" >&5
1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491 if test "${ac_cv_prog_CC+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1493 else
1494 if test -n "$CC"; then
1495 ac_cv_prog_CC="$CC" # Let the user override the test.
1496 else
1497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 for as_dir in $PATH
1500 IFS=$as_save_IFS
1501 test -z "$as_dir" && as_dir=.
1502 for ac_exec_ext in '' $ac_executable_extensions; do
1503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1504 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 break 2
1508 done
1509 done
1513 CC=$ac_cv_prog_CC
1514 if test -n "$CC"; then
1515 echo "$as_me:$LINENO: result: $CC" >&5
1516 echo "${ECHO_T}$CC" >&6
1517 else
1518 echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1523 if test -z "$ac_cv_prog_CC"; then
1524 ac_ct_CC=$CC
1525 # Extract the first word of "gcc", so it can be a program name with args.
1526 set dummy gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532 if test -n "$ac_ct_CC"; then
1533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1538 IFS=$as_save_IFS
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_ac_ct_CC="gcc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 break 2
1546 done
1547 done
1551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1552 if test -n "$ac_ct_CC"; then
1553 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1554 echo "${ECHO_T}$ac_ct_CC" >&6
1555 else
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1560 CC=$ac_ct_CC
1561 else
1562 CC="$ac_cv_prog_CC"
1565 if test -z "$CC"; then
1566 if test -n "$ac_tool_prefix"; then
1567 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1568 set dummy ${ac_tool_prefix}cc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574 if test -n "$CC"; then
1575 ac_cv_prog_CC="$CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1580 IFS=$as_save_IFS
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_CC="${ac_tool_prefix}cc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 break 2
1588 done
1589 done
1593 CC=$ac_cv_prog_CC
1594 if test -n "$CC"; then
1595 echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1597 else
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1603 if test -z "$ac_cv_prog_CC"; then
1604 ac_ct_CC=$CC
1605 # Extract the first word of "cc", so it can be a program name with args.
1606 set dummy cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612 if test -n "$ac_ct_CC"; then
1613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_ac_ct_CC="cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1626 done
1627 done
1631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1632 if test -n "$ac_ct_CC"; then
1633 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1634 echo "${ECHO_T}$ac_ct_CC" >&6
1635 else
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1640 CC=$ac_ct_CC
1641 else
1642 CC="$ac_cv_prog_CC"
1646 if test -z "$CC"; then
1647 # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 if test -n "$CC"; then
1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1656 else
1657 ac_prog_rejected=no
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1666 ac_prog_rejected=yes
1667 continue
1669 ac_cv_prog_CC="cc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1673 done
1674 done
1676 if test $ac_prog_rejected = yes; then
1677 # We found a bogon in the path, so make sure we never use it.
1678 set dummy $ac_cv_prog_CC
1679 shift
1680 if test $# != 0; then
1681 # We chose a different compiler from the bogus one.
1682 # However, it has the same basename, so the bogon will be chosen
1683 # first if we set CC to just the basename; use the full file name.
1684 shift
1685 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1690 CC=$ac_cv_prog_CC
1691 if test -n "$CC"; then
1692 echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1694 else
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1700 if test -z "$CC"; then
1701 if test -n "$ac_tool_prefix"; then
1702 for ac_prog in cl
1704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_CC+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711 if test -n "$CC"; then
1712 ac_cv_prog_CC="$CC" # Let the user override the test.
1713 else
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1725 done
1726 done
1730 CC=$ac_cv_prog_CC
1731 if test -n "$CC"; then
1732 echo "$as_me:$LINENO: result: $CC" >&5
1733 echo "${ECHO_T}$CC" >&6
1734 else
1735 echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1739 test -n "$CC" && break
1740 done
1742 if test -z "$CC"; then
1743 ac_ct_CC=$CC
1744 for ac_prog in cl
1746 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747 set dummy $ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$ac_ct_CC"; then
1754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_ac_ct_CC="$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1767 done
1768 done
1772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1776 else
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$ac_ct_CC" && break
1782 done
1784 CC=$ac_ct_CC
1790 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1791 See \`config.log' for more details." >&5
1792 echo "$as_me: error: no acceptable C compiler found in \$PATH
1793 See \`config.log' for more details." >&2;}
1794 { (exit 1); exit 1; }; }
1796 # Provide some information about the compiler.
1797 echo "$as_me:$LINENO:" \
1798 "checking for C compiler version" >&5
1799 ac_compiler=`set X $ac_compile; echo $2`
1800 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1801 (eval $ac_compiler --version </dev/null >&5) 2>&5
1802 ac_status=$?
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }
1805 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1806 (eval $ac_compiler -v </dev/null >&5) 2>&5
1807 ac_status=$?
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1811 (eval $ac_compiler -V </dev/null >&5) 2>&5
1812 ac_status=$?
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }
1816 cat >conftest.$ac_ext <<_ACEOF
1817 #line $LINENO "configure"
1818 /* confdefs.h. */
1819 _ACEOF
1820 cat confdefs.h >>conftest.$ac_ext
1821 cat >>conftest.$ac_ext <<_ACEOF
1822 /* end confdefs.h. */
1825 main ()
1829 return 0;
1831 _ACEOF
1832 ac_clean_files_save=$ac_clean_files
1833 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1834 # Try to create an executable without -o first, disregard a.out.
1835 # It will help us diagnose broken compilers, and finding out an intuition
1836 # of exeext.
1837 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1838 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1839 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1840 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1841 (eval $ac_link_default) 2>&5
1842 ac_status=$?
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); }; then
1845 # Find the output, starting from the most likely. This scheme is
1846 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1847 # resort.
1849 # Be careful to initialize this variable, since it used to be cached.
1850 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1851 ac_cv_exeext=
1852 # b.out is created by i960 compilers.
1853 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1855 test -f "$ac_file" || continue
1856 case $ac_file in
1857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1859 conftest.$ac_ext )
1860 # This is the source file.
1862 [ab].out )
1863 # We found the default executable, but exeext='' is most
1864 # certainly right.
1865 break;;
1866 *.* )
1867 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1868 # FIXME: I believe we export ac_cv_exeext for Libtool,
1869 # but it would be cool to find out if it's true. Does anybody
1870 # maintain Libtool? --akim.
1871 export ac_cv_exeext
1872 break;;
1874 break;;
1875 esac
1876 done
1877 else
1878 echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1882 See \`config.log' for more details." >&5
1883 echo "$as_me: error: C compiler cannot create executables
1884 See \`config.log' for more details." >&2;}
1885 { (exit 77); exit 77; }; }
1888 ac_exeext=$ac_cv_exeext
1889 echo "$as_me:$LINENO: result: $ac_file" >&5
1890 echo "${ECHO_T}$ac_file" >&6
1892 # Check the compiler produces executables we can run. If not, either
1893 # the compiler is broken, or we cross compile.
1894 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1895 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1896 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1897 # If not cross compiling, check that we can run a simple program.
1898 if test "$cross_compiling" != yes; then
1899 if { ac_try='./$ac_file'
1900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1901 (eval $ac_try) 2>&5
1902 ac_status=$?
1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904 (exit $ac_status); }; }; then
1905 cross_compiling=no
1906 else
1907 if test "$cross_compiling" = maybe; then
1908 cross_compiling=yes
1909 else
1910 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1911 If you meant to cross compile, use \`--host'.
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: cannot run C compiled programs.
1914 If you meant to cross compile, use \`--host'.
1915 See \`config.log' for more details." >&2;}
1916 { (exit 1); exit 1; }; }
1920 echo "$as_me:$LINENO: result: yes" >&5
1921 echo "${ECHO_T}yes" >&6
1923 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1924 ac_clean_files=$ac_clean_files_save
1925 # Check the compiler produces executables we can run. If not, either
1926 # the compiler is broken, or we cross compile.
1927 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1928 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1929 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1930 echo "${ECHO_T}$cross_compiling" >&6
1932 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1933 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1935 (eval $ac_link) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1940 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1941 # work properly (i.e., refer to `conftest.exe'), while it won't with
1942 # `rm'.
1943 for ac_file in conftest.exe conftest conftest.*; do
1944 test -f "$ac_file" || continue
1945 case $ac_file in
1946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1947 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1948 export ac_cv_exeext
1949 break;;
1950 * ) break;;
1951 esac
1952 done
1953 else
1954 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1957 See \`config.log' for more details." >&2;}
1958 { (exit 1); exit 1; }; }
1961 rm -f conftest$ac_cv_exeext
1962 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1963 echo "${ECHO_T}$ac_cv_exeext" >&6
1965 rm -f conftest.$ac_ext
1966 EXEEXT=$ac_cv_exeext
1967 ac_exeext=$EXEEXT
1968 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1969 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1970 if test "${ac_cv_objext+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 cat >conftest.$ac_ext <<_ACEOF
1974 #line $LINENO "configure"
1975 /* confdefs.h. */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h. */
1982 main ()
1986 return 0;
1988 _ACEOF
1989 rm -f conftest.o conftest.obj
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>&5
1992 ac_status=$?
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); }; then
1995 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1996 case $ac_file in
1997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1999 break;;
2000 esac
2001 done
2002 else
2003 echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2009 See \`config.log' for more details." >&2;}
2010 { (exit 1); exit 1; }; }
2013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2015 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2016 echo "${ECHO_T}$ac_cv_objext" >&6
2017 OBJEXT=$ac_cv_objext
2018 ac_objext=$OBJEXT
2019 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024 cat >conftest.$ac_ext <<_ACEOF
2025 #line $LINENO "configure"
2026 /* confdefs.h. */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h. */
2033 main ()
2035 #ifndef __GNUC__
2036 choke me
2037 #endif
2040 return 0;
2042 _ACEOF
2043 rm -f conftest.$ac_objext
2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045 (eval $ac_compile) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); } &&
2049 { ac_try='test -s conftest.$ac_objext'
2050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051 (eval $ac_try) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; }; then
2055 ac_compiler_gnu=yes
2056 else
2057 echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2060 ac_compiler_gnu=no
2062 rm -f conftest.$ac_objext conftest.$ac_ext
2063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2066 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2067 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2068 GCC=`test $ac_compiler_gnu = yes && echo yes`
2069 ac_test_CFLAGS=${CFLAGS+set}
2070 ac_save_CFLAGS=$CFLAGS
2071 CFLAGS="-g"
2072 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2073 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2074 if test "${ac_cv_prog_cc_g+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077 cat >conftest.$ac_ext <<_ACEOF
2078 #line $LINENO "configure"
2079 /* confdefs.h. */
2080 _ACEOF
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h. */
2086 main ()
2090 return 0;
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 ac_cv_prog_cc_g=yes
2106 else
2107 echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2110 ac_cv_prog_cc_g=no
2112 rm -f conftest.$ac_objext conftest.$ac_ext
2114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2116 if test "$ac_test_CFLAGS" = set; then
2117 CFLAGS=$ac_save_CFLAGS
2118 elif test $ac_cv_prog_cc_g = yes; then
2119 if test "$GCC" = yes; then
2120 CFLAGS="-g -O2"
2121 else
2122 CFLAGS="-g"
2124 else
2125 if test "$GCC" = yes; then
2126 CFLAGS="-O2"
2127 else
2128 CFLAGS=
2131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 ac_cv_prog_cc_stdc=no
2137 ac_save_CC=$CC
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #line $LINENO "configure"
2140 /* confdefs.h. */
2141 _ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h. */
2145 #include <stdarg.h>
2146 #include <stdio.h>
2147 #include <sys/types.h>
2148 #include <sys/stat.h>
2149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2150 struct buf { int x; };
2151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2152 static char *e (p, i)
2153 char **p;
2154 int i;
2156 return p[i];
2158 static char *f (char * (*g) (char **, int), char **p, ...)
2160 char *s;
2161 va_list v;
2162 va_start (v,p);
2163 s = g (p, va_arg (v,int));
2164 va_end (v);
2165 return s;
2167 int test (int i, double x);
2168 struct s1 {int (*f) (int a);};
2169 struct s2 {int (*f) (double a);};
2170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171 int argc;
2172 char **argv;
2174 main ()
2176 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2178 return 0;
2180 _ACEOF
2181 # Don't try gcc -ansi; that turns off useful extensions and
2182 # breaks some systems' header files.
2183 # AIX -qlanglvl=ansi
2184 # Ultrix and OSF/1 -std1
2185 # HP-UX 10.20 and later -Ae
2186 # HP-UX older versions -Aa -D_HPUX_SOURCE
2187 # SVR4 -Xc -D__EXTENSIONS__
2188 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2190 CC="$ac_save_CC $ac_arg"
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 (eval $ac_try) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2203 ac_cv_prog_cc_stdc=$ac_arg
2204 break
2205 else
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2210 rm -f conftest.$ac_objext
2211 done
2212 rm -f conftest.$ac_ext conftest.$ac_objext
2213 CC=$ac_save_CC
2217 case "x$ac_cv_prog_cc_stdc" in
2218 x|xno)
2219 echo "$as_me:$LINENO: result: none needed" >&5
2220 echo "${ECHO_T}none needed" >&6 ;;
2222 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2223 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2224 CC="$CC $ac_cv_prog_cc_stdc" ;;
2225 esac
2227 # Some people use a C++ compiler to compile C. Since we use `exit',
2228 # in C++ we need to declare it. In case someone uses the same compiler
2229 # for both compiling C and C++ we need to have the C++ compiler decide
2230 # the declaration of exit, since it's the most demanding environment.
2231 cat >conftest.$ac_ext <<_ACEOF
2232 #ifndef __cplusplus
2233 choke me
2234 #endif
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 for ac_declaration in \
2249 '' \
2250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
2254 'void exit (int);'
2256 cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 /* confdefs.h. */
2259 _ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2263 $ac_declaration
2264 #include <stdlib.h>
2266 main ()
2268 exit (42);
2270 return 0;
2272 _ACEOF
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275 (eval $ac_compile) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
2279 { ac_try='test -s conftest.$ac_objext'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; }; then
2286 else
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2290 continue
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2293 cat >conftest.$ac_ext <<_ACEOF
2294 #line $LINENO "configure"
2295 /* confdefs.h. */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2300 $ac_declaration
2302 main ()
2304 exit (42);
2306 return 0;
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try='test -s conftest.$ac_objext'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; }; then
2321 break
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2327 rm -f conftest.$ac_objext conftest.$ac_ext
2328 done
2329 rm -f conftest*
2330 if test -n "$ac_declaration"; then
2331 echo '#ifdef __cplusplus' >>confdefs.h
2332 echo $ac_declaration >>confdefs.h
2333 echo '#endif' >>confdefs.h
2336 else
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2341 rm -f conftest.$ac_objext conftest.$ac_ext
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2355 # On Suns, sometimes $CPP names a directory.
2356 if test -n "$CPP" && test -d "$CPP"; then
2357 CPP=
2359 if test -z "$CPP"; then
2360 if test "${ac_cv_prog_CPP+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 # Double quotes because CPP needs to be expanded
2364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2366 ac_preproc_ok=false
2367 for ac_c_preproc_warn_flag in '' yes
2369 # Use a header file that comes with gcc, so configuring glibc
2370 # with a fresh cross-compiler works.
2371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2372 # <limits.h> exists even on freestanding compilers.
2373 # On the NeXT, cc -E runs the code through the compiler's parser,
2374 # not just through cpp. "Syntax error" is here to catch this case.
2375 cat >conftest.$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 /* confdefs.h. */
2378 _ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h. */
2382 #ifdef __STDC__
2383 # include <limits.h>
2384 #else
2385 # include <assert.h>
2386 #endif
2387 Syntax error
2388 _ACEOF
2389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } >/dev/null; then
2397 if test -s conftest.err; then
2398 ac_cpp_err=$ac_c_preproc_warn_flag
2399 else
2400 ac_cpp_err=
2402 else
2403 ac_cpp_err=yes
2405 if test -z "$ac_cpp_err"; then
2407 else
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2411 # Broken: fails on valid input.
2412 continue
2414 rm -f conftest.err conftest.$ac_ext
2416 # OK, works on sane cases. Now check whether non-existent headers
2417 # can be detected and how.
2418 cat >conftest.$ac_ext <<_ACEOF
2419 #line $LINENO "configure"
2420 /* confdefs.h. */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h. */
2425 #include <ac_nonexistent.h>
2426 _ACEOF
2427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2429 ac_status=$?
2430 grep -v '^ *+' conftest.er1 >conftest.err
2431 rm -f conftest.er1
2432 cat conftest.err >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } >/dev/null; then
2435 if test -s conftest.err; then
2436 ac_cpp_err=$ac_c_preproc_warn_flag
2437 else
2438 ac_cpp_err=
2440 else
2441 ac_cpp_err=yes
2443 if test -z "$ac_cpp_err"; then
2444 # Broken: success on invalid input.
2445 continue
2446 else
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2450 # Passes both tests.
2451 ac_preproc_ok=:
2452 break
2454 rm -f conftest.err conftest.$ac_ext
2456 done
2457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2458 rm -f conftest.err conftest.$ac_ext
2459 if $ac_preproc_ok; then
2460 break
2463 done
2464 ac_cv_prog_CPP=$CPP
2467 CPP=$ac_cv_prog_CPP
2468 else
2469 ac_cv_prog_CPP=$CPP
2471 echo "$as_me:$LINENO: result: $CPP" >&5
2472 echo "${ECHO_T}$CPP" >&6
2473 ac_preproc_ok=false
2474 for ac_c_preproc_warn_flag in '' yes
2476 # Use a header file that comes with gcc, so configuring glibc
2477 # with a fresh cross-compiler works.
2478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2479 # <limits.h> exists even on freestanding compilers.
2480 # On the NeXT, cc -E runs the code through the compiler's parser,
2481 # not just through cpp. "Syntax error" is here to catch this case.
2482 cat >conftest.$ac_ext <<_ACEOF
2483 #line $LINENO "configure"
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2489 #ifdef __STDC__
2490 # include <limits.h>
2491 #else
2492 # include <assert.h>
2493 #endif
2494 Syntax error
2495 _ACEOF
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } >/dev/null; then
2504 if test -s conftest.err; then
2505 ac_cpp_err=$ac_c_preproc_warn_flag
2506 else
2507 ac_cpp_err=
2509 else
2510 ac_cpp_err=yes
2512 if test -z "$ac_cpp_err"; then
2514 else
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2518 # Broken: fails on valid input.
2519 continue
2521 rm -f conftest.err conftest.$ac_ext
2523 # OK, works on sane cases. Now check whether non-existent headers
2524 # can be detected and how.
2525 cat >conftest.$ac_ext <<_ACEOF
2526 #line $LINENO "configure"
2527 /* confdefs.h. */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2532 #include <ac_nonexistent.h>
2533 _ACEOF
2534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2536 ac_status=$?
2537 grep -v '^ *+' conftest.er1 >conftest.err
2538 rm -f conftest.er1
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } >/dev/null; then
2542 if test -s conftest.err; then
2543 ac_cpp_err=$ac_c_preproc_warn_flag
2544 else
2545 ac_cpp_err=
2547 else
2548 ac_cpp_err=yes
2550 if test -z "$ac_cpp_err"; then
2551 # Broken: success on invalid input.
2552 continue
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 # Passes both tests.
2558 ac_preproc_ok=:
2559 break
2561 rm -f conftest.err conftest.$ac_ext
2563 done
2564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2565 rm -f conftest.err conftest.$ac_ext
2566 if $ac_preproc_ok; then
2568 else
2569 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2572 See \`config.log' for more details." >&2;}
2573 { (exit 1); exit 1; }; }
2576 ac_ext=c
2577 ac_cpp='$CPP $CPPFLAGS'
2578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2584 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2585 if test "${wine_cv_toolsdir+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588 if test -z "$with_wine_tools"; then
2589 if test "$cross_compiling" = "yes"; then
2590 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2591 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2592 { (exit 1); exit 1; }; }
2593 else
2594 wine_cv_toolsdir="\$(TOPOBJDIR)"
2596 elif test -d "$with_wine_tools/tools/winebuild"; then
2597 case $with_wine_tools in
2598 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2599 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2600 esac
2601 else
2602 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2603 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2604 { (exit 1); exit 1; }; }
2607 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2608 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2609 TOOLSDIR=$wine_cv_toolsdir
2614 echo "$as_me:$LINENO: checking for X" >&5
2615 echo $ECHO_N "checking for X... $ECHO_C" >&6
2618 # Check whether --with-x or --without-x was given.
2619 if test "${with_x+set}" = set; then
2620 withval="$with_x"
2623 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2624 if test "x$with_x" = xno; then
2625 # The user explicitly disabled X.
2626 have_x=disabled
2627 else
2628 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2629 # Both variables are already set.
2630 have_x=yes
2631 else
2632 if test "${ac_cv_have_x+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635 # One or both of the vars are not set, and there is no cached value.
2636 ac_x_includes=no ac_x_libraries=no
2637 rm -fr conftest.dir
2638 if mkdir conftest.dir; then
2639 cd conftest.dir
2640 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2641 cat >Imakefile <<'_ACEOF'
2642 acfindx:
2643 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2644 _ACEOF
2645 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2647 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2648 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2649 for ac_extension in a so sl; do
2650 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2651 test -f $ac_im_libdir/libX11.$ac_extension; then
2652 ac_im_usrlibdir=$ac_im_libdir; break
2654 done
2655 # Screen out bogus values from the imake configuration. They are
2656 # bogus both because they are the default anyway, and because
2657 # using them would break gcc on systems where it needs fixed includes.
2658 case $ac_im_incroot in
2659 /usr/include) ;;
2660 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2661 esac
2662 case $ac_im_usrlibdir in
2663 /usr/lib | /lib) ;;
2664 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2665 esac
2667 cd ..
2668 rm -fr conftest.dir
2671 # Standard set of common directories for X headers.
2672 # Check X11 before X11Rn because it is often a symlink to the current release.
2673 ac_x_header_dirs='
2674 /usr/X11/include
2675 /usr/X11R6/include
2676 /usr/X11R5/include
2677 /usr/X11R4/include
2679 /usr/include/X11
2680 /usr/include/X11R6
2681 /usr/include/X11R5
2682 /usr/include/X11R4
2684 /usr/local/X11/include
2685 /usr/local/X11R6/include
2686 /usr/local/X11R5/include
2687 /usr/local/X11R4/include
2689 /usr/local/include/X11
2690 /usr/local/include/X11R6
2691 /usr/local/include/X11R5
2692 /usr/local/include/X11R4
2694 /usr/X386/include
2695 /usr/x386/include
2696 /usr/XFree86/include/X11
2698 /usr/include
2699 /usr/local/include
2700 /usr/unsupported/include
2701 /usr/athena/include
2702 /usr/local/x11r5/include
2703 /usr/lpp/Xamples/include
2705 /usr/openwin/include
2706 /usr/openwin/share/include'
2708 if test "$ac_x_includes" = no; then
2709 # Guess where to find include files, by looking for Intrinsic.h.
2710 # First, try using that file with no special directory specified.
2711 cat >conftest.$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2713 /* confdefs.h. */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2718 #include <X11/Intrinsic.h>
2719 _ACEOF
2720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2722 ac_status=$?
2723 grep -v '^ *+' conftest.er1 >conftest.err
2724 rm -f conftest.er1
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } >/dev/null; then
2728 if test -s conftest.err; then
2729 ac_cpp_err=$ac_c_preproc_warn_flag
2730 else
2731 ac_cpp_err=
2733 else
2734 ac_cpp_err=yes
2736 if test -z "$ac_cpp_err"; then
2737 # We can compile using X headers with no special include directory.
2738 ac_x_includes=
2739 else
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2743 for ac_dir in $ac_x_header_dirs; do
2744 if test -r "$ac_dir/X11/Intrinsic.h"; then
2745 ac_x_includes=$ac_dir
2746 break
2748 done
2750 rm -f conftest.err conftest.$ac_ext
2751 fi # $ac_x_includes = no
2753 if test "$ac_x_libraries" = no; then
2754 # Check for the libraries.
2755 # See if we find them without any special options.
2756 # Don't add to $LIBS permanently.
2757 ac_save_LIBS=$LIBS
2758 LIBS="-lXt $LIBS"
2759 cat >conftest.$ac_ext <<_ACEOF
2760 #line $LINENO "configure"
2761 /* confdefs.h. */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2766 #include <X11/Intrinsic.h>
2768 main ()
2770 XtMalloc (0)
2772 return 0;
2774 _ACEOF
2775 rm -f conftest.$ac_objext conftest$ac_exeext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2777 (eval $ac_link) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -s conftest$ac_exeext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 LIBS=$ac_save_LIBS
2788 # We can link X programs with no special library path.
2789 ac_x_libraries=
2790 else
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2794 LIBS=$ac_save_LIBS
2795 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2797 # Don't even attempt the hair of trying to link an X program!
2798 for ac_extension in a so sl; do
2799 if test -r $ac_dir/libXt.$ac_extension; then
2800 ac_x_libraries=$ac_dir
2801 break 2
2803 done
2804 done
2806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2807 fi # $ac_x_libraries = no
2809 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2810 # Didn't find X anywhere. Cache the known absence of X.
2811 ac_cv_have_x="have_x=no"
2812 else
2813 # Record where we found X for the cache.
2814 ac_cv_have_x="have_x=yes \
2815 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2820 eval "$ac_cv_have_x"
2821 fi # $with_x != no
2823 if test "$have_x" != yes; then
2824 echo "$as_me:$LINENO: result: $have_x" >&5
2825 echo "${ECHO_T}$have_x" >&6
2826 no_x=yes
2827 else
2828 # If each of the values was on the command line, it overrides each guess.
2829 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2830 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2831 # Update the cache value to reflect the command line values.
2832 ac_cv_have_x="have_x=yes \
2833 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2834 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2835 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2838 if test "$no_x" = yes; then
2839 # Not all programs may use this symbol, but it does not hurt to define it.
2841 cat >>confdefs.h <<\_ACEOF
2842 #define X_DISPLAY_MISSING 1
2843 _ACEOF
2845 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2846 else
2847 if test -n "$x_includes"; then
2848 X_CFLAGS="$X_CFLAGS -I$x_includes"
2851 # It would also be nice to do this for all -L options, not just this one.
2852 if test -n "$x_libraries"; then
2853 X_LIBS="$X_LIBS -L$x_libraries"
2854 # For Solaris; some versions of Sun CC require a space after -R and
2855 # others require no space. Words are not sufficient . . . .
2856 case `(uname -sr) 2>/dev/null` in
2857 "SunOS 5"*)
2858 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2859 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2860 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2861 cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2863 /* confdefs.h. */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2870 main ()
2874 return 0;
2876 _ACEOF
2877 rm -f conftest.$ac_objext conftest$ac_exeext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2879 (eval $ac_link) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try='test -s conftest$ac_exeext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 ac_R_nospace=yes
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2894 ac_R_nospace=no
2896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2897 if test $ac_R_nospace = yes; then
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900 X_LIBS="$X_LIBS -R$x_libraries"
2901 else
2902 LIBS="$ac_xsave_LIBS -R $x_libraries"
2903 cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2912 main ()
2916 return 0;
2918 _ACEOF
2919 rm -f conftest.$ac_objext conftest$ac_exeext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2921 (eval $ac_link) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try='test -s conftest$ac_exeext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 ac_R_space=yes
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2936 ac_R_space=no
2938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2939 if test $ac_R_space = yes; then
2940 echo "$as_me:$LINENO: result: yes" >&5
2941 echo "${ECHO_T}yes" >&6
2942 X_LIBS="$X_LIBS -R $x_libraries"
2943 else
2944 echo "$as_me:$LINENO: result: neither works" >&5
2945 echo "${ECHO_T}neither works" >&6
2948 LIBS=$ac_xsave_LIBS
2949 esac
2952 # Check for system-dependent libraries X programs must link with.
2953 # Do this before checking for the system-independent R6 libraries
2954 # (-lICE), since we may need -lsocket or whatever for X linking.
2956 if test "$ISC" = yes; then
2957 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2958 else
2959 # Martyn Johnson says this is needed for Ultrix, if the X
2960 # libraries were built with DECnet support. And Karl Berry says
2961 # the Alpha needs dnet_stub (dnet does not exist).
2962 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2971 /* Override any gcc2 internal prototype to avoid an error. */
2972 #ifdef __cplusplus
2973 extern "C"
2974 #endif
2975 /* We use char because int might match the return type of a gcc2
2976 builtin and then its argument prototype would still apply. */
2977 char XOpenDisplay ();
2979 main ()
2981 XOpenDisplay ();
2983 return 0;
2985 _ACEOF
2986 rm -f conftest.$ac_objext conftest$ac_exeext
2987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988 (eval $ac_link) 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
2992 { ac_try='test -s conftest$ac_exeext'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994 (eval $ac_try) 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
2999 else
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3003 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3004 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3005 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008 ac_check_lib_save_LIBS=$LIBS
3009 LIBS="-ldnet $LIBS"
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line $LINENO "configure"
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3018 /* Override any gcc2 internal prototype to avoid an error. */
3019 #ifdef __cplusplus
3020 extern "C"
3021 #endif
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3024 char dnet_ntoa ();
3026 main ()
3028 dnet_ntoa ();
3030 return 0;
3032 _ACEOF
3033 rm -f conftest.$ac_objext conftest$ac_exeext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3035 (eval $ac_link) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -s conftest$ac_exeext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 ac_cv_lib_dnet_dnet_ntoa=yes
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 ac_cv_lib_dnet_dnet_ntoa=no
3052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3053 LIBS=$ac_check_lib_save_LIBS
3055 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3056 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3057 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3058 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3061 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3062 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3063 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3064 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 ac_check_lib_save_LIBS=$LIBS
3068 LIBS="-ldnet_stub $LIBS"
3069 cat >conftest.$ac_ext <<_ACEOF
3070 #line $LINENO "configure"
3071 /* confdefs.h. */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3077 /* Override any gcc2 internal prototype to avoid an error. */
3078 #ifdef __cplusplus
3079 extern "C"
3080 #endif
3081 /* We use char because int might match the return type of a gcc2
3082 builtin and then its argument prototype would still apply. */
3083 char dnet_ntoa ();
3085 main ()
3087 dnet_ntoa ();
3089 return 0;
3091 _ACEOF
3092 rm -f conftest.$ac_objext conftest$ac_exeext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3094 (eval $ac_link) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest$ac_exeext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 ac_cv_lib_dnet_stub_dnet_ntoa=no
3111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3112 LIBS=$ac_check_lib_save_LIBS
3114 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3115 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3116 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3117 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3123 LIBS="$ac_xsave_LIBS"
3125 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3126 # to get the SysV transport functions.
3127 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3128 # needs -lnsl.
3129 # The nsl library prevents programs from opening the X display
3130 # on Irix 5.2, according to T.E. Dickey.
3131 # The functions gethostbyname, getservbyname, and inet_addr are
3132 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3133 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3134 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3135 if test "${ac_cv_func_gethostbyname+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138 cat >conftest.$ac_ext <<_ACEOF
3139 #line $LINENO "configure"
3140 /* confdefs.h. */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3145 /* System header to define __stub macros and hopefully few prototypes,
3146 which can conflict with char gethostbyname (); below.
3147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148 <limits.h> exists even on freestanding compilers. */
3149 #ifdef __STDC__
3150 # include <limits.h>
3151 #else
3152 # include <assert.h>
3153 #endif
3154 /* Override any gcc2 internal prototype to avoid an error. */
3155 #ifdef __cplusplus
3156 extern "C"
3158 #endif
3159 /* We use char because int might match the return type of a gcc2
3160 builtin and then its argument prototype would still apply. */
3161 char gethostbyname ();
3162 /* The GNU C library defines this for functions which it implements
3163 to always fail with ENOSYS. Some functions are actually named
3164 something starting with __ and the normal name is an alias. */
3165 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3166 choke me
3167 #else
3168 char (*f) () = gethostbyname;
3169 #endif
3170 #ifdef __cplusplus
3172 #endif
3175 main ()
3177 return f != gethostbyname;
3179 return 0;
3181 _ACEOF
3182 rm -f conftest.$ac_objext conftest$ac_exeext
3183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3184 (eval $ac_link) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -s conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 ac_cv_func_gethostbyname=yes
3195 else
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 ac_cv_func_gethostbyname=no
3201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3203 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3204 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3206 if test $ac_cv_func_gethostbyname = no; then
3207 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3208 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3209 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 ac_check_lib_save_LIBS=$LIBS
3213 LIBS="-lnsl $LIBS"
3214 cat >conftest.$ac_ext <<_ACEOF
3215 #line $LINENO "configure"
3216 /* confdefs.h. */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3222 /* Override any gcc2 internal prototype to avoid an error. */
3223 #ifdef __cplusplus
3224 extern "C"
3225 #endif
3226 /* We use char because int might match the return type of a gcc2
3227 builtin and then its argument prototype would still apply. */
3228 char gethostbyname ();
3230 main ()
3232 gethostbyname ();
3234 return 0;
3236 _ACEOF
3237 rm -f conftest.$ac_objext conftest$ac_exeext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239 (eval $ac_link) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -s conftest$ac_exeext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 ac_cv_lib_nsl_gethostbyname=yes
3250 else
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 ac_cv_lib_nsl_gethostbyname=no
3256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3257 LIBS=$ac_check_lib_save_LIBS
3259 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3260 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3261 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3262 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3265 if test $ac_cv_lib_nsl_gethostbyname = no; then
3266 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3267 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3268 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271 ac_check_lib_save_LIBS=$LIBS
3272 LIBS="-lbsd $LIBS"
3273 cat >conftest.$ac_ext <<_ACEOF
3274 #line $LINENO "configure"
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3281 /* Override any gcc2 internal prototype to avoid an error. */
3282 #ifdef __cplusplus
3283 extern "C"
3284 #endif
3285 /* We use char because int might match the return type of a gcc2
3286 builtin and then its argument prototype would still apply. */
3287 char gethostbyname ();
3289 main ()
3291 gethostbyname ();
3293 return 0;
3295 _ACEOF
3296 rm -f conftest.$ac_objext conftest$ac_exeext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298 (eval $ac_link) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
3302 { ac_try='test -s conftest$ac_exeext'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304 (eval $ac_try) 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; }; then
3308 ac_cv_lib_bsd_gethostbyname=yes
3309 else
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 ac_cv_lib_bsd_gethostbyname=no
3315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3316 LIBS=$ac_check_lib_save_LIBS
3318 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3319 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3320 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3321 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3327 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3328 # socket/setsockopt and other routines are undefined under SCO ODT
3329 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3330 # on later versions), says Simon Leinen: it contains gethostby*
3331 # variants that don't use the name server (or something). -lsocket
3332 # must be given before -lnsl if both are needed. We assume that
3333 # if connect needs -lnsl, so does gethostbyname.
3334 echo "$as_me:$LINENO: checking for connect" >&5
3335 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3336 if test "${ac_cv_func_connect+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 cat >conftest.$ac_ext <<_ACEOF
3340 #line $LINENO "configure"
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346 /* System header to define __stub macros and hopefully few prototypes,
3347 which can conflict with char connect (); below.
3348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 <limits.h> exists even on freestanding compilers. */
3350 #ifdef __STDC__
3351 # include <limits.h>
3352 #else
3353 # include <assert.h>
3354 #endif
3355 /* Override any gcc2 internal prototype to avoid an error. */
3356 #ifdef __cplusplus
3357 extern "C"
3359 #endif
3360 /* We use char because int might match the return type of a gcc2
3361 builtin and then its argument prototype would still apply. */
3362 char connect ();
3363 /* The GNU C library defines this for functions which it implements
3364 to always fail with ENOSYS. Some functions are actually named
3365 something starting with __ and the normal name is an alias. */
3366 #if defined (__stub_connect) || defined (__stub___connect)
3367 choke me
3368 #else
3369 char (*f) () = connect;
3370 #endif
3371 #ifdef __cplusplus
3373 #endif
3376 main ()
3378 return f != connect;
3380 return 0;
3382 _ACEOF
3383 rm -f conftest.$ac_objext conftest$ac_exeext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385 (eval $ac_link) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } &&
3389 { ac_try='test -s conftest$ac_exeext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 ac_cv_func_connect=yes
3396 else
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 ac_cv_func_connect=no
3402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3404 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3405 echo "${ECHO_T}$ac_cv_func_connect" >&6
3407 if test $ac_cv_func_connect = no; then
3408 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3409 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3410 if test "${ac_cv_lib_socket_connect+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413 ac_check_lib_save_LIBS=$LIBS
3414 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3415 cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3423 /* Override any gcc2 internal prototype to avoid an error. */
3424 #ifdef __cplusplus
3425 extern "C"
3426 #endif
3427 /* We use char because int might match the return type of a gcc2
3428 builtin and then its argument prototype would still apply. */
3429 char connect ();
3431 main ()
3433 connect ();
3435 return 0;
3437 _ACEOF
3438 rm -f conftest.$ac_objext conftest$ac_exeext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3440 (eval $ac_link) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } &&
3444 { ac_try='test -s conftest$ac_exeext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 ac_cv_lib_socket_connect=yes
3451 else
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 ac_cv_lib_socket_connect=no
3457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3458 LIBS=$ac_check_lib_save_LIBS
3460 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3461 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3462 if test $ac_cv_lib_socket_connect = yes; then
3463 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3468 # Guillermo Gomez says -lposix is necessary on A/UX.
3469 echo "$as_me:$LINENO: checking for remove" >&5
3470 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3471 if test "${ac_cv_func_remove+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474 cat >conftest.$ac_ext <<_ACEOF
3475 #line $LINENO "configure"
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 /* System header to define __stub macros and hopefully few prototypes,
3482 which can conflict with char remove (); below.
3483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3484 <limits.h> exists even on freestanding compilers. */
3485 #ifdef __STDC__
3486 # include <limits.h>
3487 #else
3488 # include <assert.h>
3489 #endif
3490 /* Override any gcc2 internal prototype to avoid an error. */
3491 #ifdef __cplusplus
3492 extern "C"
3494 #endif
3495 /* We use char because int might match the return type of a gcc2
3496 builtin and then its argument prototype would still apply. */
3497 char remove ();
3498 /* The GNU C library defines this for functions which it implements
3499 to always fail with ENOSYS. Some functions are actually named
3500 something starting with __ and the normal name is an alias. */
3501 #if defined (__stub_remove) || defined (__stub___remove)
3502 choke me
3503 #else
3504 char (*f) () = remove;
3505 #endif
3506 #ifdef __cplusplus
3508 #endif
3511 main ()
3513 return f != remove;
3515 return 0;
3517 _ACEOF
3518 rm -f conftest.$ac_objext conftest$ac_exeext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3520 (eval $ac_link) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -s conftest$ac_exeext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_cv_func_remove=yes
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 ac_cv_func_remove=no
3537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3539 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3540 echo "${ECHO_T}$ac_cv_func_remove" >&6
3542 if test $ac_cv_func_remove = no; then
3543 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3544 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3545 if test "${ac_cv_lib_posix_remove+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 ac_check_lib_save_LIBS=$LIBS
3549 LIBS="-lposix $LIBS"
3550 cat >conftest.$ac_ext <<_ACEOF
3551 #line $LINENO "configure"
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3558 /* Override any gcc2 internal prototype to avoid an error. */
3559 #ifdef __cplusplus
3560 extern "C"
3561 #endif
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3564 char remove ();
3566 main ()
3568 remove ();
3570 return 0;
3572 _ACEOF
3573 rm -f conftest.$ac_objext conftest$ac_exeext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3575 (eval $ac_link) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } &&
3579 { ac_try='test -s conftest$ac_exeext'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 (eval $ac_try) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3585 ac_cv_lib_posix_remove=yes
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 ac_cv_lib_posix_remove=no
3592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3593 LIBS=$ac_check_lib_save_LIBS
3595 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3596 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3597 if test $ac_cv_lib_posix_remove = yes; then
3598 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3603 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3604 echo "$as_me:$LINENO: checking for shmat" >&5
3605 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3606 if test "${ac_cv_func_shmat+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 cat >conftest.$ac_ext <<_ACEOF
3610 #line $LINENO "configure"
3611 /* confdefs.h. */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3616 /* System header to define __stub macros and hopefully few prototypes,
3617 which can conflict with char shmat (); below.
3618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619 <limits.h> exists even on freestanding compilers. */
3620 #ifdef __STDC__
3621 # include <limits.h>
3622 #else
3623 # include <assert.h>
3624 #endif
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 #ifdef __cplusplus
3627 extern "C"
3629 #endif
3630 /* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3632 char shmat ();
3633 /* The GNU C library defines this for functions which it implements
3634 to always fail with ENOSYS. Some functions are actually named
3635 something starting with __ and the normal name is an alias. */
3636 #if defined (__stub_shmat) || defined (__stub___shmat)
3637 choke me
3638 #else
3639 char (*f) () = shmat;
3640 #endif
3641 #ifdef __cplusplus
3643 #endif
3646 main ()
3648 return f != shmat;
3650 return 0;
3652 _ACEOF
3653 rm -f conftest.$ac_objext conftest$ac_exeext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655 (eval $ac_link) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -s conftest$ac_exeext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 ac_cv_func_shmat=yes
3666 else
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3670 ac_cv_func_shmat=no
3672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3674 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3675 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3677 if test $ac_cv_func_shmat = no; then
3678 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3679 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3680 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 ac_check_lib_save_LIBS=$LIBS
3684 LIBS="-lipc $LIBS"
3685 cat >conftest.$ac_ext <<_ACEOF
3686 #line $LINENO "configure"
3687 /* confdefs.h. */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3693 /* Override any gcc2 internal prototype to avoid an error. */
3694 #ifdef __cplusplus
3695 extern "C"
3696 #endif
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699 char shmat ();
3701 main ()
3703 shmat ();
3705 return 0;
3707 _ACEOF
3708 rm -f conftest.$ac_objext conftest$ac_exeext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710 (eval $ac_link) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -s conftest$ac_exeext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 ac_cv_lib_ipc_shmat=yes
3721 else
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 ac_cv_lib_ipc_shmat=no
3727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3728 LIBS=$ac_check_lib_save_LIBS
3730 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3731 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3732 if test $ac_cv_lib_ipc_shmat = yes; then
3733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3739 # Check for libraries that X11R6 Xt/Xaw programs need.
3740 ac_save_LDFLAGS=$LDFLAGS
3741 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3742 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3743 # check for ICE first), but we must link in the order -lSM -lICE or
3744 # we get undefined symbols. So assume we have SM if we have ICE.
3745 # These have to be linked with before -lX11, unlike the other
3746 # libraries we check for below, so use a different variable.
3747 # John Interrante, Karl Berry
3748 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3749 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3750 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753 ac_check_lib_save_LIBS=$LIBS
3754 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3755 cat >conftest.$ac_ext <<_ACEOF
3756 #line $LINENO "configure"
3757 /* confdefs.h. */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3763 /* Override any gcc2 internal prototype to avoid an error. */
3764 #ifdef __cplusplus
3765 extern "C"
3766 #endif
3767 /* We use char because int might match the return type of a gcc2
3768 builtin and then its argument prototype would still apply. */
3769 char IceConnectionNumber ();
3771 main ()
3773 IceConnectionNumber ();
3775 return 0;
3777 _ACEOF
3778 rm -f conftest.$ac_objext conftest$ac_exeext
3779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780 (eval $ac_link) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -s conftest$ac_exeext'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 ac_cv_lib_ICE_IceConnectionNumber=yes
3791 else
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 ac_cv_lib_ICE_IceConnectionNumber=no
3797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3798 LIBS=$ac_check_lib_save_LIBS
3800 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3801 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3802 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3803 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3806 LDFLAGS=$ac_save_LDFLAGS
3810 for ac_prog in 'bison -y' byacc
3812 # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3816 if test "${ac_cv_prog_YACC+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 if test -n "$YACC"; then
3820 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_YACC="$ac_prog"
3830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3833 done
3834 done
3838 YACC=$ac_cv_prog_YACC
3839 if test -n "$YACC"; then
3840 echo "$as_me:$LINENO: result: $YACC" >&5
3841 echo "${ECHO_T}$YACC" >&6
3842 else
3843 echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6
3847 test -n "$YACC" && break
3848 done
3849 test -n "$YACC" || YACC="yacc"
3851 for ac_prog in flex lex
3853 # Extract the first word of "$ac_prog", so it can be a program name with args.
3854 set dummy $ac_prog; ac_word=$2
3855 echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857 if test "${ac_cv_prog_LEX+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860 if test -n "$LEX"; then
3861 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_LEX="$ac_prog"
3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3874 done
3875 done
3879 LEX=$ac_cv_prog_LEX
3880 if test -n "$LEX"; then
3881 echo "$as_me:$LINENO: result: $LEX" >&5
3882 echo "${ECHO_T}$LEX" >&6
3883 else
3884 echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6
3888 test -n "$LEX" && break
3889 done
3890 test -n "$LEX" || LEX=":"
3892 if test -z "$LEXLIB"
3893 then
3894 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3895 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3896 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 ac_check_lib_save_LIBS=$LIBS
3900 LIBS="-lfl $LIBS"
3901 cat >conftest.$ac_ext <<_ACEOF
3902 #line $LINENO "configure"
3903 /* confdefs.h. */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3909 /* Override any gcc2 internal prototype to avoid an error. */
3910 #ifdef __cplusplus
3911 extern "C"
3912 #endif
3913 /* We use char because int might match the return type of a gcc2
3914 builtin and then its argument prototype would still apply. */
3915 char yywrap ();
3917 main ()
3919 yywrap ();
3921 return 0;
3923 _ACEOF
3924 rm -f conftest.$ac_objext conftest$ac_exeext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926 (eval $ac_link) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -s conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_lib_fl_yywrap=yes
3937 else
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3941 ac_cv_lib_fl_yywrap=no
3943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3946 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3947 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3948 if test $ac_cv_lib_fl_yywrap = yes; then
3949 LEXLIB="-lfl"
3950 else
3951 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3952 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3953 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 ac_check_lib_save_LIBS=$LIBS
3957 LIBS="-ll $LIBS"
3958 cat >conftest.$ac_ext <<_ACEOF
3959 #line $LINENO "configure"
3960 /* confdefs.h. */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3966 /* Override any gcc2 internal prototype to avoid an error. */
3967 #ifdef __cplusplus
3968 extern "C"
3969 #endif
3970 /* We use char because int might match the return type of a gcc2
3971 builtin and then its argument prototype would still apply. */
3972 char yywrap ();
3974 main ()
3976 yywrap ();
3978 return 0;
3980 _ACEOF
3981 rm -f conftest.$ac_objext conftest$ac_exeext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3983 (eval $ac_link) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -s conftest$ac_exeext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 (eval $ac_try) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 ac_cv_lib_l_yywrap=yes
3994 else
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3998 ac_cv_lib_l_yywrap=no
4000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4001 LIBS=$ac_check_lib_save_LIBS
4003 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4004 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4005 if test $ac_cv_lib_l_yywrap = yes; then
4006 LEXLIB="-ll"
4013 if test "x$LEX" != "x:"; then
4014 echo "$as_me:$LINENO: checking lex output file root" >&5
4015 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4016 if test "${ac_cv_prog_lex_root+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 # The minimal lex program is just a single line: %%. But some broken lexes
4020 # (Solaris, I think it was) want two %% lines, so accommodate them.
4021 cat >conftest.l <<_ACEOF
4024 _ACEOF
4025 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4026 (eval $LEX conftest.l) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }
4030 if test -f lex.yy.c; then
4031 ac_cv_prog_lex_root=lex.yy
4032 elif test -f lexyy.c; then
4033 ac_cv_prog_lex_root=lexyy
4034 else
4035 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4036 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4037 { (exit 1); exit 1; }; }
4040 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4041 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4042 rm -f conftest.l
4043 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4045 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4046 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4047 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 # POSIX says lex can declare yytext either as a pointer or an array; the
4051 # default is implementation-dependent. Figure out which it is, since
4052 # not all implementations provide the %pointer and %array declarations.
4053 ac_cv_prog_lex_yytext_pointer=no
4054 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4055 ac_save_LIBS=$LIBS
4056 LIBS="$LIBS $LEXLIB"
4057 cat >conftest.$ac_ext <<_ACEOF
4058 `cat $LEX_OUTPUT_ROOT.c`
4059 _ACEOF
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -s conftest$ac_exeext'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
4072 ac_cv_prog_lex_yytext_pointer=yes
4073 else
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4079 LIBS=$ac_save_LIBS
4080 rm -f "${LEX_OUTPUT_ROOT}.c"
4083 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4084 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4085 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4087 cat >>confdefs.h <<\_ACEOF
4088 #define YYTEXT_POINTER 1
4089 _ACEOF
4095 for ac_prog in $YACC bison yacc
4097 # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101 if test "${ac_cv_prog_XYACC+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104 if test -n "$XYACC"; then
4105 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_XYACC="$ac_prog"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4118 done
4119 done
4123 XYACC=$ac_cv_prog_XYACC
4124 if test -n "$XYACC"; then
4125 echo "$as_me:$LINENO: result: $XYACC" >&5
4126 echo "${ECHO_T}$XYACC" >&6
4127 else
4128 echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4132 test -n "$XYACC" && break
4133 done
4134 test -n "$XYACC" || XYACC="none"
4136 if test "$XYACC" = "none"
4137 then
4138 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4139 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4140 { (exit 1); exit 1; }; }
4142 for ac_prog in $LEX flex lex
4144 # Extract the first word of "$ac_prog", so it can be a program name with args.
4145 set dummy $ac_prog; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_XLEX+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151 if test -n "$XLEX"; then
4152 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161 ac_cv_prog_XLEX="$ac_prog"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4165 done
4166 done
4170 XLEX=$ac_cv_prog_XLEX
4171 if test -n "$XLEX"; then
4172 echo "$as_me:$LINENO: result: $XLEX" >&5
4173 echo "${ECHO_T}$XLEX" >&6
4174 else
4175 echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4179 test -n "$XLEX" && break
4180 done
4181 test -n "$XLEX" || XLEX="none"
4183 if test "$XLEX" = "none"
4184 then
4185 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4186 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4187 { (exit 1); exit 1; }; }
4190 if test -n "$ac_tool_prefix"; then
4191 for ac_prog in gas as
4193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4194 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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
4228 test -n "$AS" && break
4229 done
4231 if test -z "$AS"; then
4232 ac_ct_AS=$AS
4233 for ac_prog in gas as
4235 # Extract the first word of "$ac_prog", so it can be a program name with args.
4236 set dummy $ac_prog; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 if test -n "$ac_ct_AS"; then
4243 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_ac_ct_AS="$ac_prog"
4253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4256 done
4257 done
4261 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4262 if test -n "$ac_ct_AS"; then
4263 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4264 echo "${ECHO_T}$ac_ct_AS" >&6
4265 else
4266 echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4270 test -n "$ac_ct_AS" && break
4271 done
4272 test -n "$ac_ct_AS" || ac_ct_AS="as"
4274 AS=$ac_ct_AS
4277 if test -n "$ac_tool_prefix"; then
4278 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}ld; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_LD+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 if test -n "$LD"; then
4286 ac_cv_prog_LD="$LD" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_LD="${ac_tool_prefix}ld"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4299 done
4300 done
4304 LD=$ac_cv_prog_LD
4305 if test -n "$LD"; then
4306 echo "$as_me:$LINENO: result: $LD" >&5
4307 echo "${ECHO_T}$LD" >&6
4308 else
4309 echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4314 if test -z "$ac_cv_prog_LD"; then
4315 ac_ct_LD=$LD
4316 # Extract the first word of "ld", so it can be a program name with args.
4317 set dummy ld; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if test -n "$ac_ct_LD"; then
4324 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_ac_ct_LD="ld"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4337 done
4338 done
4340 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4343 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4344 if test -n "$ac_ct_LD"; then
4345 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4346 echo "${ECHO_T}$ac_ct_LD" >&6
4347 else
4348 echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4352 LD=$ac_ct_LD
4353 else
4354 LD="$ac_cv_prog_LD"
4357 if test -n "$ac_tool_prefix"; then
4358 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4359 set dummy ${ac_tool_prefix}ar; ac_word=$2
4360 echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4362 if test "${ac_cv_prog_AR+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 if test -n "$AR"; then
4366 ac_cv_prog_AR="$AR" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375 ac_cv_prog_AR="${ac_tool_prefix}ar"
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4379 done
4380 done
4384 AR=$ac_cv_prog_AR
4385 if test -n "$AR"; then
4386 echo "$as_me:$LINENO: result: $AR" >&5
4387 echo "${ECHO_T}$AR" >&6
4388 else
4389 echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4394 if test -z "$ac_cv_prog_AR"; then
4395 ac_ct_AR=$AR
4396 # Extract the first word of "ar", so it can be a program name with args.
4397 set dummy ar; ac_word=$2
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403 if test -n "$ac_ct_AR"; then
4404 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413 ac_cv_prog_ac_ct_AR="ar"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4417 done
4418 done
4420 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4423 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4424 if test -n "$ac_ct_AR"; then
4425 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4426 echo "${ECHO_T}$ac_ct_AR" >&6
4427 else
4428 echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6
4432 AR=$ac_ct_AR
4433 else
4434 AR="$ac_cv_prog_AR"
4437 if test -n "$ac_tool_prefix"; then
4438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4440 echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442 if test "${ac_cv_prog_RANLIB+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 if test -n "$RANLIB"; then
4446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4459 done
4460 done
4464 RANLIB=$ac_cv_prog_RANLIB
4465 if test -n "$RANLIB"; then
4466 echo "$as_me:$LINENO: result: $RANLIB" >&5
4467 echo "${ECHO_T}$RANLIB" >&6
4468 else
4469 echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6
4474 if test -z "$ac_cv_prog_RANLIB"; then
4475 ac_ct_RANLIB=$RANLIB
4476 # Extract the first word of "ranlib", so it can be a program name with args.
4477 set dummy ranlib; ac_word=$2
4478 echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 if test -n "$ac_ct_RANLIB"; then
4484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_prog_ac_ct_RANLIB="ranlib"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4500 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4504 if test -n "$ac_ct_RANLIB"; then
4505 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4506 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4507 else
4508 echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4512 RANLIB=$ac_ct_RANLIB
4513 else
4514 RANLIB="$ac_cv_prog_RANLIB"
4517 if test -n "$ac_tool_prefix"; then
4518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4519 set dummy ${ac_tool_prefix}strip; ac_word=$2
4520 echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522 if test "${ac_cv_prog_STRIP+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 if test -n "$STRIP"; then
4526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4539 done
4540 done
4544 STRIP=$ac_cv_prog_STRIP
4545 if test -n "$STRIP"; then
4546 echo "$as_me:$LINENO: result: $STRIP" >&5
4547 echo "${ECHO_T}$STRIP" >&6
4548 else
4549 echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4554 if test -z "$ac_cv_prog_STRIP"; then
4555 ac_ct_STRIP=$STRIP
4556 # Extract the first word of "strip", so it can be a program name with args.
4557 set dummy strip; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 if test -n "$ac_ct_STRIP"; then
4564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_ac_ct_STRIP="strip"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4580 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4584 if test -n "$ac_ct_STRIP"; then
4585 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4586 echo "${ECHO_T}$ac_ct_STRIP" >&6
4587 else
4588 echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4592 STRIP=$ac_ct_STRIP
4593 else
4594 STRIP="$ac_cv_prog_STRIP"
4597 if test -n "$ac_tool_prefix"; then
4598 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4599 set dummy ${ac_tool_prefix}windres; ac_word=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_prog_WINDRES+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 if test -n "$WINDRES"; then
4606 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4619 done
4620 done
4624 WINDRES=$ac_cv_prog_WINDRES
4625 if test -n "$WINDRES"; then
4626 echo "$as_me:$LINENO: result: $WINDRES" >&5
4627 echo "${ECHO_T}$WINDRES" >&6
4628 else
4629 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4634 if test -z "$ac_cv_prog_WINDRES"; then
4635 ac_ct_WINDRES=$WINDRES
4636 # Extract the first word of "windres", so it can be a program name with args.
4637 set dummy windres; ac_word=$2
4638 echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 if test -n "$ac_ct_WINDRES"; then
4644 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_WINDRES="windres"
4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4657 done
4658 done
4660 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4663 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4664 if test -n "$ac_ct_WINDRES"; then
4665 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4666 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4667 else
4668 echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4672 WINDRES=$ac_ct_WINDRES
4673 else
4674 WINDRES="$ac_cv_prog_WINDRES"
4677 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4678 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4679 LN_S=$as_ln_s
4680 if test "$LN_S" = "ln -s"; then
4681 echo "$as_me:$LINENO: result: yes" >&5
4682 echo "${ECHO_T}yes" >&6
4683 else
4684 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4685 echo "${ECHO_T}no, using $LN_S" >&6
4688 echo "$as_me:$LINENO: checking whether ln works" >&5
4689 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4690 rm -f conf$$ conf$$.file
4691 echo >conf$$.file
4692 if ln conf$$.file conf$$ 2>/dev/null; then
4693 LN=ln
4695 echo "$as_me:$LINENO: result: yes" >&5
4696 echo "${ECHO_T}yes" >&6
4697 else
4698 LN="cp -p"
4700 echo "$as_me:$LINENO: result: no, using $LN" >&5
4701 echo "${ECHO_T}no, using $LN" >&6
4703 rm -f conf$$ conf$$.file
4704 # Extract the first word of "c2man", so it can be a program name with args.
4705 set dummy c2man; ac_word=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_prog_C2MAN+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 if test -n "$C2MAN"; then
4712 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721 ac_cv_prog_C2MAN="c2man"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4725 done
4726 done
4728 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4731 C2MAN=$ac_cv_prog_C2MAN
4732 if test -n "$C2MAN"; then
4733 echo "$as_me:$LINENO: result: $C2MAN" >&5
4734 echo "${ECHO_T}$C2MAN" >&6
4735 else
4736 echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6
4740 # Extract the first word of "ldconfig", so it can be a program name with args.
4741 set dummy ldconfig; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 case $LDCONFIG in
4748 [\\/]* | ?:[\\/]*)
4749 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in /sbin /usr/sbin $PATH
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4763 done
4764 done
4766 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4768 esac
4770 LDCONFIG=$ac_cv_path_LDCONFIG
4772 if test -n "$LDCONFIG"; then
4773 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4774 echo "${ECHO_T}$LDCONFIG" >&6
4775 else
4776 echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6
4780 # Find a good install program. We prefer a C program (faster),
4781 # so one script is as good as another. But avoid the broken or
4782 # incompatible versions:
4783 # SysV /etc/install, /usr/sbin/install
4784 # SunOS /usr/etc/install
4785 # IRIX /sbin/install
4786 # AIX /bin/install
4787 # AmigaOS /C/install, which installs bootblocks on floppy discs
4788 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4789 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4790 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4791 # ./install, which can be erroneously created by make from ./install.sh.
4792 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4793 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4794 if test -z "$INSTALL"; then
4795 if test "${ac_cv_path_install+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
4803 # Account for people who put trailing slashes in PATH elements.
4804 case $as_dir/ in
4805 ./ | .// | /cC/* | \
4806 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4807 /usr/ucb/* ) ;;
4809 # OSF1 and SCO ODT 3.0 have their own names for install.
4810 # Don't use installbsd from OSF since it installs stuff as root
4811 # by default.
4812 for ac_prog in ginstall scoinst install; do
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4815 if test $ac_prog = install &&
4816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4817 # AIX install. It has an incompatible calling convention.
4819 elif test $ac_prog = install &&
4820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4821 # program-specific install script used by HP pwplus--don't use.
4823 else
4824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4825 break 3
4828 done
4829 done
4831 esac
4832 done
4836 if test "${ac_cv_path_install+set}" = set; then
4837 INSTALL=$ac_cv_path_install
4838 else
4839 # As a last resort, use the slow shell script. We don't cache a
4840 # path for INSTALL within a source directory, because that will
4841 # break other packages using the cache if that directory is
4842 # removed, or if the path is relative.
4843 INSTALL=$ac_install_sh
4846 echo "$as_me:$LINENO: result: $INSTALL" >&5
4847 echo "${ECHO_T}$INSTALL" >&6
4849 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4850 # It thinks the first close brace ends the variable substitution.
4851 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4853 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4855 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4857 case "$INSTALL" in
4858 [\\/$]* | ?:[\\/]* ) ;;
4859 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4860 esac
4862 for ac_prog in lclint lint
4864 # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy $ac_prog; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_prog_LINT+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871 if test -n "$LINT"; then
4872 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881 ac_cv_prog_LINT="$ac_prog"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4885 done
4886 done
4890 LINT=$ac_cv_prog_LINT
4891 if test -n "$LINT"; then
4892 echo "$as_me:$LINENO: result: $LINT" >&5
4893 echo "${ECHO_T}$LINT" >&6
4894 else
4895 echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6
4899 test -n "$LINT" && break
4900 done
4902 if test "$LINT" = "lint"
4903 then
4904 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4909 for ac_prog in docbook2html db2html
4911 # Extract the first word of "$ac_prog", so it can be a program name with args.
4912 set dummy $ac_prog; ac_word=$2
4913 echo "$as_me:$LINENO: checking for $ac_word" >&5
4914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918 if test -n "$DB2HTML"; then
4919 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_DB2HTML="$ac_prog"
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4932 done
4933 done
4937 DB2HTML=$ac_cv_prog_DB2HTML
4938 if test -n "$DB2HTML"; then
4939 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4940 echo "${ECHO_T}$DB2HTML" >&6
4941 else
4942 echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4946 test -n "$DB2HTML" && break
4947 done
4948 test -n "$DB2HTML" || DB2HTML="false"
4952 for ac_prog in docbook2pdf db2pdf
4954 # Extract the first word of "$ac_prog", so it can be a program name with args.
4955 set dummy $ac_prog; ac_word=$2
4956 echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961 if test -n "$DB2PDF"; then
4962 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_DB2PDF="$ac_prog"
4972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4975 done
4976 done
4980 DB2PDF=$ac_cv_prog_DB2PDF
4981 if test -n "$DB2PDF"; then
4982 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4983 echo "${ECHO_T}$DB2PDF" >&6
4984 else
4985 echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6
4989 test -n "$DB2PDF" && break
4990 done
4991 test -n "$DB2PDF" || DB2PDF="false"
4995 for ac_prog in docbook2ps db2ps
4997 # Extract the first word of "$ac_prog", so it can be a program name with args.
4998 set dummy $ac_prog; ac_word=$2
4999 echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_prog_DB2PS+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 if test -n "$DB2PS"; then
5005 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_DB2PS="$ac_prog"
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5018 done
5019 done
5023 DB2PS=$ac_cv_prog_DB2PS
5024 if test -n "$DB2PS"; then
5025 echo "$as_me:$LINENO: result: $DB2PS" >&5
5026 echo "${ECHO_T}$DB2PS" >&6
5027 else
5028 echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5032 test -n "$DB2PS" && break
5033 done
5034 test -n "$DB2PS" || DB2PS="false"
5040 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5041 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5042 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045 ac_check_lib_save_LIBS=$LIBS
5046 LIBS="-lm $LIBS"
5047 cat >conftest.$ac_ext <<_ACEOF
5048 #line $LINENO "configure"
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5055 /* Override any gcc2 internal prototype to avoid an error. */
5056 #ifdef __cplusplus
5057 extern "C"
5058 #endif
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5061 char sqrt ();
5063 main ()
5065 sqrt ();
5067 return 0;
5069 _ACEOF
5070 rm -f conftest.$ac_objext conftest$ac_exeext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5072 (eval $ac_link) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
5076 { ac_try='test -s conftest$ac_exeext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 ac_cv_lib_m_sqrt=yes
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 ac_cv_lib_m_sqrt=no
5089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5090 LIBS=$ac_check_lib_save_LIBS
5092 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5093 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5094 if test $ac_cv_lib_m_sqrt = yes; then
5095 cat >>confdefs.h <<_ACEOF
5096 #define HAVE_LIBM 1
5097 _ACEOF
5099 LIBS="-lm $LIBS"
5104 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5105 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5106 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109 ac_check_lib_save_LIBS=$LIBS
5110 LIBS="-li386 $LIBS"
5111 cat >conftest.$ac_ext <<_ACEOF
5112 #line $LINENO "configure"
5113 /* confdefs.h. */
5114 _ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5119 /* Override any gcc2 internal prototype to avoid an error. */
5120 #ifdef __cplusplus
5121 extern "C"
5122 #endif
5123 /* We use char because int might match the return type of a gcc2
5124 builtin and then its argument prototype would still apply. */
5125 char i386_set_ldt ();
5127 main ()
5129 i386_set_ldt ();
5131 return 0;
5133 _ACEOF
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5136 (eval $ac_link) 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -s conftest$ac_exeext'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 (eval $ac_try) 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 ac_cv_lib_i386_i386_set_ldt=yes
5147 else
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5151 ac_cv_lib_i386_i386_set_ldt=no
5153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5154 LIBS=$ac_check_lib_save_LIBS
5156 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5157 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5158 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5159 cat >>confdefs.h <<_ACEOF
5160 #define HAVE_LIBI386 1
5161 _ACEOF
5163 LIBS="-li386 $LIBS"
5168 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5169 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5170 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173 ac_check_lib_save_LIBS=$LIBS
5174 LIBS="-lossaudio $LIBS"
5175 cat >conftest.$ac_ext <<_ACEOF
5176 #line $LINENO "configure"
5177 /* confdefs.h. */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5183 /* Override any gcc2 internal prototype to avoid an error. */
5184 #ifdef __cplusplus
5185 extern "C"
5186 #endif
5187 /* We use char because int might match the return type of a gcc2
5188 builtin and then its argument prototype would still apply. */
5189 char _oss_ioctl ();
5191 main ()
5193 _oss_ioctl ();
5195 return 0;
5197 _ACEOF
5198 rm -f conftest.$ac_objext conftest$ac_exeext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5200 (eval $ac_link) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } &&
5204 { ac_try='test -s conftest$ac_exeext'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 (eval $ac_try) 2>&5
5207 ac_status=$?
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 ac_cv_lib_ossaudio__oss_ioctl=yes
5211 else
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 ac_cv_lib_ossaudio__oss_ioctl=no
5217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5218 LIBS=$ac_check_lib_save_LIBS
5220 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5221 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5222 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5223 cat >>confdefs.h <<_ACEOF
5224 #define HAVE_LIBOSSAUDIO 1
5225 _ACEOF
5227 LIBS="-lossaudio $LIBS"
5232 for ac_func in iswalnum
5234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5235 echo "$as_me:$LINENO: checking for $ac_func" >&5
5236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5237 if eval "test \"\${$as_ac_var+set}\" = set"; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240 cat >conftest.$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5242 /* confdefs.h. */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5247 /* System header to define __stub macros and hopefully few prototypes,
5248 which can conflict with char $ac_func (); below.
5249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5250 <limits.h> exists even on freestanding compilers. */
5251 #ifdef __STDC__
5252 # include <limits.h>
5253 #else
5254 # include <assert.h>
5255 #endif
5256 /* Override any gcc2 internal prototype to avoid an error. */
5257 #ifdef __cplusplus
5258 extern "C"
5260 #endif
5261 /* We use char because int might match the return type of a gcc2
5262 builtin and then its argument prototype would still apply. */
5263 char $ac_func ();
5264 /* The GNU C library defines this for functions which it implements
5265 to always fail with ENOSYS. Some functions are actually named
5266 something starting with __ and the normal name is an alias. */
5267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5268 choke me
5269 #else
5270 char (*f) () = $ac_func;
5271 #endif
5272 #ifdef __cplusplus
5274 #endif
5277 main ()
5279 return f != $ac_func;
5281 return 0;
5283 _ACEOF
5284 rm -f conftest.$ac_objext conftest$ac_exeext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5286 (eval $ac_link) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -s conftest$ac_exeext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 eval "$as_ac_var=yes"
5297 else
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5301 eval "$as_ac_var=no"
5303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5307 if test `eval echo '${'$as_ac_var'}'` = yes; then
5308 cat >>confdefs.h <<_ACEOF
5309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5310 _ACEOF
5312 else
5314 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5315 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5316 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 ac_check_lib_save_LIBS=$LIBS
5320 LIBS="-lw $LIBS"
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5329 /* Override any gcc2 internal prototype to avoid an error. */
5330 #ifdef __cplusplus
5331 extern "C"
5332 #endif
5333 /* We use char because int might match the return type of a gcc2
5334 builtin and then its argument prototype would still apply. */
5335 char iswalnum ();
5337 main ()
5339 iswalnum ();
5341 return 0;
5343 _ACEOF
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346 (eval $ac_link) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_lib_w_iswalnum=yes
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 ac_cv_lib_w_iswalnum=no
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5366 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5367 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5368 if test $ac_cv_lib_w_iswalnum = yes; then
5369 cat >>confdefs.h <<_ACEOF
5370 #define HAVE_LIBW 1
5371 _ACEOF
5373 LIBS="-lw $LIBS"
5378 done
5381 for ac_func in gethostbyname
5383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5384 echo "$as_me:$LINENO: checking for $ac_func" >&5
5385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5386 if eval "test \"\${$as_ac_var+set}\" = set"; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 cat >conftest.$ac_ext <<_ACEOF
5390 #line $LINENO "configure"
5391 /* confdefs.h. */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396 /* System header to define __stub macros and hopefully few prototypes,
5397 which can conflict with char $ac_func (); below.
5398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5399 <limits.h> exists even on freestanding compilers. */
5400 #ifdef __STDC__
5401 # include <limits.h>
5402 #else
5403 # include <assert.h>
5404 #endif
5405 /* Override any gcc2 internal prototype to avoid an error. */
5406 #ifdef __cplusplus
5407 extern "C"
5409 #endif
5410 /* We use char because int might match the return type of a gcc2
5411 builtin and then its argument prototype would still apply. */
5412 char $ac_func ();
5413 /* The GNU C library defines this for functions which it implements
5414 to always fail with ENOSYS. Some functions are actually named
5415 something starting with __ and the normal name is an alias. */
5416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5417 choke me
5418 #else
5419 char (*f) () = $ac_func;
5420 #endif
5421 #ifdef __cplusplus
5423 #endif
5426 main ()
5428 return f != $ac_func;
5430 return 0;
5432 _ACEOF
5433 rm -f conftest.$ac_objext conftest$ac_exeext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5435 (eval $ac_link) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -s conftest$ac_exeext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 eval "$as_ac_var=yes"
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 eval "$as_ac_var=no"
5452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5456 if test `eval echo '${'$as_ac_var'}'` = yes; then
5457 cat >>confdefs.h <<_ACEOF
5458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5459 _ACEOF
5461 else
5463 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5464 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5465 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468 ac_check_lib_save_LIBS=$LIBS
5469 LIBS="-lnsl $LIBS"
5470 cat >conftest.$ac_ext <<_ACEOF
5471 #line $LINENO "configure"
5472 /* confdefs.h. */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5478 /* Override any gcc2 internal prototype to avoid an error. */
5479 #ifdef __cplusplus
5480 extern "C"
5481 #endif
5482 /* We use char because int might match the return type of a gcc2
5483 builtin and then its argument prototype would still apply. */
5484 char gethostbyname ();
5486 main ()
5488 gethostbyname ();
5490 return 0;
5492 _ACEOF
5493 rm -f conftest.$ac_objext conftest$ac_exeext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5495 (eval $ac_link) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
5499 { ac_try='test -s conftest$ac_exeext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_cv_lib_nsl_gethostbyname=yes
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5510 ac_cv_lib_nsl_gethostbyname=no
5512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5513 LIBS=$ac_check_lib_save_LIBS
5515 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5516 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5517 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5518 cat >>confdefs.h <<_ACEOF
5519 #define HAVE_LIBNSL 1
5520 _ACEOF
5522 LIBS="-lnsl $LIBS"
5527 done
5530 for ac_func in connect
5532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5533 echo "$as_me:$LINENO: checking for $ac_func" >&5
5534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5535 if eval "test \"\${$as_ac_var+set}\" = set"; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 cat >conftest.$ac_ext <<_ACEOF
5539 #line $LINENO "configure"
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 /* System header to define __stub macros and hopefully few prototypes,
5546 which can conflict with char $ac_func (); below.
5547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5548 <limits.h> exists even on freestanding compilers. */
5549 #ifdef __STDC__
5550 # include <limits.h>
5551 #else
5552 # include <assert.h>
5553 #endif
5554 /* Override any gcc2 internal prototype to avoid an error. */
5555 #ifdef __cplusplus
5556 extern "C"
5558 #endif
5559 /* We use char because int might match the return type of a gcc2
5560 builtin and then its argument prototype would still apply. */
5561 char $ac_func ();
5562 /* The GNU C library defines this for functions which it implements
5563 to always fail with ENOSYS. Some functions are actually named
5564 something starting with __ and the normal name is an alias. */
5565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5566 choke me
5567 #else
5568 char (*f) () = $ac_func;
5569 #endif
5570 #ifdef __cplusplus
5572 #endif
5575 main ()
5577 return f != $ac_func;
5579 return 0;
5581 _ACEOF
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 (eval $ac_link) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try='test -s conftest$ac_exeext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 (eval $ac_try) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 eval "$as_ac_var=yes"
5595 else
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5599 eval "$as_ac_var=no"
5601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5605 if test `eval echo '${'$as_ac_var'}'` = yes; then
5606 cat >>confdefs.h <<_ACEOF
5607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5608 _ACEOF
5610 else
5612 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5613 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5614 if test "${ac_cv_lib_socket_connect+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617 ac_check_lib_save_LIBS=$LIBS
5618 LIBS="-lsocket $LIBS"
5619 cat >conftest.$ac_ext <<_ACEOF
5620 #line $LINENO "configure"
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5627 /* Override any gcc2 internal prototype to avoid an error. */
5628 #ifdef __cplusplus
5629 extern "C"
5630 #endif
5631 /* We use char because int might match the return type of a gcc2
5632 builtin and then its argument prototype would still apply. */
5633 char connect ();
5635 main ()
5637 connect ();
5639 return 0;
5641 _ACEOF
5642 rm -f conftest.$ac_objext conftest$ac_exeext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try='test -s conftest$ac_exeext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_lib_socket_connect=yes
5655 else
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5659 ac_cv_lib_socket_connect=no
5661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5662 LIBS=$ac_check_lib_save_LIBS
5664 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5665 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5666 if test $ac_cv_lib_socket_connect = yes; then
5667 cat >>confdefs.h <<_ACEOF
5668 #define HAVE_LIBSOCKET 1
5669 _ACEOF
5671 LIBS="-lsocket $LIBS"
5676 done
5679 for ac_func in inet_aton
5681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5682 echo "$as_me:$LINENO: checking for $ac_func" >&5
5683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5684 if eval "test \"\${$as_ac_var+set}\" = set"; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687 cat >conftest.$ac_ext <<_ACEOF
5688 #line $LINENO "configure"
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 /* System header to define __stub macros and hopefully few prototypes,
5695 which can conflict with char $ac_func (); below.
5696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5697 <limits.h> exists even on freestanding compilers. */
5698 #ifdef __STDC__
5699 # include <limits.h>
5700 #else
5701 # include <assert.h>
5702 #endif
5703 /* Override any gcc2 internal prototype to avoid an error. */
5704 #ifdef __cplusplus
5705 extern "C"
5707 #endif
5708 /* We use char because int might match the return type of a gcc2
5709 builtin and then its argument prototype would still apply. */
5710 char $ac_func ();
5711 /* The GNU C library defines this for functions which it implements
5712 to always fail with ENOSYS. Some functions are actually named
5713 something starting with __ and the normal name is an alias. */
5714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5715 choke me
5716 #else
5717 char (*f) () = $ac_func;
5718 #endif
5719 #ifdef __cplusplus
5721 #endif
5724 main ()
5726 return f != $ac_func;
5728 return 0;
5730 _ACEOF
5731 rm -f conftest.$ac_objext conftest$ac_exeext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733 (eval $ac_link) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -s conftest$ac_exeext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 eval "$as_ac_var=yes"
5744 else
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5748 eval "$as_ac_var=no"
5750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5754 if test `eval echo '${'$as_ac_var'}'` = yes; then
5755 cat >>confdefs.h <<_ACEOF
5756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5757 _ACEOF
5759 else
5761 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5762 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5763 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766 ac_check_lib_save_LIBS=$LIBS
5767 LIBS="-lresolv $LIBS"
5768 cat >conftest.$ac_ext <<_ACEOF
5769 #line $LINENO "configure"
5770 /* confdefs.h. */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5776 /* Override any gcc2 internal prototype to avoid an error. */
5777 #ifdef __cplusplus
5778 extern "C"
5779 #endif
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5782 char inet_aton ();
5784 main ()
5786 inet_aton ();
5788 return 0;
5790 _ACEOF
5791 rm -f conftest.$ac_objext conftest$ac_exeext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5793 (eval $ac_link) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -s conftest$ac_exeext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_cv_lib_resolv_inet_aton=yes
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 ac_cv_lib_resolv_inet_aton=no
5810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5811 LIBS=$ac_check_lib_save_LIBS
5813 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5814 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5815 if test $ac_cv_lib_resolv_inet_aton = yes; then
5816 cat >>confdefs.h <<_ACEOF
5817 #define HAVE_LIBRESOLV 1
5818 _ACEOF
5820 LIBS="-lresolv $LIBS"
5825 done
5828 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5829 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5830 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833 ac_check_lib_save_LIBS=$LIBS
5834 LIBS="-lxpg4 $LIBS"
5835 cat >conftest.$ac_ext <<_ACEOF
5836 #line $LINENO "configure"
5837 /* confdefs.h. */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5843 /* Override any gcc2 internal prototype to avoid an error. */
5844 #ifdef __cplusplus
5845 extern "C"
5846 #endif
5847 /* We use char because int might match the return type of a gcc2
5848 builtin and then its argument prototype would still apply. */
5849 char _xpg4_setrunelocale ();
5851 main ()
5853 _xpg4_setrunelocale ();
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -s conftest$ac_exeext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5871 else
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5878 LIBS=$ac_check_lib_save_LIBS
5880 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5881 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5882 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5883 cat >>confdefs.h <<_ACEOF
5884 #define HAVE_LIBXPG4 1
5885 _ACEOF
5887 LIBS="-lxpg4 $LIBS"
5892 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5893 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5894 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897 ac_check_lib_save_LIBS=$LIBS
5898 LIBS="-lmmap $LIBS"
5899 cat >conftest.$ac_ext <<_ACEOF
5900 #line $LINENO "configure"
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5907 /* Override any gcc2 internal prototype to avoid an error. */
5908 #ifdef __cplusplus
5909 extern "C"
5910 #endif
5911 /* We use char because int might match the return type of a gcc2
5912 builtin and then its argument prototype would still apply. */
5913 char mmap ();
5915 main ()
5917 mmap ();
5919 return 0;
5921 _ACEOF
5922 rm -f conftest.$ac_objext conftest$ac_exeext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5924 (eval $ac_link) 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -s conftest$ac_exeext'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
5934 ac_cv_lib_mmap_mmap=yes
5935 else
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 ac_cv_lib_mmap_mmap=no
5941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5942 LIBS=$ac_check_lib_save_LIBS
5944 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5945 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5946 if test $ac_cv_lib_mmap_mmap = yes; then
5947 cat >>confdefs.h <<_ACEOF
5948 #define HAVE_LIBMMAP 1
5949 _ACEOF
5951 LIBS="-lmmap $LIBS"
5956 JPEGLIB=""
5958 echo "$as_me:$LINENO: checking for egrep" >&5
5959 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5960 if test "${ac_cv_prog_egrep+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5964 then ac_cv_prog_egrep='grep -E'
5965 else ac_cv_prog_egrep='egrep'
5968 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5969 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5970 EGREP=$ac_cv_prog_egrep
5973 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5974 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5975 if test "${ac_cv_header_stdc+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978 cat >conftest.$ac_ext <<_ACEOF
5979 #line $LINENO "configure"
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 #include <stdlib.h>
5986 #include <stdarg.h>
5987 #include <string.h>
5988 #include <float.h>
5991 main ()
5995 return 0;
5997 _ACEOF
5998 rm -f conftest.$ac_objext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -s conftest.$ac_objext'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 ac_cv_header_stdc=yes
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6015 ac_cv_header_stdc=no
6017 rm -f conftest.$ac_objext conftest.$ac_ext
6019 if test $ac_cv_header_stdc = yes; then
6020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6021 cat >conftest.$ac_ext <<_ACEOF
6022 #line $LINENO "configure"
6023 /* confdefs.h. */
6024 _ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h. */
6028 #include <string.h>
6030 _ACEOF
6031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032 $EGREP "memchr" >/dev/null 2>&1; then
6034 else
6035 ac_cv_header_stdc=no
6037 rm -f conftest*
6041 if test $ac_cv_header_stdc = yes; then
6042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6043 cat >conftest.$ac_ext <<_ACEOF
6044 #line $LINENO "configure"
6045 /* confdefs.h. */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 #include <stdlib.h>
6052 _ACEOF
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054 $EGREP "free" >/dev/null 2>&1; then
6056 else
6057 ac_cv_header_stdc=no
6059 rm -f conftest*
6063 if test $ac_cv_header_stdc = yes; then
6064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6065 if test "$cross_compiling" = yes; then
6067 else
6068 cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 #include <ctype.h>
6076 #if ((' ' & 0x0FF) == 0x020)
6077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6079 #else
6080 # define ISLOWER(c) \
6081 (('a' <= (c) && (c) <= 'i') \
6082 || ('j' <= (c) && (c) <= 'r') \
6083 || ('s' <= (c) && (c) <= 'z'))
6084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6085 #endif
6087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6089 main ()
6091 int i;
6092 for (i = 0; i < 256; i++)
6093 if (XOR (islower (i), ISLOWER (i))
6094 || toupper (i) != TOUPPER (i))
6095 exit(2);
6096 exit (0);
6098 _ACEOF
6099 rm -f conftest$ac_exeext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6111 else
6112 echo "$as_me: program exited with status $ac_status" >&5
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6116 ( exit $ac_status )
6117 ac_cv_header_stdc=no
6119 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6123 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6124 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6125 if test $ac_cv_header_stdc = yes; then
6127 cat >>confdefs.h <<\_ACEOF
6128 #define STDC_HEADERS 1
6129 _ACEOF
6133 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6143 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6144 inttypes.h stdint.h unistd.h
6146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6147 echo "$as_me:$LINENO: checking for $ac_header" >&5
6148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152 cat >conftest.$ac_ext <<_ACEOF
6153 #line $LINENO "configure"
6154 /* confdefs.h. */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 $ac_includes_default
6161 #include <$ac_header>
6162 _ACEOF
6163 rm -f conftest.$ac_objext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165 (eval $ac_compile) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 eval "$as_ac_Header=yes"
6176 else
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 eval "$as_ac_Header=no"
6182 rm -f conftest.$ac_objext conftest.$ac_ext
6184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6187 cat >>confdefs.h <<_ACEOF
6188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6189 _ACEOF
6193 done
6197 for ac_header in jpeglib.h
6199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6201 echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6208 else
6209 # Is the header compilable?
6210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6212 cat >conftest.$ac_ext <<_ACEOF
6213 #line $LINENO "configure"
6214 /* confdefs.h. */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 $ac_includes_default
6220 #include <$ac_header>
6221 _ACEOF
6222 rm -f conftest.$ac_objext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224 (eval $ac_compile) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -s conftest.$ac_objext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_header_compiler=yes
6235 else
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 ac_header_compiler=no
6241 rm -f conftest.$ac_objext conftest.$ac_ext
6242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6243 echo "${ECHO_T}$ac_header_compiler" >&6
6245 # Is the header present?
6246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6248 cat >conftest.$ac_ext <<_ACEOF
6249 #line $LINENO "configure"
6250 /* confdefs.h. */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 #include <$ac_header>
6256 _ACEOF
6257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } >/dev/null; then
6265 if test -s conftest.err; then
6266 ac_cpp_err=$ac_c_preproc_warn_flag
6267 else
6268 ac_cpp_err=
6270 else
6271 ac_cpp_err=yes
6273 if test -z "$ac_cpp_err"; then
6274 ac_header_preproc=yes
6275 else
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6279 ac_header_preproc=no
6281 rm -f conftest.err conftest.$ac_ext
6282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6283 echo "${ECHO_T}$ac_header_preproc" >&6
6285 # So? What about this header?
6286 case $ac_header_compiler:$ac_header_preproc in
6287 yes:no )
6288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6293 cat <<\_ASBOX
6294 ## ------------------------------------ ##
6295 ## Report this to bug-autoconf@gnu.org. ##
6296 ## ------------------------------------ ##
6297 _ASBOX
6299 sed "s/^/$as_me: WARNING: /" >&2
6301 no:yes )
6302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6309 cat <<\_ASBOX
6310 ## ------------------------------------ ##
6311 ## Report this to bug-autoconf@gnu.org. ##
6312 ## ------------------------------------ ##
6313 _ASBOX
6315 sed "s/^/$as_me: WARNING: /" >&2
6317 esac
6318 echo "$as_me:$LINENO: checking for $ac_header" >&5
6319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323 eval "$as_ac_Header=$ac_header_preproc"
6325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6330 cat >>confdefs.h <<_ACEOF
6331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6332 _ACEOF
6333 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6334 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6335 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338 ac_check_lib_save_LIBS=$LIBS
6339 LIBS="-ljpeg $LIBS"
6340 cat >conftest.$ac_ext <<_ACEOF
6341 #line $LINENO "configure"
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6348 /* Override any gcc2 internal prototype to avoid an error. */
6349 #ifdef __cplusplus
6350 extern "C"
6351 #endif
6352 /* We use char because int might match the return type of a gcc2
6353 builtin and then its argument prototype would still apply. */
6354 char jpeg_start_decompress ();
6356 main ()
6358 jpeg_start_decompress ();
6360 return 0;
6362 _ACEOF
6363 rm -f conftest.$ac_objext conftest$ac_exeext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365 (eval $ac_link) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try='test -s conftest$ac_exeext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_cv_lib_jpeg_jpeg_start_decompress=yes
6376 else
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 ac_cv_lib_jpeg_jpeg_start_decompress=no
6382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6383 LIBS=$ac_check_lib_save_LIBS
6385 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6386 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6387 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6389 cat >>confdefs.h <<\_ACEOF
6390 #define HAVE_LIBJPEG 1
6391 _ACEOF
6393 JPEGLIB="-ljpeg"
6400 done
6403 GIFLIB=""
6406 for ac_header in gif_lib.h
6408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6410 echo "$as_me:$LINENO: checking for $ac_header" >&5
6411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6417 else
6418 # Is the header compilable?
6419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6421 cat >conftest.$ac_ext <<_ACEOF
6422 #line $LINENO "configure"
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 $ac_includes_default
6429 #include <$ac_header>
6430 _ACEOF
6431 rm -f conftest.$ac_objext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -s conftest.$ac_objext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 ac_header_compiler=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_header_compiler=no
6450 rm -f conftest.$ac_objext conftest.$ac_ext
6451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6452 echo "${ECHO_T}$ac_header_compiler" >&6
6454 # Is the header present?
6455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 #include <$ac_header>
6465 _ACEOF
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_c_preproc_warn_flag
6476 else
6477 ac_cpp_err=
6479 else
6480 ac_cpp_err=yes
6482 if test -z "$ac_cpp_err"; then
6483 ac_header_preproc=yes
6484 else
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 ac_header_preproc=no
6490 rm -f conftest.err conftest.$ac_ext
6491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6492 echo "${ECHO_T}$ac_header_preproc" >&6
6494 # So? What about this header?
6495 case $ac_header_compiler:$ac_header_preproc in
6496 yes:no )
6497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6502 cat <<\_ASBOX
6503 ## ------------------------------------ ##
6504 ## Report this to bug-autoconf@gnu.org. ##
6505 ## ------------------------------------ ##
6506 _ASBOX
6508 sed "s/^/$as_me: WARNING: /" >&2
6510 no:yes )
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6518 cat <<\_ASBOX
6519 ## ------------------------------------ ##
6520 ## Report this to bug-autoconf@gnu.org. ##
6521 ## ------------------------------------ ##
6522 _ASBOX
6524 sed "s/^/$as_me: WARNING: /" >&2
6526 esac
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 eval "$as_ac_Header=$ac_header_preproc"
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 _ACEOF
6542 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6543 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6544 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547 ac_check_lib_save_LIBS=$LIBS
6548 LIBS="-lungif $LIBS"
6549 cat >conftest.$ac_ext <<_ACEOF
6550 #line $LINENO "configure"
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 #ifdef __cplusplus
6559 extern "C"
6560 #endif
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6563 char DGifOpen ();
6565 main ()
6567 DGifOpen ();
6569 return 0;
6571 _ACEOF
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -s conftest$ac_exeext'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 (eval $ac_try) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6584 ac_cv_lib_ungif_DGifOpen=yes
6585 else
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6589 ac_cv_lib_ungif_DGifOpen=no
6591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6592 LIBS=$ac_check_lib_save_LIBS
6594 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6595 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6596 if test $ac_cv_lib_ungif_DGifOpen = yes; then
6598 cat >>confdefs.h <<\_ACEOF
6599 #define HAVE_LIBGIF 1
6600 _ACEOF
6602 GIFLIB="-lungif"
6603 else
6604 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6605 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6606 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609 ac_check_lib_save_LIBS=$LIBS
6610 LIBS="-lgif $LIBS"
6611 cat >conftest.$ac_ext <<_ACEOF
6612 #line $LINENO "configure"
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6619 /* Override any gcc2 internal prototype to avoid an error. */
6620 #ifdef __cplusplus
6621 extern "C"
6622 #endif
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6625 char DGifOpen ();
6627 main ()
6629 DGifOpen ();
6631 return 0;
6633 _ACEOF
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636 (eval $ac_link) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } &&
6640 { ac_try='test -s conftest$ac_exeext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_cv_lib_gif_DGifOpen=yes
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6651 ac_cv_lib_gif_DGifOpen=no
6653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6654 LIBS=$ac_check_lib_save_LIBS
6656 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6657 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6658 if test $ac_cv_lib_gif_DGifOpen = yes; then
6659 cat >>confdefs.h <<\_ACEOF
6660 #define HAVE_LIBGIF 1
6661 _ACEOF
6663 GIFLIB="-lgif"
6670 done
6675 XFILES=""
6677 OPENGLFILES=""
6679 GLU32FILES=""
6681 OPENGL_LIBS=""
6682 if test "$have_x" = "yes"
6683 then
6684 XLIB="-lXext -lX11"
6685 ac_save_CPPFLAGS="$CPPFLAGS"
6686 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6689 for ac_header in X11/Xlib.h
6691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6693 echo "$as_me:$LINENO: checking for $ac_header" >&5
6694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6700 else
6701 # Is the header compilable?
6702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6704 cat >conftest.$ac_ext <<_ACEOF
6705 #line $LINENO "configure"
6706 /* confdefs.h. */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 $ac_includes_default
6712 #include <$ac_header>
6713 _ACEOF
6714 rm -f conftest.$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716 (eval $ac_compile) 2>&5
6717 ac_status=$?
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -s conftest.$ac_objext'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 (eval $ac_try) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6726 ac_header_compiler=yes
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 ac_header_compiler=no
6733 rm -f conftest.$ac_objext conftest.$ac_ext
6734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6735 echo "${ECHO_T}$ac_header_compiler" >&6
6737 # Is the header present?
6738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6740 cat >conftest.$ac_ext <<_ACEOF
6741 #line $LINENO "configure"
6742 /* confdefs.h. */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6747 #include <$ac_header>
6748 _ACEOF
6749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } >/dev/null; then
6757 if test -s conftest.err; then
6758 ac_cpp_err=$ac_c_preproc_warn_flag
6759 else
6760 ac_cpp_err=
6762 else
6763 ac_cpp_err=yes
6765 if test -z "$ac_cpp_err"; then
6766 ac_header_preproc=yes
6767 else
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 ac_header_preproc=no
6773 rm -f conftest.err conftest.$ac_ext
6774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6775 echo "${ECHO_T}$ac_header_preproc" >&6
6777 # So? What about this header?
6778 case $ac_header_compiler:$ac_header_preproc in
6779 yes:no )
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6785 cat <<\_ASBOX
6786 ## ------------------------------------ ##
6787 ## Report this to bug-autoconf@gnu.org. ##
6788 ## ------------------------------------ ##
6789 _ASBOX
6791 sed "s/^/$as_me: WARNING: /" >&2
6793 no:yes )
6794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6801 cat <<\_ASBOX
6802 ## ------------------------------------ ##
6803 ## Report this to bug-autoconf@gnu.org. ##
6804 ## ------------------------------------ ##
6805 _ASBOX
6807 sed "s/^/$as_me: WARNING: /" >&2
6809 esac
6810 echo "$as_me:$LINENO: checking for $ac_header" >&5
6811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815 eval "$as_ac_Header=$ac_header_preproc"
6817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6822 cat >>confdefs.h <<_ACEOF
6823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6824 _ACEOF
6827 for ac_header in X11/XKBlib.h
6829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6830 echo "$as_me:$LINENO: checking for $ac_header" >&5
6831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835 cat >conftest.$ac_ext <<_ACEOF
6836 #line $LINENO "configure"
6837 /* confdefs.h. */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 #include <X11/Xlib.h>
6844 #include <$ac_header>
6845 _ACEOF
6846 rm -f conftest.$ac_objext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6848 (eval $ac_compile) 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
6852 { ac_try='test -s conftest.$ac_objext'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 (eval $ac_try) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; }; then
6858 eval "$as_ac_Header=yes"
6859 else
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6863 eval "$as_ac_Header=no"
6865 rm -f conftest.$ac_objext conftest.$ac_ext
6867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6870 cat >>confdefs.h <<_ACEOF
6871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6872 _ACEOF
6873 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6874 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6875 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 ac_check_lib_save_LIBS=$LIBS
6879 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6880 cat >conftest.$ac_ext <<_ACEOF
6881 #line $LINENO "configure"
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6888 /* Override any gcc2 internal prototype to avoid an error. */
6889 #ifdef __cplusplus
6890 extern "C"
6891 #endif
6892 /* We use char because int might match the return type of a gcc2
6893 builtin and then its argument prototype would still apply. */
6894 char XkbQueryExtension ();
6896 main ()
6898 XkbQueryExtension ();
6900 return 0;
6902 _ACEOF
6903 rm -f conftest.$ac_objext conftest$ac_exeext
6904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6905 (eval $ac_link) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try='test -s conftest$ac_exeext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 ac_cv_lib_X11_XkbQueryExtension=yes
6916 else
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_cv_lib_X11_XkbQueryExtension=no
6922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6923 LIBS=$ac_check_lib_save_LIBS
6925 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6926 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6927 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6929 cat >>confdefs.h <<\_ACEOF
6930 #define HAVE_XKB 1
6931 _ACEOF
6936 else
6937 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6938 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6941 done
6945 for ac_header in X11/extensions/XShm.h
6947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6948 echo "$as_me:$LINENO: checking for $ac_header" >&5
6949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953 cat >conftest.$ac_ext <<_ACEOF
6954 #line $LINENO "configure"
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 #include <X11/Xlib.h>
6962 #include <$ac_header>
6963 _ACEOF
6964 rm -f conftest.$ac_objext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966 (eval $ac_compile) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try='test -s conftest.$ac_objext'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
6976 eval "$as_ac_Header=yes"
6977 else
6978 echo "$as_me: failed program was:" >&5
6979 sed 's/^/| /' conftest.$ac_ext >&5
6981 eval "$as_ac_Header=no"
6983 rm -f conftest.$ac_objext conftest.$ac_ext
6985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6988 cat >>confdefs.h <<_ACEOF
6989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6990 _ACEOF
6991 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6992 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6993 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996 ac_check_lib_save_LIBS=$LIBS
6997 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6998 cat >conftest.$ac_ext <<_ACEOF
6999 #line $LINENO "configure"
7000 /* confdefs.h. */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7006 /* Override any gcc2 internal prototype to avoid an error. */
7007 #ifdef __cplusplus
7008 extern "C"
7009 #endif
7010 /* We use char because int might match the return type of a gcc2
7011 builtin and then its argument prototype would still apply. */
7012 char XShmQueryExtension ();
7014 main ()
7016 XShmQueryExtension ();
7018 return 0;
7020 _ACEOF
7021 rm -f conftest.$ac_objext conftest$ac_exeext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7023 (eval $ac_link) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } &&
7027 { ac_try='test -s conftest$ac_exeext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 ac_cv_lib_Xext_XShmQueryExtension=yes
7034 else
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7038 ac_cv_lib_Xext_XShmQueryExtension=no
7040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7041 LIBS=$ac_check_lib_save_LIBS
7043 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7044 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7045 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7047 cat >>confdefs.h <<\_ACEOF
7048 #define HAVE_LIBXXSHM 1
7049 _ACEOF
7054 else
7055 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
7056 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
7059 done
7063 for ac_header in X11/Xutil.h
7065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7066 echo "$as_me:$LINENO: checking for $ac_header" >&5
7067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071 cat >conftest.$ac_ext <<_ACEOF
7072 #line $LINENO "configure"
7073 /* confdefs.h. */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 #include <X11/Xlib.h>
7080 #include <$ac_header>
7081 _ACEOF
7082 rm -f conftest.$ac_objext
7083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7084 (eval $ac_compile) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } &&
7088 { ac_try='test -s conftest.$ac_objext'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7094 eval "$as_ac_Header=yes"
7095 else
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 eval "$as_ac_Header=no"
7101 rm -f conftest.$ac_objext conftest.$ac_ext
7103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7106 cat >>confdefs.h <<_ACEOF
7107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7108 _ACEOF
7112 done
7116 for ac_header in X11/extensions/shape.h
7118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7119 echo "$as_me:$LINENO: checking for $ac_header" >&5
7120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 cat >conftest.$ac_ext <<_ACEOF
7125 #line $LINENO "configure"
7126 /* confdefs.h. */
7127 _ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7131 #include <X11/Xlib.h>
7132 #ifdef HAVE_X11_XUTIL_H
7133 # include <X11/Xutil.h>
7134 #endif
7136 #include <$ac_header>
7137 _ACEOF
7138 rm -f conftest.$ac_objext
7139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140 (eval $ac_compile) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
7144 { ac_try='test -s conftest.$ac_objext'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 (eval $ac_try) 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 eval "$as_ac_Header=yes"
7151 else
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7155 eval "$as_ac_Header=no"
7157 rm -f conftest.$ac_objext conftest.$ac_ext
7159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7162 cat >>confdefs.h <<_ACEOF
7163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7164 _ACEOF
7165 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7166 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7167 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170 ac_check_lib_save_LIBS=$LIBS
7171 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7172 cat >conftest.$ac_ext <<_ACEOF
7173 #line $LINENO "configure"
7174 /* confdefs.h. */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7180 /* Override any gcc2 internal prototype to avoid an error. */
7181 #ifdef __cplusplus
7182 extern "C"
7183 #endif
7184 /* We use char because int might match the return type of a gcc2
7185 builtin and then its argument prototype would still apply. */
7186 char XShapeQueryExtension ();
7188 main ()
7190 XShapeQueryExtension ();
7192 return 0;
7194 _ACEOF
7195 rm -f conftest.$ac_objext conftest$ac_exeext
7196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7197 (eval $ac_link) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try='test -s conftest$ac_exeext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_lib_Xext_XShapeQueryExtension=yes
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 ac_cv_lib_Xext_XShapeQueryExtension=no
7214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7215 LIBS=$ac_check_lib_save_LIBS
7217 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7218 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7219 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7221 cat >>confdefs.h <<\_ACEOF
7222 #define HAVE_LIBXSHAPE 1
7223 _ACEOF
7228 else
7229 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
7230 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
7233 done
7237 for ac_header in X11/extensions/xf86dga.h
7239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7240 echo "$as_me:$LINENO: checking for $ac_header" >&5
7241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245 cat >conftest.$ac_ext <<_ACEOF
7246 #line $LINENO "configure"
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 #include <X11/Xlib.h>
7254 #include <$ac_header>
7255 _ACEOF
7256 rm -f conftest.$ac_objext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } &&
7262 { ac_try='test -s conftest.$ac_objext'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 (eval $ac_try) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7268 eval "$as_ac_Header=yes"
7269 else
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 eval "$as_ac_Header=no"
7275 rm -f conftest.$ac_objext conftest.$ac_ext
7277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7280 cat >>confdefs.h <<_ACEOF
7281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7282 _ACEOF
7283 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7284 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7285 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288 ac_check_lib_save_LIBS=$LIBS
7289 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7290 $LIBS"
7291 cat >conftest.$ac_ext <<_ACEOF
7292 #line $LINENO "configure"
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7299 /* Override any gcc2 internal prototype to avoid an error. */
7300 #ifdef __cplusplus
7301 extern "C"
7302 #endif
7303 /* We use char because int might match the return type of a gcc2
7304 builtin and then its argument prototype would still apply. */
7305 char XDGAQueryExtension ();
7307 main ()
7309 XDGAQueryExtension ();
7311 return 0;
7313 _ACEOF
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316 (eval $ac_link) 2>&5
7317 ac_status=$?
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -s conftest$ac_exeext'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 (eval $ac_try) 2>&5
7323 ac_status=$?
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7334 LIBS=$ac_check_lib_save_LIBS
7336 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7337 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7338 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7340 cat >>confdefs.h <<\_ACEOF
7341 #define HAVE_LIBXXF86DGA2 1
7342 _ACEOF
7344 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7346 else
7347 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7348 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7349 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 ac_check_lib_save_LIBS=$LIBS
7353 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7354 $LIBS"
7355 cat >conftest.$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7363 /* Override any gcc2 internal prototype to avoid an error. */
7364 #ifdef __cplusplus
7365 extern "C"
7366 #endif
7367 /* We use char because int might match the return type of a gcc2
7368 builtin and then its argument prototype would still apply. */
7369 char XF86DGAQueryExtension ();
7371 main ()
7373 XF86DGAQueryExtension ();
7375 return 0;
7377 _ACEOF
7378 rm -f conftest.$ac_objext conftest$ac_exeext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7380 (eval $ac_link) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try='test -s conftest$ac_exeext'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7390 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7391 else
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7395 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7398 LIBS=$ac_check_lib_save_LIBS
7400 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7401 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7402 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7404 cat >>confdefs.h <<\_ACEOF
7405 #define HAVE_LIBXXF86DGA 1
7406 _ACEOF
7408 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7416 else
7417 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
7418 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
7421 done
7425 for ac_header in X11/extensions/xf86vmode.h
7427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7428 echo "$as_me:$LINENO: checking for $ac_header" >&5
7429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 cat >conftest.$ac_ext <<_ACEOF
7434 #line $LINENO "configure"
7435 /* confdefs.h. */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 #include <X11/Xlib.h>
7442 #include <$ac_header>
7443 _ACEOF
7444 rm -f conftest.$ac_objext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7446 (eval $ac_compile) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -s conftest.$ac_objext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 eval "$as_ac_Header=yes"
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7461 eval "$as_ac_Header=no"
7463 rm -f conftest.$ac_objext conftest.$ac_ext
7465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7468 cat >>confdefs.h <<_ACEOF
7469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7470 _ACEOF
7471 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7472 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7473 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 ac_check_lib_save_LIBS=$LIBS
7477 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7478 $LIBS"
7479 cat >conftest.$ac_ext <<_ACEOF
7480 #line $LINENO "configure"
7481 /* confdefs.h. */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7487 /* Override any gcc2 internal prototype to avoid an error. */
7488 #ifdef __cplusplus
7489 extern "C"
7490 #endif
7491 /* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7493 char XF86VidModeQueryExtension ();
7495 main ()
7497 XF86VidModeQueryExtension ();
7499 return 0;
7501 _ACEOF
7502 rm -f conftest.$ac_objext conftest$ac_exeext
7503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7504 (eval $ac_link) 2>&5
7505 ac_status=$?
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try='test -s conftest$ac_exeext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7515 else
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7519 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7522 LIBS=$ac_check_lib_save_LIBS
7524 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7525 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7526 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7528 cat >>confdefs.h <<\_ACEOF
7529 #define HAVE_LIBXXF86VM 1
7530 _ACEOF
7532 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7537 else
7538 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7539 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
7542 done
7546 for ac_header in X11/extensions/Xvlib.h
7548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7549 echo "$as_me:$LINENO: checking for $ac_header" >&5
7550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 cat >conftest.$ac_ext <<_ACEOF
7555 #line $LINENO "configure"
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 #include <X11/Xlib.h>
7563 #include <$ac_header>
7564 _ACEOF
7565 rm -f conftest.$ac_objext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 eval "$as_ac_Header=yes"
7578 else
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 eval "$as_ac_Header=no"
7584 rm -f conftest.$ac_objext conftest.$ac_ext
7586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7589 cat >>confdefs.h <<_ACEOF
7590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7591 _ACEOF
7592 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7593 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7594 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597 ac_check_lib_save_LIBS=$LIBS
7598 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7599 $LIBS"
7600 cat >conftest.$ac_ext <<_ACEOF
7601 #line $LINENO "configure"
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7608 /* Override any gcc2 internal prototype to avoid an error. */
7609 #ifdef __cplusplus
7610 extern "C"
7611 #endif
7612 /* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7614 char XvShmCreateImage ();
7616 main ()
7618 XvShmCreateImage ();
7620 return 0;
7622 _ACEOF
7623 rm -f conftest.$ac_objext conftest$ac_exeext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7625 (eval $ac_link) 2>&5
7626 ac_status=$?
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } &&
7629 { ac_try='test -s conftest$ac_exeext'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 (eval $ac_try) 2>&5
7632 ac_status=$?
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7635 ac_cv_lib_Xv_XvShmCreateImage=yes
7636 else
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 ac_cv_lib_Xv_XvShmCreateImage=no
7642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7643 LIBS=$ac_check_lib_save_LIBS
7645 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7646 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7647 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7649 cat >>confdefs.h <<\_ACEOF
7650 #define HAVE_XVIDEO 1
7651 _ACEOF
7653 X_PRE_LIBS="$X_PRE_LIBS -lXv"
7658 else
7659 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7660 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
7663 done
7667 for ac_header in X11/extensions/Xrender.h
7669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7670 echo "$as_me:$LINENO: checking for $ac_header" >&5
7671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675 cat >conftest.$ac_ext <<_ACEOF
7676 #line $LINENO "configure"
7677 /* confdefs.h. */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 #include <X11/Xlib.h>
7684 #include <$ac_header>
7685 _ACEOF
7686 rm -f conftest.$ac_objext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688 (eval $ac_compile) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try='test -s conftest.$ac_objext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 (eval $ac_try) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7698 eval "$as_ac_Header=yes"
7699 else
7700 echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.$ac_ext >&5
7703 eval "$as_ac_Header=no"
7705 rm -f conftest.$ac_objext conftest.$ac_ext
7707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7710 cat >>confdefs.h <<_ACEOF
7711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712 _ACEOF
7716 done
7722 done
7724 if test "x$with_opengl" != "xno"
7725 then
7726 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7727 then
7728 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7729 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7730 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7731 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7732 { (exit 1); exit 1; }; }
7737 for ac_header in GL/gl.h GL/glx.h
7739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7741 echo "$as_me:$LINENO: checking for $ac_header" >&5
7742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7748 else
7749 # Is the header compilable?
7750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7752 cat >conftest.$ac_ext <<_ACEOF
7753 #line $LINENO "configure"
7754 /* confdefs.h. */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 $ac_includes_default
7760 #include <$ac_header>
7761 _ACEOF
7762 rm -f conftest.$ac_objext
7763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7764 (eval $ac_compile) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -s conftest.$ac_objext'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 (eval $ac_try) 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 ac_header_compiler=yes
7775 else
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_header_compiler=no
7781 rm -f conftest.$ac_objext conftest.$ac_ext
7782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7783 echo "${ECHO_T}$ac_header_compiler" >&6
7785 # Is the header present?
7786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7788 cat >conftest.$ac_ext <<_ACEOF
7789 #line $LINENO "configure"
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 #include <$ac_header>
7796 _ACEOF
7797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } >/dev/null; then
7805 if test -s conftest.err; then
7806 ac_cpp_err=$ac_c_preproc_warn_flag
7807 else
7808 ac_cpp_err=
7810 else
7811 ac_cpp_err=yes
7813 if test -z "$ac_cpp_err"; then
7814 ac_header_preproc=yes
7815 else
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7819 ac_header_preproc=no
7821 rm -f conftest.err conftest.$ac_ext
7822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7823 echo "${ECHO_T}$ac_header_preproc" >&6
7825 # So? What about this header?
7826 case $ac_header_compiler:$ac_header_preproc in
7827 yes:no )
7828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7833 cat <<\_ASBOX
7834 ## ------------------------------------ ##
7835 ## Report this to bug-autoconf@gnu.org. ##
7836 ## ------------------------------------ ##
7837 _ASBOX
7839 sed "s/^/$as_me: WARNING: /" >&2
7841 no:yes )
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7849 cat <<\_ASBOX
7850 ## ------------------------------------ ##
7851 ## Report this to bug-autoconf@gnu.org. ##
7852 ## ------------------------------------ ##
7853 _ASBOX
7855 sed "s/^/$as_me: WARNING: /" >&2
7857 esac
7858 echo "$as_me:$LINENO: checking for $ac_header" >&5
7859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863 eval "$as_ac_Header=$ac_header_preproc"
7865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7870 cat >>confdefs.h <<_ACEOF
7871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7872 _ACEOF
7876 done
7878 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7879 then
7881 for ac_header in GL/glext.h
7883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7884 echo "$as_me:$LINENO: checking for $ac_header" >&5
7885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 cat >conftest.$ac_ext <<_ACEOF
7890 #line $LINENO "configure"
7891 /* confdefs.h. */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896 #include <GL/glx.h>
7898 #include <$ac_header>
7899 _ACEOF
7900 rm -f conftest.$ac_objext
7901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7902 (eval $ac_compile) 2>&5
7903 ac_status=$?
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } &&
7906 { ac_try='test -s conftest.$ac_objext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 eval "$as_ac_Header=yes"
7913 else
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7917 eval "$as_ac_Header=no"
7919 rm -f conftest.$ac_objext conftest.$ac_ext
7921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7924 cat >>confdefs.h <<_ACEOF
7925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7926 _ACEOF
7930 done
7932 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7933 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7934 if test "${wine_cv_opengl_version_OK+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937 cat >conftest.$ac_ext <<_ACEOF
7938 #line $LINENO "configure"
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 #include <GL/gl.h>
7946 main ()
7948 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7950 return 0;
7952 _ACEOF
7953 rm -f conftest.$ac_objext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7955 (eval $ac_compile) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -s conftest.$ac_objext'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 (eval $ac_try) 2>&5
7962 ac_status=$?
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7965 wine_cv_opengl_version_OK="yes"
7966 else
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 wine_cv_opengl_version_OK="no"
7973 rm -f conftest.$ac_objext conftest.$ac_ext
7976 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7977 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7979 if test "$wine_cv_opengl_version_OK" = "yes"
7980 then
7981 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7982 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7983 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986 ac_check_lib_save_LIBS=$LIBS
7987 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7988 cat >conftest.$ac_ext <<_ACEOF
7989 #line $LINENO "configure"
7990 /* confdefs.h. */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7996 /* Override any gcc2 internal prototype to avoid an error. */
7997 #ifdef __cplusplus
7998 extern "C"
7999 #endif
8000 /* We use char because int might match the return type of a gcc2
8001 builtin and then its argument prototype would still apply. */
8002 char glXCreateContext ();
8004 main ()
8006 glXCreateContext ();
8008 return 0;
8010 _ACEOF
8011 rm -f conftest.$ac_objext conftest$ac_exeext
8012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8013 (eval $ac_link) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -s conftest$ac_exeext'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 (eval $ac_try) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
8023 ac_cv_lib_GL_glXCreateContext=yes
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 ac_cv_lib_GL_glXCreateContext=no
8030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8031 LIBS=$ac_check_lib_save_LIBS
8033 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8034 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8035 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8036 OPENGL_LIBS="-lGL"
8041 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8042 then
8043 OPENGLFILES='$(OPENGLFILES)'
8045 cat >>confdefs.h <<\_ACEOF
8046 #define HAVE_OPENGL 1
8047 _ACEOF
8050 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8051 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8052 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055 ac_check_lib_save_LIBS=$LIBS
8056 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8057 cat >conftest.$ac_ext <<_ACEOF
8058 #line $LINENO "configure"
8059 /* confdefs.h. */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8065 /* Override any gcc2 internal prototype to avoid an error. */
8066 #ifdef __cplusplus
8067 extern "C"
8068 #endif
8069 /* We use char because int might match the return type of a gcc2
8070 builtin and then its argument prototype would still apply. */
8071 char glXGetProcAddressARB ();
8073 main ()
8075 glXGetProcAddressARB ();
8077 return 0;
8079 _ACEOF
8080 rm -f conftest.$ac_objext conftest$ac_exeext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8082 (eval $ac_link) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -s conftest$ac_exeext'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 (eval $ac_try) 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 ac_cv_lib_GL_glXGetProcAddressARB=yes
8093 else
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 ac_cv_lib_GL_glXGetProcAddressARB=no
8099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8100 LIBS=$ac_check_lib_save_LIBS
8102 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8103 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8104 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8106 cat >>confdefs.h <<\_ACEOF
8107 #define HAVE_GLX_GETPROCADDRESS 1
8108 _ACEOF
8113 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8114 then
8115 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8116 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8117 if test "${wine_cv_extension_prototypes+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120 cat >conftest.$ac_ext <<_ACEOF
8121 #line $LINENO "configure"
8122 /* confdefs.h. */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 #include <GL/gl.h>
8128 #ifdef HAVE_GL_GLEXT_H
8129 # include <GL/glext.h>
8130 #endif
8133 main ()
8135 PFNGLCOLORTABLEEXTPROC test_proc;
8137 return 0;
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142 (eval $ac_compile) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 wine_cv_extension_prototypes="yes"
8153 else
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 wine_cv_extension_prototypes="no"
8160 rm -f conftest.$ac_objext conftest.$ac_ext
8163 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8164 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8165 if test "$wine_cv_extension_prototypes" = "yes"
8166 then
8168 cat >>confdefs.h <<\_ACEOF
8169 #define HAVE_GLEXT_PROTOTYPES 1
8170 _ACEOF
8176 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8177 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8178 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181 ac_check_lib_save_LIBS=$LIBS
8182 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8183 $LIBS"
8184 cat >conftest.$ac_ext <<_ACEOF
8185 #line $LINENO "configure"
8186 /* confdefs.h. */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8192 /* Override any gcc2 internal prototype to avoid an error. */
8193 #ifdef __cplusplus
8194 extern "C"
8195 #endif
8196 /* We use char because int might match the return type of a gcc2
8197 builtin and then its argument prototype would still apply. */
8198 char gluLookAt ();
8200 main ()
8202 gluLookAt ();
8204 return 0;
8206 _ACEOF
8207 rm -f conftest.$ac_objext conftest$ac_exeext
8208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8209 (eval $ac_link) 2>&5
8210 ac_status=$?
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -s conftest$ac_exeext'
8214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 (eval $ac_try) 2>&5
8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; }; then
8219 ac_cv_lib_GLU_gluLookAt=yes
8220 else
8221 echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8224 ac_cv_lib_GLU_gluLookAt=no
8226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8227 LIBS=$ac_check_lib_save_LIBS
8229 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8230 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8231 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8232 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8233 GLU32FILES='$(GLU32FILES)'
8241 NASLIBS=""
8244 for ac_header in audio/audiolib.h
8246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8248 echo "$as_me:$LINENO: checking for $ac_header" >&5
8249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8255 else
8256 # Is the header compilable?
8257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8259 cat >conftest.$ac_ext <<_ACEOF
8260 #line $LINENO "configure"
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 $ac_includes_default
8267 #include <$ac_header>
8268 _ACEOF
8269 rm -f conftest.$ac_objext
8270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8271 (eval $ac_compile) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -s conftest.$ac_objext'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 (eval $ac_try) 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; }; then
8281 ac_header_compiler=yes
8282 else
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8286 ac_header_compiler=no
8288 rm -f conftest.$ac_objext conftest.$ac_ext
8289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8290 echo "${ECHO_T}$ac_header_compiler" >&6
8292 # Is the header present?
8293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8295 cat >conftest.$ac_ext <<_ACEOF
8296 #line $LINENO "configure"
8297 /* confdefs.h. */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 #include <$ac_header>
8303 _ACEOF
8304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8306 ac_status=$?
8307 grep -v '^ *+' conftest.er1 >conftest.err
8308 rm -f conftest.er1
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } >/dev/null; then
8312 if test -s conftest.err; then
8313 ac_cpp_err=$ac_c_preproc_warn_flag
8314 else
8315 ac_cpp_err=
8317 else
8318 ac_cpp_err=yes
8320 if test -z "$ac_cpp_err"; then
8321 ac_header_preproc=yes
8322 else
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8326 ac_header_preproc=no
8328 rm -f conftest.err conftest.$ac_ext
8329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8330 echo "${ECHO_T}$ac_header_preproc" >&6
8332 # So? What about this header?
8333 case $ac_header_compiler:$ac_header_preproc in
8334 yes:no )
8335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8340 cat <<\_ASBOX
8341 ## ------------------------------------ ##
8342 ## Report this to bug-autoconf@gnu.org. ##
8343 ## ------------------------------------ ##
8344 _ASBOX
8346 sed "s/^/$as_me: WARNING: /" >&2
8348 no:yes )
8349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8356 cat <<\_ASBOX
8357 ## ------------------------------------ ##
8358 ## Report this to bug-autoconf@gnu.org. ##
8359 ## ------------------------------------ ##
8360 _ASBOX
8362 sed "s/^/$as_me: WARNING: /" >&2
8364 esac
8365 echo "$as_me:$LINENO: checking for $ac_header" >&5
8366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370 eval "$as_ac_Header=$ac_header_preproc"
8372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8377 cat >>confdefs.h <<_ACEOF
8378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8379 _ACEOF
8381 for ac_header in audio/soundlib.h
8383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8384 echo "$as_me:$LINENO: checking for $ac_header" >&5
8385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389 cat >conftest.$ac_ext <<_ACEOF
8390 #line $LINENO "configure"
8391 /* confdefs.h. */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 #include <audio/audiolib.h>
8398 #include <$ac_header>
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402 (eval $ac_compile) 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try='test -s conftest.$ac_objext'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 (eval $ac_try) 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; }; then
8412 eval "$as_ac_Header=yes"
8413 else
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8417 eval "$as_ac_Header=no"
8419 rm -f conftest.$ac_objext conftest.$ac_ext
8421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8424 cat >>confdefs.h <<_ACEOF
8425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8426 _ACEOF
8430 done
8432 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8433 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8434 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437 ac_check_lib_save_LIBS=$LIBS
8438 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8439 cat >conftest.$ac_ext <<_ACEOF
8440 #line $LINENO "configure"
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8447 /* Override any gcc2 internal prototype to avoid an error. */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 /* We use char because int might match the return type of a gcc2
8452 builtin and then its argument prototype would still apply. */
8453 char AuCreateFlow ();
8455 main ()
8457 AuCreateFlow ();
8459 return 0;
8461 _ACEOF
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_cv_lib_audio_AuCreateFlow=yes
8475 else
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 ac_cv_lib_audio_AuCreateFlow=no
8481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8482 LIBS=$ac_check_lib_save_LIBS
8484 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8485 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8486 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8488 cat >>confdefs.h <<\_ACEOF
8489 #define HAVE_NAS 1
8490 _ACEOF
8492 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8497 done
8500 CPPFLAGS="$ac_save_CPPFLAGS"
8501 XFILES='$(XFILES)'
8502 else
8503 XLIB=""
8504 X_CFLAGS=""
8505 X_LIBS=""
8508 CURSESLIBS=""
8509 if test "x$with_curses" != "xno"
8510 then
8512 for ac_header in ncurses.h
8514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8516 echo "$as_me:$LINENO: checking for $ac_header" >&5
8517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8523 else
8524 # Is the header compilable?
8525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8527 cat >conftest.$ac_ext <<_ACEOF
8528 #line $LINENO "configure"
8529 /* confdefs.h. */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 $ac_includes_default
8535 #include <$ac_header>
8536 _ACEOF
8537 rm -f conftest.$ac_objext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8539 (eval $ac_compile) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_header_compiler=yes
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 ac_header_compiler=no
8556 rm -f conftest.$ac_objext conftest.$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8558 echo "${ECHO_T}$ac_header_compiler" >&6
8560 # Is the header present?
8561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8564 #line $LINENO "configure"
8565 /* confdefs.h. */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570 #include <$ac_header>
8571 _ACEOF
8572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8574 ac_status=$?
8575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } >/dev/null; then
8580 if test -s conftest.err; then
8581 ac_cpp_err=$ac_c_preproc_warn_flag
8582 else
8583 ac_cpp_err=
8585 else
8586 ac_cpp_err=yes
8588 if test -z "$ac_cpp_err"; then
8589 ac_header_preproc=yes
8590 else
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8594 ac_header_preproc=no
8596 rm -f conftest.err conftest.$ac_ext
8597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8598 echo "${ECHO_T}$ac_header_preproc" >&6
8600 # So? What about this header?
8601 case $ac_header_compiler:$ac_header_preproc in
8602 yes:no )
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8608 cat <<\_ASBOX
8609 ## ------------------------------------ ##
8610 ## Report this to bug-autoconf@gnu.org. ##
8611 ## ------------------------------------ ##
8612 _ASBOX
8614 sed "s/^/$as_me: WARNING: /" >&2
8616 no:yes )
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8624 cat <<\_ASBOX
8625 ## ------------------------------------ ##
8626 ## Report this to bug-autoconf@gnu.org. ##
8627 ## ------------------------------------ ##
8628 _ASBOX
8630 sed "s/^/$as_me: WARNING: /" >&2
8632 esac
8633 echo "$as_me:$LINENO: checking for $ac_header" >&5
8634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638 eval "$as_ac_Header=$ac_header_preproc"
8640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8645 cat >>confdefs.h <<_ACEOF
8646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8647 _ACEOF
8648 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8649 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8650 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 ac_check_lib_save_LIBS=$LIBS
8654 LIBS="-lncurses $LIBS"
8655 cat >conftest.$ac_ext <<_ACEOF
8656 #line $LINENO "configure"
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8663 /* Override any gcc2 internal prototype to avoid an error. */
8664 #ifdef __cplusplus
8665 extern "C"
8666 #endif
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8669 char waddch ();
8671 main ()
8673 waddch ();
8675 return 0;
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 ac_cv_lib_ncurses_waddch=yes
8691 else
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8695 ac_cv_lib_ncurses_waddch=no
8697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8698 LIBS=$ac_check_lib_save_LIBS
8700 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8701 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8702 if test $ac_cv_lib_ncurses_waddch = yes; then
8704 cat >>confdefs.h <<\_ACEOF
8705 #define HAVE_LIBNCURSES 1
8706 _ACEOF
8708 CURSESLIBS="-lncurses"
8709 else
8711 for ac_header in curses.h
8713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8715 echo "$as_me:$LINENO: checking for $ac_header" >&5
8716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8722 else
8723 # Is the header compilable?
8724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8726 cat >conftest.$ac_ext <<_ACEOF
8727 #line $LINENO "configure"
8728 /* confdefs.h. */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8733 $ac_includes_default
8734 #include <$ac_header>
8735 _ACEOF
8736 rm -f conftest.$ac_objext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8738 (eval $ac_compile) 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } &&
8742 { ac_try='test -s conftest.$ac_objext'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 (eval $ac_try) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8748 ac_header_compiler=yes
8749 else
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8753 ac_header_compiler=no
8755 rm -f conftest.$ac_objext conftest.$ac_ext
8756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8757 echo "${ECHO_T}$ac_header_compiler" >&6
8759 # Is the header present?
8760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8762 cat >conftest.$ac_ext <<_ACEOF
8763 #line $LINENO "configure"
8764 /* confdefs.h. */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769 #include <$ac_header>
8770 _ACEOF
8771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8773 ac_status=$?
8774 grep -v '^ *+' conftest.er1 >conftest.err
8775 rm -f conftest.er1
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } >/dev/null; then
8779 if test -s conftest.err; then
8780 ac_cpp_err=$ac_c_preproc_warn_flag
8781 else
8782 ac_cpp_err=
8784 else
8785 ac_cpp_err=yes
8787 if test -z "$ac_cpp_err"; then
8788 ac_header_preproc=yes
8789 else
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8793 ac_header_preproc=no
8795 rm -f conftest.err conftest.$ac_ext
8796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8797 echo "${ECHO_T}$ac_header_preproc" >&6
8799 # So? What about this header?
8800 case $ac_header_compiler:$ac_header_preproc in
8801 yes:no )
8802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8807 cat <<\_ASBOX
8808 ## ------------------------------------ ##
8809 ## Report this to bug-autoconf@gnu.org. ##
8810 ## ------------------------------------ ##
8811 _ASBOX
8813 sed "s/^/$as_me: WARNING: /" >&2
8815 no:yes )
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8823 cat <<\_ASBOX
8824 ## ------------------------------------ ##
8825 ## Report this to bug-autoconf@gnu.org. ##
8826 ## ------------------------------------ ##
8827 _ASBOX
8829 sed "s/^/$as_me: WARNING: /" >&2
8831 esac
8832 echo "$as_me:$LINENO: checking for $ac_header" >&5
8833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 else
8837 eval "$as_ac_Header=$ac_header_preproc"
8839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8844 cat >>confdefs.h <<_ACEOF
8845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8846 _ACEOF
8847 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8848 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8849 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 ac_check_lib_save_LIBS=$LIBS
8853 LIBS="-lcurses $LIBS"
8854 cat >conftest.$ac_ext <<_ACEOF
8855 #line $LINENO "configure"
8856 /* confdefs.h. */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 #ifdef __cplusplus
8864 extern "C"
8865 #endif
8866 /* We use char because int might match the return type of a gcc2
8867 builtin and then its argument prototype would still apply. */
8868 char waddch ();
8870 main ()
8872 waddch ();
8874 return 0;
8876 _ACEOF
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879 (eval $ac_link) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } &&
8883 { ac_try='test -s conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_cv_lib_curses_waddch=yes
8890 else
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8894 ac_cv_lib_curses_waddch=no
8896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8897 LIBS=$ac_check_lib_save_LIBS
8899 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8900 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8901 if test $ac_cv_lib_curses_waddch = yes; then
8903 cat >>confdefs.h <<\_ACEOF
8904 #define HAVE_LIBCURSES 1
8905 _ACEOF
8907 CURSESLIBS="-lcurses"
8912 done
8918 done
8920 saved_libs="$LIBS"
8921 LIBS="$CURSESLIBS $LIBS"
8924 for ac_func in getbkgd resizeterm
8926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8927 echo "$as_me:$LINENO: checking for $ac_func" >&5
8928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8929 if eval "test \"\${$as_ac_var+set}\" = set"; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932 cat >conftest.$ac_ext <<_ACEOF
8933 #line $LINENO "configure"
8934 /* confdefs.h. */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h. */
8939 /* System header to define __stub macros and hopefully few prototypes,
8940 which can conflict with char $ac_func (); below.
8941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8942 <limits.h> exists even on freestanding compilers. */
8943 #ifdef __STDC__
8944 # include <limits.h>
8945 #else
8946 # include <assert.h>
8947 #endif
8948 /* Override any gcc2 internal prototype to avoid an error. */
8949 #ifdef __cplusplus
8950 extern "C"
8952 #endif
8953 /* We use char because int might match the return type of a gcc2
8954 builtin and then its argument prototype would still apply. */
8955 char $ac_func ();
8956 /* The GNU C library defines this for functions which it implements
8957 to always fail with ENOSYS. Some functions are actually named
8958 something starting with __ and the normal name is an alias. */
8959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8960 choke me
8961 #else
8962 char (*f) () = $ac_func;
8963 #endif
8964 #ifdef __cplusplus
8966 #endif
8969 main ()
8971 return f != $ac_func;
8973 return 0;
8975 _ACEOF
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978 (eval $ac_link) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 eval "$as_ac_var=yes"
8989 else
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8993 eval "$as_ac_var=no"
8995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8999 if test `eval echo '${'$as_ac_var'}'` = yes; then
9000 cat >>confdefs.h <<_ACEOF
9001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9002 _ACEOF
9005 done
9007 LIBS="$saved_libs"
9011 # Extract the first word of "sane-config", so it can be a program name with args.
9012 set dummy sane-config; ac_word=$2
9013 echo "$as_me:$LINENO: checking for $ac_word" >&5
9014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9015 if test "${ac_cv_prog_sane_devel+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 else
9018 if test -n "$sane_devel"; then
9019 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9020 else
9021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 for as_dir in $PATH
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9028 ac_cv_prog_sane_devel="sane-config"
9029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 break 2
9032 done
9033 done
9035 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9038 sane_devel=$ac_cv_prog_sane_devel
9039 if test -n "$sane_devel"; then
9040 echo "$as_me:$LINENO: result: $sane_devel" >&5
9041 echo "${ECHO_T}$sane_devel" >&6
9042 else
9043 echo "$as_me:$LINENO: result: no" >&5
9044 echo "${ECHO_T}no" >&6
9047 if test "$sane_devel" = "no"
9048 then
9049 SANELIBS=""
9050 SANEINCL=""
9051 else
9052 SANELIBS="`$sane_devel --libs`"
9053 SANEINCL="`$sane_devel --cflags`"
9054 ac_save_CPPFLAGS="$CPPFLAGS"
9055 ac_save_LIBS="$LIBS"
9056 CPPFLAGS="$CPPFLAGS $SANEINCL"
9057 LIBS="$LIBS $SANELIBS"
9058 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9059 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9060 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9061 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9065 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9066 else
9067 # Is the header compilable?
9068 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9069 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9070 cat >conftest.$ac_ext <<_ACEOF
9071 #line $LINENO "configure"
9072 /* confdefs.h. */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9077 $ac_includes_default
9078 #include <sane/sane.h>
9079 _ACEOF
9080 rm -f conftest.$ac_objext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082 (eval $ac_compile) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } &&
9086 { ac_try='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 ac_header_compiler=yes
9093 else
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9097 ac_header_compiler=no
9099 rm -f conftest.$ac_objext conftest.$ac_ext
9100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9101 echo "${ECHO_T}$ac_header_compiler" >&6
9103 # Is the header present?
9104 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9105 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9106 cat >conftest.$ac_ext <<_ACEOF
9107 #line $LINENO "configure"
9108 /* confdefs.h. */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 #include <sane/sane.h>
9114 _ACEOF
9115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } >/dev/null; then
9123 if test -s conftest.err; then
9124 ac_cpp_err=$ac_c_preproc_warn_flag
9125 else
9126 ac_cpp_err=
9128 else
9129 ac_cpp_err=yes
9131 if test -z "$ac_cpp_err"; then
9132 ac_header_preproc=yes
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 ac_header_preproc=no
9139 rm -f conftest.err conftest.$ac_ext
9140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9141 echo "${ECHO_T}$ac_header_preproc" >&6
9143 # So? What about this header?
9144 case $ac_header_compiler:$ac_header_preproc in
9145 yes:no )
9146 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9147 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9149 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9151 cat <<\_ASBOX
9152 ## ------------------------------------ ##
9153 ## Report this to bug-autoconf@gnu.org. ##
9154 ## ------------------------------------ ##
9155 _ASBOX
9157 sed "s/^/$as_me: WARNING: /" >&2
9159 no:yes )
9160 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9161 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9162 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9163 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9165 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9167 cat <<\_ASBOX
9168 ## ------------------------------------ ##
9169 ## Report this to bug-autoconf@gnu.org. ##
9170 ## ------------------------------------ ##
9171 _ASBOX
9173 sed "s/^/$as_me: WARNING: /" >&2
9175 esac
9176 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9177 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9178 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181 ac_cv_header_sane_sane_h=$ac_header_preproc
9183 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9184 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9187 if test $ac_cv_header_sane_sane_h = yes; then
9188 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9189 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9190 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193 ac_check_lib_save_LIBS=$LIBS
9194 LIBS="-lsane $LIBS"
9195 cat >conftest.$ac_ext <<_ACEOF
9196 #line $LINENO "configure"
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9203 /* Override any gcc2 internal prototype to avoid an error. */
9204 #ifdef __cplusplus
9205 extern "C"
9206 #endif
9207 /* We use char because int might match the return type of a gcc2
9208 builtin and then its argument prototype would still apply. */
9209 char sane_open ();
9211 main ()
9213 sane_open ();
9215 return 0;
9217 _ACEOF
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9220 (eval $ac_link) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } &&
9224 { ac_try='test -s conftest$ac_exeext'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
9230 ac_cv_lib_sane_sane_open=yes
9231 else
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9235 ac_cv_lib_sane_sane_open=no
9237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9240 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9241 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9242 if test $ac_cv_lib_sane_sane_open = yes; then
9244 cat >>confdefs.h <<\_ACEOF
9245 #define HAVE_SANE 1
9246 _ACEOF
9248 else
9249 SANELIBS=""
9250 SANEINCL=""
9253 else
9254 SANELIBS=""
9255 SANEINCL=""
9259 LIBS="$ac_save_LIBS"
9260 CPPFLAGS="$ac_save_CPPFLAGS"
9266 for ac_header in unicode/ubidi.h
9268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9270 echo "$as_me:$LINENO: checking for $ac_header" >&5
9271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9277 else
9278 # Is the header compilable?
9279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9281 cat >conftest.$ac_ext <<_ACEOF
9282 #line $LINENO "configure"
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 $ac_includes_default
9289 #include <$ac_header>
9290 _ACEOF
9291 rm -f conftest.$ac_objext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9293 (eval $ac_compile) 2>&5
9294 ac_status=$?
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
9304 else
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9308 ac_header_compiler=no
9310 rm -f conftest.$ac_objext conftest.$ac_ext
9311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9312 echo "${ECHO_T}$ac_header_compiler" >&6
9314 # Is the header present?
9315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9317 cat >conftest.$ac_ext <<_ACEOF
9318 #line $LINENO "configure"
9319 /* confdefs.h. */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324 #include <$ac_header>
9325 _ACEOF
9326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } >/dev/null; then
9334 if test -s conftest.err; then
9335 ac_cpp_err=$ac_c_preproc_warn_flag
9336 else
9337 ac_cpp_err=
9339 else
9340 ac_cpp_err=yes
9342 if test -z "$ac_cpp_err"; then
9343 ac_header_preproc=yes
9344 else
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9348 ac_header_preproc=no
9350 rm -f conftest.err conftest.$ac_ext
9351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9352 echo "${ECHO_T}$ac_header_preproc" >&6
9354 # So? What about this header?
9355 case $ac_header_compiler:$ac_header_preproc in
9356 yes:no )
9357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9362 cat <<\_ASBOX
9363 ## ------------------------------------ ##
9364 ## Report this to bug-autoconf@gnu.org. ##
9365 ## ------------------------------------ ##
9366 _ASBOX
9368 sed "s/^/$as_me: WARNING: /" >&2
9370 no:yes )
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9378 cat <<\_ASBOX
9379 ## ------------------------------------ ##
9380 ## Report this to bug-autoconf@gnu.org. ##
9381 ## ------------------------------------ ##
9382 _ASBOX
9384 sed "s/^/$as_me: WARNING: /" >&2
9386 esac
9387 echo "$as_me:$LINENO: checking for $ac_header" >&5
9388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392 eval "$as_ac_Header=$ac_header_preproc"
9394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9399 cat >>confdefs.h <<_ACEOF
9400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9401 _ACEOF
9405 done
9407 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9408 then
9409 echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
9410 echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
9411 if test "${ac_cv_lib_icu+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414 saved_libs="$LIBS"
9415 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9416 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
9417 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
9418 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9419 cat >conftest.$ac_ext <<_ACEOF
9420 #line $LINENO "configure"
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426 #include <unicode/ubidi.h>
9428 main ()
9430 ubidi_open()
9432 return 0;
9434 _ACEOF
9435 rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9437 (eval $ac_link) 2>&5
9438 ac_status=$?
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -s conftest$ac_exeext'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 (eval $ac_try) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; }; then
9447 ac_cv_lib_icu="yes"
9448 else
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9452 ac_cv_lib_icu="no"
9454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9455 LIBS="$saved_libs"
9457 echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
9458 echo "${ECHO_T}$ac_cv_lib_icu" >&6
9459 if test "$ac_cv_lib_icu" = "yes"
9460 then
9462 cat >>confdefs.h <<\_ACEOF
9463 #define HAVE_ICU 1
9464 _ACEOF
9466 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9471 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9472 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9473 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476 ac_check_lib_save_LIBS=$LIBS
9477 LIBS="-lfreetype $X_LIBS $LIBS"
9478 cat >conftest.$ac_ext <<_ACEOF
9479 #line $LINENO "configure"
9480 /* confdefs.h. */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9486 /* Override any gcc2 internal prototype to avoid an error. */
9487 #ifdef __cplusplus
9488 extern "C"
9489 #endif
9490 /* We use char because int might match the return type of a gcc2
9491 builtin and then its argument prototype would still apply. */
9492 char FT_Init_FreeType ();
9494 main ()
9496 FT_Init_FreeType ();
9498 return 0;
9500 _ACEOF
9501 rm -f conftest.$ac_objext conftest$ac_exeext
9502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503 (eval $ac_link) 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -s conftest$ac_exeext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 ac_cv_lib_freetype_FT_Init_FreeType=yes
9514 else
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9518 ac_cv_lib_freetype_FT_Init_FreeType=no
9520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9521 LIBS=$ac_check_lib_save_LIBS
9523 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9524 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9525 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9526 ft_lib=yes
9527 else
9528 ft_lib=no
9531 if test "$ft_lib" = "no"
9532 then
9533 FREETYPEINCL=""
9534 wine_cv_msg_freetype=no
9535 else
9536 # Extract the first word of "freetype-config", so it can be a program name with args.
9537 set dummy freetype-config; ac_word=$2
9538 echo "$as_me:$LINENO: checking for $ac_word" >&5
9539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9540 if test "${ac_cv_prog_ft_devel+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543 if test -n "$ft_devel"; then
9544 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9545 else
9546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9547 for as_dir in $PATH
9549 IFS=$as_save_IFS
9550 test -z "$as_dir" && as_dir=.
9551 for ac_exec_ext in '' $ac_executable_extensions; do
9552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9553 ac_cv_prog_ft_devel="freetype-config"
9554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9555 break 2
9557 done
9558 done
9560 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9563 ft_devel=$ac_cv_prog_ft_devel
9564 if test -n "$ft_devel"; then
9565 echo "$as_me:$LINENO: result: $ft_devel" >&5
9566 echo "${ECHO_T}$ft_devel" >&6
9567 else
9568 echo "$as_me:$LINENO: result: no" >&5
9569 echo "${ECHO_T}no" >&6
9572 if test "$ft_devel" = "no"
9573 then
9574 # Extract the first word of "freetype2-config", so it can be a program name with args.
9575 set dummy freetype2-config; ac_word=$2
9576 echo "$as_me:$LINENO: checking for $ac_word" >&5
9577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9578 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581 if test -n "$ft_devel2"; then
9582 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9583 else
9584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 for as_dir in $PATH
9587 IFS=$as_save_IFS
9588 test -z "$as_dir" && as_dir=.
9589 for ac_exec_ext in '' $ac_executable_extensions; do
9590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9591 ac_cv_prog_ft_devel2="freetype2-config"
9592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 break 2
9595 done
9596 done
9598 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9601 ft_devel2=$ac_cv_prog_ft_devel2
9602 if test -n "$ft_devel2"; then
9603 echo "$as_me:$LINENO: result: $ft_devel2" >&5
9604 echo "${ECHO_T}$ft_devel2" >&6
9605 else
9606 echo "$as_me:$LINENO: result: no" >&5
9607 echo "${ECHO_T}no" >&6
9610 if test "$ft_devel2" = "freetype2-config"
9611 then
9612 ft_devel=$ft_devel2
9615 if test "$ft_devel" = "no"
9616 then
9617 FREETYPEINCL=""
9618 wine_cv_msg_freetype=yes
9619 else
9620 FREETYPEINCL=`$ft_devel --cflags`
9621 ac_save_CPPFLAGS="$CPPFLAGS"
9622 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9631 for ac_header in freetype/freetype.h \
9632 freetype/ftglyph.h \
9633 freetype/tttables.h \
9634 freetype/ftnames.h \
9635 freetype/ftsnames.h \
9636 freetype/ttnameid.h \
9637 freetype/ftoutln.h \
9638 freetype/internal/sfnt.h
9640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9642 echo "$as_me:$LINENO: checking for $ac_header" >&5
9643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9649 else
9650 # Is the header compilable?
9651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9653 cat >conftest.$ac_ext <<_ACEOF
9654 #line $LINENO "configure"
9655 /* confdefs.h. */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 $ac_includes_default
9661 #include <$ac_header>
9662 _ACEOF
9663 rm -f conftest.$ac_objext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9665 (eval $ac_compile) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -s conftest.$ac_objext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 (eval $ac_try) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_header_compiler=yes
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_header_compiler=no
9682 rm -f conftest.$ac_objext conftest.$ac_ext
9683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9684 echo "${ECHO_T}$ac_header_compiler" >&6
9686 # Is the header present?
9687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9689 cat >conftest.$ac_ext <<_ACEOF
9690 #line $LINENO "configure"
9691 /* confdefs.h. */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 #include <$ac_header>
9697 _ACEOF
9698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } >/dev/null; then
9706 if test -s conftest.err; then
9707 ac_cpp_err=$ac_c_preproc_warn_flag
9708 else
9709 ac_cpp_err=
9711 else
9712 ac_cpp_err=yes
9714 if test -z "$ac_cpp_err"; then
9715 ac_header_preproc=yes
9716 else
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 ac_header_preproc=no
9722 rm -f conftest.err conftest.$ac_ext
9723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9724 echo "${ECHO_T}$ac_header_preproc" >&6
9726 # So? What about this header?
9727 case $ac_header_compiler:$ac_header_preproc in
9728 yes:no )
9729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9734 cat <<\_ASBOX
9735 ## ------------------------------------ ##
9736 ## Report this to bug-autoconf@gnu.org. ##
9737 ## ------------------------------------ ##
9738 _ASBOX
9740 sed "s/^/$as_me: WARNING: /" >&2
9742 no:yes )
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9750 cat <<\_ASBOX
9751 ## ------------------------------------ ##
9752 ## Report this to bug-autoconf@gnu.org. ##
9753 ## ------------------------------------ ##
9754 _ASBOX
9756 sed "s/^/$as_me: WARNING: /" >&2
9758 esac
9759 echo "$as_me:$LINENO: checking for $ac_header" >&5
9760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764 eval "$as_ac_Header=$ac_header_preproc"
9766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9771 cat >>confdefs.h <<_ACEOF
9772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9773 _ACEOF
9777 done
9779 cat >conftest.$ac_ext <<_ACEOF
9780 #line $LINENO "configure"
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 #include <ft2build.h>
9787 #include <freetype/fttrigon.h>
9788 _ACEOF
9789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } >/dev/null; then
9797 if test -s conftest.err; then
9798 ac_cpp_err=$ac_c_preproc_warn_flag
9799 else
9800 ac_cpp_err=
9802 else
9803 ac_cpp_err=yes
9805 if test -z "$ac_cpp_err"; then
9807 cat >>confdefs.h <<\_ACEOF
9808 #define HAVE_FREETYPE_FTTRIGON_H 1
9809 _ACEOF
9811 wine_cv_fttrigon=yes
9812 else
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 wine_cv_fttrigon=no
9818 rm -f conftest.err conftest.$ac_ext
9819 CPPFLAGS="$ac_save_CPPFLAGS"
9820 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9821 then
9823 cat >>confdefs.h <<\_ACEOF
9824 #define HAVE_FREETYPE 1
9825 _ACEOF
9827 wine_cv_msg_freetype=no
9828 else
9829 FREETYPEINCL=""
9830 wine_cv_msg_freetype=yes
9836 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9837 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9838 if test "${ac_cv_c_ppdev+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 else
9841 cat >conftest.$ac_ext <<_ACEOF
9842 #line $LINENO "configure"
9843 /* confdefs.h. */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 #include <linux/ppdev.h>
9850 main ()
9852 ioctl (1,PPCLAIM,0)
9854 return 0;
9856 _ACEOF
9857 rm -f conftest.$ac_objext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -s conftest.$ac_objext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 ac_cv_c_ppdev="yes"
9870 else
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_cv_c_ppdev="no"
9876 rm -f conftest.$ac_objext conftest.$ac_ext
9879 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9880 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9881 if test "$ac_cv_c_ppdev" = "yes"
9882 then
9884 cat >>confdefs.h <<\_ACEOF
9885 #define HAVE_PPDEV 1
9886 _ACEOF
9890 echo "$as_me:$LINENO: checking for va_copy" >&5
9891 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9892 if test "${ac_cv_c_va_copy+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895 cat >conftest.$ac_ext <<_ACEOF
9896 #line $LINENO "configure"
9897 /* confdefs.h. */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 #include <stdarg.h>
9904 main ()
9906 va_list ap1, ap2;
9907 va_copy(ap1,ap2);
9910 return 0;
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -s conftest$ac_exeext'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 (eval $ac_try) 2>&5
9922 ac_status=$?
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 ac_cv_c_va_copy="yes"
9926 else
9927 echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9930 ac_cv_c_va_copy="no"
9932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9935 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9936 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9937 if test "$ac_cv_c_va_copy" = "yes"
9938 then
9940 cat >>confdefs.h <<\_ACEOF
9941 #define HAVE_VA_COPY 1
9942 _ACEOF
9945 echo "$as_me:$LINENO: checking for __va_copy" >&5
9946 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9947 if test "${ac_cv_c___va_copy+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950 cat >conftest.$ac_ext <<_ACEOF
9951 #line $LINENO "configure"
9952 /* confdefs.h. */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957 #include <stdarg.h>
9959 main ()
9961 va_list ap1, ap2;
9962 __va_copy(ap1,ap2);
9965 return 0;
9967 _ACEOF
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_c___va_copy="yes"
9981 else
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9985 ac_cv_c___va_copy="no"
9987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9990 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9991 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9992 if test "$ac_cv_c___va_copy" = "yes"
9993 then
9995 cat >>confdefs.h <<\_ACEOF
9996 #define HAVE___VA_COPY 1
9997 _ACEOF
10004 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10008 echo "$as_me:$LINENO: checking for $ac_header" >&5
10009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10015 else
10016 # Is the header compilable?
10017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10019 cat >conftest.$ac_ext <<_ACEOF
10020 #line $LINENO "configure"
10021 /* confdefs.h. */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026 $ac_includes_default
10027 #include <$ac_header>
10028 _ACEOF
10029 rm -f conftest.$ac_objext
10030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10031 (eval $ac_compile) 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -s conftest.$ac_objext'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; }; then
10041 ac_header_compiler=yes
10042 else
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 ac_header_compiler=no
10048 rm -f conftest.$ac_objext conftest.$ac_ext
10049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10050 echo "${ECHO_T}$ac_header_compiler" >&6
10052 # Is the header present?
10053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10055 cat >conftest.$ac_ext <<_ACEOF
10056 #line $LINENO "configure"
10057 /* confdefs.h. */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 #include <$ac_header>
10063 _ACEOF
10064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10066 ac_status=$?
10067 grep -v '^ *+' conftest.er1 >conftest.err
10068 rm -f conftest.er1
10069 cat conftest.err >&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } >/dev/null; then
10072 if test -s conftest.err; then
10073 ac_cpp_err=$ac_c_preproc_warn_flag
10074 else
10075 ac_cpp_err=
10077 else
10078 ac_cpp_err=yes
10080 if test -z "$ac_cpp_err"; then
10081 ac_header_preproc=yes
10082 else
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10086 ac_header_preproc=no
10088 rm -f conftest.err conftest.$ac_ext
10089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10090 echo "${ECHO_T}$ac_header_preproc" >&6
10092 # So? What about this header?
10093 case $ac_header_compiler:$ac_header_preproc in
10094 yes:no )
10095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10100 cat <<\_ASBOX
10101 ## ------------------------------------ ##
10102 ## Report this to bug-autoconf@gnu.org. ##
10103 ## ------------------------------------ ##
10104 _ASBOX
10106 sed "s/^/$as_me: WARNING: /" >&2
10108 no:yes )
10109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10116 cat <<\_ASBOX
10117 ## ------------------------------------ ##
10118 ## Report this to bug-autoconf@gnu.org. ##
10119 ## ------------------------------------ ##
10120 _ASBOX
10122 sed "s/^/$as_me: WARNING: /" >&2
10124 esac
10125 echo "$as_me:$LINENO: checking for $ac_header" >&5
10126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 else
10130 eval "$as_ac_Header=$ac_header_preproc"
10132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10137 cat >>confdefs.h <<_ACEOF
10138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10139 _ACEOF
10140 break
10143 done
10146 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10147 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10148 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 cat >conftest.$ac_ext <<_ACEOF
10152 #line $LINENO "configure"
10153 /* confdefs.h. */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10159 #if defined(HAVE_SYS_SOUNDCARD_H)
10160 #include <sys/soundcard.h>
10161 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10162 #include <machine/soundcard.h>
10163 #elif defined(HAVE_SOUNDCARD_H)
10164 #include <soundcard.h>
10165 #endif
10168 main ()
10172 /* check for one of the Open Sound System specific SNDCTL_ defines */
10173 #if !defined(SNDCTL_DSP_STEREO)
10174 #error No open sound system
10175 #endif
10178 return 0;
10180 _ACEOF
10181 rm -f conftest.$ac_objext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183 (eval $ac_compile) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } &&
10187 { ac_try='test -s conftest.$ac_objext'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10190 ac_status=$?
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; }; then
10193 ac_cv_c_opensoundsystem="yes"
10194 else
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10198 ac_cv_c_opensoundsystem="no"
10200 rm -f conftest.$ac_objext conftest.$ac_ext
10202 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10203 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10205 if test "$ac_cv_c_opensoundsystem" = "yes"
10206 then
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_OSS 1
10210 _ACEOF
10214 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10215 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10216 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219 cat >conftest.$ac_ext <<_ACEOF
10220 #line $LINENO "configure"
10221 /* confdefs.h. */
10222 _ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10227 #if defined(HAVE_SYS_SOUNDCARD_H)
10228 #include <sys/soundcard.h>
10229 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10230 #include <machine/soundcard.h>
10231 #elif defined(HAVE_SOUNDCARD_H)
10232 #include <soundcard.h>
10233 #endif
10236 main ()
10240 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10241 #if !defined(SNDCTL_SEQ_SYNC)
10242 #error No open sound system MIDI interface
10243 #endif
10246 return 0;
10248 _ACEOF
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_cv_c_opensoundsystem_midi="yes"
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_cv_c_opensoundsystem_midi="no"
10268 rm -f conftest.$ac_objext conftest.$ac_ext
10270 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10271 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10273 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10274 then
10276 cat >>confdefs.h <<\_ACEOF
10277 #define HAVE_OSS_MIDI 1
10278 _ACEOF
10282 # Extract the first word of "artsc-config", so it can be a program name with args.
10283 set dummy artsc-config; ac_word=$2
10284 echo "$as_me:$LINENO: checking for $ac_word" >&5
10285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10286 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289 case $ARTSCCONFIG in
10290 [\\/]* | ?:[\\/]*)
10291 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10295 for as_dir in $PATH
10297 IFS=$as_save_IFS
10298 test -z "$as_dir" && as_dir=.
10299 for ac_exec_ext in '' $ac_executable_extensions; do
10300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10301 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10303 break 2
10305 done
10306 done
10309 esac
10311 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10313 if test -n "$ARTSCCONFIG"; then
10314 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10315 echo "${ECHO_T}$ARTSCCONFIG" >&6
10316 else
10317 echo "$as_me:$LINENO: result: no" >&5
10318 echo "${ECHO_T}no" >&6
10321 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
10322 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10323 if test "${ac_cv_c_artsserver+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10327 then
10328 ac_cv_c_artsserver=no
10329 else
10330 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10331 ARTSC_LIBS=`$ARTSCCONFIG --libs`
10332 ac_cv_c_artsserver=no
10333 save_CFLAGS="$CFLAGS"
10334 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10335 cat >conftest.$ac_ext <<_ACEOF
10336 #line $LINENO "configure"
10337 /* confdefs.h. */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10343 #include <artsc.h>
10346 main ()
10349 arts_stream_t stream;
10352 return 0;
10354 _ACEOF
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10368 ac_cv_c_artsserver=yes
10370 else
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10375 rm -f conftest.$ac_objext conftest.$ac_ext
10376 CFLAGS="$save_CFLAGS"
10379 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10380 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10382 if test "$ac_cv_c_artsserver" = "yes"
10383 then
10384 ARTSLIBS=$ARTSC_LIBS
10386 ARTSINCL=$ARTSC_CFLAGS
10390 cat >>confdefs.h <<\_ACEOF
10391 #define HAVE_ARTS 1
10392 _ACEOF
10396 ALSALIBS=""
10400 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10404 echo "$as_me:$LINENO: checking for $ac_header" >&5
10405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10411 else
10412 # Is the header compilable?
10413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10415 cat >conftest.$ac_ext <<_ACEOF
10416 #line $LINENO "configure"
10417 /* confdefs.h. */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10422 $ac_includes_default
10423 #include <$ac_header>
10424 _ACEOF
10425 rm -f conftest.$ac_objext
10426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427 (eval $ac_compile) 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } &&
10431 { ac_try='test -s conftest.$ac_objext'
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; }; then
10437 ac_header_compiler=yes
10438 else
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10442 ac_header_compiler=no
10444 rm -f conftest.$ac_objext conftest.$ac_ext
10445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10446 echo "${ECHO_T}$ac_header_compiler" >&6
10448 # Is the header present?
10449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10451 cat >conftest.$ac_ext <<_ACEOF
10452 #line $LINENO "configure"
10453 /* confdefs.h. */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 #include <$ac_header>
10459 _ACEOF
10460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10462 ac_status=$?
10463 grep -v '^ *+' conftest.er1 >conftest.err
10464 rm -f conftest.er1
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } >/dev/null; then
10468 if test -s conftest.err; then
10469 ac_cpp_err=$ac_c_preproc_warn_flag
10470 else
10471 ac_cpp_err=
10473 else
10474 ac_cpp_err=yes
10476 if test -z "$ac_cpp_err"; then
10477 ac_header_preproc=yes
10478 else
10479 echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 ac_header_preproc=no
10484 rm -f conftest.err conftest.$ac_ext
10485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10486 echo "${ECHO_T}$ac_header_preproc" >&6
10488 # So? What about this header?
10489 case $ac_header_compiler:$ac_header_preproc in
10490 yes:no )
10491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10496 cat <<\_ASBOX
10497 ## ------------------------------------ ##
10498 ## Report this to bug-autoconf@gnu.org. ##
10499 ## ------------------------------------ ##
10500 _ASBOX
10502 sed "s/^/$as_me: WARNING: /" >&2
10504 no:yes )
10505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10512 cat <<\_ASBOX
10513 ## ------------------------------------ ##
10514 ## Report this to bug-autoconf@gnu.org. ##
10515 ## ------------------------------------ ##
10516 _ASBOX
10518 sed "s/^/$as_me: WARNING: /" >&2
10520 esac
10521 echo "$as_me:$LINENO: checking for $ac_header" >&5
10522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526 eval "$as_ac_Header=$ac_header_preproc"
10528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10533 cat >>confdefs.h <<_ACEOF
10534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10535 _ACEOF
10536 break
10539 done
10541 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10542 then
10543 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10544 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10545 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548 ac_check_lib_save_LIBS=$LIBS
10549 LIBS="-lasound $LIBS"
10550 cat >conftest.$ac_ext <<_ACEOF
10551 #line $LINENO "configure"
10552 /* confdefs.h. */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10558 /* Override any gcc2 internal prototype to avoid an error. */
10559 #ifdef __cplusplus
10560 extern "C"
10561 #endif
10562 /* We use char because int might match the return type of a gcc2
10563 builtin and then its argument prototype would still apply. */
10564 char snd_pcm_open ();
10566 main ()
10568 snd_pcm_open ();
10570 return 0;
10572 _ACEOF
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10575 (eval $ac_link) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } &&
10579 { ac_try='test -s conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 ac_cv_lib_asound_snd_pcm_open=yes
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10590 ac_cv_lib_asound_snd_pcm_open=no
10592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10593 LIBS=$ac_check_lib_save_LIBS
10595 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10596 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10597 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10599 cat >>confdefs.h <<\_ACEOF
10600 #define HAVE_ALSA 1
10601 _ACEOF
10603 ALSALIBS="-lasound"
10609 AUDIOIOLIBS=""
10612 for ac_header in libaudioio.h
10614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10616 echo "$as_me:$LINENO: checking for $ac_header" >&5
10617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10623 else
10624 # Is the header compilable?
10625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10627 cat >conftest.$ac_ext <<_ACEOF
10628 #line $LINENO "configure"
10629 /* confdefs.h. */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634 $ac_includes_default
10635 #include <$ac_header>
10636 _ACEOF
10637 rm -f conftest.$ac_objext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10639 (eval $ac_compile) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -s conftest.$ac_objext'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 ac_header_compiler=yes
10650 else
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 ac_header_compiler=no
10656 rm -f conftest.$ac_objext conftest.$ac_ext
10657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10658 echo "${ECHO_T}$ac_header_compiler" >&6
10660 # Is the header present?
10661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10663 cat >conftest.$ac_ext <<_ACEOF
10664 #line $LINENO "configure"
10665 /* confdefs.h. */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10670 #include <$ac_header>
10671 _ACEOF
10672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10674 ac_status=$?
10675 grep -v '^ *+' conftest.er1 >conftest.err
10676 rm -f conftest.er1
10677 cat conftest.err >&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } >/dev/null; then
10680 if test -s conftest.err; then
10681 ac_cpp_err=$ac_c_preproc_warn_flag
10682 else
10683 ac_cpp_err=
10685 else
10686 ac_cpp_err=yes
10688 if test -z "$ac_cpp_err"; then
10689 ac_header_preproc=yes
10690 else
10691 echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10694 ac_header_preproc=no
10696 rm -f conftest.err conftest.$ac_ext
10697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10698 echo "${ECHO_T}$ac_header_preproc" >&6
10700 # So? What about this header?
10701 case $ac_header_compiler:$ac_header_preproc in
10702 yes:no )
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10708 cat <<\_ASBOX
10709 ## ------------------------------------ ##
10710 ## Report this to bug-autoconf@gnu.org. ##
10711 ## ------------------------------------ ##
10712 _ASBOX
10714 sed "s/^/$as_me: WARNING: /" >&2
10716 no:yes )
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10724 cat <<\_ASBOX
10725 ## ------------------------------------ ##
10726 ## Report this to bug-autoconf@gnu.org. ##
10727 ## ------------------------------------ ##
10728 _ASBOX
10730 sed "s/^/$as_me: WARNING: /" >&2
10732 esac
10733 echo "$as_me:$LINENO: checking for $ac_header" >&5
10734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738 eval "$as_ac_Header=$ac_header_preproc"
10740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10745 cat >>confdefs.h <<_ACEOF
10746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10747 _ACEOF
10748 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10749 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10750 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753 ac_check_lib_save_LIBS=$LIBS
10754 LIBS="-laudioio $LIBS"
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. */
10763 /* Override any gcc2 internal prototype to avoid an error. */
10764 #ifdef __cplusplus
10765 extern "C"
10766 #endif
10767 /* We use char because int might match the return type of a gcc2
10768 builtin and then its argument prototype would still apply. */
10769 char AudioIOGetVersion ();
10771 main ()
10773 AudioIOGetVersion ();
10775 return 0;
10777 _ACEOF
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10780 (eval $ac_link) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } &&
10784 { ac_try='test -s conftest$ac_exeext'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_cv_lib_audioio_AudioIOGetVersion=yes
10791 else
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_cv_lib_audioio_AudioIOGetVersion=no
10797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10798 LIBS=$ac_check_lib_save_LIBS
10800 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10801 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10802 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10803 AUDIOIOLIBS="-laudioio"
10805 cat >>confdefs.h <<\_ACEOF
10806 #define HAVE_LIBAUDIOIO 1
10807 _ACEOF
10813 done
10817 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
10818 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10819 if test "${ac_cv_mmap64_works+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822 if test "$cross_compiling" = yes; then
10823 ac_cv_mmap64_works="no"
10824 else
10825 cat >conftest.$ac_ext <<_ACEOF
10826 #line $LINENO "configure"
10827 /* confdefs.h. */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10833 #define _FILE_OFFSET_BITS 64
10834 #include <stdio.h>
10835 #include <unistd.h>
10836 #include <fcntl.h>
10837 #include <sys/mman.h>
10838 #include <errno.h>
10840 int main(int argc,char **argv) {
10841 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10842 if (fd == -1) exit(1);
10844 unlink("conftest.map");
10846 write(fd,"test",4);
10848 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10849 (errno == EINVAL)
10851 exit(1);
10853 close(fd);
10854 fprintf(stderr,"success!\n");
10855 exit(0);
10859 _ACEOF
10860 rm -f conftest$ac_exeext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10862 (eval $ac_link) 2>&5
10863 ac_status=$?
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_cv_mmap64_works="yes"
10872 else
10873 echo "$as_me: program exited with status $ac_status" >&5
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10877 ( exit $ac_status )
10878 ac_cv_mmap64_works="no"
10880 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10883 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
10884 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
10886 if test "$ac_cv_mmap64_works" = "yes"
10887 then
10889 cat >>confdefs.h <<\_ACEOF
10890 #define _FILE_OFFSET_BITS 64
10891 _ACEOF
10896 EXTRACFLAGS=""
10898 if test "x${GCC}" = "xyes"
10899 then
10900 EXTRACFLAGS=-Wall
10902 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
10903 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10904 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907 if test "$cross_compiling" = yes; then
10908 ac_cv_c_gcc_strength_bug="yes"
10909 else
10910 cat >conftest.$ac_ext <<_ACEOF
10911 #line $LINENO "configure"
10912 /* confdefs.h. */
10913 _ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10918 int L[4] = {0,1,2,3};
10919 int main(void) {
10920 static int Array[3];
10921 unsigned int B = 3;
10922 int i;
10923 for(i=0; i<B; i++) Array[i] = i - 3;
10924 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10925 L[i] = 4;
10927 exit( Array[1] != -2 || L[2] != 3);
10929 _ACEOF
10930 rm -f conftest$ac_exeext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10932 (eval $ac_link) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5
10938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; }; then
10941 ac_cv_c_gcc_strength_bug="no"
10942 else
10943 echo "$as_me: program exited with status $ac_status" >&5
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 ( exit $ac_status )
10948 ac_cv_c_gcc_strength_bug="yes"
10950 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10953 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
10954 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
10955 if test "$ac_cv_c_gcc_strength_bug" = "yes"
10956 then
10957 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
10960 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
10961 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10962 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965 ac_wine_try_cflags_saved=$CFLAGS
10966 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10967 cat >conftest.$ac_ext <<_ACEOF
10968 #line $LINENO "configure"
10969 /* confdefs.h. */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10976 main ()
10980 return 0;
10982 _ACEOF
10983 rm -f conftest.$ac_objext conftest$ac_exeext
10984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10985 (eval $ac_link) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } &&
10989 { ac_try='test -s conftest$ac_exeext'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; }; then
10995 ac_cv_c_gcc_stack_boundary="yes"
10996 else
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11000 ac_cv_c_gcc_stack_boundary="no"
11002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11003 CFLAGS=$ac_wine_try_cflags_saved
11005 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
11006 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
11007 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
11008 then
11009 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
11012 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
11013 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
11014 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 else
11017 ac_wine_try_cflags_saved=$CFLAGS
11018 CFLAGS="$CFLAGS -gstabs+"
11019 cat >conftest.$ac_ext <<_ACEOF
11020 #line $LINENO "configure"
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11028 main ()
11032 return 0;
11034 _ACEOF
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } &&
11041 { ac_try='test -s conftest$ac_exeext'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 ac_cv_c_gcc_gstabs="yes"
11048 else
11049 echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.$ac_ext >&5
11052 ac_cv_c_gcc_gstabs="no"
11054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11055 CFLAGS=$ac_wine_try_cflags_saved
11057 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
11058 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
11059 if test "$ac_cv_c_gcc_gstabs" = "yes"
11060 then
11061 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
11064 saved_CFLAGS="$CFLAGS"
11065 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11066 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
11067 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
11068 if test "${ac_cv_c_string_h_warnings+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 else
11071 cat >conftest.$ac_ext <<_ACEOF
11072 #line $LINENO "configure"
11073 /* confdefs.h. */
11074 _ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11078 #include <string.h>
11080 main ()
11084 return 0;
11086 _ACEOF
11087 rm -f conftest.$ac_objext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089 (eval $ac_compile) 2>&5
11090 ac_status=$?
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } &&
11093 { ac_try='test -s conftest.$ac_objext'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
11099 ac_cv_c_string_h_warnings=no
11100 else
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11104 ac_cv_c_string_h_warnings=yes
11106 rm -f conftest.$ac_objext conftest.$ac_ext
11108 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11109 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
11110 CFLAGS="$saved_CFLAGS"
11111 if test "$ac_cv_c_string_h_warnings" = "no"
11112 then
11113 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11118 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11119 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11120 if test "${ac_cv_asm_func_def+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11122 else
11123 cat >conftest.$ac_ext <<_ACEOF
11124 #line $LINENO "configure"
11125 /* confdefs.h. */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130 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"); }
11133 main ()
11137 return 0;
11139 _ACEOF
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11142 (eval $ac_link) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_asm_func_def=".def"
11153 else
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 cat >conftest.$ac_ext <<_ACEOF
11158 #line $LINENO "configure"
11159 /* confdefs.h. */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11164 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
11167 main ()
11171 return 0;
11173 _ACEOF
11174 rm -f conftest.$ac_objext conftest$ac_exeext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -s conftest$ac_exeext'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
11186 ac_cv_asm_func_def=".type @function"
11187 else
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191 cat >conftest.$ac_ext <<_ACEOF
11192 #line $LINENO "configure"
11193 /* confdefs.h. */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
11201 main ()
11205 return 0;
11207 _ACEOF
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210 (eval $ac_link) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } &&
11214 { ac_try='test -s conftest$ac_exeext'
11215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216 (eval $ac_try) 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; }; then
11220 ac_cv_asm_func_def=".type 2"
11221 else
11222 echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11225 ac_cv_asm_func_def="unknown"
11227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11233 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11234 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11238 case "$ac_cv_asm_func_def" in
11239 ".def")
11240 cat >>confdefs.h <<\_ACEOF
11241 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11242 _ACEOF
11244 ".type @function")
11245 cat >>confdefs.h <<\_ACEOF
11246 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11247 _ACEOF
11249 ".type 2")
11250 cat >>confdefs.h <<\_ACEOF
11251 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11252 _ACEOF
11255 cat >>confdefs.h <<\_ACEOF
11256 #define __ASM_FUNC(name) ""
11257 _ACEOF
11259 esac
11262 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11263 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11264 if test "${ac_cv_c_extern_prefix+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267 cat >conftest.$ac_ext <<_ACEOF
11268 #line $LINENO "configure"
11269 /* confdefs.h. */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11275 extern int ac_test;
11277 main ()
11279 if (ac_test) return 1
11281 return 0;
11283 _ACEOF
11284 rm -f conftest.$ac_objext conftest$ac_exeext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11286 (eval $ac_link) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -s conftest$ac_exeext'
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 ac_cv_c_extern_prefix="yes"
11297 else
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 ac_cv_c_extern_prefix="no"
11303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11305 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11306 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11310 if test "$ac_cv_c_extern_prefix" = "yes"
11311 then
11312 cat >>confdefs.h <<\_ACEOF
11313 #define __ASM_NAME(name) "_" name
11314 _ACEOF
11316 else
11317 cat >>confdefs.h <<\_ACEOF
11318 #define __ASM_NAME(name) name
11319 _ACEOF
11324 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11325 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11326 if test "${ac_cv_c_asm_string+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 else
11329 cat >conftest.$ac_ext <<_ACEOF
11330 #line $LINENO "configure"
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
11339 main ()
11343 return 0;
11345 _ACEOF
11346 rm -f conftest.$ac_objext conftest$ac_exeext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348 (eval $ac_link) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } &&
11352 { ac_try='test -s conftest$ac_exeext'
11353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354 (eval $ac_try) 2>&5
11355 ac_status=$?
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 ac_cv_c_asm_string="yes"
11359 else
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 ac_cv_c_asm_string="no"
11365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11367 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11368 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11369 if test "$ac_cv_c_asm_string" = "yes"
11370 then
11372 cat >>confdefs.h <<\_ACEOF
11373 #define __ASM_STRING ".string"
11374 _ACEOF
11376 else
11377 echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11378 echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11379 if test "${ac_cv_c_asm_asciz+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382 cat >conftest.$ac_ext <<_ACEOF
11383 #line $LINENO "configure"
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11392 main ()
11396 return 0;
11398 _ACEOF
11399 rm -f conftest.$ac_objext conftest$ac_exeext
11400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11401 (eval $ac_link) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -s conftest$ac_exeext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 ac_cv_c_asm_asciz="yes"
11412 else
11413 echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.$ac_ext >&5
11416 ac_cv_c_asm_asciz="no"
11418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11420 echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11421 echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11422 if test "$ac_cv_c_asm_asciz" = "yes"
11423 then
11424 cat >>confdefs.h <<\_ACEOF
11425 #define __ASM_STRING ".asciz"
11426 _ACEOF
11428 else
11429 cat >>confdefs.h <<\_ACEOF
11430 #define __ASM_STRING ".ascii"
11431 _ACEOF
11437 echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11438 echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11439 if test "${ac_cv_c_asm_short+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442 cat >conftest.$ac_ext <<_ACEOF
11443 #line $LINENO "configure"
11444 /* confdefs.h. */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11452 main ()
11456 return 0;
11458 _ACEOF
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461 (eval $ac_link) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -s conftest$ac_exeext'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 ac_cv_c_asm_short="yes"
11472 else
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11476 ac_cv_c_asm_short="no"
11478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11480 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11481 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11482 if test "$ac_cv_c_asm_short" = "yes"
11483 then
11485 cat >>confdefs.h <<\_ACEOF
11486 #define __ASM_SHORT ".short"
11487 _ACEOF
11489 else
11490 cat >>confdefs.h <<\_ACEOF
11491 #define __ASM_SHORT ".half"
11492 _ACEOF
11497 DLLEXT=""
11499 DLLFLAGS="-D_REENTRANT"
11501 DLLIBS=""
11503 LDDLLFLAGS=""
11505 LDSHARED=""
11507 LIBEXT="so"
11509 IMPLIBEXT="def"
11512 case $host_os in
11513 cygwin*|mingw32*)
11514 if test -n "$ac_tool_prefix"; then
11515 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11516 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11517 echo "$as_me:$LINENO: checking for $ac_word" >&5
11518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11519 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522 if test -n "$DLLTOOL"; then
11523 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11524 else
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $PATH
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11532 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11536 done
11537 done
11541 DLLTOOL=$ac_cv_prog_DLLTOOL
11542 if test -n "$DLLTOOL"; then
11543 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11544 echo "${ECHO_T}$DLLTOOL" >&6
11545 else
11546 echo "$as_me:$LINENO: result: no" >&5
11547 echo "${ECHO_T}no" >&6
11551 if test -z "$ac_cv_prog_DLLTOOL"; then
11552 ac_ct_DLLTOOL=$DLLTOOL
11553 # Extract the first word of "dlltool", so it can be a program name with args.
11554 set dummy dlltool; ac_word=$2
11555 echo "$as_me:$LINENO: checking for $ac_word" >&5
11556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11557 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560 if test -n "$ac_ct_DLLTOOL"; then
11561 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11562 else
11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564 for as_dir in $PATH
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11570 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11574 done
11575 done
11577 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11580 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11581 if test -n "$ac_ct_DLLTOOL"; then
11582 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11583 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11584 else
11585 echo "$as_me:$LINENO: result: no" >&5
11586 echo "${ECHO_T}no" >&6
11589 DLLTOOL=$ac_ct_DLLTOOL
11590 else
11591 DLLTOOL="$ac_cv_prog_DLLTOOL"
11594 if test -n "$ac_tool_prefix"; then
11595 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11596 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11597 echo "$as_me:$LINENO: checking for $ac_word" >&5
11598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11599 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 if test -n "$DLLWRAP"; then
11603 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11604 else
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11616 done
11617 done
11621 DLLWRAP=$ac_cv_prog_DLLWRAP
11622 if test -n "$DLLWRAP"; then
11623 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11624 echo "${ECHO_T}$DLLWRAP" >&6
11625 else
11626 echo "$as_me:$LINENO: result: no" >&5
11627 echo "${ECHO_T}no" >&6
11631 if test -z "$ac_cv_prog_DLLWRAP"; then
11632 ac_ct_DLLWRAP=$DLLWRAP
11633 # Extract the first word of "dllwrap", so it can be a program name with args.
11634 set dummy dllwrap; ac_word=$2
11635 echo "$as_me:$LINENO: checking for $ac_word" >&5
11636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11637 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640 if test -n "$ac_ct_DLLWRAP"; then
11641 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11642 else
11643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 for as_dir in $PATH
11646 IFS=$as_save_IFS
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
11649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11650 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11652 break 2
11654 done
11655 done
11657 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11660 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11661 if test -n "$ac_ct_DLLWRAP"; then
11662 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11663 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11664 else
11665 echo "$as_me:$LINENO: result: no" >&5
11666 echo "${ECHO_T}no" >&6
11669 DLLWRAP=$ac_ct_DLLWRAP
11670 else
11671 DLLWRAP="$ac_cv_prog_DLLWRAP"
11674 if test "$DLLWRAP" = "false"; then
11675 LIBEXT="a"
11676 else
11677 LIBEXT="dll"
11679 IMPLIBEXT="a"
11683 for ac_header in dlfcn.h
11685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11687 echo "$as_me:$LINENO: checking for $ac_header" >&5
11688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11694 else
11695 # Is the header compilable?
11696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11698 cat >conftest.$ac_ext <<_ACEOF
11699 #line $LINENO "configure"
11700 /* confdefs.h. */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11705 $ac_includes_default
11706 #include <$ac_header>
11707 _ACEOF
11708 rm -f conftest.$ac_objext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11710 (eval $ac_compile) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
11714 { ac_try='test -s conftest.$ac_objext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_header_compiler=yes
11721 else
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 ac_header_compiler=no
11727 rm -f conftest.$ac_objext conftest.$ac_ext
11728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11729 echo "${ECHO_T}$ac_header_compiler" >&6
11731 # Is the header present?
11732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11734 cat >conftest.$ac_ext <<_ACEOF
11735 #line $LINENO "configure"
11736 /* confdefs.h. */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741 #include <$ac_header>
11742 _ACEOF
11743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } >/dev/null; then
11751 if test -s conftest.err; then
11752 ac_cpp_err=$ac_c_preproc_warn_flag
11753 else
11754 ac_cpp_err=
11756 else
11757 ac_cpp_err=yes
11759 if test -z "$ac_cpp_err"; then
11760 ac_header_preproc=yes
11761 else
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 ac_header_preproc=no
11767 rm -f conftest.err conftest.$ac_ext
11768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11769 echo "${ECHO_T}$ac_header_preproc" >&6
11771 # So? What about this header?
11772 case $ac_header_compiler:$ac_header_preproc in
11773 yes:no )
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11779 cat <<\_ASBOX
11780 ## ------------------------------------ ##
11781 ## Report this to bug-autoconf@gnu.org. ##
11782 ## ------------------------------------ ##
11783 _ASBOX
11785 sed "s/^/$as_me: WARNING: /" >&2
11787 no:yes )
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11795 cat <<\_ASBOX
11796 ## ------------------------------------ ##
11797 ## Report this to bug-autoconf@gnu.org. ##
11798 ## ------------------------------------ ##
11799 _ASBOX
11801 sed "s/^/$as_me: WARNING: /" >&2
11803 esac
11804 echo "$as_me:$LINENO: checking for $ac_header" >&5
11805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809 eval "$as_ac_Header=$ac_header_preproc"
11811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11816 cat >>confdefs.h <<_ACEOF
11817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11818 _ACEOF
11820 for ac_func in dlopen
11822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11823 echo "$as_me:$LINENO: checking for $ac_func" >&5
11824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11825 if eval "test \"\${$as_ac_var+set}\" = set"; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828 cat >conftest.$ac_ext <<_ACEOF
11829 #line $LINENO "configure"
11830 /* confdefs.h. */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 /* System header to define __stub macros and hopefully few prototypes,
11836 which can conflict with char $ac_func (); below.
11837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11838 <limits.h> exists even on freestanding compilers. */
11839 #ifdef __STDC__
11840 # include <limits.h>
11841 #else
11842 # include <assert.h>
11843 #endif
11844 /* Override any gcc2 internal prototype to avoid an error. */
11845 #ifdef __cplusplus
11846 extern "C"
11848 #endif
11849 /* We use char because int might match the return type of a gcc2
11850 builtin and then its argument prototype would still apply. */
11851 char $ac_func ();
11852 /* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11856 choke me
11857 #else
11858 char (*f) () = $ac_func;
11859 #endif
11860 #ifdef __cplusplus
11862 #endif
11865 main ()
11867 return f != $ac_func;
11869 return 0;
11871 _ACEOF
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
11878 { ac_try='test -s conftest$ac_exeext'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 eval "$as_ac_var=yes"
11885 else
11886 echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11889 eval "$as_ac_var=no"
11891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11895 if test `eval echo '${'$as_ac_var'}'` = yes; then
11896 cat >>confdefs.h <<_ACEOF
11897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11898 _ACEOF
11900 else
11901 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11902 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906 ac_check_lib_save_LIBS=$LIBS
11907 LIBS="-ldl $LIBS"
11908 cat >conftest.$ac_ext <<_ACEOF
11909 #line $LINENO "configure"
11910 /* confdefs.h. */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11916 /* Override any gcc2 internal prototype to avoid an error. */
11917 #ifdef __cplusplus
11918 extern "C"
11919 #endif
11920 /* We use char because int might match the return type of a gcc2
11921 builtin and then its argument prototype would still apply. */
11922 char dlopen ();
11924 main ()
11926 dlopen ();
11928 return 0;
11930 _ACEOF
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11933 (eval $ac_link) 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -s conftest$ac_exeext'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; }; then
11943 ac_cv_lib_dl_dlopen=yes
11944 else
11945 echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11948 ac_cv_lib_dl_dlopen=no
11950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11951 LIBS=$ac_check_lib_save_LIBS
11953 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11954 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11955 if test $ac_cv_lib_dl_dlopen = yes; then
11957 cat >>confdefs.h <<\_ACEOF
11958 #define HAVE_DLOPEN 1
11959 _ACEOF
11961 DLLIBS="-ldl"
11962 else
11963 LIBEXT="a"
11967 done
11969 else
11970 LIBEXT="a"
11973 done
11976 if test "$LIBEXT" = "so"
11977 then
11978 DLLFLAGS="$DLLFLAGS -fPIC"
11979 DLLEXT=".so"
11980 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
11981 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11982 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985 ac_wine_try_cflags_saved=$CFLAGS
11986 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11989 /* confdefs.h. */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11996 main ()
12000 return 0;
12002 _ACEOF
12003 rm -f conftest.$ac_objext conftest$ac_exeext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005 (eval $ac_link) 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try='test -s conftest$ac_exeext'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; }; then
12015 ac_cv_c_dll_gnuelf="yes"
12016 else
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_cv_c_dll_gnuelf="no"
12022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12023 CFLAGS=$ac_wine_try_cflags_saved
12025 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
12026 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
12027 if test "$ac_cv_c_dll_gnuelf" = "yes"
12028 then
12029 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
12030 LDDLLFLAGS="-Wl,-Bsymbolic"
12031 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
12032 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
12033 if test "${ac_cv_c_dll_zdefs+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036 ac_wine_try_cflags_saved=$CFLAGS
12037 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
12038 cat >conftest.$ac_ext <<_ACEOF
12039 #line $LINENO "configure"
12040 /* confdefs.h. */
12041 _ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12047 main ()
12051 return 0;
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -s conftest$ac_exeext'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
12066 ac_cv_c_dll_zdefs="yes"
12067 else
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 ac_cv_c_dll_zdefs="no"
12073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12074 CFLAGS=$ac_wine_try_cflags_saved
12076 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
12077 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
12078 if test "$ac_cv_c_dll_zdefs" = "yes"
12079 then
12080 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
12082 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5
12083 echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6
12084 if test "${ac_cv_ld_reloc_exec+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087 saved_CFLAGS="$CFLAGS"
12088 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
12089 if test "$cross_compiling" = yes; then
12090 ac_cv_ld_reloc_exec="no"
12091 else
12092 cat >conftest.$ac_ext <<_ACEOF
12093 #line $LINENO "configure"
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 #include <unistd.h>
12100 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
12101 _ACEOF
12102 rm -f conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113 ac_cv_ld_reloc_exec="yes"
12114 else
12115 echo "$as_me: program exited with status $ac_status" >&5
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 ( exit $ac_status )
12120 ac_cv_ld_reloc_exec="no"
12122 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12124 CFLAGS="$saved_CFLAGS"
12126 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12127 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12128 if test "$ac_cv_ld_reloc_exec" = "yes"
12129 then
12130 LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100"
12133 else
12134 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
12135 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12136 if test "${ac_cv_c_dll_unixware+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 else
12139 ac_wine_try_cflags_saved=$CFLAGS
12140 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12141 cat >conftest.$ac_ext <<_ACEOF
12142 #line $LINENO "configure"
12143 /* confdefs.h. */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12150 main ()
12154 return 0;
12156 _ACEOF
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12159 (eval $ac_link) 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -s conftest$ac_exeext'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 ac_cv_c_dll_unixware="yes"
12170 else
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12174 ac_cv_c_dll_unixware="no"
12176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12177 CFLAGS=$ac_wine_try_cflags_saved
12179 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
12180 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
12181 if test "$ac_cv_c_dll_unixware" = "yes"
12182 then
12183 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
12184 LDDLLFLAGS="-Wl,-B,symbolic"
12189 CROSSTEST=""
12191 if test "$cross_compiling" = "no"
12192 then
12193 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc
12195 # Extract the first word of "$ac_prog", so it can be a program name with args.
12196 set dummy $ac_prog; ac_word=$2
12197 echo "$as_me:$LINENO: checking for $ac_word" >&5
12198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12199 if test "${ac_cv_prog_CROSSCC+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202 if test -n "$CROSSCC"; then
12203 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12204 else
12205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206 for as_dir in $PATH
12208 IFS=$as_save_IFS
12209 test -z "$as_dir" && as_dir=.
12210 for ac_exec_ext in '' $ac_executable_extensions; do
12211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12212 ac_cv_prog_CROSSCC="$ac_prog"
12213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12214 break 2
12216 done
12217 done
12221 CROSSCC=$ac_cv_prog_CROSSCC
12222 if test -n "$CROSSCC"; then
12223 echo "$as_me:$LINENO: result: $CROSSCC" >&5
12224 echo "${ECHO_T}$CROSSCC" >&6
12225 else
12226 echo "$as_me:$LINENO: result: no" >&5
12227 echo "${ECHO_T}no" >&6
12230 test -n "$CROSSCC" && break
12231 done
12232 test -n "$CROSSCC" || CROSSCC="false"
12234 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool
12236 # Extract the first word of "$ac_prog", so it can be a program name with args.
12237 set dummy $ac_prog; ac_word=$2
12238 echo "$as_me:$LINENO: checking for $ac_word" >&5
12239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12240 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243 if test -n "$DLLTOOL"; then
12244 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12245 else
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_prog_DLLTOOL="$ac_prog"
12254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 break 2
12257 done
12258 done
12262 DLLTOOL=$ac_cv_prog_DLLTOOL
12263 if test -n "$DLLTOOL"; then
12264 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12265 echo "${ECHO_T}$DLLTOOL" >&6
12266 else
12267 echo "$as_me:$LINENO: result: no" >&5
12268 echo "${ECHO_T}no" >&6
12271 test -n "$DLLTOOL" && break
12272 done
12273 test -n "$DLLTOOL" || DLLTOOL="false"
12275 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres
12277 # Extract the first word of "$ac_prog", so it can be a program name with args.
12278 set dummy $ac_prog; ac_word=$2
12279 echo "$as_me:$LINENO: checking for $ac_word" >&5
12280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12281 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284 if test -n "$CROSSWINDRES"; then
12285 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12286 else
12287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288 for as_dir in $PATH
12290 IFS=$as_save_IFS
12291 test -z "$as_dir" && as_dir=.
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12294 ac_cv_prog_CROSSWINDRES="$ac_prog"
12295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12296 break 2
12298 done
12299 done
12303 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12304 if test -n "$CROSSWINDRES"; then
12305 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12306 echo "${ECHO_T}$CROSSWINDRES" >&6
12307 else
12308 echo "$as_me:$LINENO: result: no" >&5
12309 echo "${ECHO_T}no" >&6
12312 test -n "$CROSSWINDRES" && break
12313 done
12314 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12316 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12319 esac
12321 if test "$LIBEXT" = "a"; then
12322 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
12323 It is currently not possible to build Wine without shared library
12324 (.so) support to allow transparent switch between .so and .dll files.
12325 If you are using Linux, you will need a newer binutils.
12326 " >&5
12327 echo "$as_me: error: could not find a way to build shared libraries.
12328 It is currently not possible to build Wine without shared library
12329 (.so) support to allow transparent switch between .so and .dll files.
12330 If you are using Linux, you will need a newer binutils.
12331 " >&2;}
12332 { (exit 1); exit 1; }; }
12335 case $build_os in
12336 cygwin*|mingw32*)
12337 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
12340 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
12342 esac
12344 CRTLIBS=""
12346 case $host_os in
12347 mingw32*)
12348 CRTLIBS="-lmsvcrt" ;;
12349 esac
12352 if test "$LIBEXT" = "so"
12353 then
12354 # Extract the first word of "ldd", so it can be a program name with args.
12355 set dummy ldd; ac_word=$2
12356 echo "$as_me:$LINENO: checking for $ac_word" >&5
12357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12358 if test "${ac_cv_path_LDD+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361 case $LDD in
12362 [\\/]* | ?:[\\/]*)
12363 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367 as_dummy="/sbin:/usr/sbin:$PATH"
12368 for as_dir in $as_dummy
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12374 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 break 2
12378 done
12379 done
12381 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12383 esac
12385 LDD=$ac_cv_path_LDD
12387 if test -n "$LDD"; then
12388 echo "$as_me:$LINENO: result: $LDD" >&5
12389 echo "${ECHO_T}$LDD" >&6
12390 else
12391 echo "$as_me:$LINENO: result: no" >&5
12392 echo "${ECHO_T}no" >&6
12396 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12397 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12398 if test "${ac_cv_lib_soname_X11+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401 ac_get_soname_save_LIBS=$LIBS
12402 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12403 cat >conftest.$ac_ext <<_ACEOF
12404 #line $LINENO "configure"
12405 /* confdefs.h. */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12411 /* Override any gcc2 internal prototype to avoid an error. */
12412 #ifdef __cplusplus
12413 extern "C"
12414 #endif
12415 /* We use char because int might match the return type of a gcc2
12416 builtin and then its argument prototype would still apply. */
12417 char XCreateWindow ();
12419 main ()
12421 XCreateWindow ();
12423 return 0;
12425 _ACEOF
12426 rm -f conftest.$ac_objext conftest$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -s conftest$ac_exeext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12439 if test "x$ac_cv_lib_soname_X11" = "x"
12440 then
12441 ac_cv_lib_soname_X11="libX11.so"
12443 else
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_cv_lib_soname_X11="libX11.so"
12449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_get_soname_save_LIBS
12452 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12453 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12454 if test "x$ac_cv_lib_soname_X11" != xNONE
12455 then
12456 cat >>confdefs.h <<_ACEOF
12457 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12458 _ACEOF
12461 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12462 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12463 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466 ac_get_soname_save_LIBS=$LIBS
12467 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12468 cat >conftest.$ac_ext <<_ACEOF
12469 #line $LINENO "configure"
12470 /* confdefs.h. */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12476 /* Override any gcc2 internal prototype to avoid an error. */
12477 #ifdef __cplusplus
12478 extern "C"
12479 #endif
12480 /* We use char because int might match the return type of a gcc2
12481 builtin and then its argument prototype would still apply. */
12482 char XextCreateExtension ();
12484 main ()
12486 XextCreateExtension ();
12488 return 0;
12490 _ACEOF
12491 rm -f conftest.$ac_objext conftest$ac_exeext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12493 (eval $ac_link) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -s conftest$ac_exeext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12504 if test "x$ac_cv_lib_soname_Xext" = "x"
12505 then
12506 ac_cv_lib_soname_Xext="libXext.so"
12508 else
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 ac_cv_lib_soname_Xext="libXext.so"
12514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12515 LIBS=$ac_get_soname_save_LIBS
12517 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12518 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12519 if test "x$ac_cv_lib_soname_Xext" != xNONE
12520 then
12521 cat >>confdefs.h <<_ACEOF
12522 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12523 _ACEOF
12526 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12527 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12528 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531 ac_get_soname_save_LIBS=$LIBS
12532 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12533 cat >conftest.$ac_ext <<_ACEOF
12534 #line $LINENO "configure"
12535 /* confdefs.h. */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12541 /* Override any gcc2 internal prototype to avoid an error. */
12542 #ifdef __cplusplus
12543 extern "C"
12544 #endif
12545 /* We use char because int might match the return type of a gcc2
12546 builtin and then its argument prototype would still apply. */
12547 char XRenderQueryExtension ();
12549 main ()
12551 XRenderQueryExtension ();
12553 return 0;
12555 _ACEOF
12556 rm -f conftest.$ac_objext conftest$ac_exeext
12557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12558 (eval $ac_link) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } &&
12562 { ac_try='test -s conftest$ac_exeext'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12565 ac_status=$?
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; }; then
12568 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12569 if test "x$ac_cv_lib_soname_Xrender" = "x"
12570 then
12571 ac_cv_lib_soname_Xrender="libXrender.so"
12573 else
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12577 ac_cv_lib_soname_Xrender="libXrender.so"
12579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_get_soname_save_LIBS
12582 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12583 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12584 if test "x$ac_cv_lib_soname_Xrender" != xNONE
12585 then
12586 cat >>confdefs.h <<_ACEOF
12587 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12588 _ACEOF
12591 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12592 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12593 if test "${ac_cv_lib_soname_freetype+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596 ac_get_soname_save_LIBS=$LIBS
12597 LIBS="-lfreetype $X_LIBS $LIBS"
12598 cat >conftest.$ac_ext <<_ACEOF
12599 #line $LINENO "configure"
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12606 /* Override any gcc2 internal prototype to avoid an error. */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 /* We use char because int might match the return type of a gcc2
12611 builtin and then its argument prototype would still apply. */
12612 char FT_Init_FreeType ();
12614 main ()
12616 FT_Init_FreeType ();
12618 return 0;
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623 (eval $ac_link) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -s conftest$ac_exeext'
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12633 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12634 if test "x$ac_cv_lib_soname_freetype" = "x"
12635 then
12636 ac_cv_lib_soname_freetype="libfreetype.so"
12638 else
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_cv_lib_soname_freetype="libfreetype.so"
12644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12645 LIBS=$ac_get_soname_save_LIBS
12647 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12648 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12649 if test "x$ac_cv_lib_soname_freetype" != xNONE
12650 then
12651 cat >>confdefs.h <<_ACEOF
12652 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12653 _ACEOF
12656 echo "$as_me:$LINENO: checking for -lGL soname" >&5
12657 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12658 if test "${ac_cv_lib_soname_GL+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661 ac_get_soname_save_LIBS=$LIBS
12662 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12663 cat >conftest.$ac_ext <<_ACEOF
12664 #line $LINENO "configure"
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12671 /* Override any gcc2 internal prototype to avoid an error. */
12672 #ifdef __cplusplus
12673 extern "C"
12674 #endif
12675 /* We use char because int might match the return type of a gcc2
12676 builtin and then its argument prototype would still apply. */
12677 char glXQueryExtension ();
12679 main ()
12681 glXQueryExtension ();
12683 return 0;
12685 _ACEOF
12686 rm -f conftest.$ac_objext conftest$ac_exeext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688 (eval $ac_link) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -s conftest$ac_exeext'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12699 if test "x$ac_cv_lib_soname_GL" = "x"
12700 then
12701 ac_cv_lib_soname_GL="libGL.so"
12703 else
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12707 ac_cv_lib_soname_GL="libGL.so"
12709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12710 LIBS=$ac_get_soname_save_LIBS
12712 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12713 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12714 if test "x$ac_cv_lib_soname_GL" != xNONE
12715 then
12716 cat >>confdefs.h <<_ACEOF
12717 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12718 _ACEOF
12721 echo "$as_me:$LINENO: checking for -lcups soname" >&5
12722 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12723 if test "${ac_cv_lib_soname_cups+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726 ac_get_soname_save_LIBS=$LIBS
12727 LIBS="-lcups $LIBS"
12728 cat >conftest.$ac_ext <<_ACEOF
12729 #line $LINENO "configure"
12730 /* confdefs.h. */
12731 _ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12736 /* Override any gcc2 internal prototype to avoid an error. */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 /* We use char because int might match the return type of a gcc2
12741 builtin and then its argument prototype would still apply. */
12742 char cupsGetDefault ();
12744 main ()
12746 cupsGetDefault ();
12748 return 0;
12750 _ACEOF
12751 rm -f conftest.$ac_objext conftest$ac_exeext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12753 (eval $ac_link) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try='test -s conftest$ac_exeext'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12763 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12764 if test "x$ac_cv_lib_soname_cups" = "x"
12765 then
12766 ac_cv_lib_soname_cups="libcups.so"
12768 else
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12772 ac_cv_lib_soname_cups="libcups.so"
12774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12775 LIBS=$ac_get_soname_save_LIBS
12777 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12778 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12779 if test "x$ac_cv_lib_soname_cups" != xNONE
12780 then
12781 cat >>confdefs.h <<_ACEOF
12782 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12783 _ACEOF
12786 echo "$as_me:$LINENO: checking for -ljack soname" >&5
12787 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12788 if test "${ac_cv_lib_soname_jack+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791 ac_get_soname_save_LIBS=$LIBS
12792 LIBS="-ljack $LIBS"
12793 cat >conftest.$ac_ext <<_ACEOF
12794 #line $LINENO "configure"
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12801 /* Override any gcc2 internal prototype to avoid an error. */
12802 #ifdef __cplusplus
12803 extern "C"
12804 #endif
12805 /* We use char because int might match the return type of a gcc2
12806 builtin and then its argument prototype would still apply. */
12807 char jack_client_new ();
12809 main ()
12811 jack_client_new ();
12813 return 0;
12815 _ACEOF
12816 rm -f conftest.$ac_objext conftest$ac_exeext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12818 (eval $ac_link) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
12822 { ac_try='test -s conftest$ac_exeext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12829 if test "x$ac_cv_lib_soname_jack" = "x"
12830 then
12831 ac_cv_lib_soname_jack="libjack.so"
12833 else
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ac_cv_lib_soname_jack="libjack.so"
12839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12840 LIBS=$ac_get_soname_save_LIBS
12842 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12843 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12844 if test "x$ac_cv_lib_soname_jack" != xNONE
12845 then
12846 cat >>confdefs.h <<_ACEOF
12847 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12848 _ACEOF
12851 echo "$as_me:$LINENO: checking for -lssl soname" >&5
12852 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
12853 if test "${ac_cv_lib_soname_ssl+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856 ac_get_soname_save_LIBS=$LIBS
12857 LIBS="-lssl $LIBS"
12858 cat >conftest.$ac_ext <<_ACEOF
12859 #line $LINENO "configure"
12860 /* confdefs.h. */
12861 _ACEOF
12862 cat confdefs.h >>conftest.$ac_ext
12863 cat >>conftest.$ac_ext <<_ACEOF
12864 /* end confdefs.h. */
12866 /* Override any gcc2 internal prototype to avoid an error. */
12867 #ifdef __cplusplus
12868 extern "C"
12869 #endif
12870 /* We use char because int might match the return type of a gcc2
12871 builtin and then its argument prototype would still apply. */
12872 char SSL_library_init ();
12874 main ()
12876 SSL_library_init ();
12878 return 0;
12880 _ACEOF
12881 rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12883 (eval $ac_link) 2>&5
12884 ac_status=$?
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try='test -s conftest$ac_exeext'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12894 if test "x$ac_cv_lib_soname_ssl" = "x"
12895 then
12896 ac_cv_lib_soname_ssl="libssl.so"
12898 else
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12902 ac_cv_lib_soname_ssl="libssl.so"
12904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_get_soname_save_LIBS
12907 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
12908 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
12909 if test "x$ac_cv_lib_soname_ssl" != xNONE
12910 then
12911 cat >>confdefs.h <<_ACEOF
12912 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
12913 _ACEOF
12916 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
12917 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
12918 if test "${ac_cv_lib_soname_crypto+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921 ac_get_soname_save_LIBS=$LIBS
12922 LIBS="-lcrypto $LIBS"
12923 cat >conftest.$ac_ext <<_ACEOF
12924 #line $LINENO "configure"
12925 /* confdefs.h. */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12931 /* Override any gcc2 internal prototype to avoid an error. */
12932 #ifdef __cplusplus
12933 extern "C"
12934 #endif
12935 /* We use char because int might match the return type of a gcc2
12936 builtin and then its argument prototype would still apply. */
12937 char BIO_new_socket ();
12939 main ()
12941 BIO_new_socket ();
12943 return 0;
12945 _ACEOF
12946 rm -f conftest.$ac_objext conftest$ac_exeext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12948 (eval $ac_link) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
12952 { ac_try='test -s conftest$ac_exeext'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12958 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12959 if test "x$ac_cv_lib_soname_crypto" = "x"
12960 then
12961 ac_cv_lib_soname_crypto="libcrypto.so"
12963 else
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12967 ac_cv_lib_soname_crypto="libcrypto.so"
12969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12970 LIBS=$ac_get_soname_save_LIBS
12972 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
12973 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
12974 if test "x$ac_cv_lib_soname_crypto" != xNONE
12975 then
12976 cat >>confdefs.h <<_ACEOF
12977 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
12978 _ACEOF
12984 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12985 # for constant arguments. Useless!
12986 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12987 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12988 if test "${ac_cv_working_alloca_h+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 else
12991 cat >conftest.$ac_ext <<_ACEOF
12992 #line $LINENO "configure"
12993 /* confdefs.h. */
12994 _ACEOF
12995 cat confdefs.h >>conftest.$ac_ext
12996 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h. */
12998 #include <alloca.h>
13000 main ()
13002 char *p = (char *) alloca (2 * sizeof (int));
13004 return 0;
13006 _ACEOF
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13009 (eval $ac_link) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -s conftest$ac_exeext'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_working_alloca_h=yes
13020 else
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13024 ac_cv_working_alloca_h=no
13026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13028 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13029 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13030 if test $ac_cv_working_alloca_h = yes; then
13032 cat >>confdefs.h <<\_ACEOF
13033 #define HAVE_ALLOCA_H 1
13034 _ACEOF
13038 echo "$as_me:$LINENO: checking for alloca" >&5
13039 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13040 if test "${ac_cv_func_alloca_works+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 #ifdef __GNUC__
13051 # define alloca __builtin_alloca
13052 #else
13053 # ifdef _MSC_VER
13054 # include <malloc.h>
13055 # define alloca _alloca
13056 # else
13057 # if HAVE_ALLOCA_H
13058 # include <alloca.h>
13059 # else
13060 # ifdef _AIX
13061 #pragma alloca
13062 # else
13063 # ifndef alloca /* predefined by HP cc +Olibcalls */
13064 char *alloca ();
13065 # endif
13066 # endif
13067 # endif
13068 # endif
13069 #endif
13072 main ()
13074 char *p = (char *) alloca (1);
13076 return 0;
13078 _ACEOF
13079 rm -f conftest.$ac_objext conftest$ac_exeext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13081 (eval $ac_link) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
13085 { ac_try='test -s conftest$ac_exeext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13091 ac_cv_func_alloca_works=yes
13092 else
13093 echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13096 ac_cv_func_alloca_works=no
13098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13100 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13101 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13103 if test $ac_cv_func_alloca_works = yes; then
13105 cat >>confdefs.h <<\_ACEOF
13106 #define HAVE_ALLOCA 1
13107 _ACEOF
13109 else
13110 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13111 # that cause trouble. Some versions do not even contain alloca or
13112 # contain a buggy version. If you still want to use their alloca,
13113 # use ar to extract alloca.o from them instead of compiling alloca.c.
13115 ALLOCA=alloca.$ac_objext
13117 cat >>confdefs.h <<\_ACEOF
13118 #define C_ALLOCA 1
13119 _ACEOF
13122 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13123 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13124 if test "${ac_cv_os_cray+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127 cat >conftest.$ac_ext <<_ACEOF
13128 #line $LINENO "configure"
13129 /* confdefs.h. */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 #if defined(CRAY) && ! defined(CRAY2)
13135 webecray
13136 #else
13137 wenotbecray
13138 #endif
13140 _ACEOF
13141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13142 $EGREP "webecray" >/dev/null 2>&1; then
13143 ac_cv_os_cray=yes
13144 else
13145 ac_cv_os_cray=no
13147 rm -f conftest*
13150 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13151 echo "${ECHO_T}$ac_cv_os_cray" >&6
13152 if test $ac_cv_os_cray = yes; then
13153 for ac_func in _getb67 GETB67 getb67; do
13154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13155 echo "$as_me:$LINENO: checking for $ac_func" >&5
13156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13157 if eval "test \"\${$as_ac_var+set}\" = set"; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160 cat >conftest.$ac_ext <<_ACEOF
13161 #line $LINENO "configure"
13162 /* confdefs.h. */
13163 _ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13167 /* System header to define __stub macros and hopefully few prototypes,
13168 which can conflict with char $ac_func (); below.
13169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13170 <limits.h> exists even on freestanding compilers. */
13171 #ifdef __STDC__
13172 # include <limits.h>
13173 #else
13174 # include <assert.h>
13175 #endif
13176 /* Override any gcc2 internal prototype to avoid an error. */
13177 #ifdef __cplusplus
13178 extern "C"
13180 #endif
13181 /* We use char because int might match the return type of a gcc2
13182 builtin and then its argument prototype would still apply. */
13183 char $ac_func ();
13184 /* The GNU C library defines this for functions which it implements
13185 to always fail with ENOSYS. Some functions are actually named
13186 something starting with __ and the normal name is an alias. */
13187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13188 choke me
13189 #else
13190 char (*f) () = $ac_func;
13191 #endif
13192 #ifdef __cplusplus
13194 #endif
13197 main ()
13199 return f != $ac_func;
13201 return 0;
13203 _ACEOF
13204 rm -f conftest.$ac_objext conftest$ac_exeext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13206 (eval $ac_link) 2>&5
13207 ac_status=$?
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -s conftest$ac_exeext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216 eval "$as_ac_var=yes"
13217 else
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 eval "$as_ac_var=no"
13223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13227 if test `eval echo '${'$as_ac_var'}'` = yes; then
13229 cat >>confdefs.h <<_ACEOF
13230 #define CRAY_STACKSEG_END $ac_func
13231 _ACEOF
13233 break
13236 done
13239 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13240 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13241 if test "${ac_cv_c_stack_direction+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244 if test "$cross_compiling" = yes; then
13245 ac_cv_c_stack_direction=0
13246 else
13247 cat >conftest.$ac_ext <<_ACEOF
13248 #line $LINENO "configure"
13249 /* confdefs.h. */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13255 find_stack_direction ()
13257 static char *addr = 0;
13258 auto char dummy;
13259 if (addr == 0)
13261 addr = &dummy;
13262 return find_stack_direction ();
13264 else
13265 return (&dummy > addr) ? 1 : -1;
13269 main ()
13271 exit (find_stack_direction () < 0);
13273 _ACEOF
13274 rm -f conftest$ac_exeext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13276 (eval $ac_link) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 ac_cv_c_stack_direction=1
13286 else
13287 echo "$as_me: program exited with status $ac_status" >&5
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13291 ( exit $ac_status )
13292 ac_cv_c_stack_direction=-1
13294 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13297 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13298 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13300 cat >>confdefs.h <<_ACEOF
13301 #define STACK_DIRECTION $ac_cv_c_stack_direction
13302 _ACEOF
13362 for ac_func in \
13363 _lwp_create \
13364 _lwp_self \
13365 _pclose \
13366 _popen \
13367 _snprintf \
13368 _spawnvp \
13369 _stricmp \
13370 _strnicmp \
13371 _vsnprintf \
13372 chsize \
13373 clone \
13374 finite \
13375 fpclass \
13376 ftruncate \
13377 ftruncate64 \
13378 getnetbyaddr \
13379 getnetbyname \
13380 getopt_long \
13381 getpagesize \
13382 getprotobyname \
13383 getprotobynumber \
13384 getpwuid \
13385 getservbyport \
13386 gettimeofday \
13387 inet_network \
13388 lseek64 \
13389 lstat \
13390 memmove \
13391 mmap \
13392 pclose \
13393 popen \
13394 pread \
13395 pthread_getspecific \
13396 pthread_key_create \
13397 pthread_mutex_lock \
13398 pthread_mutex_unlock \
13399 pthread_setspecific \
13400 pwrite \
13401 rfork \
13402 select \
13403 sendmsg \
13404 settimeofday \
13405 sigaltstack \
13406 snprintf \
13407 statfs \
13408 strcasecmp \
13409 strerror \
13410 strncasecmp \
13411 tcgetattr \
13412 timegm \
13413 usleep \
13414 vfscanf \
13415 vsnprintf \
13416 wait4 \
13417 waitpid \
13420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13421 echo "$as_me:$LINENO: checking for $ac_func" >&5
13422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13423 if eval "test \"\${$as_ac_var+set}\" = set"; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426 cat >conftest.$ac_ext <<_ACEOF
13427 #line $LINENO "configure"
13428 /* confdefs.h. */
13429 _ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 /* System header to define __stub macros and hopefully few prototypes,
13434 which can conflict with char $ac_func (); below.
13435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13436 <limits.h> exists even on freestanding compilers. */
13437 #ifdef __STDC__
13438 # include <limits.h>
13439 #else
13440 # include <assert.h>
13441 #endif
13442 /* Override any gcc2 internal prototype to avoid an error. */
13443 #ifdef __cplusplus
13444 extern "C"
13446 #endif
13447 /* We use char because int might match the return type of a gcc2
13448 builtin and then its argument prototype would still apply. */
13449 char $ac_func ();
13450 /* The GNU C library defines this for functions which it implements
13451 to always fail with ENOSYS. Some functions are actually named
13452 something starting with __ and the normal name is an alias. */
13453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13454 choke me
13455 #else
13456 char (*f) () = $ac_func;
13457 #endif
13458 #ifdef __cplusplus
13460 #endif
13463 main ()
13465 return f != $ac_func;
13467 return 0;
13469 _ACEOF
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try='test -s conftest$ac_exeext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 eval "$as_ac_var=yes"
13483 else
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13487 eval "$as_ac_var=no"
13489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13493 if test `eval echo '${'$as_ac_var'}'` = yes; then
13494 cat >>confdefs.h <<_ACEOF
13495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13496 _ACEOF
13499 done
13578 for ac_header in \
13579 arpa/inet.h \
13580 arpa/nameser.h \
13581 cups/cups.h \
13582 direct.h \
13583 elf.h \
13584 float.h \
13585 getopt.h \
13586 ieeefp.h \
13587 io.h \
13588 jack/jack.h \
13589 libio.h \
13590 libutil.h \
13591 link.h \
13592 linux/cdrom.h \
13593 linux/hdreg.h \
13594 linux/input.h \
13595 linux/joystick.h \
13596 linux/major.h \
13597 linux/param.h \
13598 linux/serial.h \
13599 linux/ucdrom.h \
13600 machine/cpu.h \
13601 netdb.h \
13602 netinet/in.h \
13603 netinet/in_systm.h \
13604 netinet/tcp.h \
13605 netinet/tcp_fsm.h \
13606 openssl/ssl.h \
13607 pty.h \
13608 pwd.h \
13609 regex.h \
13610 sched.h \
13611 scsi/sg.h \
13612 socket.h \
13613 stdint.h \
13614 strings.h \
13615 sys/cdio.h \
13616 sys/errno.h \
13617 sys/file.h \
13618 sys/filio.h \
13619 sys/inttypes.h \
13620 sys/ioctl.h \
13621 sys/ipc.h \
13622 sys/link.h \
13623 sys/lwp.h \
13624 sys/mman.h \
13625 sys/modem.h \
13626 sys/msg.h \
13627 sys/param.h \
13628 sys/poll.h \
13629 sys/ptrace.h \
13630 sys/reg.h \
13631 sys/scsiio.h \
13632 sys/shm.h \
13633 sys/signal.h \
13634 sys/socket.h \
13635 sys/sockio.h \
13636 sys/statfs.h \
13637 sys/strtio.h \
13638 sys/syscall.h \
13639 sys/sysctl.h \
13640 sys/time.h \
13641 sys/times.h \
13642 sys/uio.h \
13643 sys/un.h \
13644 sys/v86.h \
13645 sys/v86intr.h \
13646 sys/vfs.h \
13647 sys/vm86.h \
13648 sys/wait.h \
13649 syscall.h \
13650 termios.h \
13651 unistd.h \
13652 utime.h \
13653 valgrind/memcheck.h
13656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13658 echo "$as_me:$LINENO: checking for $ac_header" >&5
13659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13665 else
13666 # Is the header compilable?
13667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13669 cat >conftest.$ac_ext <<_ACEOF
13670 #line $LINENO "configure"
13671 /* confdefs.h. */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 $ac_includes_default
13677 #include <$ac_header>
13678 _ACEOF
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -s conftest.$ac_objext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_header_compiler=yes
13692 else
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 ac_header_compiler=no
13698 rm -f conftest.$ac_objext conftest.$ac_ext
13699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13700 echo "${ECHO_T}$ac_header_compiler" >&6
13702 # Is the header present?
13703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13705 cat >conftest.$ac_ext <<_ACEOF
13706 #line $LINENO "configure"
13707 /* confdefs.h. */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 #include <$ac_header>
13713 _ACEOF
13714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13716 ac_status=$?
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } >/dev/null; then
13722 if test -s conftest.err; then
13723 ac_cpp_err=$ac_c_preproc_warn_flag
13724 else
13725 ac_cpp_err=
13727 else
13728 ac_cpp_err=yes
13730 if test -z "$ac_cpp_err"; then
13731 ac_header_preproc=yes
13732 else
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13736 ac_header_preproc=no
13738 rm -f conftest.err conftest.$ac_ext
13739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13740 echo "${ECHO_T}$ac_header_preproc" >&6
13742 # So? What about this header?
13743 case $ac_header_compiler:$ac_header_preproc in
13744 yes:no )
13745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13750 cat <<\_ASBOX
13751 ## ------------------------------------ ##
13752 ## Report this to bug-autoconf@gnu.org. ##
13753 ## ------------------------------------ ##
13754 _ASBOX
13756 sed "s/^/$as_me: WARNING: /" >&2
13758 no:yes )
13759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13766 cat <<\_ASBOX
13767 ## ------------------------------------ ##
13768 ## Report this to bug-autoconf@gnu.org. ##
13769 ## ------------------------------------ ##
13770 _ASBOX
13772 sed "s/^/$as_me: WARNING: /" >&2
13774 esac
13775 echo "$as_me:$LINENO: checking for $ac_header" >&5
13776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780 eval "$as_ac_Header=$ac_header_preproc"
13782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13787 cat >>confdefs.h <<_ACEOF
13788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13789 _ACEOF
13793 done
13795 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13796 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13797 if test "${ac_cv_header_stat_broken+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800 cat >conftest.$ac_ext <<_ACEOF
13801 #line $LINENO "configure"
13802 /* confdefs.h. */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 #include <sys/types.h>
13808 #include <sys/stat.h>
13810 #if defined(S_ISBLK) && defined(S_IFDIR)
13811 # if S_ISBLK (S_IFDIR)
13812 You lose.
13813 # endif
13814 #endif
13816 #if defined(S_ISBLK) && defined(S_IFCHR)
13817 # if S_ISBLK (S_IFCHR)
13818 You lose.
13819 # endif
13820 #endif
13822 #if defined(S_ISLNK) && defined(S_IFREG)
13823 # if S_ISLNK (S_IFREG)
13824 You lose.
13825 # endif
13826 #endif
13828 #if defined(S_ISSOCK) && defined(S_IFREG)
13829 # if S_ISSOCK (S_IFREG)
13830 You lose.
13831 # endif
13832 #endif
13834 _ACEOF
13835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13836 $EGREP "You lose" >/dev/null 2>&1; then
13837 ac_cv_header_stat_broken=yes
13838 else
13839 ac_cv_header_stat_broken=no
13841 rm -f conftest*
13844 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13845 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13846 if test $ac_cv_header_stat_broken = yes; then
13848 cat >>confdefs.h <<\_ACEOF
13849 #define STAT_MACROS_BROKEN 1
13850 _ACEOF
13858 for ac_header in sys/mount.h sys/user.h
13860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13861 echo "$as_me:$LINENO: checking for $ac_header" >&5
13862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866 cat >conftest.$ac_ext <<_ACEOF
13867 #line $LINENO "configure"
13868 /* confdefs.h. */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h. */
13873 #include <sys/types.h>
13874 #if HAVE_SYS_PARAM_H
13875 # include <sys/param.h>
13876 #endif
13878 #include <$ac_header>
13879 _ACEOF
13880 rm -f conftest.$ac_objext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13882 (eval $ac_compile) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -s conftest.$ac_objext'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 eval "$as_ac_Header=yes"
13893 else
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 eval "$as_ac_Header=no"
13899 rm -f conftest.$ac_objext conftest.$ac_ext
13901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13904 cat >>confdefs.h <<_ACEOF
13905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13906 _ACEOF
13910 done
13919 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h resolv.h
13921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13922 echo "$as_me:$LINENO: checking for $ac_header" >&5
13923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927 cat >conftest.$ac_ext <<_ACEOF
13928 #line $LINENO "configure"
13929 /* confdefs.h. */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 #include <sys/types.h>
13935 #if HAVE_SYS_SOCKET_H
13936 # include <sys/socket.h>
13937 #endif
13939 #include <$ac_header>
13940 _ACEOF
13941 rm -f conftest.$ac_objext
13942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13943 (eval $ac_compile) 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try='test -s conftest.$ac_objext'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
13953 eval "$as_ac_Header=yes"
13954 else
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13958 eval "$as_ac_Header=no"
13960 rm -f conftest.$ac_objext conftest.$ac_ext
13962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13965 cat >>confdefs.h <<_ACEOF
13966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13967 _ACEOF
13971 done
13975 for ac_header in netinet/ip.h
13977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13978 echo "$as_me:$LINENO: checking for $ac_header" >&5
13979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 else
13983 cat >conftest.$ac_ext <<_ACEOF
13984 #line $LINENO "configure"
13985 /* confdefs.h. */
13986 _ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13990 #include <sys/types.h>
13991 #if HAVE_SYS_SOCKET_H
13992 # include <sys/socket.h>
13993 #endif
13994 #if HAVE_NETINET_IN_SYSTM_H
13995 # include <netinet/in_systm.h>
13996 #endif
13998 #include <$ac_header>
13999 _ACEOF
14000 rm -f conftest.$ac_objext
14001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14002 (eval $ac_compile) 2>&5
14003 ac_status=$?
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } &&
14006 { ac_try='test -s conftest.$ac_objext'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 eval "$as_ac_Header=yes"
14013 else
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14017 eval "$as_ac_Header=no"
14019 rm -f conftest.$ac_objext conftest.$ac_ext
14021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14024 cat >>confdefs.h <<_ACEOF
14025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14026 _ACEOF
14030 done
14034 for ac_header in ucontext.h
14036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14037 echo "$as_me:$LINENO: checking for $ac_header" >&5
14038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042 cat >conftest.$ac_ext <<_ACEOF
14043 #line $LINENO "configure"
14044 /* confdefs.h. */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049 #include <signal.h>
14051 #include <$ac_header>
14052 _ACEOF
14053 rm -f conftest.$ac_objext
14054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14055 (eval $ac_compile) 2>&5
14056 ac_status=$?
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } &&
14059 { ac_try='test -s conftest.$ac_objext'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14062 ac_status=$?
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; }; then
14065 eval "$as_ac_Header=yes"
14066 else
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14070 eval "$as_ac_Header=no"
14072 rm -f conftest.$ac_objext conftest.$ac_ext
14074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14077 cat >>confdefs.h <<_ACEOF
14078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14079 _ACEOF
14083 done
14087 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
14088 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
14089 if test "${ac_cv_c_ipx_gnu+set}" = set; then
14090 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 else
14092 cat >conftest.$ac_ext <<_ACEOF
14093 #line $LINENO "configure"
14094 /* confdefs.h. */
14095 _ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14099 #include <sys/types.h>
14100 #ifdef HAVE_SYS_SOCKET_H
14101 # include <sys/socket.h>
14102 #endif
14103 #include <netipx/ipx.h>
14105 main ()
14107 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14109 return 0;
14111 _ACEOF
14112 rm -f conftest.$ac_objext
14113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14114 (eval $ac_compile) 2>&5
14115 ac_status=$?
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } &&
14118 { ac_try='test -s conftest.$ac_objext'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14124 ac_cv_c_ipx_gnu="yes"
14125 else
14126 echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14129 ac_cv_c_ipx_gnu="no"
14131 rm -f conftest.$ac_objext conftest.$ac_ext
14134 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
14135 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
14136 if test "$ac_cv_c_ipx_gnu" = "yes"
14137 then
14139 cat >>confdefs.h <<\_ACEOF
14140 #define HAVE_IPX_GNU 1
14141 _ACEOF
14145 if test "$ac_cv_c_ipx_gnu" = "no"
14146 then
14147 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
14148 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
14149 if test "${ac_cv_c_ipx_linux+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152 cat >conftest.$ac_ext <<_ACEOF
14153 #line $LINENO "configure"
14154 /* confdefs.h. */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14159 #include <sys/types.h>
14160 #ifdef HAVE_SYS_SOCKET_H
14161 # include <sys/socket.h>
14162 #endif
14163 #include <asm/types.h>
14164 #include <linux/ipx.h>
14166 main ()
14168 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14170 return 0;
14172 _ACEOF
14173 rm -f conftest.$ac_objext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14175 (eval $ac_compile) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try='test -s conftest.$ac_objext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_cv_c_ipx_linux="yes"
14186 else
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14190 ac_cv_c_ipx_linux="no"
14192 rm -f conftest.$ac_objext conftest.$ac_ext
14195 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
14196 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
14197 if test "$ac_cv_c_ipx_linux" = "yes"
14198 then
14200 cat >>confdefs.h <<\_ACEOF
14201 #define HAVE_IPX_LINUX 1
14202 _ACEOF
14208 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14209 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14210 if test "${ac_cv_c_const+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213 cat >conftest.$ac_ext <<_ACEOF
14214 #line $LINENO "configure"
14215 /* confdefs.h. */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14222 main ()
14224 /* FIXME: Include the comments suggested by Paul. */
14225 #ifndef __cplusplus
14226 /* Ultrix mips cc rejects this. */
14227 typedef int charset[2];
14228 const charset x;
14229 /* SunOS 4.1.1 cc rejects this. */
14230 char const *const *ccp;
14231 char **p;
14232 /* NEC SVR4.0.2 mips cc rejects this. */
14233 struct point {int x, y;};
14234 static struct point const zero = {0,0};
14235 /* AIX XL C 1.02.0.0 rejects this.
14236 It does not let you subtract one const X* pointer from another in
14237 an arm of an if-expression whose if-part is not a constant
14238 expression */
14239 const char *g = "string";
14240 ccp = &g + (g ? g-g : 0);
14241 /* HPUX 7.0 cc rejects these. */
14242 ++ccp;
14243 p = (char**) ccp;
14244 ccp = (char const *const *) p;
14245 { /* SCO 3.2v4 cc rejects this. */
14246 char *t;
14247 char const *s = 0 ? (char *) 0 : (char const *) 0;
14249 *t++ = 0;
14251 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14252 int x[] = {25, 17};
14253 const int *foo = &x[0];
14254 ++foo;
14256 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14257 typedef const int *iptr;
14258 iptr p = 0;
14259 ++p;
14261 { /* AIX XL C 1.02.0.0 rejects this saying
14262 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14263 struct s { int j; const int *ap[3]; };
14264 struct s *b; b->j = 5;
14266 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14267 const int foo = 10;
14269 #endif
14272 return 0;
14274 _ACEOF
14275 rm -f conftest.$ac_objext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14277 (eval $ac_compile) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
14281 { ac_try='test -s conftest.$ac_objext'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; }; then
14287 ac_cv_c_const=yes
14288 else
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14292 ac_cv_c_const=no
14294 rm -f conftest.$ac_objext conftest.$ac_ext
14296 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14297 echo "${ECHO_T}$ac_cv_c_const" >&6
14298 if test $ac_cv_c_const = no; then
14300 cat >>confdefs.h <<\_ACEOF
14301 #define const
14302 _ACEOF
14306 echo "$as_me:$LINENO: checking for inline" >&5
14307 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14308 if test "${ac_cv_c_inline+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311 ac_cv_c_inline=no
14312 for ac_kw in inline __inline__ __inline; do
14313 cat >conftest.$ac_ext <<_ACEOF
14314 #line $LINENO "configure"
14315 /* confdefs.h. */
14316 _ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14320 #ifndef __cplusplus
14321 typedef int foo_t;
14322 static $ac_kw foo_t static_foo () {return 0; }
14323 $ac_kw foo_t foo () {return 0; }
14324 #endif
14326 _ACEOF
14327 rm -f conftest.$ac_objext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329 (eval $ac_compile) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_c_inline=$ac_kw; break
14340 else
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14345 rm -f conftest.$ac_objext conftest.$ac_ext
14346 done
14349 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14350 echo "${ECHO_T}$ac_cv_c_inline" >&6
14351 case $ac_cv_c_inline in
14352 inline | yes) ;;
14354 cat >>confdefs.h <<\_ACEOF
14355 #define inline
14356 _ACEOF
14358 *) cat >>confdefs.h <<_ACEOF
14359 #define inline $ac_cv_c_inline
14360 _ACEOF
14362 esac
14364 echo "$as_me:$LINENO: checking for mode_t" >&5
14365 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14366 if test "${ac_cv_type_mode_t+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369 cat >conftest.$ac_ext <<_ACEOF
14370 #line $LINENO "configure"
14371 /* confdefs.h. */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14376 $ac_includes_default
14378 main ()
14380 if ((mode_t *) 0)
14381 return 0;
14382 if (sizeof (mode_t))
14383 return 0;
14385 return 0;
14387 _ACEOF
14388 rm -f conftest.$ac_objext
14389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14390 (eval $ac_compile) 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } &&
14394 { ac_try='test -s conftest.$ac_objext'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14397 ac_status=$?
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; }; then
14400 ac_cv_type_mode_t=yes
14401 else
14402 echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14405 ac_cv_type_mode_t=no
14407 rm -f conftest.$ac_objext conftest.$ac_ext
14409 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14410 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14411 if test $ac_cv_type_mode_t = yes; then
14413 cat >>confdefs.h <<_ACEOF
14414 #define HAVE_MODE_T 1
14415 _ACEOF
14419 echo "$as_me:$LINENO: checking for off_t" >&5
14420 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14421 if test "${ac_cv_type_off_t+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424 cat >conftest.$ac_ext <<_ACEOF
14425 #line $LINENO "configure"
14426 /* confdefs.h. */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 $ac_includes_default
14433 main ()
14435 if ((off_t *) 0)
14436 return 0;
14437 if (sizeof (off_t))
14438 return 0;
14440 return 0;
14442 _ACEOF
14443 rm -f conftest.$ac_objext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14445 (eval $ac_compile) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
14449 { ac_try='test -s conftest.$ac_objext'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 ac_cv_type_off_t=yes
14456 else
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 ac_cv_type_off_t=no
14462 rm -f conftest.$ac_objext conftest.$ac_ext
14464 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14465 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14466 if test $ac_cv_type_off_t = yes; then
14468 cat >>confdefs.h <<_ACEOF
14469 #define HAVE_OFF_T 1
14470 _ACEOF
14474 echo "$as_me:$LINENO: checking for pid_t" >&5
14475 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14476 if test "${ac_cv_type_pid_t+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479 cat >conftest.$ac_ext <<_ACEOF
14480 #line $LINENO "configure"
14481 /* confdefs.h. */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14486 $ac_includes_default
14488 main ()
14490 if ((pid_t *) 0)
14491 return 0;
14492 if (sizeof (pid_t))
14493 return 0;
14495 return 0;
14497 _ACEOF
14498 rm -f conftest.$ac_objext
14499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14500 (eval $ac_compile) 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } &&
14504 { ac_try='test -s conftest.$ac_objext'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
14510 ac_cv_type_pid_t=yes
14511 else
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 ac_cv_type_pid_t=no
14517 rm -f conftest.$ac_objext conftest.$ac_ext
14519 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14520 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14521 if test $ac_cv_type_pid_t = yes; then
14523 cat >>confdefs.h <<_ACEOF
14524 #define HAVE_PID_T 1
14525 _ACEOF
14529 echo "$as_me:$LINENO: checking for size_t" >&5
14530 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14531 if test "${ac_cv_type_size_t+set}" = set; then
14532 echo $ECHO_N "(cached) $ECHO_C" >&6
14533 else
14534 cat >conftest.$ac_ext <<_ACEOF
14535 #line $LINENO "configure"
14536 /* confdefs.h. */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14541 $ac_includes_default
14543 main ()
14545 if ((size_t *) 0)
14546 return 0;
14547 if (sizeof (size_t))
14548 return 0;
14550 return 0;
14552 _ACEOF
14553 rm -f conftest.$ac_objext
14554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14555 (eval $ac_compile) 2>&5
14556 ac_status=$?
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try='test -s conftest.$ac_objext'
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; }; then
14565 ac_cv_type_size_t=yes
14566 else
14567 echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14570 ac_cv_type_size_t=no
14572 rm -f conftest.$ac_objext conftest.$ac_ext
14574 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14575 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14576 if test $ac_cv_type_size_t = yes; then
14578 cat >>confdefs.h <<_ACEOF
14579 #define HAVE_SIZE_T 1
14580 _ACEOF
14584 echo "$as_me:$LINENO: checking for ssize_t" >&5
14585 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14586 if test "${ac_cv_type_ssize_t+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 else
14589 cat >conftest.$ac_ext <<_ACEOF
14590 #line $LINENO "configure"
14591 /* confdefs.h. */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 $ac_includes_default
14598 main ()
14600 if ((ssize_t *) 0)
14601 return 0;
14602 if (sizeof (ssize_t))
14603 return 0;
14605 return 0;
14607 _ACEOF
14608 rm -f conftest.$ac_objext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
14614 { ac_try='test -s conftest.$ac_objext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_cv_type_ssize_t=yes
14621 else
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ac_cv_type_ssize_t=no
14627 rm -f conftest.$ac_objext conftest.$ac_ext
14629 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14630 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14631 if test $ac_cv_type_ssize_t = yes; then
14633 cat >>confdefs.h <<_ACEOF
14634 #define HAVE_SSIZE_T 1
14635 _ACEOF
14640 echo "$as_me:$LINENO: checking for long long" >&5
14641 echo $ECHO_N "checking for long long... $ECHO_C" >&6
14642 if test "${ac_cv_type_long_long+set}" = set; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 else
14645 cat >conftest.$ac_ext <<_ACEOF
14646 #line $LINENO "configure"
14647 /* confdefs.h. */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 $ac_includes_default
14654 main ()
14656 if ((long long *) 0)
14657 return 0;
14658 if (sizeof (long long))
14659 return 0;
14661 return 0;
14663 _ACEOF
14664 rm -f conftest.$ac_objext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14666 (eval $ac_compile) 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } &&
14670 { ac_try='test -s conftest.$ac_objext'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_cv_type_long_long=yes
14677 else
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_cv_type_long_long=no
14683 rm -f conftest.$ac_objext conftest.$ac_ext
14685 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14686 echo "${ECHO_T}$ac_cv_type_long_long" >&6
14688 echo "$as_me:$LINENO: checking size of long long" >&5
14689 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14690 if test "${ac_cv_sizeof_long_long+set}" = set; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 else
14693 if test "$ac_cv_type_long_long" = yes; then
14694 # The cast to unsigned long works around a bug in the HP C Compiler
14695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14697 # This bug is HP SR number 8606223364.
14698 if test "$cross_compiling" = yes; then
14699 # Depending upon the size, compute the lo and hi bounds.
14700 cat >conftest.$ac_ext <<_ACEOF
14701 #line $LINENO "configure"
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 $ac_includes_default
14709 main ()
14711 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14712 test_array [0] = 0
14715 return 0;
14717 _ACEOF
14718 rm -f conftest.$ac_objext
14719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
14724 { ac_try='test -s conftest.$ac_objext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 ac_lo=0 ac_mid=0
14731 while :; do
14732 cat >conftest.$ac_ext <<_ACEOF
14733 #line $LINENO "configure"
14734 /* confdefs.h. */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 $ac_includes_default
14741 main ()
14743 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14744 test_array [0] = 0
14747 return 0;
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752 (eval $ac_compile) 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try='test -s conftest.$ac_objext'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 ac_hi=$ac_mid; break
14763 else
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14767 ac_lo=`expr $ac_mid + 1`
14768 if test $ac_lo -le $ac_mid; then
14769 ac_lo= ac_hi=
14770 break
14772 ac_mid=`expr 2 '*' $ac_mid + 1`
14774 rm -f conftest.$ac_objext conftest.$ac_ext
14775 done
14776 else
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 cat >conftest.$ac_ext <<_ACEOF
14781 #line $LINENO "configure"
14782 /* confdefs.h. */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 $ac_includes_default
14789 main ()
14791 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14792 test_array [0] = 0
14795 return 0;
14797 _ACEOF
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_hi=-1 ac_mid=-1
14811 while :; do
14812 cat >conftest.$ac_ext <<_ACEOF
14813 #line $LINENO "configure"
14814 /* confdefs.h. */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 $ac_includes_default
14821 main ()
14823 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14824 test_array [0] = 0
14827 return 0;
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832 (eval $ac_compile) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try='test -s conftest.$ac_objext'
14837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14842 ac_lo=$ac_mid; break
14843 else
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14847 ac_hi=`expr '(' $ac_mid ')' - 1`
14848 if test $ac_mid -le $ac_hi; then
14849 ac_lo= ac_hi=
14850 break
14852 ac_mid=`expr 2 '*' $ac_mid`
14854 rm -f conftest.$ac_objext conftest.$ac_ext
14855 done
14856 else
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ac_lo= ac_hi=
14862 rm -f conftest.$ac_objext conftest.$ac_ext
14864 rm -f conftest.$ac_objext conftest.$ac_ext
14865 # Binary search between lo and hi bounds.
14866 while test "x$ac_lo" != "x$ac_hi"; do
14867 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14868 cat >conftest.$ac_ext <<_ACEOF
14869 #line $LINENO "configure"
14870 /* confdefs.h. */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875 $ac_includes_default
14877 main ()
14879 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14880 test_array [0] = 0
14883 return 0;
14885 _ACEOF
14886 rm -f conftest.$ac_objext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14888 (eval $ac_compile) 2>&5
14889 ac_status=$?
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -s conftest.$ac_objext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14895 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 ac_hi=$ac_mid
14899 else
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 ac_lo=`expr '(' $ac_mid ')' + 1`
14905 rm -f conftest.$ac_objext conftest.$ac_ext
14906 done
14907 case $ac_lo in
14908 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14909 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14910 See \`config.log' for more details." >&5
14911 echo "$as_me: error: cannot compute sizeof (long long), 77
14912 See \`config.log' for more details." >&2;}
14913 { (exit 1); exit 1; }; } ;;
14914 esac
14915 else
14916 if test "$cross_compiling" = yes; then
14917 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14918 See \`config.log' for more details." >&5
14919 echo "$as_me: error: cannot run test program while cross compiling
14920 See \`config.log' for more details." >&2;}
14921 { (exit 1); exit 1; }; }
14922 else
14923 cat >conftest.$ac_ext <<_ACEOF
14924 #line $LINENO "configure"
14925 /* confdefs.h. */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 $ac_includes_default
14931 long longval () { return (long) (sizeof (long long)); }
14932 unsigned long ulongval () { return (long) (sizeof (long long)); }
14933 #include <stdio.h>
14934 #include <stdlib.h>
14936 main ()
14939 FILE *f = fopen ("conftest.val", "w");
14940 if (! f)
14941 exit (1);
14942 if (((long) (sizeof (long long))) < 0)
14944 long i = longval ();
14945 if (i != ((long) (sizeof (long long))))
14946 exit (1);
14947 fprintf (f, "%ld\n", i);
14949 else
14951 unsigned long i = ulongval ();
14952 if (i != ((long) (sizeof (long long))))
14953 exit (1);
14954 fprintf (f, "%lu\n", i);
14956 exit (ferror (f) || fclose (f) != 0);
14959 return 0;
14961 _ACEOF
14962 rm -f conftest$ac_exeext
14963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14964 (eval $ac_link) 2>&5
14965 ac_status=$?
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_cv_sizeof_long_long=`cat conftest.val`
14974 else
14975 echo "$as_me: program exited with status $ac_status" >&5
14976 echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14979 ( exit $ac_status )
14980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14981 See \`config.log' for more details." >&5
14982 echo "$as_me: error: cannot compute sizeof (long long), 77
14983 See \`config.log' for more details." >&2;}
14984 { (exit 1); exit 1; }; }
14986 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14989 rm -f conftest.val
14990 else
14991 ac_cv_sizeof_long_long=0
14994 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14995 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
14996 cat >>confdefs.h <<_ACEOF
14997 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14998 _ACEOF
15002 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
15003 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
15004 if test "${wine_cv_linux_input_h+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 else
15007 cat >conftest.$ac_ext <<_ACEOF
15008 #line $LINENO "configure"
15009 /* confdefs.h. */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15015 #include <linux/input.h>
15018 main ()
15021 int foo = EVIOCGBIT(EV_ABS,42);
15022 int bar = BTN_PINKIE;
15023 int fortytwo = 42;
15026 return 0;
15028 _ACEOF
15029 rm -f conftest.$ac_objext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031 (eval $ac_compile) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } &&
15035 { ac_try='test -s conftest.$ac_objext'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 wine_cv_linux_input_h=yes
15042 else
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 wine_cv_linux_input_h=no
15048 rm -f conftest.$ac_objext conftest.$ac_ext
15051 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
15052 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
15053 if test "$wine_cv_linux_input_h" = "yes"
15054 then
15056 cat >>confdefs.h <<\_ACEOF
15057 #define HAVE_CORRECT_LINUXINPUT_H 1
15058 _ACEOF
15063 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15064 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
15065 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15067 else
15068 cat >conftest.$ac_ext <<_ACEOF
15069 #line $LINENO "configure"
15070 /* confdefs.h. */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15076 #include <netdb.h>
15079 main ()
15082 char *name=NULL;
15083 struct hostent he;
15084 struct hostent *result;
15085 char *buf=NULL;
15086 int bufsize=0;
15087 int res,errnr;
15088 char *addr=NULL;
15089 int addrlen=0;
15090 int addrtype=0;
15091 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15092 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15095 return 0;
15097 _ACEOF
15098 rm -f conftest.$ac_objext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15100 (eval $ac_compile) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -s conftest.$ac_objext'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 wine_cv_linux_gethostbyname_r_6=yes
15111 else
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 wine_cv_linux_gethostbyname_r_6=no
15118 rm -f conftest.$ac_objext conftest.$ac_ext
15121 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
15122 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
15123 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15124 then
15126 cat >>confdefs.h <<\_ACEOF
15127 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
15128 _ACEOF
15132 if test "$ac_cv_header_linux_joystick_h" = "yes"
15133 then
15134 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15135 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15136 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139 cat >conftest.$ac_ext <<_ACEOF
15140 #line $LINENO "configure"
15141 /* confdefs.h. */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15147 #include <sys/ioctl.h>
15148 #include <linux/joystick.h>
15150 struct js_event blub;
15151 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15152 #error "no 2.2 header"
15153 #endif
15156 main ()
15158 /*empty*/
15160 return 0;
15162 _ACEOF
15163 rm -f conftest.$ac_objext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15165 (eval $ac_compile) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -s conftest.$ac_objext'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15175 wine_cv_linux_joystick_22_api=yes
15176 else
15177 echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15180 wine_cv_linux_joystick_22_api=no
15182 rm -f conftest.$ac_objext conftest.$ac_ext
15185 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
15186 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
15187 if test "$wine_cv_linux_joystick_22_api" = "yes"
15188 then
15190 cat >>confdefs.h <<\_ACEOF
15191 #define HAVE_LINUX_22_JOYSTICK_API 1
15192 _ACEOF
15198 if test "$ac_cv_header_sys_vfs_h" = "yes"
15199 then
15200 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
15201 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
15202 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 else
15205 cat >conftest.$ac_ext <<_ACEOF
15206 #line $LINENO "configure"
15207 /* confdefs.h. */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15213 #include <sys/types.h>
15214 #ifdef HAVE_SYS_PARAM_H
15215 # include <sys/param.h>
15216 #endif
15217 #include <sys/vfs.h>
15220 main ()
15223 struct statfs stfs;
15225 memset(&stfs,0,sizeof(stfs));
15228 return 0;
15230 _ACEOF
15231 rm -f conftest.$ac_objext
15232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15233 (eval $ac_compile) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } &&
15237 { ac_try='test -s conftest.$ac_objext'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 wine_cv_sys_vfs_has_statfs=yes
15244 else
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15248 wine_cv_sys_vfs_has_statfs=no
15251 rm -f conftest.$ac_objext conftest.$ac_ext
15254 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
15255 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
15256 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15257 then
15259 cat >>confdefs.h <<\_ACEOF
15260 #define STATFS_DEFINED_BY_SYS_VFS 1
15261 _ACEOF
15266 if test "$ac_cv_header_sys_statfs_h" = "yes"
15267 then
15268 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
15269 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
15270 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273 cat >conftest.$ac_ext <<_ACEOF
15274 #line $LINENO "configure"
15275 /* confdefs.h. */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15281 #include <sys/types.h>
15282 #ifdef HAVE_SYS_PARAM_H
15283 # include <sys/param.h>
15284 #endif
15285 #include <sys/statfs.h>
15288 main ()
15291 struct statfs stfs;
15294 return 0;
15296 _ACEOF
15297 rm -f conftest.$ac_objext
15298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15299 (eval $ac_compile) 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } &&
15303 { ac_try='test -s conftest.$ac_objext'
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15306 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; }; then
15309 wine_cv_sys_statfs_has_statfs=yes
15310 else
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 wine_cv_sys_statfs_has_statfs=no
15317 rm -f conftest.$ac_objext conftest.$ac_ext
15320 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
15321 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
15322 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15323 then
15325 cat >>confdefs.h <<\_ACEOF
15326 #define STATFS_DEFINED_BY_SYS_STATFS 1
15327 _ACEOF
15332 if test "$ac_cv_header_sys_mount_h" = "yes"
15333 then
15334 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
15335 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
15336 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15339 cat >conftest.$ac_ext <<_ACEOF
15340 #line $LINENO "configure"
15341 /* confdefs.h. */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15347 #include <sys/types.h>
15348 #ifdef HAVE_SYS_PARAM_H
15349 # include <sys/param.h>
15350 #endif
15351 #include <sys/mount.h>
15354 main ()
15357 struct statfs stfs;
15360 return 0;
15362 _ACEOF
15363 rm -f conftest.$ac_objext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15365 (eval $ac_compile) 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
15369 { ac_try='test -s conftest.$ac_objext'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; }; then
15375 wine_cv_sys_mount_has_statfs=yes
15376 else
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15380 wine_cv_sys_mount_has_statfs=no
15383 rm -f conftest.$ac_objext conftest.$ac_ext
15386 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
15387 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
15388 if test "$wine_cv_sys_mount_has_statfs" = "yes"
15389 then
15391 cat >>confdefs.h <<\_ACEOF
15392 #define STATFS_DEFINED_BY_SYS_MOUNT 1
15393 _ACEOF
15399 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
15400 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
15401 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15403 else
15404 cat >conftest.$ac_ext <<_ACEOF
15405 #line $LINENO "configure"
15406 /* confdefs.h. */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 #include <sys/types.h>
15412 #ifdef HAVE_SYS_PARAM_H
15413 # include <sys/param.h>
15414 #endif
15415 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15416 # include <sys/mount.h>
15417 #else
15418 # ifdef STATFS_DEFINED_BY_SYS_VFS
15419 # include <sys/vfs.h>
15420 # else
15421 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15422 # include <sys/statfs.h>
15423 # endif
15424 # endif
15425 #endif
15428 main ()
15430 static struct statfs ac_aggr;
15431 if (ac_aggr.f_bfree)
15432 return 0;
15434 return 0;
15436 _ACEOF
15437 rm -f conftest.$ac_objext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15439 (eval $ac_compile) 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -s conftest.$ac_objext'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_cv_member_struct_statfs_f_bfree=yes
15450 else
15451 echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15454 cat >conftest.$ac_ext <<_ACEOF
15455 #line $LINENO "configure"
15456 /* confdefs.h. */
15457 _ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 #include <sys/types.h>
15462 #ifdef HAVE_SYS_PARAM_H
15463 # include <sys/param.h>
15464 #endif
15465 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15466 # include <sys/mount.h>
15467 #else
15468 # ifdef STATFS_DEFINED_BY_SYS_VFS
15469 # include <sys/vfs.h>
15470 # else
15471 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15472 # include <sys/statfs.h>
15473 # endif
15474 # endif
15475 #endif
15478 main ()
15480 static struct statfs ac_aggr;
15481 if (sizeof ac_aggr.f_bfree)
15482 return 0;
15484 return 0;
15486 _ACEOF
15487 rm -f conftest.$ac_objext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15489 (eval $ac_compile) 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
15493 { ac_try='test -s conftest.$ac_objext'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; }; then
15499 ac_cv_member_struct_statfs_f_bfree=yes
15500 else
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 ac_cv_member_struct_statfs_f_bfree=no
15506 rm -f conftest.$ac_objext conftest.$ac_ext
15508 rm -f conftest.$ac_objext conftest.$ac_ext
15510 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
15511 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
15512 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
15514 cat >>confdefs.h <<_ACEOF
15515 #define HAVE_STRUCT_STATFS_F_BFREE 1
15516 _ACEOF
15520 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
15521 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
15522 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15524 else
15525 cat >conftest.$ac_ext <<_ACEOF
15526 #line $LINENO "configure"
15527 /* confdefs.h. */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15532 #include <sys/types.h>
15533 #ifdef HAVE_SYS_PARAM_H
15534 # include <sys/param.h>
15535 #endif
15536 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15537 # include <sys/mount.h>
15538 #else
15539 # ifdef STATFS_DEFINED_BY_SYS_VFS
15540 # include <sys/vfs.h>
15541 # else
15542 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15543 # include <sys/statfs.h>
15544 # endif
15545 # endif
15546 #endif
15549 main ()
15551 static struct statfs ac_aggr;
15552 if (ac_aggr.f_bavail)
15553 return 0;
15555 return 0;
15557 _ACEOF
15558 rm -f conftest.$ac_objext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15560 (eval $ac_compile) 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -s conftest.$ac_objext'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 ac_cv_member_struct_statfs_f_bavail=yes
15571 else
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 cat >conftest.$ac_ext <<_ACEOF
15576 #line $LINENO "configure"
15577 /* confdefs.h. */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 #include <sys/types.h>
15583 #ifdef HAVE_SYS_PARAM_H
15584 # include <sys/param.h>
15585 #endif
15586 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15587 # include <sys/mount.h>
15588 #else
15589 # ifdef STATFS_DEFINED_BY_SYS_VFS
15590 # include <sys/vfs.h>
15591 # else
15592 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15593 # include <sys/statfs.h>
15594 # endif
15595 # endif
15596 #endif
15599 main ()
15601 static struct statfs ac_aggr;
15602 if (sizeof ac_aggr.f_bavail)
15603 return 0;
15605 return 0;
15607 _ACEOF
15608 rm -f conftest.$ac_objext
15609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15610 (eval $ac_compile) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -s conftest.$ac_objext'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 ac_cv_member_struct_statfs_f_bavail=yes
15621 else
15622 echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15625 ac_cv_member_struct_statfs_f_bavail=no
15627 rm -f conftest.$ac_objext conftest.$ac_ext
15629 rm -f conftest.$ac_objext conftest.$ac_ext
15631 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
15632 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
15633 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
15635 cat >>confdefs.h <<_ACEOF
15636 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15637 _ACEOF
15643 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
15644 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
15645 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 else
15648 cat >conftest.$ac_ext <<_ACEOF
15649 #line $LINENO "configure"
15650 /* confdefs.h. */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 #include <sys/types.h>
15656 #ifdef HAVE_SYS_SOCKET_H
15657 # include <sys/socket.h>
15658 #endif
15659 #ifdef HAVE_SYS_UN_H
15660 # include <sys/un.h>
15661 #endif
15664 main ()
15666 static struct msghdr ac_aggr;
15667 if (ac_aggr.msg_accrights)
15668 return 0;
15670 return 0;
15672 _ACEOF
15673 rm -f conftest.$ac_objext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675 (eval $ac_compile) 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
15679 { ac_try='test -s conftest.$ac_objext'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 ac_cv_member_struct_msghdr_msg_accrights=yes
15686 else
15687 echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15690 cat >conftest.$ac_ext <<_ACEOF
15691 #line $LINENO "configure"
15692 /* confdefs.h. */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15697 #include <sys/types.h>
15698 #ifdef HAVE_SYS_SOCKET_H
15699 # include <sys/socket.h>
15700 #endif
15701 #ifdef HAVE_SYS_UN_H
15702 # include <sys/un.h>
15703 #endif
15706 main ()
15708 static struct msghdr ac_aggr;
15709 if (sizeof ac_aggr.msg_accrights)
15710 return 0;
15712 return 0;
15714 _ACEOF
15715 rm -f conftest.$ac_objext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717 (eval $ac_compile) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } &&
15721 { ac_try='test -s conftest.$ac_objext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 ac_cv_member_struct_msghdr_msg_accrights=yes
15728 else
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15732 ac_cv_member_struct_msghdr_msg_accrights=no
15734 rm -f conftest.$ac_objext conftest.$ac_ext
15736 rm -f conftest.$ac_objext conftest.$ac_ext
15738 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
15739 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
15740 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
15742 cat >>confdefs.h <<_ACEOF
15743 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15744 _ACEOF
15748 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15749 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
15750 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753 cat >conftest.$ac_ext <<_ACEOF
15754 #line $LINENO "configure"
15755 /* confdefs.h. */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 #include <sys/types.h>
15761 #ifdef HAVE_SYS_SOCKET_H
15762 # include <sys/socket.h>
15763 #endif
15764 #ifdef HAVE_SYS_UN_H
15765 # include <sys/un.h>
15766 #endif
15769 main ()
15771 static struct sockaddr ac_aggr;
15772 if (ac_aggr.sa_len)
15773 return 0;
15775 return 0;
15777 _ACEOF
15778 rm -f conftest.$ac_objext
15779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15780 (eval $ac_compile) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } &&
15784 { ac_try='test -s conftest.$ac_objext'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_cv_member_struct_sockaddr_sa_len=yes
15791 else
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15795 cat >conftest.$ac_ext <<_ACEOF
15796 #line $LINENO "configure"
15797 /* confdefs.h. */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 #include <sys/types.h>
15803 #ifdef HAVE_SYS_SOCKET_H
15804 # include <sys/socket.h>
15805 #endif
15806 #ifdef HAVE_SYS_UN_H
15807 # include <sys/un.h>
15808 #endif
15811 main ()
15813 static struct sockaddr ac_aggr;
15814 if (sizeof ac_aggr.sa_len)
15815 return 0;
15817 return 0;
15819 _ACEOF
15820 rm -f conftest.$ac_objext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15822 (eval $ac_compile) 2>&5
15823 ac_status=$?
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } &&
15826 { ac_try='test -s conftest.$ac_objext'
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; }; then
15832 ac_cv_member_struct_sockaddr_sa_len=yes
15833 else
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 ac_cv_member_struct_sockaddr_sa_len=no
15839 rm -f conftest.$ac_objext conftest.$ac_ext
15841 rm -f conftest.$ac_objext conftest.$ac_ext
15843 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15844 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
15845 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15847 cat >>confdefs.h <<_ACEOF
15848 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15849 _ACEOF
15853 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
15854 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
15855 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15857 else
15858 cat >conftest.$ac_ext <<_ACEOF
15859 #line $LINENO "configure"
15860 /* confdefs.h. */
15861 _ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h. */
15865 #include <sys/types.h>
15866 #ifdef HAVE_SYS_SOCKET_H
15867 # include <sys/socket.h>
15868 #endif
15869 #ifdef HAVE_SYS_UN_H
15870 # include <sys/un.h>
15871 #endif
15874 main ()
15876 static struct sockaddr_un ac_aggr;
15877 if (ac_aggr.sun_len)
15878 return 0;
15880 return 0;
15882 _ACEOF
15883 rm -f conftest.$ac_objext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15885 (eval $ac_compile) 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_cv_member_struct_sockaddr_un_sun_len=yes
15896 else
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 cat >conftest.$ac_ext <<_ACEOF
15901 #line $LINENO "configure"
15902 /* confdefs.h. */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15907 #include <sys/types.h>
15908 #ifdef HAVE_SYS_SOCKET_H
15909 # include <sys/socket.h>
15910 #endif
15911 #ifdef HAVE_SYS_UN_H
15912 # include <sys/un.h>
15913 #endif
15916 main ()
15918 static struct sockaddr_un ac_aggr;
15919 if (sizeof ac_aggr.sun_len)
15920 return 0;
15922 return 0;
15924 _ACEOF
15925 rm -f conftest.$ac_objext
15926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15927 (eval $ac_compile) 2>&5
15928 ac_status=$?
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } &&
15931 { ac_try='test -s conftest.$ac_objext'
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933 (eval $ac_try) 2>&5
15934 ac_status=$?
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; }; then
15937 ac_cv_member_struct_sockaddr_un_sun_len=yes
15938 else
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15942 ac_cv_member_struct_sockaddr_un_sun_len=no
15944 rm -f conftest.$ac_objext conftest.$ac_ext
15946 rm -f conftest.$ac_objext conftest.$ac_ext
15948 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
15949 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
15950 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
15952 cat >>confdefs.h <<_ACEOF
15953 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15954 _ACEOF
15960 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
15961 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
15962 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965 cat >conftest.$ac_ext <<_ACEOF
15966 #line $LINENO "configure"
15967 /* confdefs.h. */
15968 _ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 #include <signal.h>
15975 main ()
15977 static siginfo_t ac_aggr;
15978 if (ac_aggr.si_fd)
15979 return 0;
15981 return 0;
15983 _ACEOF
15984 rm -f conftest.$ac_objext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15986 (eval $ac_compile) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
15990 { ac_try='test -s conftest.$ac_objext'
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15993 ac_status=$?
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; }; then
15996 ac_cv_member_siginfo_t_si_fd=yes
15997 else
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 cat >conftest.$ac_ext <<_ACEOF
16002 #line $LINENO "configure"
16003 /* confdefs.h. */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 #include <signal.h>
16011 main ()
16013 static siginfo_t ac_aggr;
16014 if (sizeof ac_aggr.si_fd)
16015 return 0;
16017 return 0;
16019 _ACEOF
16020 rm -f conftest.$ac_objext
16021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16022 (eval $ac_compile) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
16026 { ac_try='test -s conftest.$ac_objext'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032 ac_cv_member_siginfo_t_si_fd=yes
16033 else
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16037 ac_cv_member_siginfo_t_si_fd=no
16039 rm -f conftest.$ac_objext conftest.$ac_ext
16041 rm -f conftest.$ac_objext conftest.$ac_ext
16043 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
16044 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
16045 if test $ac_cv_member_siginfo_t_si_fd = yes; then
16047 cat >>confdefs.h <<_ACEOF
16048 #define HAVE_SIGINFO_T_SI_FD 1
16049 _ACEOF
16055 echo "$as_me:$LINENO: checking for struct option.name" >&5
16056 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
16057 if test "${ac_cv_member_struct_option_name+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 else
16060 cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16062 /* confdefs.h. */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 #ifdef HAVE_GETOPT_H
16068 #include <getopt.h>
16069 #endif
16072 main ()
16074 static struct option ac_aggr;
16075 if (ac_aggr.name)
16076 return 0;
16078 return 0;
16080 _ACEOF
16081 rm -f conftest.$ac_objext
16082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083 (eval $ac_compile) 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } &&
16087 { ac_try='test -s conftest.$ac_objext'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; }; then
16093 ac_cv_member_struct_option_name=yes
16094 else
16095 echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16098 cat >conftest.$ac_ext <<_ACEOF
16099 #line $LINENO "configure"
16100 /* confdefs.h. */
16101 _ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16105 #ifdef HAVE_GETOPT_H
16106 #include <getopt.h>
16107 #endif
16110 main ()
16112 static struct option ac_aggr;
16113 if (sizeof ac_aggr.name)
16114 return 0;
16116 return 0;
16118 _ACEOF
16119 rm -f conftest.$ac_objext
16120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121 (eval $ac_compile) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } &&
16125 { ac_try='test -s conftest.$ac_objext'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; }; then
16131 ac_cv_member_struct_option_name=yes
16132 else
16133 echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16136 ac_cv_member_struct_option_name=no
16138 rm -f conftest.$ac_objext conftest.$ac_ext
16140 rm -f conftest.$ac_objext conftest.$ac_ext
16142 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
16143 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
16144 if test $ac_cv_member_struct_option_name = yes; then
16146 cat >>confdefs.h <<_ACEOF
16147 #define HAVE_STRUCT_OPTION_NAME 1
16148 _ACEOF
16155 case $host_cpu in
16156 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
16157 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
16158 if test "${ac_cv_cpp_def___i386__+set}" = set; then
16159 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 else
16161 cat >conftest.$ac_ext <<_ACEOF
16162 #line $LINENO "configure"
16163 /* confdefs.h. */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16168 #ifndef __i386__
16170 #endif
16171 _ACEOF
16172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173 $EGREP "yes" >/dev/null 2>&1; then
16174 ac_cv_cpp_def___i386__=yes
16175 else
16176 ac_cv_cpp_def___i386__=no
16178 rm -f conftest*
16181 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
16182 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
16183 if test $ac_cv_cpp_def___i386__ = yes; then
16184 CFLAGS="$CFLAGS -D__i386__"
16185 LINTFLAGS="$LINTFLAGS -D__i386__"
16188 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
16189 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
16190 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193 cat >conftest.$ac_ext <<_ACEOF
16194 #line $LINENO "configure"
16195 /* confdefs.h. */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 #ifndef __ALPHA__
16202 #endif
16203 _ACEOF
16204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16205 $EGREP "yes" >/dev/null 2>&1; then
16206 ac_cv_cpp_def___ALPHA__=yes
16207 else
16208 ac_cv_cpp_def___ALPHA__=no
16210 rm -f conftest*
16213 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
16214 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
16215 if test $ac_cv_cpp_def___ALPHA__ = yes; then
16216 CFLAGS="$CFLAGS -D__ALPHA__"
16217 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
16220 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
16221 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
16222 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 else
16225 cat >conftest.$ac_ext <<_ACEOF
16226 #line $LINENO "configure"
16227 /* confdefs.h. */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 #ifndef __sparc__
16234 #endif
16235 _ACEOF
16236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16237 $EGREP "yes" >/dev/null 2>&1; then
16238 ac_cv_cpp_def___sparc__=yes
16239 else
16240 ac_cv_cpp_def___sparc__=no
16242 rm -f conftest*
16245 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
16246 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
16247 if test $ac_cv_cpp_def___sparc__ = yes; then
16248 CFLAGS="$CFLAGS -D__sparc__"
16249 LINTFLAGS="$LINTFLAGS -D__sparc__"
16252 esac
16254 case $host_vendor in
16255 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
16256 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
16257 if test "${ac_cv_cpp_def___sun__+set}" = set; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16259 else
16260 cat >conftest.$ac_ext <<_ACEOF
16261 #line $LINENO "configure"
16262 /* confdefs.h. */
16263 _ACEOF
16264 cat confdefs.h >>conftest.$ac_ext
16265 cat >>conftest.$ac_ext <<_ACEOF
16266 /* end confdefs.h. */
16267 #ifndef __sun__
16269 #endif
16270 _ACEOF
16271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16272 $EGREP "yes" >/dev/null 2>&1; then
16273 ac_cv_cpp_def___sun__=yes
16274 else
16275 ac_cv_cpp_def___sun__=no
16277 rm -f conftest*
16280 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
16281 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
16282 if test $ac_cv_cpp_def___sun__ = yes; then
16283 CFLAGS="$CFLAGS -D__sun__"
16284 LINTFLAGS="$LINTFLAGS -D__sun__"
16287 esac
16293 ac_config_commands="$ac_config_commands controls"
16295 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
16297 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
16299 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
16301 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
16303 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
16305 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
16307 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
16309 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
16311 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
16313 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
16315 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
16317 ac_config_commands="$ac_config_commands dlls/kernel/messages"
16319 ac_config_commands="$ac_config_commands dlls/user/dde"
16321 ac_config_commands="$ac_config_commands dlls/user/resources"
16323 ac_config_commands="$ac_config_commands dlls/wineps/data"
16325 ac_config_commands="$ac_config_commands files"
16327 ac_config_commands="$ac_config_commands graphics"
16329 ac_config_commands="$ac_config_commands graphics/x11drv"
16331 ac_config_commands="$ac_config_commands if1632"
16333 ac_config_commands="$ac_config_commands include/wine"
16335 ac_config_commands="$ac_config_commands loader"
16337 ac_config_commands="$ac_config_commands loader/ne"
16339 ac_config_commands="$ac_config_commands memory"
16341 ac_config_commands="$ac_config_commands misc"
16343 ac_config_commands="$ac_config_commands msdos"
16345 ac_config_commands="$ac_config_commands objects"
16347 ac_config_commands="$ac_config_commands ole"
16349 ac_config_commands="$ac_config_commands programs/regapi/tests"
16351 ac_config_commands="$ac_config_commands programs/regedit/tests"
16353 ac_config_commands="$ac_config_commands relay32"
16355 ac_config_commands="$ac_config_commands scheduler"
16357 ac_config_commands="$ac_config_commands win32"
16359 ac_config_commands="$ac_config_commands windows"
16362 MAKE_RULES=Make.rules
16365 MAKE_DLL_RULES=dlls/Makedll.rules
16368 MAKE_TEST_RULES=dlls/Maketest.rules
16371 MAKE_LIB_RULES=libs/Makelib.rules
16374 MAKE_PROG_RULES=programs/Makeprog.rules
16377 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/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/iphlpapi/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/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/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 libs/wpp/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/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile"
16380 cat >confcache <<\_ACEOF
16381 # This file is a shell script that caches the results of configure
16382 # tests run on this system so they can be shared between configure
16383 # scripts and configure runs, see configure's option --config-cache.
16384 # It is not useful on other systems. If it contains results you don't
16385 # want to keep, you may remove or edit it.
16387 # config.status only pays attention to the cache file if you give it
16388 # the --recheck option to rerun configure.
16390 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16391 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16392 # following values.
16394 _ACEOF
16396 # The following way of writing the cache mishandles newlines in values,
16397 # but we know of no workaround that is simple, portable, and efficient.
16398 # So, don't put newlines in cache variables' values.
16399 # Ultrix sh set writes to stderr and can't be redirected directly,
16400 # and sets the high bit in the cache file unless we assign to the vars.
16402 (set) 2>&1 |
16403 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16404 *ac_space=\ *)
16405 # `set' does not quote correctly, so add quotes (double-quote
16406 # substitution turns \\\\ into \\, and sed turns \\ into \).
16407 sed -n \
16408 "s/'/'\\\\''/g;
16409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16412 # `set' quotes correctly as required by POSIX, so do not add quotes.
16413 sed -n \
16414 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16416 esac;
16418 sed '
16419 t clear
16420 : clear
16421 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16422 t end
16423 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16424 : end' >>confcache
16425 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16426 if test -w $cache_file; then
16427 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16428 cat confcache >$cache_file
16429 else
16430 echo "not updating unwritable cache $cache_file"
16433 rm -f confcache
16435 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16436 # Let make expand exec_prefix.
16437 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16439 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16440 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16441 # trailing colons and then remove the whole line if VPATH becomes empty
16442 # (actually we leave an empty line to preserve line numbers).
16443 if test "x$srcdir" = x.; then
16444 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16445 s/:*\$(srcdir):*/:/;
16446 s/:*\${srcdir}:*/:/;
16447 s/:*@srcdir@:*/:/;
16448 s/^\([^=]*=[ ]*\):*/\1/;
16449 s/:*$//;
16450 s/^[^=]*=[ ]*$//;
16454 DEFS=-DHAVE_CONFIG_H
16456 ac_libobjs=
16457 ac_ltlibobjs=
16458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16459 # 1. Remove the extension, and $U if already installed.
16460 ac_i=`echo "$ac_i" |
16461 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16462 # 2. Add them.
16463 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16464 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16465 done
16466 LIBOBJS=$ac_libobjs
16468 LTLIBOBJS=$ac_ltlibobjs
16472 : ${CONFIG_STATUS=./config.status}
16473 ac_clean_files_save=$ac_clean_files
16474 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16475 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16476 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16477 cat >$CONFIG_STATUS <<_ACEOF
16478 #! $SHELL
16479 # Generated by $as_me.
16480 # Run this file to recreate the current configuration.
16481 # Compiler output produced by configure, useful for debugging
16482 # configure, is in config.log if it exists.
16484 debug=false
16485 ac_cs_recheck=false
16486 ac_cs_silent=false
16487 SHELL=\${CONFIG_SHELL-$SHELL}
16488 _ACEOF
16490 cat >>$CONFIG_STATUS <<\_ACEOF
16491 ## --------------------- ##
16492 ## M4sh Initialization. ##
16493 ## --------------------- ##
16495 # Be Bourne compatible
16496 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16497 emulate sh
16498 NULLCMD=:
16499 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16500 # is contrary to our usage. Disable this feature.
16501 alias -g '${1+"$@"}'='"$@"'
16502 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16503 set -o posix
16506 # Support unset when possible.
16507 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16508 as_unset=unset
16509 else
16510 as_unset=false
16514 # Work around bugs in pre-3.0 UWIN ksh.
16515 $as_unset ENV MAIL MAILPATH
16516 PS1='$ '
16517 PS2='> '
16518 PS4='+ '
16520 # NLS nuisances.
16521 for as_var in \
16522 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16523 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16524 LC_TELEPHONE LC_TIME
16526 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16527 eval $as_var=C; export $as_var
16528 else
16529 $as_unset $as_var
16531 done
16533 # Required to use basename.
16534 if expr a : '\(a\)' >/dev/null 2>&1; then
16535 as_expr=expr
16536 else
16537 as_expr=false
16540 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16541 as_basename=basename
16542 else
16543 as_basename=false
16547 # Name of the executable.
16548 as_me=`$as_basename "$0" ||
16549 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16550 X"$0" : 'X\(//\)$' \| \
16551 X"$0" : 'X\(/\)$' \| \
16552 . : '\(.\)' 2>/dev/null ||
16553 echo X/"$0" |
16554 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16555 /^X\/\(\/\/\)$/{ s//\1/; q; }
16556 /^X\/\(\/\).*/{ s//\1/; q; }
16557 s/.*/./; q'`
16560 # PATH needs CR, and LINENO needs CR and PATH.
16561 # Avoid depending upon Character Ranges.
16562 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16563 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16564 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16565 as_cr_digits='0123456789'
16566 as_cr_alnum=$as_cr_Letters$as_cr_digits
16568 # The user is always right.
16569 if test "${PATH_SEPARATOR+set}" != set; then
16570 echo "#! /bin/sh" >conf$$.sh
16571 echo "exit 0" >>conf$$.sh
16572 chmod +x conf$$.sh
16573 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16574 PATH_SEPARATOR=';'
16575 else
16576 PATH_SEPARATOR=:
16578 rm -f conf$$.sh
16582 as_lineno_1=$LINENO
16583 as_lineno_2=$LINENO
16584 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16585 test "x$as_lineno_1" != "x$as_lineno_2" &&
16586 test "x$as_lineno_3" = "x$as_lineno_2" || {
16587 # Find who we are. Look in the path if we contain no path at all
16588 # relative or not.
16589 case $0 in
16590 *[\\/]* ) as_myself=$0 ;;
16591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16594 IFS=$as_save_IFS
16595 test -z "$as_dir" && as_dir=.
16596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16597 done
16600 esac
16601 # We did not find ourselves, most probably we were run as `sh COMMAND'
16602 # in which case we are not to be found in the path.
16603 if test "x$as_myself" = x; then
16604 as_myself=$0
16606 if test ! -f "$as_myself"; then
16607 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16608 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16609 { (exit 1); exit 1; }; }
16611 case $CONFIG_SHELL in
16613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16614 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16616 IFS=$as_save_IFS
16617 test -z "$as_dir" && as_dir=.
16618 for as_base in sh bash ksh sh5; do
16619 case $as_dir in
16621 if ("$as_dir/$as_base" -c '
16622 as_lineno_1=$LINENO
16623 as_lineno_2=$LINENO
16624 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16625 test "x$as_lineno_1" != "x$as_lineno_2" &&
16626 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16627 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16628 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16629 CONFIG_SHELL=$as_dir/$as_base
16630 export CONFIG_SHELL
16631 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16632 fi;;
16633 esac
16634 done
16635 done
16637 esac
16639 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16640 # uniformly replaced by the line number. The first 'sed' inserts a
16641 # line-number line before each line; the second 'sed' does the real
16642 # work. The second script uses 'N' to pair each line-number line
16643 # with the numbered line, and appends trailing '-' during
16644 # substitution so that $LINENO is not a special case at line end.
16645 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16646 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16647 sed '=' <$as_myself |
16648 sed '
16650 s,$,-,
16651 : loop
16652 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16653 t loop
16654 s,-$,,
16655 s,^['$as_cr_digits']*\n,,
16656 ' >$as_me.lineno &&
16657 chmod +x $as_me.lineno ||
16658 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16659 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16660 { (exit 1); exit 1; }; }
16662 # Don't try to exec as it changes $[0], causing all sort of problems
16663 # (the dirname of $[0] is not the place where we might find the
16664 # original and so on. Autoconf is especially sensible to this).
16665 . ./$as_me.lineno
16666 # Exit status is that of the last command.
16667 exit
16671 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16672 *c*,-n*) ECHO_N= ECHO_C='
16673 ' ECHO_T=' ' ;;
16674 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16675 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16676 esac
16678 if expr a : '\(a\)' >/dev/null 2>&1; then
16679 as_expr=expr
16680 else
16681 as_expr=false
16684 rm -f conf$$ conf$$.exe conf$$.file
16685 echo >conf$$.file
16686 if ln -s conf$$.file conf$$ 2>/dev/null; then
16687 # We could just check for DJGPP; but this test a) works b) is more generic
16688 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16689 if test -f conf$$.exe; then
16690 # Don't use ln at all; we don't have any links
16691 as_ln_s='cp -p'
16692 else
16693 as_ln_s='ln -s'
16695 elif ln conf$$.file conf$$ 2>/dev/null; then
16696 as_ln_s=ln
16697 else
16698 as_ln_s='cp -p'
16700 rm -f conf$$ conf$$.exe conf$$.file
16702 if mkdir -p . 2>/dev/null; then
16703 as_mkdir_p=:
16704 else
16705 as_mkdir_p=false
16708 as_executable_p="test -f"
16710 # Sed expression to map a string onto a valid CPP name.
16711 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16713 # Sed expression to map a string onto a valid variable name.
16714 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16717 # IFS
16718 # We need space, tab and new line, in precisely that order.
16719 as_nl='
16721 IFS=" $as_nl"
16723 # CDPATH.
16724 $as_unset CDPATH
16726 exec 6>&1
16728 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16729 # report actual input values of CONFIG_FILES etc. instead of their
16730 # values after options handling. Logging --version etc. is OK.
16731 exec 5>>config.log
16733 echo
16734 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16735 ## Running $as_me. ##
16736 _ASBOX
16737 } >&5
16738 cat >&5 <<_CSEOF
16740 This file was extended by Wine $as_me 20030618, which was
16741 generated by GNU Autoconf 2.57. Invocation command line was
16743 CONFIG_FILES = $CONFIG_FILES
16744 CONFIG_HEADERS = $CONFIG_HEADERS
16745 CONFIG_LINKS = $CONFIG_LINKS
16746 CONFIG_COMMANDS = $CONFIG_COMMANDS
16747 $ $0 $@
16749 _CSEOF
16750 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16751 echo >&5
16752 _ACEOF
16754 # Files that config.status was made for.
16755 if test -n "$ac_config_files"; then
16756 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16759 if test -n "$ac_config_headers"; then
16760 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16763 if test -n "$ac_config_links"; then
16764 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16767 if test -n "$ac_config_commands"; then
16768 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16771 cat >>$CONFIG_STATUS <<\_ACEOF
16773 ac_cs_usage="\
16774 \`$as_me' instantiates files from templates according to the
16775 current configuration.
16777 Usage: $0 [OPTIONS] [FILE]...
16779 -h, --help print this help, then exit
16780 -V, --version print version number, then exit
16781 -q, --quiet do not print progress messages
16782 -d, --debug don't remove temporary files
16783 --recheck update $as_me by reconfiguring in the same conditions
16784 --file=FILE[:TEMPLATE]
16785 instantiate the configuration file FILE
16786 --header=FILE[:TEMPLATE]
16787 instantiate the configuration header FILE
16789 Configuration files:
16790 $config_files
16792 Configuration headers:
16793 $config_headers
16795 Configuration commands:
16796 $config_commands
16798 Report bugs to <bug-autoconf@gnu.org>."
16799 _ACEOF
16801 cat >>$CONFIG_STATUS <<_ACEOF
16802 ac_cs_version="\\
16803 Wine config.status 20030618
16804 configured by $0, generated by GNU Autoconf 2.57,
16805 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16807 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16808 Free Software Foundation, Inc.
16809 This config.status script is free software; the Free Software Foundation
16810 gives unlimited permission to copy, distribute and modify it."
16811 srcdir=$srcdir
16812 INSTALL="$INSTALL"
16813 _ACEOF
16815 cat >>$CONFIG_STATUS <<\_ACEOF
16816 # If no file are specified by the user, then we need to provide default
16817 # value. By we need to know if files were specified by the user.
16818 ac_need_defaults=:
16819 while test $# != 0
16821 case $1 in
16822 --*=*)
16823 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16824 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16825 ac_shift=:
16828 ac_option=$1
16829 ac_optarg=$2
16830 ac_shift=shift
16832 *) # This is not an option, so the user has probably given explicit
16833 # arguments.
16834 ac_option=$1
16835 ac_need_defaults=false;;
16836 esac
16838 case $ac_option in
16839 # Handling of the options.
16840 _ACEOF
16841 cat >>$CONFIG_STATUS <<\_ACEOF
16842 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16843 ac_cs_recheck=: ;;
16844 --version | --vers* | -V )
16845 echo "$ac_cs_version"; exit 0 ;;
16846 --he | --h)
16847 # Conflict between --help and --header
16848 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16849 Try \`$0 --help' for more information." >&5
16850 echo "$as_me: error: ambiguous option: $1
16851 Try \`$0 --help' for more information." >&2;}
16852 { (exit 1); exit 1; }; };;
16853 --help | --hel | -h )
16854 echo "$ac_cs_usage"; exit 0 ;;
16855 --debug | --d* | -d )
16856 debug=: ;;
16857 --file | --fil | --fi | --f )
16858 $ac_shift
16859 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16860 ac_need_defaults=false;;
16861 --header | --heade | --head | --hea )
16862 $ac_shift
16863 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16864 ac_need_defaults=false;;
16865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16866 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16867 ac_cs_silent=: ;;
16869 # This is an error.
16870 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16871 Try \`$0 --help' for more information." >&5
16872 echo "$as_me: error: unrecognized option: $1
16873 Try \`$0 --help' for more information." >&2;}
16874 { (exit 1); exit 1; }; } ;;
16876 *) ac_config_targets="$ac_config_targets $1" ;;
16878 esac
16879 shift
16880 done
16882 ac_configure_extra_args=
16884 if $ac_cs_silent; then
16885 exec 6>/dev/null
16886 ac_configure_extra_args="$ac_configure_extra_args --silent"
16889 _ACEOF
16890 cat >>$CONFIG_STATUS <<_ACEOF
16891 if \$ac_cs_recheck; then
16892 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16893 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16896 _ACEOF
16902 cat >>$CONFIG_STATUS <<\_ACEOF
16903 for ac_config_target in $ac_config_targets
16905 case "$ac_config_target" in
16906 # Handling of arguments.
16907 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16908 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16909 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
16910 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
16911 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16912 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16913 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
16914 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
16915 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
16916 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
16917 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
16918 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
16919 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
16920 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
16921 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
16922 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
16923 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
16924 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
16925 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
16926 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
16927 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
16928 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
16929 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
16930 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
16931 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
16932 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
16933 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
16934 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
16935 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
16936 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
16937 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
16938 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
16939 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
16940 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
16941 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
16942 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
16943 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
16944 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
16945 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
16946 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
16947 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
16948 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
16949 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
16950 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
16951 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
16952 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
16953 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
16954 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
16955 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
16956 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
16957 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
16958 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
16959 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
16960 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
16961 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
16962 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
16963 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
16964 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
16965 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
16966 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
16967 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
16968 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
16969 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
16970 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
16971 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
16972 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
16973 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
16974 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
16975 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
16976 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
16977 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
16978 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
16979 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
16980 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
16981 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
16982 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
16983 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
16984 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
16985 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
16986 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
16987 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
16988 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
16989 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
16990 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
16991 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
16992 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
16993 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
16994 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
16995 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
16996 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
16997 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
16998 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
16999 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
17000 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
17001 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
17002 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
17003 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
17004 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
17005 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
17006 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
17007 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
17008 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
17009 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
17010 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
17011 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
17012 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
17013 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
17014 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
17015 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
17016 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
17017 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
17018 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
17019 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
17020 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
17021 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
17022 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
17023 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
17024 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
17025 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
17026 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
17027 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
17028 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
17029 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
17030 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
17031 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
17032 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
17033 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
17034 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
17035 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
17036 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
17037 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
17038 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
17039 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
17040 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
17041 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
17042 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
17043 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
17044 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
17045 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
17046 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
17047 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
17048 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17049 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
17050 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
17051 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
17052 "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
17053 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
17054 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
17055 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
17056 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
17057 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
17058 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
17059 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
17060 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
17061 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
17062 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
17063 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
17064 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
17065 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
17066 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
17067 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
17068 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
17069 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
17070 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
17071 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
17072 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
17073 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
17074 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
17075 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
17076 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
17077 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
17078 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
17079 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
17080 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
17081 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
17082 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
17083 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
17084 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
17085 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
17086 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
17087 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17088 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
17089 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
17090 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
17091 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
17092 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
17093 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
17094 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
17095 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
17096 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
17097 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
17098 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
17099 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
17100 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
17101 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
17102 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
17103 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
17104 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
17105 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
17106 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
17107 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
17108 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
17109 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
17110 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
17111 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
17112 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
17113 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
17114 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17115 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
17116 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
17117 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
17118 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
17119 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
17120 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
17121 "ole" ) CONFIG_COMMANDS="$CONFIG_COMMANDS ole" ;;
17122 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
17123 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
17124 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
17125 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
17126 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
17127 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
17128 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17129 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17130 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17131 { (exit 1); exit 1; }; };;
17132 esac
17133 done
17135 # If the user did not use the arguments to specify the items to instantiate,
17136 # then the envvar interface is used. Set only those that are not.
17137 # We use the long form for the default assignment because of an extremely
17138 # bizarre bug on SunOS 4.1.3.
17139 if $ac_need_defaults; then
17140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17141 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17142 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17145 # Have a temporary directory for convenience. Make it in the build tree
17146 # simply because there is no reason to put it here, and in addition,
17147 # creating and moving files from /tmp can sometimes cause problems.
17148 # Create a temporary directory, and hook for its removal unless debugging.
17149 $debug ||
17151 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17152 trap '{ (exit 1); exit 1; }' 1 2 13 15
17155 # Create a (secure) tmp directory for tmp files.
17158 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17159 test -n "$tmp" && test -d "$tmp"
17160 } ||
17162 tmp=./confstat$$-$RANDOM
17163 (umask 077 && mkdir $tmp)
17164 } ||
17166 echo "$me: cannot create a temporary directory in ." >&2
17167 { (exit 1); exit 1; }
17170 _ACEOF
17172 cat >>$CONFIG_STATUS <<_ACEOF
17175 # CONFIG_FILES section.
17178 # No need to generate the scripts if there are no CONFIG_FILES.
17179 # This happens for instance when ./config.status config.h
17180 if test -n "\$CONFIG_FILES"; then
17181 # Protect against being on the right side of a sed subst in config.status.
17182 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17183 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17184 s,@SHELL@,$SHELL,;t t
17185 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17186 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17187 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17188 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17189 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17190 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17191 s,@exec_prefix@,$exec_prefix,;t t
17192 s,@prefix@,$prefix,;t t
17193 s,@program_transform_name@,$program_transform_name,;t t
17194 s,@bindir@,$bindir,;t t
17195 s,@sbindir@,$sbindir,;t t
17196 s,@libexecdir@,$libexecdir,;t t
17197 s,@datadir@,$datadir,;t t
17198 s,@sysconfdir@,$sysconfdir,;t t
17199 s,@sharedstatedir@,$sharedstatedir,;t t
17200 s,@localstatedir@,$localstatedir,;t t
17201 s,@libdir@,$libdir,;t t
17202 s,@includedir@,$includedir,;t t
17203 s,@oldincludedir@,$oldincludedir,;t t
17204 s,@infodir@,$infodir,;t t
17205 s,@mandir@,$mandir,;t t
17206 s,@build_alias@,$build_alias,;t t
17207 s,@host_alias@,$host_alias,;t t
17208 s,@target_alias@,$target_alias,;t t
17209 s,@DEFS@,$DEFS,;t t
17210 s,@ECHO_C@,$ECHO_C,;t t
17211 s,@ECHO_N@,$ECHO_N,;t t
17212 s,@ECHO_T@,$ECHO_T,;t t
17213 s,@LIBS@,$LIBS,;t t
17214 s,@WIN16_FILES@,$WIN16_FILES,;t t
17215 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
17216 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
17217 s,@build@,$build,;t t
17218 s,@build_cpu@,$build_cpu,;t t
17219 s,@build_vendor@,$build_vendor,;t t
17220 s,@build_os@,$build_os,;t t
17221 s,@host@,$host,;t t
17222 s,@host_cpu@,$host_cpu,;t t
17223 s,@host_vendor@,$host_vendor,;t t
17224 s,@host_os@,$host_os,;t t
17225 s,@SET_MAKE@,$SET_MAKE,;t t
17226 s,@CC@,$CC,;t t
17227 s,@CFLAGS@,$CFLAGS,;t t
17228 s,@LDFLAGS@,$LDFLAGS,;t t
17229 s,@CPPFLAGS@,$CPPFLAGS,;t t
17230 s,@ac_ct_CC@,$ac_ct_CC,;t t
17231 s,@EXEEXT@,$EXEEXT,;t t
17232 s,@OBJEXT@,$OBJEXT,;t t
17233 s,@CPP@,$CPP,;t t
17234 s,@TOOLSDIR@,$TOOLSDIR,;t t
17235 s,@X_CFLAGS@,$X_CFLAGS,;t t
17236 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17237 s,@X_LIBS@,$X_LIBS,;t t
17238 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17239 s,@YACC@,$YACC,;t t
17240 s,@LEX@,$LEX,;t t
17241 s,@LEXLIB@,$LEXLIB,;t t
17242 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
17243 s,@XYACC@,$XYACC,;t t
17244 s,@XLEX@,$XLEX,;t t
17245 s,@AS@,$AS,;t t
17246 s,@ac_ct_AS@,$ac_ct_AS,;t t
17247 s,@LD@,$LD,;t t
17248 s,@ac_ct_LD@,$ac_ct_LD,;t t
17249 s,@AR@,$AR,;t t
17250 s,@ac_ct_AR@,$ac_ct_AR,;t t
17251 s,@RANLIB@,$RANLIB,;t t
17252 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17253 s,@STRIP@,$STRIP,;t t
17254 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17255 s,@WINDRES@,$WINDRES,;t t
17256 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
17257 s,@LN_S@,$LN_S,;t t
17258 s,@LN@,$LN,;t t
17259 s,@C2MAN@,$C2MAN,;t t
17260 s,@LDCONFIG@,$LDCONFIG,;t t
17261 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17262 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17263 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17264 s,@LINT@,$LINT,;t t
17265 s,@LINTFLAGS@,$LINTFLAGS,;t t
17266 s,@DB2HTML@,$DB2HTML,;t t
17267 s,@DB2PDF@,$DB2PDF,;t t
17268 s,@DB2PS@,$DB2PS,;t t
17269 s,@JPEGLIB@,$JPEGLIB,;t t
17270 s,@EGREP@,$EGREP,;t t
17271 s,@GIFLIB@,$GIFLIB,;t t
17272 s,@XLIB@,$XLIB,;t t
17273 s,@XFILES@,$XFILES,;t t
17274 s,@OPENGLFILES@,$OPENGLFILES,;t t
17275 s,@GLU32FILES@,$GLU32FILES,;t t
17276 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
17277 s,@NASLIBS@,$NASLIBS,;t t
17278 s,@CURSESLIBS@,$CURSESLIBS,;t t
17279 s,@sane_devel@,$sane_devel,;t t
17280 s,@SANELIBS@,$SANELIBS,;t t
17281 s,@SANEINCL@,$SANEINCL,;t t
17282 s,@ICULIBS@,$ICULIBS,;t t
17283 s,@ft_devel@,$ft_devel,;t t
17284 s,@ft_devel2@,$ft_devel2,;t t
17285 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
17286 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
17287 s,@ARTSLIBS@,$ARTSLIBS,;t t
17288 s,@ARTSINCL@,$ARTSINCL,;t t
17289 s,@ALSALIBS@,$ALSALIBS,;t t
17290 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
17291 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
17292 s,@DLLEXT@,$DLLEXT,;t t
17293 s,@DLLFLAGS@,$DLLFLAGS,;t t
17294 s,@DLLIBS@,$DLLIBS,;t t
17295 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
17296 s,@LDSHARED@,$LDSHARED,;t t
17297 s,@LIBEXT@,$LIBEXT,;t t
17298 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
17299 s,@DLLTOOL@,$DLLTOOL,;t t
17300 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
17301 s,@DLLWRAP@,$DLLWRAP,;t t
17302 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
17303 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
17304 s,@CROSSTEST@,$CROSSTEST,;t t
17305 s,@CROSSCC@,$CROSSCC,;t t
17306 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
17307 s,@LDPATH@,$LDPATH,;t t
17308 s,@CRTLIBS@,$CRTLIBS,;t t
17309 s,@LDD@,$LDD,;t t
17310 s,@ALLOCA@,$ALLOCA,;t t
17311 s,@LIBOBJS@,$LIBOBJS,;t t
17312 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17313 /@MAKE_RULES@/r $MAKE_RULES
17314 s,@MAKE_RULES@,,;t t
17315 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
17316 s,@MAKE_DLL_RULES@,,;t t
17317 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
17318 s,@MAKE_TEST_RULES@,,;t t
17319 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
17320 s,@MAKE_LIB_RULES@,,;t t
17321 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
17322 s,@MAKE_PROG_RULES@,,;t t
17323 CEOF
17325 _ACEOF
17327 cat >>$CONFIG_STATUS <<\_ACEOF
17328 # Split the substitutions into bite-sized pieces for seds with
17329 # small command number limits, like on Digital OSF/1 and HP-UX.
17330 ac_max_sed_lines=48
17331 ac_sed_frag=1 # Number of current file.
17332 ac_beg=1 # First line for current file.
17333 ac_end=$ac_max_sed_lines # Line after last line for current file.
17334 ac_more_lines=:
17335 ac_sed_cmds=
17336 while $ac_more_lines; do
17337 if test $ac_beg -gt 1; then
17338 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17339 else
17340 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17342 if test ! -s $tmp/subs.frag; then
17343 ac_more_lines=false
17344 else
17345 # The purpose of the label and of the branching condition is to
17346 # speed up the sed processing (if there are no `@' at all, there
17347 # is no need to browse any of the substitutions).
17348 # These are the two extra sed commands mentioned above.
17349 (echo ':t
17350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17351 if test -z "$ac_sed_cmds"; then
17352 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17353 else
17354 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17356 ac_sed_frag=`expr $ac_sed_frag + 1`
17357 ac_beg=$ac_end
17358 ac_end=`expr $ac_end + $ac_max_sed_lines`
17360 done
17361 if test -z "$ac_sed_cmds"; then
17362 ac_sed_cmds=cat
17364 fi # test -n "$CONFIG_FILES"
17366 _ACEOF
17367 cat >>$CONFIG_STATUS <<\_ACEOF
17368 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17369 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17370 case $ac_file in
17371 - | *:- | *:-:* ) # input from stdin
17372 cat >$tmp/stdin
17373 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17375 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17376 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17377 * ) ac_file_in=$ac_file.in ;;
17378 esac
17380 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17381 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17383 X"$ac_file" : 'X\(//\)[^/]' \| \
17384 X"$ac_file" : 'X\(//\)$' \| \
17385 X"$ac_file" : 'X\(/\)' \| \
17386 . : '\(.\)' 2>/dev/null ||
17387 echo X"$ac_file" |
17388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17390 /^X\(\/\/\)$/{ s//\1/; q; }
17391 /^X\(\/\).*/{ s//\1/; q; }
17392 s/.*/./; q'`
17393 { if $as_mkdir_p; then
17394 mkdir -p "$ac_dir"
17395 else
17396 as_dir="$ac_dir"
17397 as_dirs=
17398 while test ! -d "$as_dir"; do
17399 as_dirs="$as_dir $as_dirs"
17400 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17401 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17402 X"$as_dir" : 'X\(//\)[^/]' \| \
17403 X"$as_dir" : 'X\(//\)$' \| \
17404 X"$as_dir" : 'X\(/\)' \| \
17405 . : '\(.\)' 2>/dev/null ||
17406 echo X"$as_dir" |
17407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17409 /^X\(\/\/\)$/{ s//\1/; q; }
17410 /^X\(\/\).*/{ s//\1/; q; }
17411 s/.*/./; q'`
17412 done
17413 test ! -n "$as_dirs" || mkdir $as_dirs
17414 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17415 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17416 { (exit 1); exit 1; }; }; }
17418 ac_builddir=.
17420 if test "$ac_dir" != .; then
17421 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17422 # A "../" for each directory in $ac_dir_suffix.
17423 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17424 else
17425 ac_dir_suffix= ac_top_builddir=
17428 case $srcdir in
17429 .) # No --srcdir option. We are building in place.
17430 ac_srcdir=.
17431 if test -z "$ac_top_builddir"; then
17432 ac_top_srcdir=.
17433 else
17434 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17435 fi ;;
17436 [\\/]* | ?:[\\/]* ) # Absolute path.
17437 ac_srcdir=$srcdir$ac_dir_suffix;
17438 ac_top_srcdir=$srcdir ;;
17439 *) # Relative path.
17440 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17441 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17442 esac
17443 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17444 # absolute.
17445 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17446 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17447 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17448 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17451 case $INSTALL in
17452 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17453 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17454 esac
17456 if test x"$ac_file" != x-; then
17457 { echo "$as_me:$LINENO: creating $ac_file" >&5
17458 echo "$as_me: creating $ac_file" >&6;}
17459 rm -f "$ac_file"
17461 # Let's still pretend it is `configure' which instantiates (i.e., don't
17462 # use $as_me), people would be surprised to read:
17463 # /* config.h. Generated by config.status. */
17464 if test x"$ac_file" = x-; then
17465 configure_input=
17466 else
17467 configure_input="$ac_file. "
17469 configure_input=$configure_input"Generated from `echo $ac_file_in |
17470 sed 's,.*/,,'` by configure."
17472 # First look for the input files in the build tree, otherwise in the
17473 # src tree.
17474 ac_file_inputs=`IFS=:
17475 for f in $ac_file_in; do
17476 case $f in
17477 -) echo $tmp/stdin ;;
17478 [\\/$]*)
17479 # Absolute (can't be DOS-style, as IFS=:)
17480 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17481 echo "$as_me: error: cannot find input file: $f" >&2;}
17482 { (exit 1); exit 1; }; }
17483 echo $f;;
17484 *) # Relative
17485 if test -f "$f"; then
17486 # Build tree
17487 echo $f
17488 elif test -f "$srcdir/$f"; then
17489 # Source tree
17490 echo $srcdir/$f
17491 else
17492 # /dev/null tree
17493 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17494 echo "$as_me: error: cannot find input file: $f" >&2;}
17495 { (exit 1); exit 1; }; }
17496 fi;;
17497 esac
17498 done` || { (exit 1); exit 1; }
17499 _ACEOF
17500 cat >>$CONFIG_STATUS <<_ACEOF
17501 sed "$ac_vpsub
17502 $extrasub
17503 _ACEOF
17504 cat >>$CONFIG_STATUS <<\_ACEOF
17506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17507 s,@configure_input@,$configure_input,;t t
17508 s,@srcdir@,$ac_srcdir,;t t
17509 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17510 s,@top_srcdir@,$ac_top_srcdir,;t t
17511 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17512 s,@builddir@,$ac_builddir,;t t
17513 s,@abs_builddir@,$ac_abs_builddir,;t t
17514 s,@top_builddir@,$ac_top_builddir,;t t
17515 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17516 s,@INSTALL@,$ac_INSTALL,;t t
17517 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17518 rm -f $tmp/stdin
17519 if test x"$ac_file" != x-; then
17520 mv $tmp/out $ac_file
17521 else
17522 cat $tmp/out
17523 rm -f $tmp/out
17526 done
17527 _ACEOF
17528 cat >>$CONFIG_STATUS <<\_ACEOF
17531 # CONFIG_HEADER section.
17534 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17535 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17537 # ac_d sets the value in "#define NAME VALUE" lines.
17538 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17539 ac_dB='[ ].*$,\1#\2'
17540 ac_dC=' '
17541 ac_dD=',;t'
17542 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17543 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17544 ac_uB='$,\1#\2define\3'
17545 ac_uC=' '
17546 ac_uD=',;t'
17548 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17549 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17550 case $ac_file in
17551 - | *:- | *:-:* ) # input from stdin
17552 cat >$tmp/stdin
17553 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17554 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17555 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17556 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17557 * ) ac_file_in=$ac_file.in ;;
17558 esac
17560 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17561 echo "$as_me: creating $ac_file" >&6;}
17563 # First look for the input files in the build tree, otherwise in the
17564 # src tree.
17565 ac_file_inputs=`IFS=:
17566 for f in $ac_file_in; do
17567 case $f in
17568 -) echo $tmp/stdin ;;
17569 [\\/$]*)
17570 # Absolute (can't be DOS-style, as IFS=:)
17571 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17572 echo "$as_me: error: cannot find input file: $f" >&2;}
17573 { (exit 1); exit 1; }; }
17574 echo $f;;
17575 *) # Relative
17576 if test -f "$f"; then
17577 # Build tree
17578 echo $f
17579 elif test -f "$srcdir/$f"; then
17580 # Source tree
17581 echo $srcdir/$f
17582 else
17583 # /dev/null tree
17584 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17585 echo "$as_me: error: cannot find input file: $f" >&2;}
17586 { (exit 1); exit 1; }; }
17587 fi;;
17588 esac
17589 done` || { (exit 1); exit 1; }
17590 # Remove the trailing spaces.
17591 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17593 _ACEOF
17595 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17596 # `conftest.undefs', that substitutes the proper values into
17597 # config.h.in to produce config.h. The first handles `#define'
17598 # templates, and the second `#undef' templates.
17599 # And first: Protect against being on the right side of a sed subst in
17600 # config.status. Protect against being in an unquoted here document
17601 # in config.status.
17602 rm -f conftest.defines conftest.undefs
17603 # Using a here document instead of a string reduces the quoting nightmare.
17604 # Putting comments in sed scripts is not portable.
17606 # `end' is used to avoid that the second main sed command (meant for
17607 # 0-ary CPP macros) applies to n-ary macro definitions.
17608 # See the Autoconf documentation for `clear'.
17609 cat >confdef2sed.sed <<\_ACEOF
17610 s/[\\&,]/\\&/g
17611 s,[\\$`],\\&,g
17612 t clear
17613 : clear
17614 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17615 t end
17616 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17617 : end
17618 _ACEOF
17619 # If some macros were called several times there might be several times
17620 # the same #defines, which is useless. Nevertheless, we may not want to
17621 # sort them, since we want the *last* AC-DEFINE to be honored.
17622 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17623 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17624 rm -f confdef2sed.sed
17626 # This sed command replaces #undef with comments. This is necessary, for
17627 # example, in the case of _POSIX_SOURCE, which is predefined and required
17628 # on some systems where configure will not decide to define it.
17629 cat >>conftest.undefs <<\_ACEOF
17630 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17631 _ACEOF
17633 # Break up conftest.defines because some shells have a limit on the size
17634 # of here documents, and old seds have small limits too (100 cmds).
17635 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17636 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17637 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17638 echo ' :' >>$CONFIG_STATUS
17639 rm -f conftest.tail
17640 while grep . conftest.defines >/dev/null
17642 # Write a limited-size here document to $tmp/defines.sed.
17643 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17644 # Speed up: don't consider the non `#define' lines.
17645 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17646 # Work around the forget-to-reset-the-flag bug.
17647 echo 't clr' >>$CONFIG_STATUS
17648 echo ': clr' >>$CONFIG_STATUS
17649 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17650 echo 'CEOF
17651 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17652 rm -f $tmp/in
17653 mv $tmp/out $tmp/in
17654 ' >>$CONFIG_STATUS
17655 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17656 rm -f conftest.defines
17657 mv conftest.tail conftest.defines
17658 done
17659 rm -f conftest.defines
17660 echo ' fi # grep' >>$CONFIG_STATUS
17661 echo >>$CONFIG_STATUS
17663 # Break up conftest.undefs because some shells have a limit on the size
17664 # of here documents, and old seds have small limits too (100 cmds).
17665 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17666 rm -f conftest.tail
17667 while grep . conftest.undefs >/dev/null
17669 # Write a limited-size here document to $tmp/undefs.sed.
17670 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17671 # Speed up: don't consider the non `#undef'
17672 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17673 # Work around the forget-to-reset-the-flag bug.
17674 echo 't clr' >>$CONFIG_STATUS
17675 echo ': clr' >>$CONFIG_STATUS
17676 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17677 echo 'CEOF
17678 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17679 rm -f $tmp/in
17680 mv $tmp/out $tmp/in
17681 ' >>$CONFIG_STATUS
17682 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17683 rm -f conftest.undefs
17684 mv conftest.tail conftest.undefs
17685 done
17686 rm -f conftest.undefs
17688 cat >>$CONFIG_STATUS <<\_ACEOF
17689 # Let's still pretend it is `configure' which instantiates (i.e., don't
17690 # use $as_me), people would be surprised to read:
17691 # /* config.h. Generated by config.status. */
17692 if test x"$ac_file" = x-; then
17693 echo "/* Generated by configure. */" >$tmp/config.h
17694 else
17695 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17697 cat $tmp/in >>$tmp/config.h
17698 rm -f $tmp/in
17699 if test x"$ac_file" != x-; then
17700 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17701 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17702 echo "$as_me: $ac_file is unchanged" >&6;}
17703 else
17704 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17705 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17706 X"$ac_file" : 'X\(//\)[^/]' \| \
17707 X"$ac_file" : 'X\(//\)$' \| \
17708 X"$ac_file" : 'X\(/\)' \| \
17709 . : '\(.\)' 2>/dev/null ||
17710 echo X"$ac_file" |
17711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17713 /^X\(\/\/\)$/{ s//\1/; q; }
17714 /^X\(\/\).*/{ s//\1/; q; }
17715 s/.*/./; q'`
17716 { if $as_mkdir_p; then
17717 mkdir -p "$ac_dir"
17718 else
17719 as_dir="$ac_dir"
17720 as_dirs=
17721 while test ! -d "$as_dir"; do
17722 as_dirs="$as_dir $as_dirs"
17723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17725 X"$as_dir" : 'X\(//\)[^/]' \| \
17726 X"$as_dir" : 'X\(//\)$' \| \
17727 X"$as_dir" : 'X\(/\)' \| \
17728 . : '\(.\)' 2>/dev/null ||
17729 echo X"$as_dir" |
17730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17732 /^X\(\/\/\)$/{ s//\1/; q; }
17733 /^X\(\/\).*/{ s//\1/; q; }
17734 s/.*/./; q'`
17735 done
17736 test ! -n "$as_dirs" || mkdir $as_dirs
17737 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17738 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17739 { (exit 1); exit 1; }; }; }
17741 rm -f $ac_file
17742 mv $tmp/config.h $ac_file
17744 else
17745 cat $tmp/config.h
17746 rm -f $tmp/config.h
17748 done
17749 _ACEOF
17750 cat >>$CONFIG_STATUS <<\_ACEOF
17753 # CONFIG_COMMANDS section.
17755 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17756 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17757 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17758 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17759 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17760 X"$ac_dest" : 'X\(//\)[^/]' \| \
17761 X"$ac_dest" : 'X\(//\)$' \| \
17762 X"$ac_dest" : 'X\(/\)' \| \
17763 . : '\(.\)' 2>/dev/null ||
17764 echo X"$ac_dest" |
17765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17767 /^X\(\/\/\)$/{ s//\1/; q; }
17768 /^X\(\/\).*/{ s//\1/; q; }
17769 s/.*/./; q'`
17770 ac_builddir=.
17772 if test "$ac_dir" != .; then
17773 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17774 # A "../" for each directory in $ac_dir_suffix.
17775 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17776 else
17777 ac_dir_suffix= ac_top_builddir=
17780 case $srcdir in
17781 .) # No --srcdir option. We are building in place.
17782 ac_srcdir=.
17783 if test -z "$ac_top_builddir"; then
17784 ac_top_srcdir=.
17785 else
17786 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17787 fi ;;
17788 [\\/]* | ?:[\\/]* ) # Absolute path.
17789 ac_srcdir=$srcdir$ac_dir_suffix;
17790 ac_top_srcdir=$srcdir ;;
17791 *) # Relative path.
17792 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17793 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17794 esac
17795 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17796 # absolute.
17797 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17798 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17799 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17800 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17803 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17804 echo "$as_me: executing $ac_dest commands" >&6;}
17805 case $ac_dest in
17806 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
17807 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
17808 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
17809 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
17810 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
17811 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
17812 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
17813 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
17814 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
17815 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
17816 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
17817 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
17818 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
17819 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
17820 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
17821 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
17822 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
17823 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
17824 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
17825 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
17826 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
17827 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
17828 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
17829 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
17830 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
17831 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
17832 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
17833 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
17834 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
17835 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
17836 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
17837 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
17838 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
17839 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
17840 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
17841 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
17842 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
17843 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
17844 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
17845 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
17846 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
17847 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
17848 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
17849 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
17850 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
17851 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
17852 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
17853 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
17854 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
17855 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
17856 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
17857 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
17858 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
17859 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
17860 ole ) test -d "ole" || ({ echo "$as_me:$LINENO: creating ole" >&5
17861 echo "$as_me: creating ole" >&6;} && mkdir "ole") ;;
17862 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
17863 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
17864 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
17865 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
17866 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
17867 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
17868 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
17869 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
17870 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
17871 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
17872 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
17873 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
17874 esac
17875 done
17876 _ACEOF
17878 cat >>$CONFIG_STATUS <<\_ACEOF
17880 { (exit 0); exit 0; }
17881 _ACEOF
17882 chmod +x $CONFIG_STATUS
17883 ac_clean_files=$ac_clean_files_save
17886 # configure is writing to config.log, and then calls config.status.
17887 # config.status does its own redirection, appending to config.log.
17888 # Unfortunately, on DOS this fails, as config.log is still kept open
17889 # by configure, so config.status won't be able to write to it; its
17890 # output is simply discarded. So we exec the FD to /dev/null,
17891 # effectively closing config.log, so it can be properly (re)opened and
17892 # appended to by config.status. When coming back to configure, we
17893 # need to make the FD available again.
17894 if test "$no_create" != yes; then
17895 ac_cs_success=:
17896 ac_config_status_args=
17897 test "$silent" = yes &&
17898 ac_config_status_args="$ac_config_status_args --quiet"
17899 exec 5>/dev/null
17900 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17901 exec 5>>config.log
17902 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17903 # would make configure fail if this is the last instruction.
17904 $ac_cs_success || { (exit 1); exit 1; }
17908 if test "$have_x" = "no"
17909 then
17910 echo
17911 echo "*** Warning: X development files not found. Wine will be built without"
17912 echo "*** X support, which currently does not work, and would probably not be"
17913 echo "*** what you want anyway. You will need to install devel packages of"
17914 echo "*** Xlib/Xfree86 at the very least."
17917 if test "$wine_cv_opengl_version_OK" = "no"
17918 then
17919 echo
17920 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
17921 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
17924 if test "$wine_cv_msg_freetype" = "yes"
17925 then
17926 echo
17927 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
17928 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
17929 echo "*** freetype-devel package (or its equivalent on your distribution) to"
17930 echo "*** enable Wine to use TrueType fonts."
17933 echo
17934 echo "Configure finished. Do 'make depend && make' to compile Wine."
17935 echo