Added tests for GetPrinterDriverDirectoryA.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20021219.
4 #
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 ## --------------------- ##
12
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
22 fi
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48   fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117        ;;
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
123   fi
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; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137          /*)
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
153 ;;
154   esac
155
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 '
166       N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
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'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
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"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
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`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
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}
260
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}
265
266 # Identity of this package.
267 PACKAGE_NAME='Wine'
268 PACKAGE_TARNAME='wine'
269 PACKAGE_VERSION='20021219'
270 PACKAGE_STRING='Wine 20021219'
271 PACKAGE_BUGREPORT=''
272
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"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN C2MAN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
312 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES'
313
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
333
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'
351
352 ac_prev=
353 for ac_option
354 do
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
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
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 ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
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 ;;
393
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" ;;
402
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'" ;;
415
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 ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
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 ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
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 ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
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 ;;
464
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 ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
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 ;;
490
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 ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
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 ;;
511
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 ;;
518
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 ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
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 ;;
545
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 ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
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 ;;
573
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 ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
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'" ;;
597
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" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
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 ;;
617
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 ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
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 ;;
639
640   *)
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}
646     ;;
647
648   esac
649 done
650
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; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
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
667
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
671 do
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
679
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
686
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
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
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=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
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; }; }
734   fi
735 fi
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
772
773 #
774 # Report the --help message.
775 #
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 20021219 to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
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.
786
787 Defaults for the options are specified in brackets.
788
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 \`..']
799
800 _ACEOF
801
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]
808
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'.
813
814 For better control, use the options below.
815
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
830
831   cat <<\_ACEOF
832
833 X features:
834   --x-includes=DIR    X include files are in DIR
835   --x-libraries=DIR   X library files are in DIR
836
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
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of Wine 20021219:";;
846    esac
847   cat <<\_ACEOF
848
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
855
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-wine-tools=<dir> use Wine tools from directory <dir>
862   --with-x                use the X Window System
863
864 Some influential environment variables:
865   CC          C compiler command
866   CFLAGS      C compiler flags
867   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
868               nonstandard directory <lib dir>
869   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
870               headers in a nonstandard directory <include dir>
871   CPP         C preprocessor
872
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
875
876 _ACEOF
877 fi
878
879 if test "$ac_init_help" = "recursive"; then
880   # If there are subdirs, report their specific --help.
881   ac_popdir=`pwd`
882   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883     test -d $ac_dir || continue
884     ac_builddir=.
885
886 if test "$ac_dir" != .; then
887   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888   # A "../" for each directory in $ac_dir_suffix.
889   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890 else
891   ac_dir_suffix= ac_top_builddir=
892 fi
893
894 case $srcdir in
895   .)  # No --srcdir option.  We are building in place.
896     ac_srcdir=.
897     if test -z "$ac_top_builddir"; then
898        ac_top_srcdir=.
899     else
900        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901     fi ;;
902   [\\/]* | ?:[\\/]* )  # Absolute path.
903     ac_srcdir=$srcdir$ac_dir_suffix;
904     ac_top_srcdir=$srcdir ;;
905   *) # Relative path.
906     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907     ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 esac
909 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
910 # absolute.
911 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
912 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
913 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
914 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915
916     cd $ac_dir
917     # Check for guested configure; otherwise get Cygnus style configure.
918     if test -f $ac_srcdir/configure.gnu; then
919       echo
920       $SHELL $ac_srcdir/configure.gnu  --help=recursive
921     elif test -f $ac_srcdir/configure; then
922       echo
923       $SHELL $ac_srcdir/configure  --help=recursive
924     elif test -f $ac_srcdir/configure.ac ||
925            test -f $ac_srcdir/configure.in; then
926       echo
927       $ac_configure --help
928     else
929       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
930     fi
931     cd $ac_popdir
932   done
933 fi
934
935 test -n "$ac_init_help" && exit 0
936 if $ac_init_version; then
937   cat <<\_ACEOF
938 Wine configure 20021219
939 generated by GNU Autoconf 2.57
940
941 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
942 Free Software Foundation, Inc.
943 This configure script is free software; the Free Software Foundation
944 gives unlimited permission to copy, distribute and modify it.
945 _ACEOF
946   exit 0
947 fi
948 exec 5>config.log
949 cat >&5 <<_ACEOF
950 This file contains any messages produced by compilers while
951 running configure, to aid debugging if configure makes a mistake.
952
953 It was created by Wine $as_me 20021219, which was
954 generated by GNU Autoconf 2.57.  Invocation command line was
955
956   $ $0 $@
957
958 _ACEOF
959 {
960 cat <<_ASUNAME
961 ## --------- ##
962 ## Platform. ##
963 ## --------- ##
964
965 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966 uname -m = `(uname -m) 2>/dev/null || echo unknown`
967 uname -r = `(uname -r) 2>/dev/null || echo unknown`
968 uname -s = `(uname -s) 2>/dev/null || echo unknown`
969 uname -v = `(uname -v) 2>/dev/null || echo unknown`
970
971 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
973
974 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
975 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
976 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
978 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
979 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
980 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
981
982 _ASUNAME
983
984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985 for as_dir in $PATH
986 do
987   IFS=$as_save_IFS
988   test -z "$as_dir" && as_dir=.
989   echo "PATH: $as_dir"
990 done
991
992 } >&5
993
994 cat >&5 <<_ACEOF
995
996
997 ## ----------- ##
998 ## Core tests. ##
999 ## ----------- ##
1000
1001 _ACEOF
1002
1003
1004 # Keep a trace of the command line.
1005 # Strip out --no-create and --no-recursion so they do not pile up.
1006 # Strip out --silent because we don't want to record it for future runs.
1007 # Also quote any args containing shell meta-characters.
1008 # Make two passes to allow for proper duplicate-argument suppression.
1009 ac_configure_args=
1010 ac_configure_args0=
1011 ac_configure_args1=
1012 ac_sep=
1013 ac_must_keep_next=false
1014 for ac_pass in 1 2
1015 do
1016   for ac_arg
1017   do
1018     case $ac_arg in
1019     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021     | -silent | --silent | --silen | --sile | --sil)
1022       continue ;;
1023     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025     esac
1026     case $ac_pass in
1027     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028     2)
1029       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030       if test $ac_must_keep_next = true; then
1031         ac_must_keep_next=false # Got value, back to normal.
1032       else
1033         case $ac_arg in
1034           *=* | --config-cache | -C | -disable-* | --disable-* \
1035           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037           | -with-* | --with-* | -without-* | --without-* | --x)
1038             case "$ac_configure_args0 " in
1039               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040             esac
1041             ;;
1042           -* ) ac_must_keep_next=true ;;
1043         esac
1044       fi
1045       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046       # Get rid of the leading space.
1047       ac_sep=" "
1048       ;;
1049     esac
1050   done
1051 done
1052 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1054
1055 # When interrupted or exit'd, cleanup temporary files, and complete
1056 # config.log.  We remove comments because anyway the quotes in there
1057 # would cause problems or look ugly.
1058 # WARNING: Be sure not to use single quotes in there, as some shells,
1059 # such as our DU 5.0 friend, will then `close' the trap.
1060 trap 'exit_status=$?
1061   # Save into config.log some information that might help in debugging.
1062   {
1063     echo
1064
1065     cat <<\_ASBOX
1066 ## ---------------- ##
1067 ## Cache variables. ##
1068 ## ---------------- ##
1069 _ASBOX
1070     echo
1071     # The following way of writing the cache mishandles newlines in values,
1072 {
1073   (set) 2>&1 |
1074     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075     *ac_space=\ *)
1076       sed -n \
1077         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1079       ;;
1080     *)
1081       sed -n \
1082         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083       ;;
1084     esac;
1085 }
1086     echo
1087
1088     cat <<\_ASBOX
1089 ## ----------------- ##
1090 ## Output variables. ##
1091 ## ----------------- ##
1092 _ASBOX
1093     echo
1094     for ac_var in $ac_subst_vars
1095     do
1096       eval ac_val=$`echo $ac_var`
1097       echo "$ac_var='"'"'$ac_val'"'"'"
1098     done | sort
1099     echo
1100
1101     if test -n "$ac_subst_files"; then
1102       cat <<\_ASBOX
1103 ## ------------- ##
1104 ## Output files. ##
1105 ## ------------- ##
1106 _ASBOX
1107       echo
1108       for ac_var in $ac_subst_files
1109       do
1110         eval ac_val=$`echo $ac_var`
1111         echo "$ac_var='"'"'$ac_val'"'"'"
1112       done | sort
1113       echo
1114     fi
1115
1116     if test -s confdefs.h; then
1117       cat <<\_ASBOX
1118 ## ----------- ##
1119 ## confdefs.h. ##
1120 ## ----------- ##
1121 _ASBOX
1122       echo
1123       sed "/^$/d" confdefs.h | sort
1124       echo
1125     fi
1126     test "$ac_signal" != 0 &&
1127       echo "$as_me: caught signal $ac_signal"
1128     echo "$as_me: exit $exit_status"
1129   } >&5
1130   rm -f core core.* *.core &&
1131   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1132     exit $exit_status
1133      ' 0
1134 for ac_signal in 1 2 13 15; do
1135   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136 done
1137 ac_signal=0
1138
1139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1140 rm -rf conftest* confdefs.h
1141 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142 echo >confdefs.h
1143
1144 # Predefined preprocessor variables.
1145
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_NAME "$PACKAGE_NAME"
1148 _ACEOF
1149
1150
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153 _ACEOF
1154
1155
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1158 _ACEOF
1159
1160
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_STRING "$PACKAGE_STRING"
1163 _ACEOF
1164
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168 _ACEOF
1169
1170
1171 # Let the site file select an alternate cache file if it wants to.
1172 # Prefer explicitly selected file to automatically selected ones.
1173 if test -z "$CONFIG_SITE"; then
1174   if test "x$prefix" != xNONE; then
1175     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176   else
1177     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178   fi
1179 fi
1180 for ac_site_file in $CONFIG_SITE; do
1181   if test -r "$ac_site_file"; then
1182     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1183 echo "$as_me: loading site script $ac_site_file" >&6;}
1184     sed 's/^/| /' "$ac_site_file" >&5
1185     . "$ac_site_file"
1186   fi
1187 done
1188
1189 if test -r "$cache_file"; then
1190   # Some versions of bash will fail to source /dev/null (special
1191   # files actually), so we avoid doing that.
1192   if test -f "$cache_file"; then
1193     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1194 echo "$as_me: loading cache $cache_file" >&6;}
1195     case $cache_file in
1196       [\\/]* | ?:[\\/]* ) . $cache_file;;
1197       *)                      . ./$cache_file;;
1198     esac
1199   fi
1200 else
1201   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1202 echo "$as_me: creating cache $cache_file" >&6;}
1203   >$cache_file
1204 fi
1205
1206 # Check that the precious variables saved in the cache have kept the same
1207 # value.
1208 ac_cache_corrupted=false
1209 for ac_var in `(set) 2>&1 |
1210                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212   eval ac_new_set=\$ac_env_${ac_var}_set
1213   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214   eval ac_new_val="\$ac_env_${ac_var}_value"
1215   case $ac_old_set,$ac_new_set in
1216     set,)
1217       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219       ac_cache_corrupted=: ;;
1220     ,set)
1221       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1222 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223       ac_cache_corrupted=: ;;
1224     ,);;
1225     *)
1226       if test "x$ac_old_val" != "x$ac_new_val"; then
1227         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1228 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1229         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1230 echo "$as_me:   former value:  $ac_old_val" >&2;}
1231         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1232 echo "$as_me:   current value: $ac_new_val" >&2;}
1233         ac_cache_corrupted=:
1234       fi;;
1235   esac
1236   # Pass precious variables to config.status.
1237   if test "$ac_new_set" = set; then
1238     case $ac_new_val in
1239     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241     *) ac_arg=$ac_var=$ac_new_val ;;
1242     esac
1243     case " $ac_configure_args " in
1244       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1245       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1246     esac
1247   fi
1248 done
1249 if $ac_cache_corrupted; then
1250   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1251 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1252   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1253 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254    { (exit 1); exit 1; }; }
1255 fi
1256
1257 ac_ext=c
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290           ac_config_headers="$ac_config_headers include/config.h"
1291
1292 ac_aux_dir=
1293 for ac_dir in tools $srcdir/tools; do
1294   if test -f $ac_dir/install-sh; then
1295     ac_aux_dir=$ac_dir
1296     ac_install_sh="$ac_aux_dir/install-sh -c"
1297     break
1298   elif test -f $ac_dir/install.sh; then
1299     ac_aux_dir=$ac_dir
1300     ac_install_sh="$ac_aux_dir/install.sh -c"
1301     break
1302   elif test -f $ac_dir/shtool; then
1303     ac_aux_dir=$ac_dir
1304     ac_install_sh="$ac_aux_dir/shtool install -c"
1305     break
1306   fi
1307 done
1308 if test -z "$ac_aux_dir"; then
1309   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1310 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1311    { (exit 1); exit 1; }; }
1312 fi
1313 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1314 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1315 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1316
1317
1318
1319 # Check whether --enable-win16 or --disable-win16 was given.
1320 if test "${enable_win16+set}" = set; then
1321   enableval="$enable_win16"
1322
1323 fi;
1324 # Check whether --enable-debug or --disable-debug was given.
1325 if test "${enable_debug+set}" = set; then
1326   enableval="$enable_debug"
1327
1328 fi;
1329 # Check whether --enable-trace or --disable-trace was given.
1330 if test "${enable_trace+set}" = set; then
1331   enableval="$enable_trace"
1332
1333 fi;
1334
1335
1336 # Check whether --with-opengl or --without-opengl was given.
1337 if test "${with_opengl+set}" = set; then
1338   withval="$with_opengl"
1339
1340 fi;
1341
1342 # Check whether --with-curses or --without-curses was given.
1343 if test "${with_curses+set}" = set; then
1344   withval="$with_curses"
1345
1346 fi;
1347
1348 # Check whether --with-wine-tools or --without-wine-tools was given.
1349 if test "${with_wine_tools+set}" = set; then
1350   withval="$with_wine_tools"
1351
1352 fi;
1353
1354
1355 WIN16_FILES="\$(WIN16_FILES)"
1356
1357 WIN16_INSTALL="\$(WIN16_INSTALL)"
1358
1359 if test "x$enable_win16" = "xno"
1360 then
1361   WIN16_FILES=""
1362   WIN16_INSTALL=""
1363 fi
1364 if test "x$enable_debug" = "xno"
1365 then
1366
1367 cat >>confdefs.h <<\_ACEOF
1368 #define NO_DEBUG_MSGS 1
1369 _ACEOF
1370
1371 fi
1372 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1373 then
1374
1375 cat >>confdefs.h <<\_ACEOF
1376 #define NO_TRACE_MSGS 1
1377 _ACEOF
1378
1379 fi
1380
1381
1382 # Make sure we can run config.sub.
1383 $ac_config_sub sun4 >/dev/null 2>&1 ||
1384   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1385 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1386    { (exit 1); exit 1; }; }
1387
1388 echo "$as_me:$LINENO: checking build system type" >&5
1389 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1390 if test "${ac_cv_build+set}" = set; then
1391   echo $ECHO_N "(cached) $ECHO_C" >&6
1392 else
1393   ac_cv_build_alias=$build_alias
1394 test -z "$ac_cv_build_alias" &&
1395   ac_cv_build_alias=`$ac_config_guess`
1396 test -z "$ac_cv_build_alias" &&
1397   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1398 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1399    { (exit 1); exit 1; }; }
1400 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1401   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1402 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1403    { (exit 1); exit 1; }; }
1404
1405 fi
1406 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1407 echo "${ECHO_T}$ac_cv_build" >&6
1408 build=$ac_cv_build
1409 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
1413
1414 echo "$as_me:$LINENO: checking host system type" >&5
1415 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1416 if test "${ac_cv_host+set}" = set; then
1417   echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419   ac_cv_host_alias=$host_alias
1420 test -z "$ac_cv_host_alias" &&
1421   ac_cv_host_alias=$ac_cv_build_alias
1422 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1423   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1424 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1425    { (exit 1); exit 1; }; }
1426
1427 fi
1428 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1429 echo "${ECHO_T}$ac_cv_host" >&6
1430 host=$ac_cv_host
1431 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434
1435
1436 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1437 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1438 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1439 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   cat >conftest.make <<\_ACEOF
1443 all:
1444         @echo 'ac_maketemp="$(MAKE)"'
1445 _ACEOF
1446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1447 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1448 if test -n "$ac_maketemp"; then
1449   eval ac_cv_prog_make_${ac_make}_set=yes
1450 else
1451   eval ac_cv_prog_make_${ac_make}_set=no
1452 fi
1453 rm -f conftest.make
1454 fi
1455 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1456   echo "$as_me:$LINENO: result: yes" >&5
1457 echo "${ECHO_T}yes" >&6
1458   SET_MAKE=
1459 else
1460   echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462   SET_MAKE="MAKE=${MAKE-make}"
1463 fi
1464
1465 ac_ext=c
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470 if test -n "$ac_tool_prefix"; then
1471   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476   echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478   if test -n "$CC"; then
1479   ac_cv_prog_CC="$CC" # Let the user override the test.
1480 else
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484   IFS=$as_save_IFS
1485   test -z "$as_dir" && as_dir=.
1486   for ac_exec_ext in '' $ac_executable_extensions; do
1487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490     break 2
1491   fi
1492 done
1493 done
1494
1495 fi
1496 fi
1497 CC=$ac_cv_prog_CC
1498 if test -n "$CC"; then
1499   echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1501 else
1502   echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1504 fi
1505
1506 fi
1507 if test -z "$ac_cv_prog_CC"; then
1508   ac_ct_CC=$CC
1509   # Extract the first word of "gcc", so it can be a program name with args.
1510 set dummy gcc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514   echo $ECHO_N "(cached) $ECHO_C" >&6
1515 else
1516   if test -n "$ac_ct_CC"; then
1517   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518 else
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 for as_dir in $PATH
1521 do
1522   IFS=$as_save_IFS
1523   test -z "$as_dir" && as_dir=.
1524   for ac_exec_ext in '' $ac_executable_extensions; do
1525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526     ac_cv_prog_ac_ct_CC="gcc"
1527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528     break 2
1529   fi
1530 done
1531 done
1532
1533 fi
1534 fi
1535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536 if test -n "$ac_ct_CC"; then
1537   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538 echo "${ECHO_T}$ac_ct_CC" >&6
1539 else
1540   echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1542 fi
1543
1544   CC=$ac_ct_CC
1545 else
1546   CC="$ac_cv_prog_CC"
1547 fi
1548
1549 if test -z "$CC"; then
1550   if test -n "$ac_tool_prefix"; then
1551   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556   echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558   if test -n "$CC"; then
1559   ac_cv_prog_CC="$CC" # Let the user override the test.
1560 else
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564   IFS=$as_save_IFS
1565   test -z "$as_dir" && as_dir=.
1566   for ac_exec_ext in '' $ac_executable_extensions; do
1567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568     ac_cv_prog_CC="${ac_tool_prefix}cc"
1569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570     break 2
1571   fi
1572 done
1573 done
1574
1575 fi
1576 fi
1577 CC=$ac_cv_prog_CC
1578 if test -n "$CC"; then
1579   echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1581 else
1582   echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584 fi
1585
1586 fi
1587 if test -z "$ac_cv_prog_CC"; then
1588   ac_ct_CC=$CC
1589   # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594   echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596   if test -n "$ac_ct_CC"; then
1597   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1598 else
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1601 do
1602   IFS=$as_save_IFS
1603   test -z "$as_dir" && as_dir=.
1604   for ac_exec_ext in '' $ac_executable_extensions; do
1605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606     ac_cv_prog_ac_ct_CC="cc"
1607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608     break 2
1609   fi
1610 done
1611 done
1612
1613 fi
1614 fi
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1619 else
1620   echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1622 fi
1623
1624   CC=$ac_ct_CC
1625 else
1626   CC="$ac_cv_prog_CC"
1627 fi
1628
1629 fi
1630 if test -z "$CC"; then
1631   # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_CC+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   if test -n "$CC"; then
1639   ac_cv_prog_CC="$CC" # Let the user override the test.
1640 else
1641   ac_prog_rejected=no
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 for as_dir in $PATH
1644 do
1645   IFS=$as_save_IFS
1646   test -z "$as_dir" && as_dir=.
1647   for ac_exec_ext in '' $ac_executable_extensions; do
1648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650        ac_prog_rejected=yes
1651        continue
1652      fi
1653     ac_cv_prog_CC="cc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 if test $ac_prog_rejected = yes; then
1661   # We found a bogon in the path, so make sure we never use it.
1662   set dummy $ac_cv_prog_CC
1663   shift
1664   if test $# != 0; then
1665     # We chose a different compiler from the bogus one.
1666     # However, it has the same basename, so the bogon will be chosen
1667     # first if we set CC to just the basename; use the full file name.
1668     shift
1669     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1670   fi
1671 fi
1672 fi
1673 fi
1674 CC=$ac_cv_prog_CC
1675 if test -n "$CC"; then
1676   echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679   echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 fi
1684 if test -z "$CC"; then
1685   if test -n "$ac_tool_prefix"; then
1686   for ac_prog in cl
1687   do
1688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693   echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695   if test -n "$CC"; then
1696   ac_cv_prog_CC="$CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701   IFS=$as_save_IFS
1702   test -z "$as_dir" && as_dir=.
1703   for ac_exec_ext in '' $ac_executable_extensions; do
1704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707     break 2
1708   fi
1709 done
1710 done
1711
1712 fi
1713 fi
1714 CC=$ac_cv_prog_CC
1715 if test -n "$CC"; then
1716   echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1718 else
1719   echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723     test -n "$CC" && break
1724   done
1725 fi
1726 if test -z "$CC"; then
1727   ac_ct_CC=$CC
1728   for ac_prog in cl
1729 do
1730   # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735   echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737   if test -n "$ac_ct_CC"; then
1738   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743   IFS=$as_save_IFS
1744   test -z "$as_dir" && as_dir=.
1745   for ac_exec_ext in '' $ac_executable_extensions; do
1746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747     ac_cv_prog_ac_ct_CC="$ac_prog"
1748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749     break 2
1750   fi
1751 done
1752 done
1753
1754 fi
1755 fi
1756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757 if test -n "$ac_ct_CC"; then
1758   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1759 echo "${ECHO_T}$ac_ct_CC" >&6
1760 else
1761   echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1764
1765   test -n "$ac_ct_CC" && break
1766 done
1767
1768   CC=$ac_ct_CC
1769 fi
1770
1771 fi
1772
1773
1774 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1775 See \`config.log' for more details." >&5
1776 echo "$as_me: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&2;}
1778    { (exit 1); exit 1; }; }
1779
1780 # Provide some information about the compiler.
1781 echo "$as_me:$LINENO:" \
1782      "checking for C compiler version" >&5
1783 ac_compiler=`set X $ac_compile; echo $2`
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785   (eval $ac_compiler --version </dev/null >&5) 2>&5
1786   ac_status=$?
1787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788   (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790   (eval $ac_compiler -v </dev/null >&5) 2>&5
1791   ac_status=$?
1792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793   (exit $ac_status); }
1794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795   (eval $ac_compiler -V </dev/null >&5) 2>&5
1796   ac_status=$?
1797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798   (exit $ac_status); }
1799
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line $LINENO "configure"
1802 /* confdefs.h.  */
1803 _ACEOF
1804 cat confdefs.h >>conftest.$ac_ext
1805 cat >>conftest.$ac_ext <<_ACEOF
1806 /* end confdefs.h.  */
1807
1808 int
1809 main ()
1810 {
1811
1812   ;
1813   return 0;
1814 }
1815 _ACEOF
1816 ac_clean_files_save=$ac_clean_files
1817 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1818 # Try to create an executable without -o first, disregard a.out.
1819 # It will help us diagnose broken compilers, and finding out an intuition
1820 # of exeext.
1821 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1822 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1823 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1824 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1825   (eval $ac_link_default) 2>&5
1826   ac_status=$?
1827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828   (exit $ac_status); }; then
1829   # Find the output, starting from the most likely.  This scheme is
1830 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1831 # resort.
1832
1833 # Be careful to initialize this variable, since it used to be cached.
1834 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1835 ac_cv_exeext=
1836 # b.out is created by i960 compilers.
1837 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1838 do
1839   test -f "$ac_file" || continue
1840   case $ac_file in
1841     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1842         ;;
1843     conftest.$ac_ext )
1844         # This is the source file.
1845         ;;
1846     [ab].out )
1847         # We found the default executable, but exeext='' is most
1848         # certainly right.
1849         break;;
1850     *.* )
1851         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1852         # FIXME: I believe we export ac_cv_exeext for Libtool,
1853         # but it would be cool to find out if it's true.  Does anybody
1854         # maintain Libtool? --akim.
1855         export ac_cv_exeext
1856         break;;
1857     * )
1858         break;;
1859   esac
1860 done
1861 else
1862   echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: C compiler cannot create executables
1868 See \`config.log' for more details." >&2;}
1869    { (exit 77); exit 77; }; }
1870 fi
1871
1872 ac_exeext=$ac_cv_exeext
1873 echo "$as_me:$LINENO: result: $ac_file" >&5
1874 echo "${ECHO_T}$ac_file" >&6
1875
1876 # Check the compiler produces executables we can run.  If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1879 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1880 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1881 # If not cross compiling, check that we can run a simple program.
1882 if test "$cross_compiling" != yes; then
1883   if { ac_try='./$ac_file'
1884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1885   (eval $ac_try) 2>&5
1886   ac_status=$?
1887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888   (exit $ac_status); }; }; then
1889     cross_compiling=no
1890   else
1891     if test "$cross_compiling" = maybe; then
1892         cross_compiling=yes
1893     else
1894         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1895 If you meant to cross compile, use \`--host'.
1896 See \`config.log' for more details." >&5
1897 echo "$as_me: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&2;}
1900    { (exit 1); exit 1; }; }
1901     fi
1902   fi
1903 fi
1904 echo "$as_me:$LINENO: result: yes" >&5
1905 echo "${ECHO_T}yes" >&6
1906
1907 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1908 ac_clean_files=$ac_clean_files_save
1909 # Check the compiler produces executables we can run.  If not, either
1910 # the compiler is broken, or we cross compile.
1911 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1912 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1913 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1914 echo "${ECHO_T}$cross_compiling" >&6
1915
1916 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1917 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1919   (eval $ac_link) 2>&5
1920   ac_status=$?
1921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922   (exit $ac_status); }; then
1923   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1924 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1925 # work properly (i.e., refer to `conftest.exe'), while it won't with
1926 # `rm'.
1927 for ac_file in conftest.exe conftest conftest.*; do
1928   test -f "$ac_file" || continue
1929   case $ac_file in
1930     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1931     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1932           export ac_cv_exeext
1933           break;;
1934     * ) break;;
1935   esac
1936 done
1937 else
1938   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1941 See \`config.log' for more details." >&2;}
1942    { (exit 1); exit 1; }; }
1943 fi
1944
1945 rm -f conftest$ac_cv_exeext
1946 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1947 echo "${ECHO_T}$ac_cv_exeext" >&6
1948
1949 rm -f conftest.$ac_ext
1950 EXEEXT=$ac_cv_exeext
1951 ac_exeext=$EXEEXT
1952 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1953 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1954 if test "${ac_cv_objext+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   cat >conftest.$ac_ext <<_ACEOF
1958 #line $LINENO "configure"
1959 /* confdefs.h.  */
1960 _ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h.  */
1964
1965 int
1966 main ()
1967 {
1968
1969   ;
1970   return 0;
1971 }
1972 _ACEOF
1973 rm -f conftest.o conftest.obj
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975   (eval $ac_compile) 2>&5
1976   ac_status=$?
1977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978   (exit $ac_status); }; then
1979   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1980   case $ac_file in
1981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1982     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1983        break;;
1984   esac
1985 done
1986 else
1987   echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1993 See \`config.log' for more details." >&2;}
1994    { (exit 1); exit 1; }; }
1995 fi
1996
1997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1998 fi
1999 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2000 echo "${ECHO_T}$ac_cv_objext" >&6
2001 OBJEXT=$ac_cv_objext
2002 ac_objext=$OBJEXT
2003 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   cat >conftest.$ac_ext <<_ACEOF
2009 #line $LINENO "configure"
2010 /* confdefs.h.  */
2011 _ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h.  */
2015
2016 int
2017 main ()
2018 {
2019 #ifndef __GNUC__
2020        choke me
2021 #endif
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 rm -f conftest.$ac_objext
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029   (eval $ac_compile) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); } &&
2033          { ac_try='test -s conftest.$ac_objext'
2034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035   (eval $ac_try) 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }; }; then
2039   ac_compiler_gnu=yes
2040 else
2041   echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 ac_compiler_gnu=no
2045 fi
2046 rm -f conftest.$ac_objext conftest.$ac_ext
2047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2048
2049 fi
2050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052 GCC=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CFLAGS=${CFLAGS+set}
2054 ac_save_CFLAGS=$CFLAGS
2055 CFLAGS="-g"
2056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cc_g+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   cat >conftest.$ac_ext <<_ACEOF
2062 #line $LINENO "configure"
2063 /* confdefs.h.  */
2064 _ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h.  */
2068
2069 int
2070 main ()
2071 {
2072
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079   (eval $ac_compile) 2>&5
2080   ac_status=$?
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); } &&
2083          { ac_try='test -s conftest.$ac_objext'
2084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085   (eval $ac_try) 2>&5
2086   ac_status=$?
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); }; }; then
2089   ac_cv_prog_cc_g=yes
2090 else
2091   echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2093
2094 ac_cv_prog_cc_g=no
2095 fi
2096 rm -f conftest.$ac_objext conftest.$ac_ext
2097 fi
2098 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2100 if test "$ac_test_CFLAGS" = set; then
2101   CFLAGS=$ac_save_CFLAGS
2102 elif test $ac_cv_prog_cc_g = yes; then
2103   if test "$GCC" = yes; then
2104     CFLAGS="-g -O2"
2105   else
2106     CFLAGS="-g"
2107   fi
2108 else
2109   if test "$GCC" = yes; then
2110     CFLAGS="-O2"
2111   else
2112     CFLAGS=
2113   fi
2114 fi
2115 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2116 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   ac_cv_prog_cc_stdc=no
2121 ac_save_CC=$CC
2122 cat >conftest.$ac_ext <<_ACEOF
2123 #line $LINENO "configure"
2124 /* confdefs.h.  */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h.  */
2129 #include <stdarg.h>
2130 #include <stdio.h>
2131 #include <sys/types.h>
2132 #include <sys/stat.h>
2133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2134 struct buf { int x; };
2135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2136 static char *e (p, i)
2137      char **p;
2138      int i;
2139 {
2140   return p[i];
2141 }
2142 static char *f (char * (*g) (char **, int), char **p, ...)
2143 {
2144   char *s;
2145   va_list v;
2146   va_start (v,p);
2147   s = g (p, va_arg (v,int));
2148   va_end (v);
2149   return s;
2150 }
2151 int test (int i, double x);
2152 struct s1 {int (*f) (int a);};
2153 struct s2 {int (*f) (double a);};
2154 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2155 int argc;
2156 char **argv;
2157 int
2158 main ()
2159 {
2160 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2161   ;
2162   return 0;
2163 }
2164 _ACEOF
2165 # Don't try gcc -ansi; that turns off useful extensions and
2166 # breaks some systems' header files.
2167 # AIX                   -qlanglvl=ansi
2168 # Ultrix and OSF/1      -std1
2169 # HP-UX 10.20 and later -Ae
2170 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2171 # SVR4                  -Xc -D__EXTENSIONS__
2172 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2173 do
2174   CC="$ac_save_CC $ac_arg"
2175   rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177   (eval $ac_compile) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); } &&
2181          { ac_try='test -s conftest.$ac_objext'
2182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183   (eval $ac_try) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }; }; then
2187   ac_cv_prog_cc_stdc=$ac_arg
2188 break
2189 else
2190   echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 fi
2194 rm -f conftest.$ac_objext
2195 done
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2197 CC=$ac_save_CC
2198
2199 fi
2200
2201 case "x$ac_cv_prog_cc_stdc" in
2202   x|xno)
2203     echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2205   *)
2206     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208     CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 esac
2210
2211 # Some people use a C++ compiler to compile C.  Since we use `exit',
2212 # in C++ we need to declare it.  In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #ifndef __cplusplus
2217   choke me
2218 #endif
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222   (eval $ac_compile) 2>&5
2223   ac_status=$?
2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225   (exit $ac_status); } &&
2226          { ac_try='test -s conftest.$ac_objext'
2227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228   (eval $ac_try) 2>&5
2229   ac_status=$?
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); }; }; then
2232   for ac_declaration in \
2233    ''\
2234    '#include <stdlib.h>' \
2235    'extern "C" void std::exit (int) throw (); using std::exit;' \
2236    'extern "C" void std::exit (int); using std::exit;' \
2237    'extern "C" void exit (int) throw ();' \
2238    'extern "C" void exit (int);' \
2239    'void exit (int);'
2240 do
2241   cat >conftest.$ac_ext <<_ACEOF
2242 #line $LINENO "configure"
2243 /* confdefs.h.  */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h.  */
2248 #include <stdlib.h>
2249 $ac_declaration
2250 int
2251 main ()
2252 {
2253 exit (42);
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260   (eval $ac_compile) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); } &&
2264          { ac_try='test -s conftest.$ac_objext'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; }; then
2270   :
2271 else
2272   echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 continue
2276 fi
2277 rm -f conftest.$ac_objext conftest.$ac_ext
2278   cat >conftest.$ac_ext <<_ACEOF
2279 #line $LINENO "configure"
2280 /* confdefs.h.  */
2281 _ACEOF
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h.  */
2285 $ac_declaration
2286 int
2287 main ()
2288 {
2289 exit (42);
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296   (eval $ac_compile) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); } &&
2300          { ac_try='test -s conftest.$ac_objext'
2301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302   (eval $ac_try) 2>&5
2303   ac_status=$?
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); }; }; then
2306   break
2307 else
2308   echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2310
2311 fi
2312 rm -f conftest.$ac_objext conftest.$ac_ext
2313 done
2314 rm -f conftest*
2315 if test -n "$ac_declaration"; then
2316   echo '#ifdef __cplusplus' >>confdefs.h
2317   echo $ac_declaration      >>confdefs.h
2318   echo '#endif'             >>confdefs.h
2319 fi
2320
2321 else
2322   echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324
2325 fi
2326 rm -f conftest.$ac_objext conftest.$ac_ext
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332
2333 ac_ext=c
2334 ac_cpp='$CPP $CPPFLAGS'
2335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2339 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2340 # On Suns, sometimes $CPP names a directory.
2341 if test -n "$CPP" && test -d "$CPP"; then
2342   CPP=
2343 fi
2344 if test -z "$CPP"; then
2345   if test "${ac_cv_prog_CPP+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348       # Double quotes because CPP needs to be expanded
2349     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2350     do
2351       ac_preproc_ok=false
2352 for ac_c_preproc_warn_flag in '' yes
2353 do
2354   # Use a header file that comes with gcc, so configuring glibc
2355   # with a fresh cross-compiler works.
2356   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2357   # <limits.h> exists even on freestanding compilers.
2358   # On the NeXT, cc -E runs the code through the compiler's parser,
2359   # not just through cpp. "Syntax error" is here to catch this case.
2360   cat >conftest.$ac_ext <<_ACEOF
2361 #line $LINENO "configure"
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367 #ifdef __STDC__
2368 # include <limits.h>
2369 #else
2370 # include <assert.h>
2371 #endif
2372                      Syntax error
2373 _ACEOF
2374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2375   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2376   ac_status=$?
2377   grep -v '^ *+' conftest.er1 >conftest.err
2378   rm -f conftest.er1
2379   cat conftest.err >&5
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); } >/dev/null; then
2382   if test -s conftest.err; then
2383     ac_cpp_err=$ac_c_preproc_warn_flag
2384   else
2385     ac_cpp_err=
2386   fi
2387 else
2388   ac_cpp_err=yes
2389 fi
2390 if test -z "$ac_cpp_err"; then
2391   :
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396   # Broken: fails on valid input.
2397 continue
2398 fi
2399 rm -f conftest.err conftest.$ac_ext
2400
2401   # OK, works on sane cases.  Now check whether non-existent headers
2402   # can be detected and how.
2403   cat >conftest.$ac_ext <<_ACEOF
2404 #line $LINENO "configure"
2405 /* confdefs.h.  */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h.  */
2410 #include <ac_nonexistent.h>
2411 _ACEOF
2412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2414   ac_status=$?
2415   grep -v '^ *+' conftest.er1 >conftest.err
2416   rm -f conftest.er1
2417   cat conftest.err >&5
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); } >/dev/null; then
2420   if test -s conftest.err; then
2421     ac_cpp_err=$ac_c_preproc_warn_flag
2422   else
2423     ac_cpp_err=
2424   fi
2425 else
2426   ac_cpp_err=yes
2427 fi
2428 if test -z "$ac_cpp_err"; then
2429   # Broken: success on invalid input.
2430 continue
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435   # Passes both tests.
2436 ac_preproc_ok=:
2437 break
2438 fi
2439 rm -f conftest.err conftest.$ac_ext
2440
2441 done
2442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2443 rm -f conftest.err conftest.$ac_ext
2444 if $ac_preproc_ok; then
2445   break
2446 fi
2447
2448     done
2449     ac_cv_prog_CPP=$CPP
2450
2451 fi
2452   CPP=$ac_cv_prog_CPP
2453 else
2454   ac_cv_prog_CPP=$CPP
2455 fi
2456 echo "$as_me:$LINENO: result: $CPP" >&5
2457 echo "${ECHO_T}$CPP" >&6
2458 ac_preproc_ok=false
2459 for ac_c_preproc_warn_flag in '' yes
2460 do
2461   # Use a header file that comes with gcc, so configuring glibc
2462   # with a fresh cross-compiler works.
2463   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464   # <limits.h> exists even on freestanding compilers.
2465   # On the NeXT, cc -E runs the code through the compiler's parser,
2466   # not just through cpp. "Syntax error" is here to catch this case.
2467   cat >conftest.$ac_ext <<_ACEOF
2468 #line $LINENO "configure"
2469 /* confdefs.h.  */
2470 _ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h.  */
2474 #ifdef __STDC__
2475 # include <limits.h>
2476 #else
2477 # include <assert.h>
2478 #endif
2479                      Syntax error
2480 _ACEOF
2481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2482   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2483   ac_status=$?
2484   grep -v '^ *+' conftest.er1 >conftest.err
2485   rm -f conftest.er1
2486   cat conftest.err >&5
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); } >/dev/null; then
2489   if test -s conftest.err; then
2490     ac_cpp_err=$ac_c_preproc_warn_flag
2491   else
2492     ac_cpp_err=
2493   fi
2494 else
2495   ac_cpp_err=yes
2496 fi
2497 if test -z "$ac_cpp_err"; then
2498   :
2499 else
2500   echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2502
2503   # Broken: fails on valid input.
2504 continue
2505 fi
2506 rm -f conftest.err conftest.$ac_ext
2507
2508   # OK, works on sane cases.  Now check whether non-existent headers
2509   # can be detected and how.
2510   cat >conftest.$ac_ext <<_ACEOF
2511 #line $LINENO "configure"
2512 /* confdefs.h.  */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h.  */
2517 #include <ac_nonexistent.h>
2518 _ACEOF
2519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2520   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2521   ac_status=$?
2522   grep -v '^ *+' conftest.er1 >conftest.err
2523   rm -f conftest.er1
2524   cat conftest.err >&5
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } >/dev/null; then
2527   if test -s conftest.err; then
2528     ac_cpp_err=$ac_c_preproc_warn_flag
2529   else
2530     ac_cpp_err=
2531   fi
2532 else
2533   ac_cpp_err=yes
2534 fi
2535 if test -z "$ac_cpp_err"; then
2536   # Broken: success on invalid input.
2537 continue
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542   # Passes both tests.
2543 ac_preproc_ok=:
2544 break
2545 fi
2546 rm -f conftest.err conftest.$ac_ext
2547
2548 done
2549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2550 rm -f conftest.err conftest.$ac_ext
2551 if $ac_preproc_ok; then
2552   :
2553 else
2554   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2557 See \`config.log' for more details." >&2;}
2558    { (exit 1); exit 1; }; }
2559 fi
2560
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2569 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2570 if test "${wine_cv_toolsdir+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   if test -z "$with_wine_tools"; then
2574      if test "$cross_compiling" = "yes"; then
2575        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2576 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2577    { (exit 1); exit 1; }; }
2578      else
2579        wine_cv_toolsdir="\$(TOPOBJDIR)"
2580      fi
2581    elif test -d "$with_wine_tools/tools/winebuild"; then
2582      case $with_wine_tools in
2583        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2584        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2585      esac
2586    else
2587      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2588 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2589    { (exit 1); exit 1; }; }
2590    fi
2591 fi
2592 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2593 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2594 TOOLSDIR=$wine_cv_toolsdir
2595
2596
2597
2598
2599 echo "$as_me:$LINENO: checking for X" >&5
2600 echo $ECHO_N "checking for X... $ECHO_C" >&6
2601
2602
2603 # Check whether --with-x or --without-x was given.
2604 if test "${with_x+set}" = set; then
2605   withval="$with_x"
2606
2607 fi;
2608 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2609 if test "x$with_x" = xno; then
2610   # The user explicitly disabled X.
2611   have_x=disabled
2612 else
2613   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2614     # Both variables are already set.
2615     have_x=yes
2616   else
2617     if test "${ac_cv_have_x+set}" = set; then
2618   echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620   # One or both of the vars are not set, and there is no cached value.
2621 ac_x_includes=no ac_x_libraries=no
2622 rm -fr conftest.dir
2623 if mkdir conftest.dir; then
2624   cd conftest.dir
2625   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2626   cat >Imakefile <<'_ACEOF'
2627 acfindx:
2628         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2629 _ACEOF
2630   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2631     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2632     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2633     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2634     for ac_extension in a so sl; do
2635       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2636          test -f $ac_im_libdir/libX11.$ac_extension; then
2637         ac_im_usrlibdir=$ac_im_libdir; break
2638       fi
2639     done
2640     # Screen out bogus values from the imake configuration.  They are
2641     # bogus both because they are the default anyway, and because
2642     # using them would break gcc on systems where it needs fixed includes.
2643     case $ac_im_incroot in
2644         /usr/include) ;;
2645         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2646     esac
2647     case $ac_im_usrlibdir in
2648         /usr/lib | /lib) ;;
2649         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2650     esac
2651   fi
2652   cd ..
2653   rm -fr conftest.dir
2654 fi
2655
2656 # Standard set of common directories for X headers.
2657 # Check X11 before X11Rn because it is often a symlink to the current release.
2658 ac_x_header_dirs='
2659 /usr/X11/include
2660 /usr/X11R6/include
2661 /usr/X11R5/include
2662 /usr/X11R4/include
2663
2664 /usr/include/X11
2665 /usr/include/X11R6
2666 /usr/include/X11R5
2667 /usr/include/X11R4
2668
2669 /usr/local/X11/include
2670 /usr/local/X11R6/include
2671 /usr/local/X11R5/include
2672 /usr/local/X11R4/include
2673
2674 /usr/local/include/X11
2675 /usr/local/include/X11R6
2676 /usr/local/include/X11R5
2677 /usr/local/include/X11R4
2678
2679 /usr/X386/include
2680 /usr/x386/include
2681 /usr/XFree86/include/X11
2682
2683 /usr/include
2684 /usr/local/include
2685 /usr/unsupported/include
2686 /usr/athena/include
2687 /usr/local/x11r5/include
2688 /usr/lpp/Xamples/include
2689
2690 /usr/openwin/include
2691 /usr/openwin/share/include'
2692
2693 if test "$ac_x_includes" = no; then
2694   # Guess where to find include files, by looking for Intrinsic.h.
2695   # First, try using that file with no special directory specified.
2696   cat >conftest.$ac_ext <<_ACEOF
2697 #line $LINENO "configure"
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703 #include <X11/Intrinsic.h>
2704 _ACEOF
2705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2707   ac_status=$?
2708   grep -v '^ *+' conftest.er1 >conftest.err
2709   rm -f conftest.er1
2710   cat conftest.err >&5
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } >/dev/null; then
2713   if test -s conftest.err; then
2714     ac_cpp_err=$ac_c_preproc_warn_flag
2715   else
2716     ac_cpp_err=
2717   fi
2718 else
2719   ac_cpp_err=yes
2720 fi
2721 if test -z "$ac_cpp_err"; then
2722   # We can compile using X headers with no special include directory.
2723 ac_x_includes=
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728   for ac_dir in $ac_x_header_dirs; do
2729   if test -r "$ac_dir/X11/Intrinsic.h"; then
2730     ac_x_includes=$ac_dir
2731     break
2732   fi
2733 done
2734 fi
2735 rm -f conftest.err conftest.$ac_ext
2736 fi # $ac_x_includes = no
2737
2738 if test "$ac_x_libraries" = no; then
2739   # Check for the libraries.
2740   # See if we find them without any special options.
2741   # Don't add to $LIBS permanently.
2742   ac_save_LIBS=$LIBS
2743   LIBS="-lXt $LIBS"
2744   cat >conftest.$ac_ext <<_ACEOF
2745 #line $LINENO "configure"
2746 /* confdefs.h.  */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h.  */
2751 #include <X11/Intrinsic.h>
2752 int
2753 main ()
2754 {
2755 XtMalloc (0)
2756   ;
2757   return 0;
2758 }
2759 _ACEOF
2760 rm -f conftest.$ac_objext conftest$ac_exeext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2762   (eval $ac_link) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } &&
2766          { ac_try='test -s conftest$ac_exeext'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; }; then
2772   LIBS=$ac_save_LIBS
2773 # We can link X programs with no special library path.
2774 ac_x_libraries=
2775 else
2776   echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2778
2779 LIBS=$ac_save_LIBS
2780 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2781 do
2782   # Don't even attempt the hair of trying to link an X program!
2783   for ac_extension in a so sl; do
2784     if test -r $ac_dir/libXt.$ac_extension; then
2785       ac_x_libraries=$ac_dir
2786       break 2
2787     fi
2788   done
2789 done
2790 fi
2791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2792 fi # $ac_x_libraries = no
2793
2794 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2795   # Didn't find X anywhere.  Cache the known absence of X.
2796   ac_cv_have_x="have_x=no"
2797 else
2798   # Record where we found X for the cache.
2799   ac_cv_have_x="have_x=yes \
2800                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2801 fi
2802 fi
2803
2804   fi
2805   eval "$ac_cv_have_x"
2806 fi # $with_x != no
2807
2808 if test "$have_x" != yes; then
2809   echo "$as_me:$LINENO: result: $have_x" >&5
2810 echo "${ECHO_T}$have_x" >&6
2811   no_x=yes
2812 else
2813   # If each of the values was on the command line, it overrides each guess.
2814   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2815   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2816   # Update the cache value to reflect the command line values.
2817   ac_cv_have_x="have_x=yes \
2818                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2819   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2820 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2821 fi
2822
2823 if test "$no_x" = yes; then
2824   # Not all programs may use this symbol, but it does not hurt to define it.
2825
2826 cat >>confdefs.h <<\_ACEOF
2827 #define X_DISPLAY_MISSING 1
2828 _ACEOF
2829
2830   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2831 else
2832   if test -n "$x_includes"; then
2833     X_CFLAGS="$X_CFLAGS -I$x_includes"
2834   fi
2835
2836   # It would also be nice to do this for all -L options, not just this one.
2837   if test -n "$x_libraries"; then
2838     X_LIBS="$X_LIBS -L$x_libraries"
2839     # For Solaris; some versions of Sun CC require a space after -R and
2840     # others require no space.  Words are not sufficient . . . .
2841     case `(uname -sr) 2>/dev/null` in
2842     "SunOS 5"*)
2843       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2844 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2845       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2846       cat >conftest.$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853
2854 int
2855 main ()
2856 {
2857
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 rm -f conftest.$ac_objext conftest$ac_exeext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2864   (eval $ac_link) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); } &&
2868          { ac_try='test -s conftest$ac_exeext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   ac_R_nospace=yes
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 ac_R_nospace=no
2880 fi
2881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2882       if test $ac_R_nospace = yes; then
2883         echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6
2885         X_LIBS="$X_LIBS -R$x_libraries"
2886       else
2887         LIBS="$ac_xsave_LIBS -R $x_libraries"
2888         cat >conftest.$ac_ext <<_ACEOF
2889 #line $LINENO "configure"
2890 /* confdefs.h.  */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h.  */
2895
2896 int
2897 main ()
2898 {
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 rm -f conftest.$ac_objext conftest$ac_exeext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2906   (eval $ac_link) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } &&
2910          { ac_try='test -s conftest$ac_exeext'
2911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   ac_R_space=yes
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 ac_R_space=no
2922 fi
2923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2924         if test $ac_R_space = yes; then
2925           echo "$as_me:$LINENO: result: yes" >&5
2926 echo "${ECHO_T}yes" >&6
2927           X_LIBS="$X_LIBS -R $x_libraries"
2928         else
2929           echo "$as_me:$LINENO: result: neither works" >&5
2930 echo "${ECHO_T}neither works" >&6
2931         fi
2932       fi
2933       LIBS=$ac_xsave_LIBS
2934     esac
2935   fi
2936
2937   # Check for system-dependent libraries X programs must link with.
2938   # Do this before checking for the system-independent R6 libraries
2939   # (-lICE), since we may need -lsocket or whatever for X linking.
2940
2941   if test "$ISC" = yes; then
2942     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2943   else
2944     # Martyn Johnson says this is needed for Ultrix, if the X
2945     # libraries were built with DECnet support.  And Karl Berry says
2946     # the Alpha needs dnet_stub (dnet does not exist).
2947     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2948     cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955
2956 /* Override any gcc2 internal prototype to avoid an error.  */
2957 #ifdef __cplusplus
2958 extern "C"
2959 #endif
2960 /* We use char because int might match the return type of a gcc2
2961    builtin and then its argument prototype would still apply.  */
2962 char XOpenDisplay ();
2963 int
2964 main ()
2965 {
2966 XOpenDisplay ();
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext conftest$ac_exeext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2973   (eval $ac_link) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } &&
2977          { ac_try='test -s conftest$ac_exeext'
2978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979   (eval $ac_try) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983   :
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2989 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2990 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2991   echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993   ac_check_lib_save_LIBS=$LIBS
2994 LIBS="-ldnet  $LIBS"
2995 cat >conftest.$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2997 /* confdefs.h.  */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h.  */
3002
3003 /* Override any gcc2 internal prototype to avoid an error.  */
3004 #ifdef __cplusplus
3005 extern "C"
3006 #endif
3007 /* We use char because int might match the return type of a gcc2
3008    builtin and then its argument prototype would still apply.  */
3009 char dnet_ntoa ();
3010 int
3011 main ()
3012 {
3013 dnet_ntoa ();
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext conftest$ac_exeext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020   (eval $ac_link) 2>&5
3021   ac_status=$?
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); } &&
3024          { ac_try='test -s conftest$ac_exeext'
3025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026   (eval $ac_try) 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); }; }; then
3030   ac_cv_lib_dnet_dnet_ntoa=yes
3031 else
3032   echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 ac_cv_lib_dnet_dnet_ntoa=no
3036 fi
3037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3038 LIBS=$ac_check_lib_save_LIBS
3039 fi
3040 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3041 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3042 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3043   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3044 fi
3045
3046     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3047       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3048 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3049 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3050   echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052   ac_check_lib_save_LIBS=$LIBS
3053 LIBS="-ldnet_stub  $LIBS"
3054 cat >conftest.$ac_ext <<_ACEOF
3055 #line $LINENO "configure"
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061
3062 /* Override any gcc2 internal prototype to avoid an error.  */
3063 #ifdef __cplusplus
3064 extern "C"
3065 #endif
3066 /* We use char because int might match the return type of a gcc2
3067    builtin and then its argument prototype would still apply.  */
3068 char dnet_ntoa ();
3069 int
3070 main ()
3071 {
3072 dnet_ntoa ();
3073   ;
3074   return 0;
3075 }
3076 _ACEOF
3077 rm -f conftest.$ac_objext conftest$ac_exeext
3078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3079   (eval $ac_link) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -s conftest$ac_exeext'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; }; then
3089   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3090 else
3091   echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094 ac_cv_lib_dnet_stub_dnet_ntoa=no
3095 fi
3096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3097 LIBS=$ac_check_lib_save_LIBS
3098 fi
3099 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3100 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3101 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3102   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3103 fi
3104
3105     fi
3106 fi
3107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3108     LIBS="$ac_xsave_LIBS"
3109
3110     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3111     # to get the SysV transport functions.
3112     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3113     # needs -lnsl.
3114     # The nsl library prevents programs from opening the X display
3115     # on Irix 5.2, according to T.E. Dickey.
3116     # The functions gethostbyname, getservbyname, and inet_addr are
3117     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3118     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3119 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3120 if test "${ac_cv_func_gethostbyname+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   cat >conftest.$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130 /* System header to define __stub macros and hopefully few prototypes,
3131     which can conflict with char gethostbyname (); below.
3132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3133     <limits.h> exists even on freestanding compilers.  */
3134 #ifdef __STDC__
3135 # include <limits.h>
3136 #else
3137 # include <assert.h>
3138 #endif
3139 /* Override any gcc2 internal prototype to avoid an error.  */
3140 #ifdef __cplusplus
3141 extern "C"
3142 {
3143 #endif
3144 /* We use char because int might match the return type of a gcc2
3145    builtin and then its argument prototype would still apply.  */
3146 char gethostbyname ();
3147 /* The GNU C library defines this for functions which it implements
3148     to always fail with ENOSYS.  Some functions are actually named
3149     something starting with __ and the normal name is an alias.  */
3150 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3151 choke me
3152 #else
3153 char (*f) () = gethostbyname;
3154 #endif
3155 #ifdef __cplusplus
3156 }
3157 #endif
3158
3159 int
3160 main ()
3161 {
3162 return f != gethostbyname;
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 rm -f conftest.$ac_objext conftest$ac_exeext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3169   (eval $ac_link) 2>&5
3170   ac_status=$?
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } &&
3173          { ac_try='test -s conftest$ac_exeext'
3174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175   (eval $ac_try) 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; }; then
3179   ac_cv_func_gethostbyname=yes
3180 else
3181   echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 ac_cv_func_gethostbyname=no
3185 fi
3186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3187 fi
3188 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3189 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3190
3191     if test $ac_cv_func_gethostbyname = no; then
3192       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3193 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3194 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   ac_check_lib_save_LIBS=$LIBS
3198 LIBS="-lnsl  $LIBS"
3199 cat >conftest.$ac_ext <<_ACEOF
3200 #line $LINENO "configure"
3201 /* confdefs.h.  */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h.  */
3206
3207 /* Override any gcc2 internal prototype to avoid an error.  */
3208 #ifdef __cplusplus
3209 extern "C"
3210 #endif
3211 /* We use char because int might match the return type of a gcc2
3212    builtin and then its argument prototype would still apply.  */
3213 char gethostbyname ();
3214 int
3215 main ()
3216 {
3217 gethostbyname ();
3218   ;
3219   return 0;
3220 }
3221 _ACEOF
3222 rm -f conftest.$ac_objext conftest$ac_exeext
3223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3224   (eval $ac_link) 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } &&
3228          { ac_try='test -s conftest$ac_exeext'
3229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230   (eval $ac_try) 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }; }; then
3234   ac_cv_lib_nsl_gethostbyname=yes
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239 ac_cv_lib_nsl_gethostbyname=no
3240 fi
3241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3242 LIBS=$ac_check_lib_save_LIBS
3243 fi
3244 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3245 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3246 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3247   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3248 fi
3249
3250       if test $ac_cv_lib_nsl_gethostbyname = no; then
3251         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3252 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3253 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   ac_check_lib_save_LIBS=$LIBS
3257 LIBS="-lbsd  $LIBS"
3258 cat >conftest.$ac_ext <<_ACEOF
3259 #line $LINENO "configure"
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265
3266 /* Override any gcc2 internal prototype to avoid an error.  */
3267 #ifdef __cplusplus
3268 extern "C"
3269 #endif
3270 /* We use char because int might match the return type of a gcc2
3271    builtin and then its argument prototype would still apply.  */
3272 char gethostbyname ();
3273 int
3274 main ()
3275 {
3276 gethostbyname ();
3277   ;
3278   return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext conftest$ac_exeext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3283   (eval $ac_link) 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } &&
3287          { ac_try='test -s conftest$ac_exeext'
3288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289   (eval $ac_try) 2>&5
3290   ac_status=$?
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); }; }; then
3293   ac_cv_lib_bsd_gethostbyname=yes
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_cv_lib_bsd_gethostbyname=no
3299 fi
3300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3301 LIBS=$ac_check_lib_save_LIBS
3302 fi
3303 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3304 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3305 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3306   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3307 fi
3308
3309       fi
3310     fi
3311
3312     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3313     # socket/setsockopt and other routines are undefined under SCO ODT
3314     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3315     # on later versions), says Simon Leinen: it contains gethostby*
3316     # variants that don't use the name server (or something).  -lsocket
3317     # must be given before -lnsl if both are needed.  We assume that
3318     # if connect needs -lnsl, so does gethostbyname.
3319     echo "$as_me:$LINENO: checking for connect" >&5
3320 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3321 if test "${ac_cv_func_connect+set}" = set; then
3322   echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324   cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3326 /* confdefs.h.  */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h.  */
3331 /* System header to define __stub macros and hopefully few prototypes,
3332     which can conflict with char connect (); below.
3333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3334     <limits.h> exists even on freestanding compilers.  */
3335 #ifdef __STDC__
3336 # include <limits.h>
3337 #else
3338 # include <assert.h>
3339 #endif
3340 /* Override any gcc2 internal prototype to avoid an error.  */
3341 #ifdef __cplusplus
3342 extern "C"
3343 {
3344 #endif
3345 /* We use char because int might match the return type of a gcc2
3346    builtin and then its argument prototype would still apply.  */
3347 char connect ();
3348 /* The GNU C library defines this for functions which it implements
3349     to always fail with ENOSYS.  Some functions are actually named
3350     something starting with __ and the normal name is an alias.  */
3351 #if defined (__stub_connect) || defined (__stub___connect)
3352 choke me
3353 #else
3354 char (*f) () = connect;
3355 #endif
3356 #ifdef __cplusplus
3357 }
3358 #endif
3359
3360 int
3361 main ()
3362 {
3363 return f != connect;
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 rm -f conftest.$ac_objext conftest$ac_exeext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3370   (eval $ac_link) 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); } &&
3374          { ac_try='test -s conftest$ac_exeext'
3375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376   (eval $ac_try) 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }; }; then
3380   ac_cv_func_connect=yes
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385 ac_cv_func_connect=no
3386 fi
3387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3388 fi
3389 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3390 echo "${ECHO_T}$ac_cv_func_connect" >&6
3391
3392     if test $ac_cv_func_connect = no; then
3393       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3394 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3395 if test "${ac_cv_lib_socket_connect+set}" = set; then
3396   echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398   ac_check_lib_save_LIBS=$LIBS
3399 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3400 cat >conftest.$ac_ext <<_ACEOF
3401 #line $LINENO "configure"
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407
3408 /* Override any gcc2 internal prototype to avoid an error.  */
3409 #ifdef __cplusplus
3410 extern "C"
3411 #endif
3412 /* We use char because int might match the return type of a gcc2
3413    builtin and then its argument prototype would still apply.  */
3414 char connect ();
3415 int
3416 main ()
3417 {
3418 connect ();
3419   ;
3420   return 0;
3421 }
3422 _ACEOF
3423 rm -f conftest.$ac_objext conftest$ac_exeext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3425   (eval $ac_link) 2>&5
3426   ac_status=$?
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); } &&
3429          { ac_try='test -s conftest$ac_exeext'
3430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431   (eval $ac_try) 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; }; then
3435   ac_cv_lib_socket_connect=yes
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440 ac_cv_lib_socket_connect=no
3441 fi
3442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3443 LIBS=$ac_check_lib_save_LIBS
3444 fi
3445 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3446 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3447 if test $ac_cv_lib_socket_connect = yes; then
3448   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3449 fi
3450
3451     fi
3452
3453     # Guillermo Gomez says -lposix is necessary on A/UX.
3454     echo "$as_me:$LINENO: checking for remove" >&5
3455 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3456 if test "${ac_cv_func_remove+set}" = set; then
3457   echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459   cat >conftest.$ac_ext <<_ACEOF
3460 #line $LINENO "configure"
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466 /* System header to define __stub macros and hopefully few prototypes,
3467     which can conflict with char remove (); below.
3468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469     <limits.h> exists even on freestanding compilers.  */
3470 #ifdef __STDC__
3471 # include <limits.h>
3472 #else
3473 # include <assert.h>
3474 #endif
3475 /* Override any gcc2 internal prototype to avoid an error.  */
3476 #ifdef __cplusplus
3477 extern "C"
3478 {
3479 #endif
3480 /* We use char because int might match the return type of a gcc2
3481    builtin and then its argument prototype would still apply.  */
3482 char remove ();
3483 /* The GNU C library defines this for functions which it implements
3484     to always fail with ENOSYS.  Some functions are actually named
3485     something starting with __ and the normal name is an alias.  */
3486 #if defined (__stub_remove) || defined (__stub___remove)
3487 choke me
3488 #else
3489 char (*f) () = remove;
3490 #endif
3491 #ifdef __cplusplus
3492 }
3493 #endif
3494
3495 int
3496 main ()
3497 {
3498 return f != remove;
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.$ac_objext conftest$ac_exeext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3505   (eval $ac_link) 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } &&
3509          { ac_try='test -s conftest$ac_exeext'
3510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511   (eval $ac_try) 2>&5
3512   ac_status=$?
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); }; }; then
3515   ac_cv_func_remove=yes
3516 else
3517   echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 ac_cv_func_remove=no
3521 fi
3522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3523 fi
3524 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3525 echo "${ECHO_T}$ac_cv_func_remove" >&6
3526
3527     if test $ac_cv_func_remove = no; then
3528       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3529 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3530 if test "${ac_cv_lib_posix_remove+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   ac_check_lib_save_LIBS=$LIBS
3534 LIBS="-lposix  $LIBS"
3535 cat >conftest.$ac_ext <<_ACEOF
3536 #line $LINENO "configure"
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542
3543 /* Override any gcc2 internal prototype to avoid an error.  */
3544 #ifdef __cplusplus
3545 extern "C"
3546 #endif
3547 /* We use char because int might match the return type of a gcc2
3548    builtin and then its argument prototype would still apply.  */
3549 char remove ();
3550 int
3551 main ()
3552 {
3553 remove ();
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext conftest$ac_exeext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3560   (eval $ac_link) 2>&5
3561   ac_status=$?
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } &&
3564          { ac_try='test -s conftest$ac_exeext'
3565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566   (eval $ac_try) 2>&5
3567   ac_status=$?
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); }; }; then
3570   ac_cv_lib_posix_remove=yes
3571 else
3572   echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 ac_cv_lib_posix_remove=no
3576 fi
3577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3578 LIBS=$ac_check_lib_save_LIBS
3579 fi
3580 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3581 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3582 if test $ac_cv_lib_posix_remove = yes; then
3583   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3584 fi
3585
3586     fi
3587
3588     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3589     echo "$as_me:$LINENO: checking for shmat" >&5
3590 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3591 if test "${ac_cv_func_shmat+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   cat >conftest.$ac_ext <<_ACEOF
3595 #line $LINENO "configure"
3596 /* confdefs.h.  */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h.  */
3601 /* System header to define __stub macros and hopefully few prototypes,
3602     which can conflict with char shmat (); below.
3603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604     <limits.h> exists even on freestanding compilers.  */
3605 #ifdef __STDC__
3606 # include <limits.h>
3607 #else
3608 # include <assert.h>
3609 #endif
3610 /* Override any gcc2 internal prototype to avoid an error.  */
3611 #ifdef __cplusplus
3612 extern "C"
3613 {
3614 #endif
3615 /* We use char because int might match the return type of a gcc2
3616    builtin and then its argument prototype would still apply.  */
3617 char shmat ();
3618 /* The GNU C library defines this for functions which it implements
3619     to always fail with ENOSYS.  Some functions are actually named
3620     something starting with __ and the normal name is an alias.  */
3621 #if defined (__stub_shmat) || defined (__stub___shmat)
3622 choke me
3623 #else
3624 char (*f) () = shmat;
3625 #endif
3626 #ifdef __cplusplus
3627 }
3628 #endif
3629
3630 int
3631 main ()
3632 {
3633 return f != shmat;
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext conftest$ac_exeext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3640   (eval $ac_link) 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); } &&
3644          { ac_try='test -s conftest$ac_exeext'
3645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646   (eval $ac_try) 2>&5
3647   ac_status=$?
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); }; }; then
3650   ac_cv_func_shmat=yes
3651 else
3652   echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655 ac_cv_func_shmat=no
3656 fi
3657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3658 fi
3659 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3660 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3661
3662     if test $ac_cv_func_shmat = no; then
3663       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3664 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3665 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   ac_check_lib_save_LIBS=$LIBS
3669 LIBS="-lipc  $LIBS"
3670 cat >conftest.$ac_ext <<_ACEOF
3671 #line $LINENO "configure"
3672 /* confdefs.h.  */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h.  */
3677
3678 /* Override any gcc2 internal prototype to avoid an error.  */
3679 #ifdef __cplusplus
3680 extern "C"
3681 #endif
3682 /* We use char because int might match the return type of a gcc2
3683    builtin and then its argument prototype would still apply.  */
3684 char shmat ();
3685 int
3686 main ()
3687 {
3688 shmat ();
3689   ;
3690   return 0;
3691 }
3692 _ACEOF
3693 rm -f conftest.$ac_objext conftest$ac_exeext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3695   (eval $ac_link) 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); } &&
3699          { ac_try='test -s conftest$ac_exeext'
3700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; }; then
3705   ac_cv_lib_ipc_shmat=yes
3706 else
3707   echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 ac_cv_lib_ipc_shmat=no
3711 fi
3712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3713 LIBS=$ac_check_lib_save_LIBS
3714 fi
3715 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3716 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3717 if test $ac_cv_lib_ipc_shmat = yes; then
3718   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3719 fi
3720
3721     fi
3722   fi
3723
3724   # Check for libraries that X11R6 Xt/Xaw programs need.
3725   ac_save_LDFLAGS=$LDFLAGS
3726   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3727   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3728   # check for ICE first), but we must link in the order -lSM -lICE or
3729   # we get undefined symbols.  So assume we have SM if we have ICE.
3730   # These have to be linked with before -lX11, unlike the other
3731   # libraries we check for below, so use a different variable.
3732   # John Interrante, Karl Berry
3733   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3734 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3735 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   ac_check_lib_save_LIBS=$LIBS
3739 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3740 cat >conftest.$ac_ext <<_ACEOF
3741 #line $LINENO "configure"
3742 /* confdefs.h.  */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h.  */
3747
3748 /* Override any gcc2 internal prototype to avoid an error.  */
3749 #ifdef __cplusplus
3750 extern "C"
3751 #endif
3752 /* We use char because int might match the return type of a gcc2
3753    builtin and then its argument prototype would still apply.  */
3754 char IceConnectionNumber ();
3755 int
3756 main ()
3757 {
3758 IceConnectionNumber ();
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 rm -f conftest.$ac_objext conftest$ac_exeext
3764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765   (eval $ac_link) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); } &&
3769          { ac_try='test -s conftest$ac_exeext'
3770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; }; then
3775   ac_cv_lib_ICE_IceConnectionNumber=yes
3776 else
3777   echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780 ac_cv_lib_ICE_IceConnectionNumber=no
3781 fi
3782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3783 LIBS=$ac_check_lib_save_LIBS
3784 fi
3785 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3786 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3787 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3788   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3789 fi
3790
3791   LDFLAGS=$ac_save_LDFLAGS
3792
3793 fi
3794
3795 for ac_prog in 'bison -y' byacc
3796 do
3797   # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 echo "$as_me:$LINENO: checking for $ac_word" >&5
3800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801 if test "${ac_cv_prog_YACC+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   if test -n "$YACC"; then
3805   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810   IFS=$as_save_IFS
3811   test -z "$as_dir" && as_dir=.
3812   for ac_exec_ext in '' $ac_executable_extensions; do
3813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814     ac_cv_prog_YACC="$ac_prog"
3815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816     break 2
3817   fi
3818 done
3819 done
3820
3821 fi
3822 fi
3823 YACC=$ac_cv_prog_YACC
3824 if test -n "$YACC"; then
3825   echo "$as_me:$LINENO: result: $YACC" >&5
3826 echo "${ECHO_T}$YACC" >&6
3827 else
3828   echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3830 fi
3831
3832   test -n "$YACC" && break
3833 done
3834 test -n "$YACC" || YACC="yacc"
3835
3836 for ac_prog in flex lex
3837 do
3838   # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy $ac_prog; ac_word=$2
3840 echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842 if test "${ac_cv_prog_LEX+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   if test -n "$LEX"; then
3846   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851   IFS=$as_save_IFS
3852   test -z "$as_dir" && as_dir=.
3853   for ac_exec_ext in '' $ac_executable_extensions; do
3854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855     ac_cv_prog_LEX="$ac_prog"
3856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857     break 2
3858   fi
3859 done
3860 done
3861
3862 fi
3863 fi
3864 LEX=$ac_cv_prog_LEX
3865 if test -n "$LEX"; then
3866   echo "$as_me:$LINENO: result: $LEX" >&5
3867 echo "${ECHO_T}$LEX" >&6
3868 else
3869   echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3871 fi
3872
3873   test -n "$LEX" && break
3874 done
3875 test -n "$LEX" || LEX=":"
3876
3877 if test -z "$LEXLIB"
3878 then
3879   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3880 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3881 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   ac_check_lib_save_LIBS=$LIBS
3885 LIBS="-lfl  $LIBS"
3886 cat >conftest.$ac_ext <<_ACEOF
3887 #line $LINENO "configure"
3888 /* confdefs.h.  */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h.  */
3893
3894 /* Override any gcc2 internal prototype to avoid an error.  */
3895 #ifdef __cplusplus
3896 extern "C"
3897 #endif
3898 /* We use char because int might match the return type of a gcc2
3899    builtin and then its argument prototype would still apply.  */
3900 char yywrap ();
3901 int
3902 main ()
3903 {
3904 yywrap ();
3905   ;
3906   return 0;
3907 }
3908 _ACEOF
3909 rm -f conftest.$ac_objext conftest$ac_exeext
3910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3911   (eval $ac_link) 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); } &&
3915          { ac_try='test -s conftest$ac_exeext'
3916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917   (eval $ac_try) 2>&5
3918   ac_status=$?
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); }; }; then
3921   ac_cv_lib_fl_yywrap=yes
3922 else
3923   echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926 ac_cv_lib_fl_yywrap=no
3927 fi
3928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3929 LIBS=$ac_check_lib_save_LIBS
3930 fi
3931 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3932 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3933 if test $ac_cv_lib_fl_yywrap = yes; then
3934   LEXLIB="-lfl"
3935 else
3936   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3937 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3938 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3939   echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941   ac_check_lib_save_LIBS=$LIBS
3942 LIBS="-ll  $LIBS"
3943 cat >conftest.$ac_ext <<_ACEOF
3944 #line $LINENO "configure"
3945 /* confdefs.h.  */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h.  */
3950
3951 /* Override any gcc2 internal prototype to avoid an error.  */
3952 #ifdef __cplusplus
3953 extern "C"
3954 #endif
3955 /* We use char because int might match the return type of a gcc2
3956    builtin and then its argument prototype would still apply.  */
3957 char yywrap ();
3958 int
3959 main ()
3960 {
3961 yywrap ();
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.$ac_objext conftest$ac_exeext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968   (eval $ac_link) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } &&
3972          { ac_try='test -s conftest$ac_exeext'
3973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974   (eval $ac_try) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; }; then
3978   ac_cv_lib_l_yywrap=yes
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 ac_cv_lib_l_yywrap=no
3984 fi
3985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3986 LIBS=$ac_check_lib_save_LIBS
3987 fi
3988 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3989 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3990 if test $ac_cv_lib_l_yywrap = yes; then
3991   LEXLIB="-ll"
3992 fi
3993
3994 fi
3995
3996 fi
3997
3998 if test "x$LEX" != "x:"; then
3999   echo "$as_me:$LINENO: checking lex output file root" >&5
4000 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4001 if test "${ac_cv_prog_lex_root+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   # The minimal lex program is just a single line: %%.  But some broken lexes
4005 # (Solaris, I think it was) want two %% lines, so accommodate them.
4006 cat >conftest.l <<_ACEOF
4007 %%
4008 %%
4009 _ACEOF
4010 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4011   (eval $LEX conftest.l) 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); }
4015 if test -f lex.yy.c; then
4016   ac_cv_prog_lex_root=lex.yy
4017 elif test -f lexyy.c; then
4018   ac_cv_prog_lex_root=lexyy
4019 else
4020   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4021 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4022    { (exit 1); exit 1; }; }
4023 fi
4024 fi
4025 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4026 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4027 rm -f conftest.l
4028 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4029
4030 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4031 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4032 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035   # POSIX says lex can declare yytext either as a pointer or an array; the
4036 # default is implementation-dependent. Figure out which it is, since
4037 # not all implementations provide the %pointer and %array declarations.
4038 ac_cv_prog_lex_yytext_pointer=no
4039 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4040 ac_save_LIBS=$LIBS
4041 LIBS="$LIBS $LEXLIB"
4042 cat >conftest.$ac_ext <<_ACEOF
4043 `cat $LEX_OUTPUT_ROOT.c`
4044 _ACEOF
4045 rm -f conftest.$ac_objext conftest$ac_exeext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4047   (eval $ac_link) 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); } &&
4051          { ac_try='test -s conftest$ac_exeext'
4052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053   (eval $ac_try) 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; }; then
4057   ac_cv_prog_lex_yytext_pointer=yes
4058 else
4059   echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062 fi
4063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4064 LIBS=$ac_save_LIBS
4065 rm -f "${LEX_OUTPUT_ROOT}.c"
4066
4067 fi
4068 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4069 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4070 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4071
4072 cat >>confdefs.h <<\_ACEOF
4073 #define YYTEXT_POINTER 1
4074 _ACEOF
4075
4076 fi
4077
4078 fi
4079
4080 for ac_prog in $YACC bison yacc
4081 do
4082   # Extract the first word of "$ac_prog", so it can be a program name with args.
4083 set dummy $ac_prog; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_XYACC+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$XYACC"; then
4090   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099     ac_cv_prog_XYACC="$ac_prog"
4100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104 done
4105
4106 fi
4107 fi
4108 XYACC=$ac_cv_prog_XYACC
4109 if test -n "$XYACC"; then
4110   echo "$as_me:$LINENO: result: $XYACC" >&5
4111 echo "${ECHO_T}$XYACC" >&6
4112 else
4113   echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117   test -n "$XYACC" && break
4118 done
4119 test -n "$XYACC" || XYACC="none"
4120
4121 if test "$XYACC" = "none"
4122 then
4123   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4124 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4125    { (exit 1); exit 1; }; }
4126 fi
4127 for ac_prog in $LEX flex lex
4128 do
4129   # Extract the first word of "$ac_prog", so it can be a program name with args.
4130 set dummy $ac_prog; ac_word=$2
4131 echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133 if test "${ac_cv_prog_XLEX+set}" = set; then
4134   echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136   if test -n "$XLEX"; then
4137   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142   IFS=$as_save_IFS
4143   test -z "$as_dir" && as_dir=.
4144   for ac_exec_ext in '' $ac_executable_extensions; do
4145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146     ac_cv_prog_XLEX="$ac_prog"
4147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148     break 2
4149   fi
4150 done
4151 done
4152
4153 fi
4154 fi
4155 XLEX=$ac_cv_prog_XLEX
4156 if test -n "$XLEX"; then
4157   echo "$as_me:$LINENO: result: $XLEX" >&5
4158 echo "${ECHO_T}$XLEX" >&6
4159 else
4160   echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4162 fi
4163
4164   test -n "$XLEX" && break
4165 done
4166 test -n "$XLEX" || XLEX="none"
4167
4168 if test "$XLEX" = "none"
4169 then
4170   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4171 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4172    { (exit 1); exit 1; }; }
4173 fi
4174
4175 if test -n "$ac_tool_prefix"; then
4176   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}as; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_AS+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   if test -n "$AS"; then
4184   ac_cv_prog_AS="$AS" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   for ac_exec_ext in '' $ac_executable_extensions; do
4192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193     ac_cv_prog_AS="${ac_tool_prefix}as"
4194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195     break 2
4196   fi
4197 done
4198 done
4199
4200 fi
4201 fi
4202 AS=$ac_cv_prog_AS
4203 if test -n "$AS"; then
4204   echo "$as_me:$LINENO: result: $AS" >&5
4205 echo "${ECHO_T}$AS" >&6
4206 else
4207   echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209 fi
4210
4211 fi
4212 if test -z "$ac_cv_prog_AS"; then
4213   ac_ct_AS=$AS
4214   # Extract the first word of "as", so it can be a program name with args.
4215 set dummy as; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -n "$ac_ct_AS"; then
4222   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229   for ac_exec_ext in '' $ac_executable_extensions; do
4230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231     ac_cv_prog_ac_ct_AS="as"
4232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236 done
4237
4238   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="as"
4239 fi
4240 fi
4241 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4242 if test -n "$ac_ct_AS"; then
4243   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4244 echo "${ECHO_T}$ac_ct_AS" >&6
4245 else
4246   echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6
4248 fi
4249
4250   AS=$ac_ct_AS
4251 else
4252   AS="$ac_cv_prog_AS"
4253 fi
4254
4255 if test -n "$ac_tool_prefix"; then
4256   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}ld; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_LD+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   if test -n "$LD"; then
4264   ac_cv_prog_LD="$LD" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271   for ac_exec_ext in '' $ac_executable_extensions; do
4272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273     ac_cv_prog_LD="${ac_tool_prefix}ld"
4274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275     break 2
4276   fi
4277 done
4278 done
4279
4280 fi
4281 fi
4282 LD=$ac_cv_prog_LD
4283 if test -n "$LD"; then
4284   echo "$as_me:$LINENO: result: $LD" >&5
4285 echo "${ECHO_T}$LD" >&6
4286 else
4287   echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4289 fi
4290
4291 fi
4292 if test -z "$ac_cv_prog_LD"; then
4293   ac_ct_LD=$LD
4294   # Extract the first word of "ld", so it can be a program name with args.
4295 set dummy ld; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   if test -n "$ac_ct_LD"; then
4302   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311     ac_cv_prog_ac_ct_LD="ld"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317
4318   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4319 fi
4320 fi
4321 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4322 if test -n "$ac_ct_LD"; then
4323   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4324 echo "${ECHO_T}$ac_ct_LD" >&6
4325 else
4326   echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4328 fi
4329
4330   LD=$ac_ct_LD
4331 else
4332   LD="$ac_cv_prog_LD"
4333 fi
4334
4335 if test -n "$ac_tool_prefix"; then
4336   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4337 set dummy ${ac_tool_prefix}ar; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_AR+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   if test -n "$AR"; then
4344   ac_cv_prog_AR="$AR" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349   IFS=$as_save_IFS
4350   test -z "$as_dir" && as_dir=.
4351   for ac_exec_ext in '' $ac_executable_extensions; do
4352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353     ac_cv_prog_AR="${ac_tool_prefix}ar"
4354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355     break 2
4356   fi
4357 done
4358 done
4359
4360 fi
4361 fi
4362 AR=$ac_cv_prog_AR
4363 if test -n "$AR"; then
4364   echo "$as_me:$LINENO: result: $AR" >&5
4365 echo "${ECHO_T}$AR" >&6
4366 else
4367   echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6
4369 fi
4370
4371 fi
4372 if test -z "$ac_cv_prog_AR"; then
4373   ac_ct_AR=$AR
4374   # Extract the first word of "ar", so it can be a program name with args.
4375 set dummy ar; ac_word=$2
4376 echo "$as_me:$LINENO: checking for $ac_word" >&5
4377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4378 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4379   echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381   if test -n "$ac_ct_AR"; then
4382   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389   for ac_exec_ext in '' $ac_executable_extensions; do
4390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391     ac_cv_prog_ac_ct_AR="ar"
4392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393     break 2
4394   fi
4395 done
4396 done
4397
4398   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4399 fi
4400 fi
4401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4402 if test -n "$ac_ct_AR"; then
4403   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4404 echo "${ECHO_T}$ac_ct_AR" >&6
4405 else
4406   echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4408 fi
4409
4410   AR=$ac_ct_AR
4411 else
4412   AR="$ac_cv_prog_AR"
4413 fi
4414
4415 if test -n "$ac_tool_prefix"; then
4416   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_prog_RANLIB+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   if test -n "$RANLIB"; then
4424   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429   IFS=$as_save_IFS
4430   test -z "$as_dir" && as_dir=.
4431   for ac_exec_ext in '' $ac_executable_extensions; do
4432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435     break 2
4436   fi
4437 done
4438 done
4439
4440 fi
4441 fi
4442 RANLIB=$ac_cv_prog_RANLIB
4443 if test -n "$RANLIB"; then
4444   echo "$as_me:$LINENO: result: $RANLIB" >&5
4445 echo "${ECHO_T}$RANLIB" >&6
4446 else
4447   echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6
4449 fi
4450
4451 fi
4452 if test -z "$ac_cv_prog_RANLIB"; then
4453   ac_ct_RANLIB=$RANLIB
4454   # Extract the first word of "ranlib", so it can be a program name with args.
4455 set dummy ranlib; ac_word=$2
4456 echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   if test -n "$ac_ct_RANLIB"; then
4462   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469   for ac_exec_ext in '' $ac_executable_extensions; do
4470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471     ac_cv_prog_ac_ct_RANLIB="ranlib"
4472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473     break 2
4474   fi
4475 done
4476 done
4477
4478   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4479 fi
4480 fi
4481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4482 if test -n "$ac_ct_RANLIB"; then
4483   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4484 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4485 else
4486   echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6
4488 fi
4489
4490   RANLIB=$ac_ct_RANLIB
4491 else
4492   RANLIB="$ac_cv_prog_RANLIB"
4493 fi
4494
4495 if test -n "$ac_tool_prefix"; then
4496   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4497 set dummy ${ac_tool_prefix}strip; ac_word=$2
4498 echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_STRIP+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   if test -n "$STRIP"; then
4504   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_exec_ext in '' $ac_executable_extensions; do
4512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518 done
4519
4520 fi
4521 fi
4522 STRIP=$ac_cv_prog_STRIP
4523 if test -n "$STRIP"; then
4524   echo "$as_me:$LINENO: result: $STRIP" >&5
4525 echo "${ECHO_T}$STRIP" >&6
4526 else
4527   echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4529 fi
4530
4531 fi
4532 if test -z "$ac_cv_prog_STRIP"; then
4533   ac_ct_STRIP=$STRIP
4534   # Extract the first word of "strip", so it can be a program name with args.
4535 set dummy strip; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   if test -n "$ac_ct_STRIP"; then
4542   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549   for ac_exec_ext in '' $ac_executable_extensions; do
4550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551     ac_cv_prog_ac_ct_STRIP="strip"
4552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556 done
4557
4558   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4559 fi
4560 fi
4561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4562 if test -n "$ac_ct_STRIP"; then
4563   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4564 echo "${ECHO_T}$ac_ct_STRIP" >&6
4565 else
4566   echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4568 fi
4569
4570   STRIP=$ac_ct_STRIP
4571 else
4572   STRIP="$ac_cv_prog_STRIP"
4573 fi
4574
4575 if test -n "$ac_tool_prefix"; then
4576   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4577 set dummy ${ac_tool_prefix}windres; ac_word=$2
4578 echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580 if test "${ac_cv_prog_WINDRES+set}" = set; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   if test -n "$WINDRES"; then
4584   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591   for ac_exec_ext in '' $ac_executable_extensions; do
4592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598 done
4599
4600 fi
4601 fi
4602 WINDRES=$ac_cv_prog_WINDRES
4603 if test -n "$WINDRES"; then
4604   echo "$as_me:$LINENO: result: $WINDRES" >&5
4605 echo "${ECHO_T}$WINDRES" >&6
4606 else
4607   echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6
4609 fi
4610
4611 fi
4612 if test -z "$ac_cv_prog_WINDRES"; then
4613   ac_ct_WINDRES=$WINDRES
4614   # Extract the first word of "windres", so it can be a program name with args.
4615 set dummy windres; ac_word=$2
4616 echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   if test -n "$ac_ct_WINDRES"; then
4622   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627   IFS=$as_save_IFS
4628   test -z "$as_dir" && as_dir=.
4629   for ac_exec_ext in '' $ac_executable_extensions; do
4630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631     ac_cv_prog_ac_ct_WINDRES="windres"
4632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633     break 2
4634   fi
4635 done
4636 done
4637
4638   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4639 fi
4640 fi
4641 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4642 if test -n "$ac_ct_WINDRES"; then
4643   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4644 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4645 else
4646   echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4648 fi
4649
4650   WINDRES=$ac_ct_WINDRES
4651 else
4652   WINDRES="$ac_cv_prog_WINDRES"
4653 fi
4654
4655 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4656 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4657 LN_S=$as_ln_s
4658 if test "$LN_S" = "ln -s"; then
4659   echo "$as_me:$LINENO: result: yes" >&5
4660 echo "${ECHO_T}yes" >&6
4661 else
4662   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4663 echo "${ECHO_T}no, using $LN_S" >&6
4664 fi
4665
4666 echo "$as_me:$LINENO: checking whether ln works" >&5
4667 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4668 rm -f conf$$ conf$$.file
4669 echo >conf$$.file
4670 if ln conf$$.file conf$$ 2>/dev/null; then
4671   LN=ln
4672
4673   echo "$as_me:$LINENO: result: yes" >&5
4674 echo "${ECHO_T}yes" >&6
4675 else
4676   LN="cp -p"
4677
4678   echo "$as_me:$LINENO: result: no, using $LN" >&5
4679 echo "${ECHO_T}no, using $LN" >&6
4680 fi
4681 rm -f conf$$ conf$$.file
4682 # Extract the first word of "c2man", so it can be a program name with args.
4683 set dummy c2man; ac_word=$2
4684 echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686 if test "${ac_cv_prog_C2MAN+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   if test -n "$C2MAN"; then
4690   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697   for ac_exec_ext in '' $ac_executable_extensions; do
4698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699     ac_cv_prog_C2MAN="c2man"
4700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704 done
4705
4706   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4707 fi
4708 fi
4709 C2MAN=$ac_cv_prog_C2MAN
4710 if test -n "$C2MAN"; then
4711   echo "$as_me:$LINENO: result: $C2MAN" >&5
4712 echo "${ECHO_T}$C2MAN" >&6
4713 else
4714   echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4716 fi
4717
4718 # Extract the first word of "ldconfig", so it can be a program name with args.
4719 set dummy ldconfig; ac_word=$2
4720 echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4722 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4723   echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725   case $LDCONFIG in
4726   [\\/]* | ?:[\\/]*)
4727   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4728   ;;
4729   *)
4730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in /sbin /usr/sbin $PATH
4732 do
4733   IFS=$as_save_IFS
4734   test -z "$as_dir" && as_dir=.
4735   for ac_exec_ext in '' $ac_executable_extensions; do
4736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739     break 2
4740   fi
4741 done
4742 done
4743
4744   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4745   ;;
4746 esac
4747 fi
4748 LDCONFIG=$ac_cv_path_LDCONFIG
4749
4750 if test -n "$LDCONFIG"; then
4751   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4752 echo "${ECHO_T}$LDCONFIG" >&6
4753 else
4754   echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6
4756 fi
4757
4758 # Find a good install program.  We prefer a C program (faster),
4759 # so one script is as good as another.  But avoid the broken or
4760 # incompatible versions:
4761 # SysV /etc/install, /usr/sbin/install
4762 # SunOS /usr/etc/install
4763 # IRIX /sbin/install
4764 # AIX /bin/install
4765 # AmigaOS /C/install, which installs bootblocks on floppy discs
4766 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4767 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4768 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4769 # ./install, which can be erroneously created by make from ./install.sh.
4770 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4771 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4772 if test -z "$INSTALL"; then
4773 if test "${ac_cv_path_install+set}" = set; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779   IFS=$as_save_IFS
4780   test -z "$as_dir" && as_dir=.
4781   # Account for people who put trailing slashes in PATH elements.
4782 case $as_dir/ in
4783   ./ | .// | /cC/* | \
4784   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4785   /usr/ucb/* ) ;;
4786   *)
4787     # OSF1 and SCO ODT 3.0 have their own names for install.
4788     # Don't use installbsd from OSF since it installs stuff as root
4789     # by default.
4790     for ac_prog in ginstall scoinst install; do
4791       for ac_exec_ext in '' $ac_executable_extensions; do
4792         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4793           if test $ac_prog = install &&
4794             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4795             # AIX install.  It has an incompatible calling convention.
4796             :
4797           elif test $ac_prog = install &&
4798             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4799             # program-specific install script used by HP pwplus--don't use.
4800             :
4801           else
4802             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4803             break 3
4804           fi
4805         fi
4806       done
4807     done
4808     ;;
4809 esac
4810 done
4811
4812
4813 fi
4814   if test "${ac_cv_path_install+set}" = set; then
4815     INSTALL=$ac_cv_path_install
4816   else
4817     # As a last resort, use the slow shell script.  We don't cache a
4818     # path for INSTALL within a source directory, because that will
4819     # break other packages using the cache if that directory is
4820     # removed, or if the path is relative.
4821     INSTALL=$ac_install_sh
4822   fi
4823 fi
4824 echo "$as_me:$LINENO: result: $INSTALL" >&5
4825 echo "${ECHO_T}$INSTALL" >&6
4826
4827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4828 # It thinks the first close brace ends the variable substitution.
4829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4830
4831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4832
4833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4834
4835 case "$INSTALL" in
4836   [\\/$]* | ?:[\\/]* ) ;;
4837   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4838 esac
4839
4840 for ac_prog in lclint lint
4841 do
4842   # Extract the first word of "$ac_prog", so it can be a program name with args.
4843 set dummy $ac_prog; ac_word=$2
4844 echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846 if test "${ac_cv_prog_LINT+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   if test -n "$LINT"; then
4850   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857   for ac_exec_ext in '' $ac_executable_extensions; do
4858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859     ac_cv_prog_LINT="$ac_prog"
4860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864 done
4865
4866 fi
4867 fi
4868 LINT=$ac_cv_prog_LINT
4869 if test -n "$LINT"; then
4870   echo "$as_me:$LINENO: result: $LINT" >&5
4871 echo "${ECHO_T}$LINT" >&6
4872 else
4873   echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4875 fi
4876
4877   test -n "$LINT" && break
4878 done
4879
4880 if test "$LINT" = "lint"
4881 then
4882   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4883   fi
4884
4885
4886
4887 for ac_prog in docbook2html db2html
4888 do
4889   # Extract the first word of "$ac_prog", so it can be a program name with args.
4890 set dummy $ac_prog; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   if test -n "$DB2HTML"; then
4897   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902   IFS=$as_save_IFS
4903   test -z "$as_dir" && as_dir=.
4904   for ac_exec_ext in '' $ac_executable_extensions; do
4905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906     ac_cv_prog_DB2HTML="$ac_prog"
4907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908     break 2
4909   fi
4910 done
4911 done
4912
4913 fi
4914 fi
4915 DB2HTML=$ac_cv_prog_DB2HTML
4916 if test -n "$DB2HTML"; then
4917   echo "$as_me:$LINENO: result: $DB2HTML" >&5
4918 echo "${ECHO_T}$DB2HTML" >&6
4919 else
4920   echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6
4922 fi
4923
4924   test -n "$DB2HTML" && break
4925 done
4926 test -n "$DB2HTML" || DB2HTML="false"
4927
4928
4929
4930 for ac_prog in docbook2pdf db2pdf
4931 do
4932   # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 echo "$as_me:$LINENO: checking for $ac_word" >&5
4935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4936 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939   if test -n "$DB2PDF"; then
4940   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947   for ac_exec_ext in '' $ac_executable_extensions; do
4948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949     ac_cv_prog_DB2PDF="$ac_prog"
4950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954 done
4955
4956 fi
4957 fi
4958 DB2PDF=$ac_cv_prog_DB2PDF
4959 if test -n "$DB2PDF"; then
4960   echo "$as_me:$LINENO: result: $DB2PDF" >&5
4961 echo "${ECHO_T}$DB2PDF" >&6
4962 else
4963   echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6
4965 fi
4966
4967   test -n "$DB2PDF" && break
4968 done
4969 test -n "$DB2PDF" || DB2PDF="false"
4970
4971
4972
4973 for ac_prog in docbook2ps db2ps
4974 do
4975   # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy $ac_prog; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_prog_DB2PS+set}" = set; then
4980   echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982   if test -n "$DB2PS"; then
4983   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990   for ac_exec_ext in '' $ac_executable_extensions; do
4991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992     ac_cv_prog_DB2PS="$ac_prog"
4993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997 done
4998
4999 fi
5000 fi
5001 DB2PS=$ac_cv_prog_DB2PS
5002 if test -n "$DB2PS"; then
5003   echo "$as_me:$LINENO: result: $DB2PS" >&5
5004 echo "${ECHO_T}$DB2PS" >&6
5005 else
5006   echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5008 fi
5009
5010   test -n "$DB2PS" && break
5011 done
5012 test -n "$DB2PS" || DB2PS="false"
5013
5014
5015
5016
5017
5018 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5019 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5020 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   ac_check_lib_save_LIBS=$LIBS
5024 LIBS="-lm  $LIBS"
5025 cat >conftest.$ac_ext <<_ACEOF
5026 #line $LINENO "configure"
5027 /* confdefs.h.  */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h.  */
5032
5033 /* Override any gcc2 internal prototype to avoid an error.  */
5034 #ifdef __cplusplus
5035 extern "C"
5036 #endif
5037 /* We use char because int might match the return type of a gcc2
5038    builtin and then its argument prototype would still apply.  */
5039 char sqrt ();
5040 int
5041 main ()
5042 {
5043 sqrt ();
5044   ;
5045   return 0;
5046 }
5047 _ACEOF
5048 rm -f conftest.$ac_objext conftest$ac_exeext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5050   (eval $ac_link) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); } &&
5054          { ac_try='test -s conftest$ac_exeext'
5055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056   (eval $ac_try) 2>&5
5057   ac_status=$?
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); }; }; then
5060   ac_cv_lib_m_sqrt=yes
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ac_cv_lib_m_sqrt=no
5066 fi
5067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5068 LIBS=$ac_check_lib_save_LIBS
5069 fi
5070 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5071 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5072 if test $ac_cv_lib_m_sqrt = yes; then
5073   cat >>confdefs.h <<_ACEOF
5074 #define HAVE_LIBM 1
5075 _ACEOF
5076
5077   LIBS="-lm $LIBS"
5078
5079 fi
5080
5081
5082 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5083 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5084 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5085   echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087   ac_check_lib_save_LIBS=$LIBS
5088 LIBS="-li386  $LIBS"
5089 cat >conftest.$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096
5097 /* Override any gcc2 internal prototype to avoid an error.  */
5098 #ifdef __cplusplus
5099 extern "C"
5100 #endif
5101 /* We use char because int might match the return type of a gcc2
5102    builtin and then its argument prototype would still apply.  */
5103 char i386_set_ldt ();
5104 int
5105 main ()
5106 {
5107 i386_set_ldt ();
5108   ;
5109   return 0;
5110 }
5111 _ACEOF
5112 rm -f conftest.$ac_objext conftest$ac_exeext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5114   (eval $ac_link) 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } &&
5118          { ac_try='test -s conftest$ac_exeext'
5119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120   (eval $ac_try) 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); }; }; then
5124   ac_cv_lib_i386_i386_set_ldt=yes
5125 else
5126   echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 ac_cv_lib_i386_i386_set_ldt=no
5130 fi
5131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5132 LIBS=$ac_check_lib_save_LIBS
5133 fi
5134 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5135 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5136 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5137   cat >>confdefs.h <<_ACEOF
5138 #define HAVE_LIBI386 1
5139 _ACEOF
5140
5141   LIBS="-li386 $LIBS"
5142
5143 fi
5144
5145
5146 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5147 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5148 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   ac_check_lib_save_LIBS=$LIBS
5152 LIBS="-lossaudio  $LIBS"
5153 cat >conftest.$ac_ext <<_ACEOF
5154 #line $LINENO "configure"
5155 /* confdefs.h.  */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h.  */
5160
5161 /* Override any gcc2 internal prototype to avoid an error.  */
5162 #ifdef __cplusplus
5163 extern "C"
5164 #endif
5165 /* We use char because int might match the return type of a gcc2
5166    builtin and then its argument prototype would still apply.  */
5167 char _oss_ioctl ();
5168 int
5169 main ()
5170 {
5171 _oss_ioctl ();
5172   ;
5173   return 0;
5174 }
5175 _ACEOF
5176 rm -f conftest.$ac_objext conftest$ac_exeext
5177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5178   (eval $ac_link) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); } &&
5182          { ac_try='test -s conftest$ac_exeext'
5183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184   (eval $ac_try) 2>&5
5185   ac_status=$?
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); }; }; then
5188   ac_cv_lib_ossaudio__oss_ioctl=yes
5189 else
5190   echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5192
5193 ac_cv_lib_ossaudio__oss_ioctl=no
5194 fi
5195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5196 LIBS=$ac_check_lib_save_LIBS
5197 fi
5198 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5199 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5200 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5201   cat >>confdefs.h <<_ACEOF
5202 #define HAVE_LIBOSSAUDIO 1
5203 _ACEOF
5204
5205   LIBS="-lossaudio $LIBS"
5206
5207 fi
5208
5209
5210 for ac_func in iswalnum
5211 do
5212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5213 echo "$as_me:$LINENO: checking for $ac_func" >&5
5214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5215 if eval "test \"\${$as_ac_var+set}\" = set"; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   cat >conftest.$ac_ext <<_ACEOF
5219 #line $LINENO "configure"
5220 /* confdefs.h.  */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h.  */
5225 /* System header to define __stub macros and hopefully few prototypes,
5226     which can conflict with char $ac_func (); below.
5227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5228     <limits.h> exists even on freestanding compilers.  */
5229 #ifdef __STDC__
5230 # include <limits.h>
5231 #else
5232 # include <assert.h>
5233 #endif
5234 /* Override any gcc2 internal prototype to avoid an error.  */
5235 #ifdef __cplusplus
5236 extern "C"
5237 {
5238 #endif
5239 /* We use char because int might match the return type of a gcc2
5240    builtin and then its argument prototype would still apply.  */
5241 char $ac_func ();
5242 /* The GNU C library defines this for functions which it implements
5243     to always fail with ENOSYS.  Some functions are actually named
5244     something starting with __ and the normal name is an alias.  */
5245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5246 choke me
5247 #else
5248 char (*f) () = $ac_func;
5249 #endif
5250 #ifdef __cplusplus
5251 }
5252 #endif
5253
5254 int
5255 main ()
5256 {
5257 return f != $ac_func;
5258   ;
5259   return 0;
5260 }
5261 _ACEOF
5262 rm -f conftest.$ac_objext conftest$ac_exeext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5264   (eval $ac_link) 2>&5
5265   ac_status=$?
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); } &&
5268          { ac_try='test -s conftest$ac_exeext'
5269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270   (eval $ac_try) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }; }; then
5274   eval "$as_ac_var=yes"
5275 else
5276   echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5278
5279 eval "$as_ac_var=no"
5280 fi
5281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5282 fi
5283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5285 if test `eval echo '${'$as_ac_var'}'` = yes; then
5286   cat >>confdefs.h <<_ACEOF
5287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5288 _ACEOF
5289
5290 else
5291
5292 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5293 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5294 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5295   echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297   ac_check_lib_save_LIBS=$LIBS
5298 LIBS="-lw  $LIBS"
5299 cat >conftest.$ac_ext <<_ACEOF
5300 #line $LINENO "configure"
5301 /* confdefs.h.  */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h.  */
5306
5307 /* Override any gcc2 internal prototype to avoid an error.  */
5308 #ifdef __cplusplus
5309 extern "C"
5310 #endif
5311 /* We use char because int might match the return type of a gcc2
5312    builtin and then its argument prototype would still apply.  */
5313 char iswalnum ();
5314 int
5315 main ()
5316 {
5317 iswalnum ();
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 rm -f conftest.$ac_objext conftest$ac_exeext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5324   (eval $ac_link) 2>&5
5325   ac_status=$?
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); } &&
5328          { ac_try='test -s conftest$ac_exeext'
5329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330   (eval $ac_try) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); }; }; then
5334   ac_cv_lib_w_iswalnum=yes
5335 else
5336   echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5338
5339 ac_cv_lib_w_iswalnum=no
5340 fi
5341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5342 LIBS=$ac_check_lib_save_LIBS
5343 fi
5344 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5345 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5346 if test $ac_cv_lib_w_iswalnum = yes; then
5347   cat >>confdefs.h <<_ACEOF
5348 #define HAVE_LIBW 1
5349 _ACEOF
5350
5351   LIBS="-lw $LIBS"
5352
5353 fi
5354
5355 fi
5356 done
5357
5358
5359 for ac_func in gethostbyname
5360 do
5361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5362 echo "$as_me:$LINENO: checking for $ac_func" >&5
5363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5364 if eval "test \"\${$as_ac_var+set}\" = set"; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367   cat >conftest.$ac_ext <<_ACEOF
5368 #line $LINENO "configure"
5369 /* confdefs.h.  */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h.  */
5374 /* System header to define __stub macros and hopefully few prototypes,
5375     which can conflict with char $ac_func (); below.
5376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5377     <limits.h> exists even on freestanding compilers.  */
5378 #ifdef __STDC__
5379 # include <limits.h>
5380 #else
5381 # include <assert.h>
5382 #endif
5383 /* Override any gcc2 internal prototype to avoid an error.  */
5384 #ifdef __cplusplus
5385 extern "C"
5386 {
5387 #endif
5388 /* We use char because int might match the return type of a gcc2
5389    builtin and then its argument prototype would still apply.  */
5390 char $ac_func ();
5391 /* The GNU C library defines this for functions which it implements
5392     to always fail with ENOSYS.  Some functions are actually named
5393     something starting with __ and the normal name is an alias.  */
5394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5395 choke me
5396 #else
5397 char (*f) () = $ac_func;
5398 #endif
5399 #ifdef __cplusplus
5400 }
5401 #endif
5402
5403 int
5404 main ()
5405 {
5406 return f != $ac_func;
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext conftest$ac_exeext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5413   (eval $ac_link) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } &&
5417          { ac_try='test -s conftest$ac_exeext'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; }; then
5423   eval "$as_ac_var=yes"
5424 else
5425   echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 eval "$as_ac_var=no"
5429 fi
5430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5431 fi
5432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5434 if test `eval echo '${'$as_ac_var'}'` = yes; then
5435   cat >>confdefs.h <<_ACEOF
5436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5437 _ACEOF
5438
5439 else
5440
5441 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5442 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5443 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   ac_check_lib_save_LIBS=$LIBS
5447 LIBS="-lnsl  $LIBS"
5448 cat >conftest.$ac_ext <<_ACEOF
5449 #line $LINENO "configure"
5450 /* confdefs.h.  */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h.  */
5455
5456 /* Override any gcc2 internal prototype to avoid an error.  */
5457 #ifdef __cplusplus
5458 extern "C"
5459 #endif
5460 /* We use char because int might match the return type of a gcc2
5461    builtin and then its argument prototype would still apply.  */
5462 char gethostbyname ();
5463 int
5464 main ()
5465 {
5466 gethostbyname ();
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext conftest$ac_exeext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473   (eval $ac_link) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } &&
5477          { ac_try='test -s conftest$ac_exeext'
5478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479   (eval $ac_try) 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); }; }; then
5483   ac_cv_lib_nsl_gethostbyname=yes
5484 else
5485   echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5487
5488 ac_cv_lib_nsl_gethostbyname=no
5489 fi
5490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5491 LIBS=$ac_check_lib_save_LIBS
5492 fi
5493 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5494 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5495 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5496   cat >>confdefs.h <<_ACEOF
5497 #define HAVE_LIBNSL 1
5498 _ACEOF
5499
5500   LIBS="-lnsl $LIBS"
5501
5502 fi
5503
5504 fi
5505 done
5506
5507
5508 for ac_func in connect
5509 do
5510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5511 echo "$as_me:$LINENO: checking for $ac_func" >&5
5512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5513 if eval "test \"\${$as_ac_var+set}\" = set"; then
5514   echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516   cat >conftest.$ac_ext <<_ACEOF
5517 #line $LINENO "configure"
5518 /* confdefs.h.  */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h.  */
5523 /* System header to define __stub macros and hopefully few prototypes,
5524     which can conflict with char $ac_func (); below.
5525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526     <limits.h> exists even on freestanding compilers.  */
5527 #ifdef __STDC__
5528 # include <limits.h>
5529 #else
5530 # include <assert.h>
5531 #endif
5532 /* Override any gcc2 internal prototype to avoid an error.  */
5533 #ifdef __cplusplus
5534 extern "C"
5535 {
5536 #endif
5537 /* We use char because int might match the return type of a gcc2
5538    builtin and then its argument prototype would still apply.  */
5539 char $ac_func ();
5540 /* The GNU C library defines this for functions which it implements
5541     to always fail with ENOSYS.  Some functions are actually named
5542     something starting with __ and the normal name is an alias.  */
5543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5544 choke me
5545 #else
5546 char (*f) () = $ac_func;
5547 #endif
5548 #ifdef __cplusplus
5549 }
5550 #endif
5551
5552 int
5553 main ()
5554 {
5555 return f != $ac_func;
5556   ;
5557   return 0;
5558 }
5559 _ACEOF
5560 rm -f conftest.$ac_objext conftest$ac_exeext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562   (eval $ac_link) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); } &&
5566          { ac_try='test -s conftest$ac_exeext'
5567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568   (eval $ac_try) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; }; then
5572   eval "$as_ac_var=yes"
5573 else
5574   echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5576
5577 eval "$as_ac_var=no"
5578 fi
5579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5580 fi
5581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5583 if test `eval echo '${'$as_ac_var'}'` = yes; then
5584   cat >>confdefs.h <<_ACEOF
5585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5586 _ACEOF
5587
5588 else
5589
5590 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5591 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5592 if test "${ac_cv_lib_socket_connect+set}" = set; then
5593   echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595   ac_check_lib_save_LIBS=$LIBS
5596 LIBS="-lsocket  $LIBS"
5597 cat >conftest.$ac_ext <<_ACEOF
5598 #line $LINENO "configure"
5599 /* confdefs.h.  */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h.  */
5604
5605 /* Override any gcc2 internal prototype to avoid an error.  */
5606 #ifdef __cplusplus
5607 extern "C"
5608 #endif
5609 /* We use char because int might match the return type of a gcc2
5610    builtin and then its argument prototype would still apply.  */
5611 char connect ();
5612 int
5613 main ()
5614 {
5615 connect ();
5616   ;
5617   return 0;
5618 }
5619 _ACEOF
5620 rm -f conftest.$ac_objext conftest$ac_exeext
5621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5622   (eval $ac_link) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); } &&
5626          { ac_try='test -s conftest$ac_exeext'
5627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628   (eval $ac_try) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); }; }; then
5632   ac_cv_lib_socket_connect=yes
5633 else
5634   echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5636
5637 ac_cv_lib_socket_connect=no
5638 fi
5639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5640 LIBS=$ac_check_lib_save_LIBS
5641 fi
5642 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5643 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5644 if test $ac_cv_lib_socket_connect = yes; then
5645   cat >>confdefs.h <<_ACEOF
5646 #define HAVE_LIBSOCKET 1
5647 _ACEOF
5648
5649   LIBS="-lsocket $LIBS"
5650
5651 fi
5652
5653 fi
5654 done
5655
5656
5657 for ac_func in inet_aton
5658 do
5659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5660 echo "$as_me:$LINENO: checking for $ac_func" >&5
5661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5662 if eval "test \"\${$as_ac_var+set}\" = set"; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   cat >conftest.$ac_ext <<_ACEOF
5666 #line $LINENO "configure"
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672 /* System header to define __stub macros and hopefully few prototypes,
5673     which can conflict with char $ac_func (); below.
5674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5675     <limits.h> exists even on freestanding compilers.  */
5676 #ifdef __STDC__
5677 # include <limits.h>
5678 #else
5679 # include <assert.h>
5680 #endif
5681 /* Override any gcc2 internal prototype to avoid an error.  */
5682 #ifdef __cplusplus
5683 extern "C"
5684 {
5685 #endif
5686 /* We use char because int might match the return type of a gcc2
5687    builtin and then its argument prototype would still apply.  */
5688 char $ac_func ();
5689 /* The GNU C library defines this for functions which it implements
5690     to always fail with ENOSYS.  Some functions are actually named
5691     something starting with __ and the normal name is an alias.  */
5692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5693 choke me
5694 #else
5695 char (*f) () = $ac_func;
5696 #endif
5697 #ifdef __cplusplus
5698 }
5699 #endif
5700
5701 int
5702 main ()
5703 {
5704 return f != $ac_func;
5705   ;
5706   return 0;
5707 }
5708 _ACEOF
5709 rm -f conftest.$ac_objext conftest$ac_exeext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5711   (eval $ac_link) 2>&5
5712   ac_status=$?
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); } &&
5715          { ac_try='test -s conftest$ac_exeext'
5716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717   (eval $ac_try) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); }; }; then
5721   eval "$as_ac_var=yes"
5722 else
5723   echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5725
5726 eval "$as_ac_var=no"
5727 fi
5728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5729 fi
5730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5732 if test `eval echo '${'$as_ac_var'}'` = yes; then
5733   cat >>confdefs.h <<_ACEOF
5734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5735 _ACEOF
5736
5737 else
5738
5739 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5740 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5741 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   ac_check_lib_save_LIBS=$LIBS
5745 LIBS="-lresolv  $LIBS"
5746 cat >conftest.$ac_ext <<_ACEOF
5747 #line $LINENO "configure"
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753
5754 /* Override any gcc2 internal prototype to avoid an error.  */
5755 #ifdef __cplusplus
5756 extern "C"
5757 #endif
5758 /* We use char because int might match the return type of a gcc2
5759    builtin and then its argument prototype would still apply.  */
5760 char inet_aton ();
5761 int
5762 main ()
5763 {
5764 inet_aton ();
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769 rm -f conftest.$ac_objext conftest$ac_exeext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771   (eval $ac_link) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); } &&
5775          { ac_try='test -s conftest$ac_exeext'
5776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777   (eval $ac_try) 2>&5
5778   ac_status=$?
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); }; }; then
5781   ac_cv_lib_resolv_inet_aton=yes
5782 else
5783   echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786 ac_cv_lib_resolv_inet_aton=no
5787 fi
5788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5789 LIBS=$ac_check_lib_save_LIBS
5790 fi
5791 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5792 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5793 if test $ac_cv_lib_resolv_inet_aton = yes; then
5794   cat >>confdefs.h <<_ACEOF
5795 #define HAVE_LIBRESOLV 1
5796 _ACEOF
5797
5798   LIBS="-lresolv $LIBS"
5799
5800 fi
5801
5802 fi
5803 done
5804
5805
5806 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5807 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5808 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   ac_check_lib_save_LIBS=$LIBS
5812 LIBS="-lxpg4  $LIBS"
5813 cat >conftest.$ac_ext <<_ACEOF
5814 #line $LINENO "configure"
5815 /* confdefs.h.  */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h.  */
5820
5821 /* Override any gcc2 internal prototype to avoid an error.  */
5822 #ifdef __cplusplus
5823 extern "C"
5824 #endif
5825 /* We use char because int might match the return type of a gcc2
5826    builtin and then its argument prototype would still apply.  */
5827 char _xpg4_setrunelocale ();
5828 int
5829 main ()
5830 {
5831 _xpg4_setrunelocale ();
5832   ;
5833   return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838   (eval $ac_link) 2>&5
5839   ac_status=$?
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); } &&
5842          { ac_try='test -s conftest$ac_exeext'
5843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844   (eval $ac_try) 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; }; then
5848   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5849 else
5850   echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5854 fi
5855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5856 LIBS=$ac_check_lib_save_LIBS
5857 fi
5858 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5859 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5860 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5861   cat >>confdefs.h <<_ACEOF
5862 #define HAVE_LIBXPG4 1
5863 _ACEOF
5864
5865   LIBS="-lxpg4 $LIBS"
5866
5867 fi
5868
5869
5870 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5871 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5872 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   ac_check_lib_save_LIBS=$LIBS
5876 LIBS="-lmmap  $LIBS"
5877 cat >conftest.$ac_ext <<_ACEOF
5878 #line $LINENO "configure"
5879 /* confdefs.h.  */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h.  */
5884
5885 /* Override any gcc2 internal prototype to avoid an error.  */
5886 #ifdef __cplusplus
5887 extern "C"
5888 #endif
5889 /* We use char because int might match the return type of a gcc2
5890    builtin and then its argument prototype would still apply.  */
5891 char mmap ();
5892 int
5893 main ()
5894 {
5895 mmap ();
5896   ;
5897   return 0;
5898 }
5899 _ACEOF
5900 rm -f conftest.$ac_objext conftest$ac_exeext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5902   (eval $ac_link) 2>&5
5903   ac_status=$?
5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); } &&
5906          { ac_try='test -s conftest$ac_exeext'
5907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908   (eval $ac_try) 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); }; }; then
5912   ac_cv_lib_mmap_mmap=yes
5913 else
5914   echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5916
5917 ac_cv_lib_mmap_mmap=no
5918 fi
5919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5920 LIBS=$ac_check_lib_save_LIBS
5921 fi
5922 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5923 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5924 if test $ac_cv_lib_mmap_mmap = yes; then
5925   cat >>confdefs.h <<_ACEOF
5926 #define HAVE_LIBMMAP 1
5927 _ACEOF
5928
5929   LIBS="-lmmap $LIBS"
5930
5931 fi
5932
5933
5934 JPEGLIB=""
5935
5936 echo "$as_me:$LINENO: checking for egrep" >&5
5937 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5938 if test "${ac_cv_prog_egrep+set}" = set; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5942     then ac_cv_prog_egrep='grep -E'
5943     else ac_cv_prog_egrep='egrep'
5944     fi
5945 fi
5946 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5947 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5948  EGREP=$ac_cv_prog_egrep
5949
5950
5951 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5952 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5953 if test "${ac_cv_header_stdc+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   cat >conftest.$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
5958 /* confdefs.h.  */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h.  */
5963 #include <stdlib.h>
5964 #include <stdarg.h>
5965 #include <string.h>
5966 #include <float.h>
5967
5968 int
5969 main ()
5970 {
5971
5972   ;
5973   return 0;
5974 }
5975 _ACEOF
5976 rm -f conftest.$ac_objext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978   (eval $ac_compile) 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); } &&
5982          { ac_try='test -s conftest.$ac_objext'
5983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984   (eval $ac_try) 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; }; then
5988   ac_cv_header_stdc=yes
5989 else
5990   echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 ac_cv_header_stdc=no
5994 fi
5995 rm -f conftest.$ac_objext conftest.$ac_ext
5996
5997 if test $ac_cv_header_stdc = yes; then
5998   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5999   cat >conftest.$ac_ext <<_ACEOF
6000 #line $LINENO "configure"
6001 /* confdefs.h.  */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h.  */
6006 #include <string.h>
6007
6008 _ACEOF
6009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6010   $EGREP "memchr" >/dev/null 2>&1; then
6011   :
6012 else
6013   ac_cv_header_stdc=no
6014 fi
6015 rm -f conftest*
6016
6017 fi
6018
6019 if test $ac_cv_header_stdc = yes; then
6020   # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
6029
6030 _ACEOF
6031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032   $EGREP "free" >/dev/null 2>&1; then
6033   :
6034 else
6035   ac_cv_header_stdc=no
6036 fi
6037 rm -f conftest*
6038
6039 fi
6040
6041 if test $ac_cv_header_stdc = yes; then
6042   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6043   if test "$cross_compiling" = yes; then
6044   :
6045 else
6046   cat >conftest.$ac_ext <<_ACEOF
6047 #line $LINENO "configure"
6048 /* confdefs.h.  */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h.  */
6053 #include <ctype.h>
6054 #if ((' ' & 0x0FF) == 0x020)
6055 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6056 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6057 #else
6058 # define ISLOWER(c) \
6059                    (('a' <= (c) && (c) <= 'i') \
6060                      || ('j' <= (c) && (c) <= 'r') \
6061                      || ('s' <= (c) && (c) <= 'z'))
6062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6063 #endif
6064
6065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6066 int
6067 main ()
6068 {
6069   int i;
6070   for (i = 0; i < 256; i++)
6071     if (XOR (islower (i), ISLOWER (i))
6072         || toupper (i) != TOUPPER (i))
6073       exit(2);
6074   exit (0);
6075 }
6076 _ACEOF
6077 rm -f conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079   (eval $ac_link) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084   (eval $ac_try) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; }; then
6088   :
6089 else
6090   echo "$as_me: program exited with status $ac_status" >&5
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 ( exit $ac_status )
6095 ac_cv_header_stdc=no
6096 fi
6097 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6098 fi
6099 fi
6100 fi
6101 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6102 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6103 if test $ac_cv_header_stdc = yes; then
6104
6105 cat >>confdefs.h <<\_ACEOF
6106 #define STDC_HEADERS 1
6107 _ACEOF
6108
6109 fi
6110
6111 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6122                   inttypes.h stdint.h unistd.h
6123 do
6124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6125 echo "$as_me:$LINENO: checking for $ac_header" >&5
6126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   cat >conftest.$ac_ext <<_ACEOF
6131 #line $LINENO "configure"
6132 /* confdefs.h.  */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h.  */
6137 $ac_includes_default
6138
6139 #include <$ac_header>
6140 _ACEOF
6141 rm -f conftest.$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143   (eval $ac_compile) 2>&5
6144   ac_status=$?
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); } &&
6147          { ac_try='test -s conftest.$ac_objext'
6148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149   (eval $ac_try) 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; }; then
6153   eval "$as_ac_Header=yes"
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158 eval "$as_ac_Header=no"
6159 fi
6160 rm -f conftest.$ac_objext conftest.$ac_ext
6161 fi
6162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6165   cat >>confdefs.h <<_ACEOF
6166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6167 _ACEOF
6168
6169 fi
6170
6171 done
6172
6173
6174
6175 for ac_header in jpeglib.h
6176 do
6177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6179   echo "$as_me:$LINENO: checking for $ac_header" >&5
6180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 fi
6184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6186 else
6187   # Is the header compilable?
6188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6190 cat >conftest.$ac_ext <<_ACEOF
6191 #line $LINENO "configure"
6192 /* confdefs.h.  */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h.  */
6197 $ac_includes_default
6198 #include <$ac_header>
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202   (eval $ac_compile) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); } &&
6206          { ac_try='test -s conftest.$ac_objext'
6207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208   (eval $ac_try) 2>&5
6209   ac_status=$?
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); }; }; then
6212   ac_header_compiler=yes
6213 else
6214   echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6216
6217 ac_header_compiler=no
6218 fi
6219 rm -f conftest.$ac_objext conftest.$ac_ext
6220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6221 echo "${ECHO_T}$ac_header_compiler" >&6
6222
6223 # Is the header present?
6224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6226 cat >conftest.$ac_ext <<_ACEOF
6227 #line $LINENO "configure"
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233 #include <$ac_header>
6234 _ACEOF
6235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6237   ac_status=$?
6238   grep -v '^ *+' conftest.er1 >conftest.err
6239   rm -f conftest.er1
6240   cat conftest.err >&5
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); } >/dev/null; then
6243   if test -s conftest.err; then
6244     ac_cpp_err=$ac_c_preproc_warn_flag
6245   else
6246     ac_cpp_err=
6247   fi
6248 else
6249   ac_cpp_err=yes
6250 fi
6251 if test -z "$ac_cpp_err"; then
6252   ac_header_preproc=yes
6253 else
6254   echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257   ac_header_preproc=no
6258 fi
6259 rm -f conftest.err conftest.$ac_ext
6260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6261 echo "${ECHO_T}$ac_header_preproc" >&6
6262
6263 # So?  What about this header?
6264 case $ac_header_compiler:$ac_header_preproc in
6265   yes:no )
6266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6270     (
6271       cat <<\_ASBOX
6272 ## ------------------------------------ ##
6273 ## Report this to bug-autoconf@gnu.org. ##
6274 ## ------------------------------------ ##
6275 _ASBOX
6276     ) |
6277       sed "s/^/$as_me: WARNING:     /" >&2
6278     ;;
6279   no:yes )
6280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6282     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6286     (
6287       cat <<\_ASBOX
6288 ## ------------------------------------ ##
6289 ## Report this to bug-autoconf@gnu.org. ##
6290 ## ------------------------------------ ##
6291 _ASBOX
6292     ) |
6293       sed "s/^/$as_me: WARNING:     /" >&2
6294     ;;
6295 esac
6296 echo "$as_me:$LINENO: checking for $ac_header" >&5
6297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6299   echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301   eval "$as_ac_Header=$ac_header_preproc"
6302 fi
6303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6305
6306 fi
6307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6308   cat >>confdefs.h <<_ACEOF
6309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6310 _ACEOF
6311  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6312 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6313 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316   ac_check_lib_save_LIBS=$LIBS
6317 LIBS="-ljpeg  $LIBS"
6318 cat >conftest.$ac_ext <<_ACEOF
6319 #line $LINENO "configure"
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325
6326 /* Override any gcc2 internal prototype to avoid an error.  */
6327 #ifdef __cplusplus
6328 extern "C"
6329 #endif
6330 /* We use char because int might match the return type of a gcc2
6331    builtin and then its argument prototype would still apply.  */
6332 char jpeg_start_decompress ();
6333 int
6334 main ()
6335 {
6336 jpeg_start_decompress ();
6337   ;
6338   return 0;
6339 }
6340 _ACEOF
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343   (eval $ac_link) 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); } &&
6347          { ac_try='test -s conftest$ac_exeext'
6348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349   (eval $ac_try) 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }; }; then
6353   ac_cv_lib_jpeg_jpeg_start_decompress=yes
6354 else
6355   echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 ac_cv_lib_jpeg_jpeg_start_decompress=no
6359 fi
6360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6361 LIBS=$ac_check_lib_save_LIBS
6362 fi
6363 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6364 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6365 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6366
6367 cat >>confdefs.h <<\_ACEOF
6368 #define HAVE_LIBJPEG 1
6369 _ACEOF
6370
6371         JPEGLIB="-ljpeg"
6372
6373 fi
6374
6375
6376 fi
6377
6378 done
6379
6380
6381 GIFLIB=""
6382
6383
6384 for ac_header in gif_lib.h
6385 do
6386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388   echo "$as_me:$LINENO: checking for $ac_header" >&5
6389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 fi
6393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6395 else
6396   # Is the header compilable?
6397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6401 /* confdefs.h.  */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h.  */
6406 $ac_includes_default
6407 #include <$ac_header>
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411   (eval $ac_compile) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); } &&
6415          { ac_try='test -s conftest.$ac_objext'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; }; then
6421   ac_header_compiler=yes
6422 else
6423   echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 ac_header_compiler=no
6427 fi
6428 rm -f conftest.$ac_objext conftest.$ac_ext
6429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430 echo "${ECHO_T}$ac_header_compiler" >&6
6431
6432 # Is the header present?
6433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6435 cat >conftest.$ac_ext <<_ACEOF
6436 #line $LINENO "configure"
6437 /* confdefs.h.  */
6438 _ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h.  */
6442 #include <$ac_header>
6443 _ACEOF
6444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6446   ac_status=$?
6447   grep -v '^ *+' conftest.er1 >conftest.err
6448   rm -f conftest.er1
6449   cat conftest.err >&5
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); } >/dev/null; then
6452   if test -s conftest.err; then
6453     ac_cpp_err=$ac_c_preproc_warn_flag
6454   else
6455     ac_cpp_err=
6456   fi
6457 else
6458   ac_cpp_err=yes
6459 fi
6460 if test -z "$ac_cpp_err"; then
6461   ac_header_preproc=yes
6462 else
6463   echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6465
6466   ac_header_preproc=no
6467 fi
6468 rm -f conftest.err conftest.$ac_ext
6469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470 echo "${ECHO_T}$ac_header_preproc" >&6
6471
6472 # So?  What about this header?
6473 case $ac_header_compiler:$ac_header_preproc in
6474   yes:no )
6475     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6479     (
6480       cat <<\_ASBOX
6481 ## ------------------------------------ ##
6482 ## Report this to bug-autoconf@gnu.org. ##
6483 ## ------------------------------------ ##
6484 _ASBOX
6485     ) |
6486       sed "s/^/$as_me: WARNING:     /" >&2
6487     ;;
6488   no:yes )
6489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6491     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6495     (
6496       cat <<\_ASBOX
6497 ## ------------------------------------ ##
6498 ## Report this to bug-autoconf@gnu.org. ##
6499 ## ------------------------------------ ##
6500 _ASBOX
6501     ) |
6502       sed "s/^/$as_me: WARNING:     /" >&2
6503     ;;
6504 esac
6505 echo "$as_me:$LINENO: checking for $ac_header" >&5
6506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6508   echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510   eval "$as_ac_Header=$ac_header_preproc"
6511 fi
6512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6514
6515 fi
6516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6517   cat >>confdefs.h <<_ACEOF
6518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6519 _ACEOF
6520  echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6521 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6522 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   ac_check_lib_save_LIBS=$LIBS
6526 LIBS="-lungif  $LIBS"
6527 cat >conftest.$ac_ext <<_ACEOF
6528 #line $LINENO "configure"
6529 /* confdefs.h.  */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h.  */
6534
6535 /* Override any gcc2 internal prototype to avoid an error.  */
6536 #ifdef __cplusplus
6537 extern "C"
6538 #endif
6539 /* We use char because int might match the return type of a gcc2
6540    builtin and then its argument prototype would still apply.  */
6541 char DGifOpen ();
6542 int
6543 main ()
6544 {
6545 DGifOpen ();
6546   ;
6547   return 0;
6548 }
6549 _ACEOF
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552   (eval $ac_link) 2>&5
6553   ac_status=$?
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); } &&
6556          { ac_try='test -s conftest$ac_exeext'
6557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558   (eval $ac_try) 2>&5
6559   ac_status=$?
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); }; }; then
6562   ac_cv_lib_ungif_DGifOpen=yes
6563 else
6564   echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6566
6567 ac_cv_lib_ungif_DGifOpen=no
6568 fi
6569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6570 LIBS=$ac_check_lib_save_LIBS
6571 fi
6572 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6573 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6574 if test $ac_cv_lib_ungif_DGifOpen = yes; then
6575
6576 cat >>confdefs.h <<\_ACEOF
6577 #define HAVE_LIBGIF 1
6578 _ACEOF
6579
6580          GIFLIB="-lungif"
6581 else
6582   echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6583 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6584 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6585   echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587   ac_check_lib_save_LIBS=$LIBS
6588 LIBS="-lgif  $LIBS"
6589 cat >conftest.$ac_ext <<_ACEOF
6590 #line $LINENO "configure"
6591 /* confdefs.h.  */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h.  */
6596
6597 /* Override any gcc2 internal prototype to avoid an error.  */
6598 #ifdef __cplusplus
6599 extern "C"
6600 #endif
6601 /* We use char because int might match the return type of a gcc2
6602    builtin and then its argument prototype would still apply.  */
6603 char DGifOpen ();
6604 int
6605 main ()
6606 {
6607 DGifOpen ();
6608   ;
6609   return 0;
6610 }
6611 _ACEOF
6612 rm -f conftest.$ac_objext conftest$ac_exeext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614   (eval $ac_link) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); } &&
6618          { ac_try='test -s conftest$ac_exeext'
6619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620   (eval $ac_try) 2>&5
6621   ac_status=$?
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); }; }; then
6624   ac_cv_lib_gif_DGifOpen=yes
6625 else
6626   echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629 ac_cv_lib_gif_DGifOpen=no
6630 fi
6631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6632 LIBS=$ac_check_lib_save_LIBS
6633 fi
6634 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6635 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6636 if test $ac_cv_lib_gif_DGifOpen = yes; then
6637   cat >>confdefs.h <<\_ACEOF
6638 #define HAVE_LIBGIF 1
6639 _ACEOF
6640
6641                        GIFLIB="-lgif"
6642 fi
6643
6644 fi
6645
6646 fi
6647
6648 done
6649
6650
6651
6652
6653
6654 XFILES=""
6655
6656 OPENGLFILES=""
6657
6658 GLU32FILES=""
6659
6660 OPENGL_LIBS=""
6661 if test "$have_x" = "yes"
6662 then
6663     XLIB="-lXext -lX11"
6664     ac_save_CPPFLAGS="$CPPFLAGS"
6665     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6666
6667
6668 for ac_header in X11/Xlib.h
6669 do
6670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6672   echo "$as_me:$LINENO: checking for $ac_header" >&5
6673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 fi
6677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6679 else
6680   # Is the header compilable?
6681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6683 cat >conftest.$ac_ext <<_ACEOF
6684 #line $LINENO "configure"
6685 /* confdefs.h.  */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h.  */
6690 $ac_includes_default
6691 #include <$ac_header>
6692 _ACEOF
6693 rm -f conftest.$ac_objext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6695   (eval $ac_compile) 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); } &&
6699          { ac_try='test -s conftest.$ac_objext'
6700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701   (eval $ac_try) 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); }; }; then
6705   ac_header_compiler=yes
6706 else
6707   echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710 ac_header_compiler=no
6711 fi
6712 rm -f conftest.$ac_objext conftest.$ac_ext
6713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6714 echo "${ECHO_T}$ac_header_compiler" >&6
6715
6716 # Is the header present?
6717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6719 cat >conftest.$ac_ext <<_ACEOF
6720 #line $LINENO "configure"
6721 /* confdefs.h.  */
6722 _ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h.  */
6726 #include <$ac_header>
6727 _ACEOF
6728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6729   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6730   ac_status=$?
6731   grep -v '^ *+' conftest.er1 >conftest.err
6732   rm -f conftest.er1
6733   cat conftest.err >&5
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); } >/dev/null; then
6736   if test -s conftest.err; then
6737     ac_cpp_err=$ac_c_preproc_warn_flag
6738   else
6739     ac_cpp_err=
6740   fi
6741 else
6742   ac_cpp_err=yes
6743 fi
6744 if test -z "$ac_cpp_err"; then
6745   ac_header_preproc=yes
6746 else
6747   echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6749
6750   ac_header_preproc=no
6751 fi
6752 rm -f conftest.err conftest.$ac_ext
6753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6754 echo "${ECHO_T}$ac_header_preproc" >&6
6755
6756 # So?  What about this header?
6757 case $ac_header_compiler:$ac_header_preproc in
6758   yes:no )
6759     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6763     (
6764       cat <<\_ASBOX
6765 ## ------------------------------------ ##
6766 ## Report this to bug-autoconf@gnu.org. ##
6767 ## ------------------------------------ ##
6768 _ASBOX
6769     ) |
6770       sed "s/^/$as_me: WARNING:     /" >&2
6771     ;;
6772   no:yes )
6773     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6775     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6779     (
6780       cat <<\_ASBOX
6781 ## ------------------------------------ ##
6782 ## Report this to bug-autoconf@gnu.org. ##
6783 ## ------------------------------------ ##
6784 _ASBOX
6785     ) |
6786       sed "s/^/$as_me: WARNING:     /" >&2
6787     ;;
6788 esac
6789 echo "$as_me:$LINENO: checking for $ac_header" >&5
6790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   eval "$as_ac_Header=$ac_header_preproc"
6795 fi
6796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6798
6799 fi
6800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6801   cat >>confdefs.h <<_ACEOF
6802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6803 _ACEOF
6804
6805
6806 for ac_header in X11/XKBlib.h
6807 do
6808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6809 echo "$as_me:$LINENO: checking for $ac_header" >&5
6810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814   cat >conftest.$ac_ext <<_ACEOF
6815 #line $LINENO "configure"
6816 /* confdefs.h.  */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h.  */
6821 #include <X11/Xlib.h>
6822
6823 #include <$ac_header>
6824 _ACEOF
6825 rm -f conftest.$ac_objext
6826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827   (eval $ac_compile) 2>&5
6828   ac_status=$?
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); } &&
6831          { ac_try='test -s conftest.$ac_objext'
6832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833   (eval $ac_try) 2>&5
6834   ac_status=$?
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); }; }; then
6837   eval "$as_ac_Header=yes"
6838 else
6839   echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 eval "$as_ac_Header=no"
6843 fi
6844 rm -f conftest.$ac_objext conftest.$ac_ext
6845 fi
6846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6849   cat >>confdefs.h <<_ACEOF
6850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6851 _ACEOF
6852                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6853 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6854 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6855   echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857   ac_check_lib_save_LIBS=$LIBS
6858 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6859 cat >conftest.$ac_ext <<_ACEOF
6860 #line $LINENO "configure"
6861 /* confdefs.h.  */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h.  */
6866
6867 /* Override any gcc2 internal prototype to avoid an error.  */
6868 #ifdef __cplusplus
6869 extern "C"
6870 #endif
6871 /* We use char because int might match the return type of a gcc2
6872    builtin and then its argument prototype would still apply.  */
6873 char XkbQueryExtension ();
6874 int
6875 main ()
6876 {
6877 XkbQueryExtension ();
6878   ;
6879   return 0;
6880 }
6881 _ACEOF
6882 rm -f conftest.$ac_objext conftest$ac_exeext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884   (eval $ac_link) 2>&5
6885   ac_status=$?
6886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); } &&
6888          { ac_try='test -s conftest$ac_exeext'
6889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890   (eval $ac_try) 2>&5
6891   ac_status=$?
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); }; }; then
6894   ac_cv_lib_X11_XkbQueryExtension=yes
6895 else
6896   echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6898
6899 ac_cv_lib_X11_XkbQueryExtension=no
6900 fi
6901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6902 LIBS=$ac_check_lib_save_LIBS
6903 fi
6904 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6905 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6906 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6907
6908 cat >>confdefs.h <<\_ACEOF
6909 #define HAVE_XKB 1
6910 _ACEOF
6911
6912 fi
6913
6914
6915 else
6916   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6917 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6918 fi
6919
6920 done
6921
6922
6923
6924 for ac_header in X11/extensions/XShm.h
6925 do
6926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6927 echo "$as_me:$LINENO: checking for $ac_header" >&5
6928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6930   echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932   cat >conftest.$ac_ext <<_ACEOF
6933 #line $LINENO "configure"
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939 #include <X11/Xlib.h>
6940
6941 #include <$ac_header>
6942 _ACEOF
6943 rm -f conftest.$ac_objext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6945   (eval $ac_compile) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); } &&
6949          { ac_try='test -s conftest.$ac_objext'
6950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951   (eval $ac_try) 2>&5
6952   ac_status=$?
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); }; }; then
6955   eval "$as_ac_Header=yes"
6956 else
6957   echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 eval "$as_ac_Header=no"
6961 fi
6962 rm -f conftest.$ac_objext conftest.$ac_ext
6963 fi
6964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6967   cat >>confdefs.h <<_ACEOF
6968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6969 _ACEOF
6970                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6971 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6972 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6973   echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975   ac_check_lib_save_LIBS=$LIBS
6976 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6977 cat >conftest.$ac_ext <<_ACEOF
6978 #line $LINENO "configure"
6979 /* confdefs.h.  */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h.  */
6984
6985 /* Override any gcc2 internal prototype to avoid an error.  */
6986 #ifdef __cplusplus
6987 extern "C"
6988 #endif
6989 /* We use char because int might match the return type of a gcc2
6990    builtin and then its argument prototype would still apply.  */
6991 char XShmQueryExtension ();
6992 int
6993 main ()
6994 {
6995 XShmQueryExtension ();
6996   ;
6997   return 0;
6998 }
6999 _ACEOF
7000 rm -f conftest.$ac_objext conftest$ac_exeext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7002   (eval $ac_link) 2>&5
7003   ac_status=$?
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); } &&
7006          { ac_try='test -s conftest$ac_exeext'
7007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008   (eval $ac_try) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); }; }; then
7012   ac_cv_lib_Xext_XShmQueryExtension=yes
7013 else
7014   echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7016
7017 ac_cv_lib_Xext_XShmQueryExtension=no
7018 fi
7019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7020 LIBS=$ac_check_lib_save_LIBS
7021 fi
7022 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7023 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7024 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7025
7026 cat >>confdefs.h <<\_ACEOF
7027 #define HAVE_LIBXXSHM 1
7028 _ACEOF
7029
7030 fi
7031
7032
7033 else
7034   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
7035 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
7036 fi
7037
7038 done
7039
7040
7041
7042 for ac_header in X11/Xutil.h
7043 do
7044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7045 echo "$as_me:$LINENO: checking for $ac_header" >&5
7046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7048   echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050   cat >conftest.$ac_ext <<_ACEOF
7051 #line $LINENO "configure"
7052 /* confdefs.h.  */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h.  */
7057 #include <X11/Xlib.h>
7058
7059 #include <$ac_header>
7060 _ACEOF
7061 rm -f conftest.$ac_objext
7062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063   (eval $ac_compile) 2>&5
7064   ac_status=$?
7065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066   (exit $ac_status); } &&
7067          { ac_try='test -s conftest.$ac_objext'
7068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069   (eval $ac_try) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; }; then
7073   eval "$as_ac_Header=yes"
7074 else
7075   echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7077
7078 eval "$as_ac_Header=no"
7079 fi
7080 rm -f conftest.$ac_objext conftest.$ac_ext
7081 fi
7082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7085   cat >>confdefs.h <<_ACEOF
7086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7087 _ACEOF
7088
7089 fi
7090
7091 done
7092
7093
7094
7095 for ac_header in X11/extensions/shape.h
7096 do
7097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7098 echo "$as_me:$LINENO: checking for $ac_header" >&5
7099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   cat >conftest.$ac_ext <<_ACEOF
7104 #line $LINENO "configure"
7105 /* confdefs.h.  */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h.  */
7110 #include <X11/Xlib.h>
7111              #ifdef HAVE_X11_XUTIL_H
7112              # include <X11/Xutil.h>
7113              #endif
7114
7115 #include <$ac_header>
7116 _ACEOF
7117 rm -f conftest.$ac_objext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119   (eval $ac_compile) 2>&5
7120   ac_status=$?
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); } &&
7123          { ac_try='test -s conftest.$ac_objext'
7124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125   (eval $ac_try) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); }; }; then
7129   eval "$as_ac_Header=yes"
7130 else
7131   echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134 eval "$as_ac_Header=no"
7135 fi
7136 rm -f conftest.$ac_objext conftest.$ac_ext
7137 fi
7138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7141   cat >>confdefs.h <<_ACEOF
7142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7143 _ACEOF
7144                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7145 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7146 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7147   echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149   ac_check_lib_save_LIBS=$LIBS
7150 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7151 cat >conftest.$ac_ext <<_ACEOF
7152 #line $LINENO "configure"
7153 /* confdefs.h.  */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h.  */
7158
7159 /* Override any gcc2 internal prototype to avoid an error.  */
7160 #ifdef __cplusplus
7161 extern "C"
7162 #endif
7163 /* We use char because int might match the return type of a gcc2
7164    builtin and then its argument prototype would still apply.  */
7165 char XShapeQueryExtension ();
7166 int
7167 main ()
7168 {
7169 XShapeQueryExtension ();
7170   ;
7171   return 0;
7172 }
7173 _ACEOF
7174 rm -f conftest.$ac_objext conftest$ac_exeext
7175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7176   (eval $ac_link) 2>&5
7177   ac_status=$?
7178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179   (exit $ac_status); } &&
7180          { ac_try='test -s conftest$ac_exeext'
7181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182   (eval $ac_try) 2>&5
7183   ac_status=$?
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); }; }; then
7186   ac_cv_lib_Xext_XShapeQueryExtension=yes
7187 else
7188   echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191 ac_cv_lib_Xext_XShapeQueryExtension=no
7192 fi
7193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7194 LIBS=$ac_check_lib_save_LIBS
7195 fi
7196 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7197 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7198 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7199
7200 cat >>confdefs.h <<\_ACEOF
7201 #define HAVE_LIBXSHAPE 1
7202 _ACEOF
7203
7204 fi
7205
7206
7207 else
7208   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
7209 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
7210 fi
7211
7212 done
7213
7214
7215
7216 for ac_header in X11/extensions/xf86dga.h
7217 do
7218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7219 echo "$as_me:$LINENO: checking for $ac_header" >&5
7220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7222   echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224   cat >conftest.$ac_ext <<_ACEOF
7225 #line $LINENO "configure"
7226 /* confdefs.h.  */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h.  */
7231 #include <X11/Xlib.h>
7232
7233 #include <$ac_header>
7234 _ACEOF
7235 rm -f conftest.$ac_objext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237   (eval $ac_compile) 2>&5
7238   ac_status=$?
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); } &&
7241          { ac_try='test -s conftest.$ac_objext'
7242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243   (eval $ac_try) 2>&5
7244   ac_status=$?
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); }; }; then
7247   eval "$as_ac_Header=yes"
7248 else
7249   echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7251
7252 eval "$as_ac_Header=no"
7253 fi
7254 rm -f conftest.$ac_objext conftest.$ac_ext
7255 fi
7256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7259   cat >>confdefs.h <<_ACEOF
7260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7261 _ACEOF
7262                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7263 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7264 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   ac_check_lib_save_LIBS=$LIBS
7268 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7269                $LIBS"
7270 cat >conftest.$ac_ext <<_ACEOF
7271 #line $LINENO "configure"
7272 /* confdefs.h.  */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h.  */
7277
7278 /* Override any gcc2 internal prototype to avoid an error.  */
7279 #ifdef __cplusplus
7280 extern "C"
7281 #endif
7282 /* We use char because int might match the return type of a gcc2
7283    builtin and then its argument prototype would still apply.  */
7284 char XDGAQueryExtension ();
7285 int
7286 main ()
7287 {
7288 XDGAQueryExtension ();
7289   ;
7290   return 0;
7291 }
7292 _ACEOF
7293 rm -f conftest.$ac_objext conftest$ac_exeext
7294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7295   (eval $ac_link) 2>&5
7296   ac_status=$?
7297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); } &&
7299          { ac_try='test -s conftest$ac_exeext'
7300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301   (eval $ac_try) 2>&5
7302   ac_status=$?
7303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304   (exit $ac_status); }; }; then
7305   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7306 else
7307   echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7311 fi
7312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7313 LIBS=$ac_check_lib_save_LIBS
7314 fi
7315 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7316 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7317 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7318
7319 cat >>confdefs.h <<\_ACEOF
7320 #define HAVE_LIBXXF86DGA2 1
7321 _ACEOF
7322
7323                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7324
7325 else
7326                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7327 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7328 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7329   echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331   ac_check_lib_save_LIBS=$LIBS
7332 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7333                    $LIBS"
7334 cat >conftest.$ac_ext <<_ACEOF
7335 #line $LINENO "configure"
7336 /* confdefs.h.  */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h.  */
7341
7342 /* Override any gcc2 internal prototype to avoid an error.  */
7343 #ifdef __cplusplus
7344 extern "C"
7345 #endif
7346 /* We use char because int might match the return type of a gcc2
7347    builtin and then its argument prototype would still apply.  */
7348 char XF86DGAQueryExtension ();
7349 int
7350 main ()
7351 {
7352 XF86DGAQueryExtension ();
7353   ;
7354   return 0;
7355 }
7356 _ACEOF
7357 rm -f conftest.$ac_objext conftest$ac_exeext
7358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7359   (eval $ac_link) 2>&5
7360   ac_status=$?
7361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362   (exit $ac_status); } &&
7363          { ac_try='test -s conftest$ac_exeext'
7364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365   (eval $ac_try) 2>&5
7366   ac_status=$?
7367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); }; }; then
7369   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7370 else
7371   echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7375 fi
7376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7377 LIBS=$ac_check_lib_save_LIBS
7378 fi
7379 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7380 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7381 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7382
7383 cat >>confdefs.h <<\_ACEOF
7384 #define HAVE_LIBXXF86DGA 1
7385 _ACEOF
7386
7387                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7388
7389 fi
7390
7391
7392 fi
7393
7394
7395 else
7396   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
7397 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
7398 fi
7399
7400 done
7401
7402
7403
7404 for ac_header in X11/extensions/xf86vmode.h
7405 do
7406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7407 echo "$as_me:$LINENO: checking for $ac_header" >&5
7408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412   cat >conftest.$ac_ext <<_ACEOF
7413 #line $LINENO "configure"
7414 /* confdefs.h.  */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h.  */
7419 #include <X11/Xlib.h>
7420
7421 #include <$ac_header>
7422 _ACEOF
7423 rm -f conftest.$ac_objext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425   (eval $ac_compile) 2>&5
7426   ac_status=$?
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); } &&
7429          { ac_try='test -s conftest.$ac_objext'
7430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431   (eval $ac_try) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); }; }; then
7435   eval "$as_ac_Header=yes"
7436 else
7437   echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 eval "$as_ac_Header=no"
7441 fi
7442 rm -f conftest.$ac_objext conftest.$ac_ext
7443 fi
7444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7447   cat >>confdefs.h <<_ACEOF
7448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7449 _ACEOF
7450                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7451 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7452 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   ac_check_lib_save_LIBS=$LIBS
7456 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7457                  $LIBS"
7458 cat >conftest.$ac_ext <<_ACEOF
7459 #line $LINENO "configure"
7460 /* confdefs.h.  */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h.  */
7465
7466 /* Override any gcc2 internal prototype to avoid an error.  */
7467 #ifdef __cplusplus
7468 extern "C"
7469 #endif
7470 /* We use char because int might match the return type of a gcc2
7471    builtin and then its argument prototype would still apply.  */
7472 char XF86VidModeQueryExtension ();
7473 int
7474 main ()
7475 {
7476 XF86VidModeQueryExtension ();
7477   ;
7478   return 0;
7479 }
7480 _ACEOF
7481 rm -f conftest.$ac_objext conftest$ac_exeext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483   (eval $ac_link) 2>&5
7484   ac_status=$?
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); } &&
7487          { ac_try='test -s conftest$ac_exeext'
7488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489   (eval $ac_try) 2>&5
7490   ac_status=$?
7491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492   (exit $ac_status); }; }; then
7493   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7494 else
7495   echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7497
7498 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7499 fi
7500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7501 LIBS=$ac_check_lib_save_LIBS
7502 fi
7503 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7504 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7505 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7506
7507 cat >>confdefs.h <<\_ACEOF
7508 #define HAVE_LIBXXF86VM 1
7509 _ACEOF
7510
7511                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7512
7513 fi
7514
7515
7516 else
7517   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7518 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
7519 fi
7520
7521 done
7522
7523
7524
7525 for ac_header in X11/extensions/Xvlib.h
7526 do
7527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7528 echo "$as_me:$LINENO: checking for $ac_header" >&5
7529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533   cat >conftest.$ac_ext <<_ACEOF
7534 #line $LINENO "configure"
7535 /* confdefs.h.  */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h.  */
7540 #include <X11/Xlib.h>
7541
7542 #include <$ac_header>
7543 _ACEOF
7544 rm -f conftest.$ac_objext
7545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546   (eval $ac_compile) 2>&5
7547   ac_status=$?
7548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549   (exit $ac_status); } &&
7550          { ac_try='test -s conftest.$ac_objext'
7551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552   (eval $ac_try) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); }; }; then
7556   eval "$as_ac_Header=yes"
7557 else
7558   echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7560
7561 eval "$as_ac_Header=no"
7562 fi
7563 rm -f conftest.$ac_objext conftest.$ac_ext
7564 fi
7565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7568   cat >>confdefs.h <<_ACEOF
7569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7570 _ACEOF
7571                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7572 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7573 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7574   echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576   ac_check_lib_save_LIBS=$LIBS
7577 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7578                  $LIBS"
7579 cat >conftest.$ac_ext <<_ACEOF
7580 #line $LINENO "configure"
7581 /* confdefs.h.  */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h.  */
7586
7587 /* Override any gcc2 internal prototype to avoid an error.  */
7588 #ifdef __cplusplus
7589 extern "C"
7590 #endif
7591 /* We use char because int might match the return type of a gcc2
7592    builtin and then its argument prototype would still apply.  */
7593 char XvShmCreateImage ();
7594 int
7595 main ()
7596 {
7597 XvShmCreateImage ();
7598   ;
7599   return 0;
7600 }
7601 _ACEOF
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604   (eval $ac_link) 2>&5
7605   ac_status=$?
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); } &&
7608          { ac_try='test -s conftest$ac_exeext'
7609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610   (eval $ac_try) 2>&5
7611   ac_status=$?
7612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613   (exit $ac_status); }; }; then
7614   ac_cv_lib_Xv_XvShmCreateImage=yes
7615 else
7616   echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7618
7619 ac_cv_lib_Xv_XvShmCreateImage=no
7620 fi
7621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7622 LIBS=$ac_check_lib_save_LIBS
7623 fi
7624 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7625 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7626 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7627
7628 cat >>confdefs.h <<\_ACEOF
7629 #define HAVE_XVIDEO 1
7630 _ACEOF
7631
7632                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
7633
7634 fi
7635
7636
7637 else
7638   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7639 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
7640 fi
7641
7642 done
7643
7644
7645
7646 for ac_header in X11/extensions/Xrender.h
7647 do
7648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7649 echo "$as_me:$LINENO: checking for $ac_header" >&5
7650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   cat >conftest.$ac_ext <<_ACEOF
7655 #line $LINENO "configure"
7656 /* confdefs.h.  */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h.  */
7661 #include <X11/Xlib.h>
7662
7663 #include <$ac_header>
7664 _ACEOF
7665 rm -f conftest.$ac_objext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667   (eval $ac_compile) 2>&5
7668   ac_status=$?
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); } &&
7671          { ac_try='test -s conftest.$ac_objext'
7672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673   (eval $ac_try) 2>&5
7674   ac_status=$?
7675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676   (exit $ac_status); }; }; then
7677   eval "$as_ac_Header=yes"
7678 else
7679   echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7681
7682 eval "$as_ac_Header=no"
7683 fi
7684 rm -f conftest.$ac_objext conftest.$ac_ext
7685 fi
7686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7689   cat >>confdefs.h <<_ACEOF
7690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7691 _ACEOF
7692
7693 fi
7694
7695 done
7696
7697
7698
7699 fi
7700
7701 done
7702
7703         if test "x$with_opengl" != "xno"
7704     then
7705         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7706         then
7707             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7708 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7709 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7710 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7711    { (exit 1); exit 1; }; }
7712         fi
7713
7714
7715
7716 for ac_header in GL/gl.h GL/glx.h
7717 do
7718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7720   echo "$as_me:$LINENO: checking for $ac_header" >&5
7721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7723   echo $ECHO_N "(cached) $ECHO_C" >&6
7724 fi
7725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7727 else
7728   # Is the header compilable?
7729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7731 cat >conftest.$ac_ext <<_ACEOF
7732 #line $LINENO "configure"
7733 /* confdefs.h.  */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h.  */
7738 $ac_includes_default
7739 #include <$ac_header>
7740 _ACEOF
7741 rm -f conftest.$ac_objext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7743   (eval $ac_compile) 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); } &&
7747          { ac_try='test -s conftest.$ac_objext'
7748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749   (eval $ac_try) 2>&5
7750   ac_status=$?
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); }; }; then
7753   ac_header_compiler=yes
7754 else
7755   echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7757
7758 ac_header_compiler=no
7759 fi
7760 rm -f conftest.$ac_objext conftest.$ac_ext
7761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7762 echo "${ECHO_T}$ac_header_compiler" >&6
7763
7764 # Is the header present?
7765 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7767 cat >conftest.$ac_ext <<_ACEOF
7768 #line $LINENO "configure"
7769 /* confdefs.h.  */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h.  */
7774 #include <$ac_header>
7775 _ACEOF
7776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7778   ac_status=$?
7779   grep -v '^ *+' conftest.er1 >conftest.err
7780   rm -f conftest.er1
7781   cat conftest.err >&5
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); } >/dev/null; then
7784   if test -s conftest.err; then
7785     ac_cpp_err=$ac_c_preproc_warn_flag
7786   else
7787     ac_cpp_err=
7788   fi
7789 else
7790   ac_cpp_err=yes
7791 fi
7792 if test -z "$ac_cpp_err"; then
7793   ac_header_preproc=yes
7794 else
7795   echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7797
7798   ac_header_preproc=no
7799 fi
7800 rm -f conftest.err conftest.$ac_ext
7801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7802 echo "${ECHO_T}$ac_header_preproc" >&6
7803
7804 # So?  What about this header?
7805 case $ac_header_compiler:$ac_header_preproc in
7806   yes:no )
7807     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7811     (
7812       cat <<\_ASBOX
7813 ## ------------------------------------ ##
7814 ## Report this to bug-autoconf@gnu.org. ##
7815 ## ------------------------------------ ##
7816 _ASBOX
7817     ) |
7818       sed "s/^/$as_me: WARNING:     /" >&2
7819     ;;
7820   no:yes )
7821     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7823     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7827     (
7828       cat <<\_ASBOX
7829 ## ------------------------------------ ##
7830 ## Report this to bug-autoconf@gnu.org. ##
7831 ## ------------------------------------ ##
7832 _ASBOX
7833     ) |
7834       sed "s/^/$as_me: WARNING:     /" >&2
7835     ;;
7836 esac
7837 echo "$as_me:$LINENO: checking for $ac_header" >&5
7838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842   eval "$as_ac_Header=$ac_header_preproc"
7843 fi
7844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7846
7847 fi
7848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7849   cat >>confdefs.h <<_ACEOF
7850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7851 _ACEOF
7852
7853 fi
7854
7855 done
7856
7857         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7858         then
7859
7860 for ac_header in GL/glext.h
7861 do
7862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7863 echo "$as_me:$LINENO: checking for $ac_header" >&5
7864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   cat >conftest.$ac_ext <<_ACEOF
7869 #line $LINENO "configure"
7870 /* confdefs.h.  */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h.  */
7875 #include <GL/glx.h>
7876
7877 #include <$ac_header>
7878 _ACEOF
7879 rm -f conftest.$ac_objext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881   (eval $ac_compile) 2>&5
7882   ac_status=$?
7883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); } &&
7885          { ac_try='test -s conftest.$ac_objext'
7886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887   (eval $ac_try) 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); }; }; then
7891   eval "$as_ac_Header=yes"
7892 else
7893   echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7895
7896 eval "$as_ac_Header=no"
7897 fi
7898 rm -f conftest.$ac_objext conftest.$ac_ext
7899 fi
7900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7903   cat >>confdefs.h <<_ACEOF
7904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7905 _ACEOF
7906
7907 fi
7908
7909 done
7910
7911                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7912 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7913 if test "${wine_cv_opengl_version_OK+set}" = set; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916   cat >conftest.$ac_ext <<_ACEOF
7917 #line $LINENO "configure"
7918 /* confdefs.h.  */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h.  */
7923 #include <GL/gl.h>
7924 int
7925 main ()
7926 {
7927 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7928   ;
7929   return 0;
7930 }
7931 _ACEOF
7932 rm -f conftest.$ac_objext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7934   (eval $ac_compile) 2>&5
7935   ac_status=$?
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } &&
7938          { ac_try='test -s conftest.$ac_objext'
7939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940   (eval $ac_try) 2>&5
7941   ac_status=$?
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); }; }; then
7944   wine_cv_opengl_version_OK="yes"
7945 else
7946   echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7948
7949 wine_cv_opengl_version_OK="no"
7950
7951 fi
7952 rm -f conftest.$ac_objext conftest.$ac_ext
7953
7954 fi
7955 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7956 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7957
7958             if test "$wine_cv_opengl_version_OK" = "yes"
7959             then
7960                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7961 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7962 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7963   echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965   ac_check_lib_save_LIBS=$LIBS
7966 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7967 cat >conftest.$ac_ext <<_ACEOF
7968 #line $LINENO "configure"
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7974
7975 /* Override any gcc2 internal prototype to avoid an error.  */
7976 #ifdef __cplusplus
7977 extern "C"
7978 #endif
7979 /* We use char because int might match the return type of a gcc2
7980    builtin and then its argument prototype would still apply.  */
7981 char glXCreateContext ();
7982 int
7983 main ()
7984 {
7985 glXCreateContext ();
7986   ;
7987   return 0;
7988 }
7989 _ACEOF
7990 rm -f conftest.$ac_objext conftest$ac_exeext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7992   (eval $ac_link) 2>&5
7993   ac_status=$?
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); } &&
7996          { ac_try='test -s conftest$ac_exeext'
7997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998   (eval $ac_try) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); }; }; then
8002   ac_cv_lib_GL_glXCreateContext=yes
8003 else
8004   echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007 ac_cv_lib_GL_glXCreateContext=no
8008 fi
8009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8010 LIBS=$ac_check_lib_save_LIBS
8011 fi
8012 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8013 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8014 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8015   OPENGL_LIBS="-lGL"
8016
8017 fi
8018
8019
8020                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8021                 then
8022                         OPENGLFILES='$(OPENGLFILES)'
8023
8024 cat >>confdefs.h <<\_ACEOF
8025 #define HAVE_OPENGL 1
8026 _ACEOF
8027
8028
8029                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8030 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8031 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8032   echo $ECHO_N "(cached) $ECHO_C" >&6
8033 else
8034   ac_check_lib_save_LIBS=$LIBS
8035 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8036 cat >conftest.$ac_ext <<_ACEOF
8037 #line $LINENO "configure"
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043
8044 /* Override any gcc2 internal prototype to avoid an error.  */
8045 #ifdef __cplusplus
8046 extern "C"
8047 #endif
8048 /* We use char because int might match the return type of a gcc2
8049    builtin and then its argument prototype would still apply.  */
8050 char glXGetProcAddressARB ();
8051 int
8052 main ()
8053 {
8054 glXGetProcAddressARB ();
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061   (eval $ac_link) 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } &&
8065          { ac_try='test -s conftest$ac_exeext'
8066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067   (eval $ac_try) 2>&5
8068   ac_status=$?
8069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070   (exit $ac_status); }; }; then
8071   ac_cv_lib_GL_glXGetProcAddressARB=yes
8072 else
8073   echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8075
8076 ac_cv_lib_GL_glXGetProcAddressARB=no
8077 fi
8078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8079 LIBS=$ac_check_lib_save_LIBS
8080 fi
8081 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8082 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8083 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8084
8085 cat >>confdefs.h <<\_ACEOF
8086 #define HAVE_GLX_GETPROCADDRESS 1
8087 _ACEOF
8088
8089 fi
8090
8091
8092                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8093                         then
8094                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8095 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8096 if test "${wine_cv_extension_prototypes+set}" = set; then
8097   echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099   cat >conftest.$ac_ext <<_ACEOF
8100 #line $LINENO "configure"
8101 /* confdefs.h.  */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h.  */
8106 #include <GL/gl.h>
8107                                                   #ifdef HAVE_GL_GLEXT_H
8108                                                   # include <GL/glext.h>
8109                                                   #endif
8110
8111 int
8112 main ()
8113 {
8114 PFNGLCOLORTABLEEXTPROC test_proc;
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8121   (eval $ac_compile) 2>&5
8122   ac_status=$?
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } &&
8125          { ac_try='test -s conftest.$ac_objext'
8126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127   (eval $ac_try) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; }; then
8131   wine_cv_extension_prototypes="yes"
8132 else
8133   echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8135
8136 wine_cv_extension_prototypes="no"
8137
8138 fi
8139 rm -f conftest.$ac_objext conftest.$ac_ext
8140
8141 fi
8142 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8143 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8144                                 if test "$wine_cv_extension_prototypes" = "yes"
8145                                 then
8146
8147 cat >>confdefs.h <<\_ACEOF
8148 #define HAVE_GLEXT_PROTOTYPES 1
8149 _ACEOF
8150
8151                                 fi
8152                         fi
8153
8154                 fi
8155                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8156 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8157 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8158   echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160   ac_check_lib_save_LIBS=$LIBS
8161 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8162                  $LIBS"
8163 cat >conftest.$ac_ext <<_ACEOF
8164 #line $LINENO "configure"
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170
8171 /* Override any gcc2 internal prototype to avoid an error.  */
8172 #ifdef __cplusplus
8173 extern "C"
8174 #endif
8175 /* We use char because int might match the return type of a gcc2
8176    builtin and then its argument prototype would still apply.  */
8177 char gluLookAt ();
8178 int
8179 main ()
8180 {
8181 gluLookAt ();
8182   ;
8183   return 0;
8184 }
8185 _ACEOF
8186 rm -f conftest.$ac_objext conftest$ac_exeext
8187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188   (eval $ac_link) 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); } &&
8192          { ac_try='test -s conftest$ac_exeext'
8193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194   (eval $ac_try) 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; }; then
8198   ac_cv_lib_GLU_gluLookAt=yes
8199 else
8200   echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 ac_cv_lib_GLU_gluLookAt=no
8204 fi
8205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8206 LIBS=$ac_check_lib_save_LIBS
8207 fi
8208 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8209 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8210 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8211   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8212                              GLU32FILES='$(GLU32FILES)'
8213
8214 fi
8215
8216              fi
8217          fi
8218     fi
8219
8220         NASLIBS=""
8221
8222
8223 for ac_header in audio/audiolib.h
8224 do
8225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8227   echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 fi
8232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8234 else
8235   # Is the header compilable?
8236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8238 cat >conftest.$ac_ext <<_ACEOF
8239 #line $LINENO "configure"
8240 /* confdefs.h.  */
8241 _ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h.  */
8245 $ac_includes_default
8246 #include <$ac_header>
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250   (eval $ac_compile) 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } &&
8254          { ac_try='test -s conftest.$ac_objext'
8255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256   (eval $ac_try) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; }; then
8260   ac_header_compiler=yes
8261 else
8262   echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8264
8265 ac_header_compiler=no
8266 fi
8267 rm -f conftest.$ac_objext conftest.$ac_ext
8268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8269 echo "${ECHO_T}$ac_header_compiler" >&6
8270
8271 # Is the header present?
8272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8275 #line $LINENO "configure"
8276 /* confdefs.h.  */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h.  */
8281 #include <$ac_header>
8282 _ACEOF
8283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8285   ac_status=$?
8286   grep -v '^ *+' conftest.er1 >conftest.err
8287   rm -f conftest.er1
8288   cat conftest.err >&5
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); } >/dev/null; then
8291   if test -s conftest.err; then
8292     ac_cpp_err=$ac_c_preproc_warn_flag
8293   else
8294     ac_cpp_err=
8295   fi
8296 else
8297   ac_cpp_err=yes
8298 fi
8299 if test -z "$ac_cpp_err"; then
8300   ac_header_preproc=yes
8301 else
8302   echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8304
8305   ac_header_preproc=no
8306 fi
8307 rm -f conftest.err conftest.$ac_ext
8308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8309 echo "${ECHO_T}$ac_header_preproc" >&6
8310
8311 # So?  What about this header?
8312 case $ac_header_compiler:$ac_header_preproc in
8313   yes:no )
8314     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8318     (
8319       cat <<\_ASBOX
8320 ## ------------------------------------ ##
8321 ## Report this to bug-autoconf@gnu.org. ##
8322 ## ------------------------------------ ##
8323 _ASBOX
8324     ) |
8325       sed "s/^/$as_me: WARNING:     /" >&2
8326     ;;
8327   no:yes )
8328     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8330     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8334     (
8335       cat <<\_ASBOX
8336 ## ------------------------------------ ##
8337 ## Report this to bug-autoconf@gnu.org. ##
8338 ## ------------------------------------ ##
8339 _ASBOX
8340     ) |
8341       sed "s/^/$as_me: WARNING:     /" >&2
8342     ;;
8343 esac
8344 echo "$as_me:$LINENO: checking for $ac_header" >&5
8345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349   eval "$as_ac_Header=$ac_header_preproc"
8350 fi
8351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8353
8354 fi
8355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8356   cat >>confdefs.h <<_ACEOF
8357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8358 _ACEOF
8359
8360 for ac_header in audio/soundlib.h
8361 do
8362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363 echo "$as_me:$LINENO: checking for $ac_header" >&5
8364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8366   echo $ECHO_N "(cached) $ECHO_C" >&6
8367 else
8368   cat >conftest.$ac_ext <<_ACEOF
8369 #line $LINENO "configure"
8370 /* confdefs.h.  */
8371 _ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h.  */
8375 #include <audio/audiolib.h>
8376
8377 #include <$ac_header>
8378 _ACEOF
8379 rm -f conftest.$ac_objext
8380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8381   (eval $ac_compile) 2>&5
8382   ac_status=$?
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); } &&
8385          { ac_try='test -s conftest.$ac_objext'
8386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387   (eval $ac_try) 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); }; }; then
8391   eval "$as_ac_Header=yes"
8392 else
8393   echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396 eval "$as_ac_Header=no"
8397 fi
8398 rm -f conftest.$ac_objext conftest.$ac_ext
8399 fi
8400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8403   cat >>confdefs.h <<_ACEOF
8404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8405 _ACEOF
8406
8407 fi
8408
8409 done
8410
8411           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8412 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8413 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8414   echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416   ac_check_lib_save_LIBS=$LIBS
8417 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8418 cat >conftest.$ac_ext <<_ACEOF
8419 #line $LINENO "configure"
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425
8426 /* Override any gcc2 internal prototype to avoid an error.  */
8427 #ifdef __cplusplus
8428 extern "C"
8429 #endif
8430 /* We use char because int might match the return type of a gcc2
8431    builtin and then its argument prototype would still apply.  */
8432 char AuCreateFlow ();
8433 int
8434 main ()
8435 {
8436 AuCreateFlow ();
8437   ;
8438   return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443   (eval $ac_link) 2>&5
8444   ac_status=$?
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } &&
8447          { ac_try='test -s conftest$ac_exeext'
8448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449   (eval $ac_try) 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; }; then
8453   ac_cv_lib_audio_AuCreateFlow=yes
8454 else
8455   echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458 ac_cv_lib_audio_AuCreateFlow=no
8459 fi
8460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8461 LIBS=$ac_check_lib_save_LIBS
8462 fi
8463 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8464 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8465 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8466
8467 cat >>confdefs.h <<\_ACEOF
8468 #define HAVE_NAS 1
8469 _ACEOF
8470
8471                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8472 fi
8473
8474 fi
8475
8476 done
8477
8478
8479     CPPFLAGS="$ac_save_CPPFLAGS"
8480     XFILES='$(XFILES)'
8481 else
8482     XLIB=""
8483     X_CFLAGS=""
8484     X_LIBS=""
8485 fi
8486
8487 CURSESLIBS=""
8488 if test "x$with_curses" != "xno"
8489 then
8490
8491 for ac_header in ncurses.h
8492 do
8493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8495   echo "$as_me:$LINENO: checking for $ac_header" >&5
8496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8498   echo $ECHO_N "(cached) $ECHO_C" >&6
8499 fi
8500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8502 else
8503   # Is the header compilable?
8504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8506 cat >conftest.$ac_ext <<_ACEOF
8507 #line $LINENO "configure"
8508 /* confdefs.h.  */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h.  */
8513 $ac_includes_default
8514 #include <$ac_header>
8515 _ACEOF
8516 rm -f conftest.$ac_objext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518   (eval $ac_compile) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); } &&
8522          { ac_try='test -s conftest.$ac_objext'
8523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524   (eval $ac_try) 2>&5
8525   ac_status=$?
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); }; }; then
8528   ac_header_compiler=yes
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533 ac_header_compiler=no
8534 fi
8535 rm -f conftest.$ac_objext conftest.$ac_ext
8536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8537 echo "${ECHO_T}$ac_header_compiler" >&6
8538
8539 # Is the header present?
8540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8542 cat >conftest.$ac_ext <<_ACEOF
8543 #line $LINENO "configure"
8544 /* confdefs.h.  */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h.  */
8549 #include <$ac_header>
8550 _ACEOF
8551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8552   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8553   ac_status=$?
8554   grep -v '^ *+' conftest.er1 >conftest.err
8555   rm -f conftest.er1
8556   cat conftest.err >&5
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); } >/dev/null; then
8559   if test -s conftest.err; then
8560     ac_cpp_err=$ac_c_preproc_warn_flag
8561   else
8562     ac_cpp_err=
8563   fi
8564 else
8565   ac_cpp_err=yes
8566 fi
8567 if test -z "$ac_cpp_err"; then
8568   ac_header_preproc=yes
8569 else
8570   echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573   ac_header_preproc=no
8574 fi
8575 rm -f conftest.err conftest.$ac_ext
8576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8577 echo "${ECHO_T}$ac_header_preproc" >&6
8578
8579 # So?  What about this header?
8580 case $ac_header_compiler:$ac_header_preproc in
8581   yes:no )
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8586     (
8587       cat <<\_ASBOX
8588 ## ------------------------------------ ##
8589 ## Report this to bug-autoconf@gnu.org. ##
8590 ## ------------------------------------ ##
8591 _ASBOX
8592     ) |
8593       sed "s/^/$as_me: WARNING:     /" >&2
8594     ;;
8595   no:yes )
8596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8598     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8602     (
8603       cat <<\_ASBOX
8604 ## ------------------------------------ ##
8605 ## Report this to bug-autoconf@gnu.org. ##
8606 ## ------------------------------------ ##
8607 _ASBOX
8608     ) |
8609       sed "s/^/$as_me: WARNING:     /" >&2
8610     ;;
8611 esac
8612 echo "$as_me:$LINENO: checking for $ac_header" >&5
8613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8615   echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617   eval "$as_ac_Header=$ac_header_preproc"
8618 fi
8619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8621
8622 fi
8623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8624   cat >>confdefs.h <<_ACEOF
8625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8626 _ACEOF
8627  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8628 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8629 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8630   echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632   ac_check_lib_save_LIBS=$LIBS
8633 LIBS="-lncurses  $LIBS"
8634 cat >conftest.$ac_ext <<_ACEOF
8635 #line $LINENO "configure"
8636 /* confdefs.h.  */
8637 _ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h.  */
8641
8642 /* Override any gcc2 internal prototype to avoid an error.  */
8643 #ifdef __cplusplus
8644 extern "C"
8645 #endif
8646 /* We use char because int might match the return type of a gcc2
8647    builtin and then its argument prototype would still apply.  */
8648 char waddch ();
8649 int
8650 main ()
8651 {
8652 waddch ();
8653   ;
8654   return 0;
8655 }
8656 _ACEOF
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659   (eval $ac_link) 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); } &&
8663          { ac_try='test -s conftest$ac_exeext'
8664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665   (eval $ac_try) 2>&5
8666   ac_status=$?
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); }; }; then
8669   ac_cv_lib_ncurses_waddch=yes
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674 ac_cv_lib_ncurses_waddch=no
8675 fi
8676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8677 LIBS=$ac_check_lib_save_LIBS
8678 fi
8679 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8680 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8681 if test $ac_cv_lib_ncurses_waddch = yes; then
8682
8683 cat >>confdefs.h <<\_ACEOF
8684 #define HAVE_LIBNCURSES 1
8685 _ACEOF
8686
8687              CURSESLIBS="-lncurses"
8688 else
8689
8690 for ac_header in curses.h
8691 do
8692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8694   echo "$as_me:$LINENO: checking for $ac_header" >&5
8695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8697   echo $ECHO_N "(cached) $ECHO_C" >&6
8698 fi
8699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8701 else
8702   # Is the header compilable?
8703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8705 cat >conftest.$ac_ext <<_ACEOF
8706 #line $LINENO "configure"
8707 /* confdefs.h.  */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h.  */
8712 $ac_includes_default
8713 #include <$ac_header>
8714 _ACEOF
8715 rm -f conftest.$ac_objext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8717   (eval $ac_compile) 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } &&
8721          { ac_try='test -s conftest.$ac_objext'
8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723   (eval $ac_try) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; }; then
8727   ac_header_compiler=yes
8728 else
8729   echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8731
8732 ac_header_compiler=no
8733 fi
8734 rm -f conftest.$ac_objext conftest.$ac_ext
8735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8736 echo "${ECHO_T}$ac_header_compiler" >&6
8737
8738 # Is the header present?
8739 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8741 cat >conftest.$ac_ext <<_ACEOF
8742 #line $LINENO "configure"
8743 /* confdefs.h.  */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h.  */
8748 #include <$ac_header>
8749 _ACEOF
8750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8751   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8752   ac_status=$?
8753   grep -v '^ *+' conftest.er1 >conftest.err
8754   rm -f conftest.er1
8755   cat conftest.err >&5
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } >/dev/null; then
8758   if test -s conftest.err; then
8759     ac_cpp_err=$ac_c_preproc_warn_flag
8760   else
8761     ac_cpp_err=
8762   fi
8763 else
8764   ac_cpp_err=yes
8765 fi
8766 if test -z "$ac_cpp_err"; then
8767   ac_header_preproc=yes
8768 else
8769   echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772   ac_header_preproc=no
8773 fi
8774 rm -f conftest.err conftest.$ac_ext
8775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8776 echo "${ECHO_T}$ac_header_preproc" >&6
8777
8778 # So?  What about this header?
8779 case $ac_header_compiler:$ac_header_preproc in
8780   yes:no )
8781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8785     (
8786       cat <<\_ASBOX
8787 ## ------------------------------------ ##
8788 ## Report this to bug-autoconf@gnu.org. ##
8789 ## ------------------------------------ ##
8790 _ASBOX
8791     ) |
8792       sed "s/^/$as_me: WARNING:     /" >&2
8793     ;;
8794   no:yes )
8795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8797     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8801     (
8802       cat <<\_ASBOX
8803 ## ------------------------------------ ##
8804 ## Report this to bug-autoconf@gnu.org. ##
8805 ## ------------------------------------ ##
8806 _ASBOX
8807     ) |
8808       sed "s/^/$as_me: WARNING:     /" >&2
8809     ;;
8810 esac
8811 echo "$as_me:$LINENO: checking for $ac_header" >&5
8812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8814   echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816   eval "$as_ac_Header=$ac_header_preproc"
8817 fi
8818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8820
8821 fi
8822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8823   cat >>confdefs.h <<_ACEOF
8824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8825 _ACEOF
8826  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8827 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8828 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8829   echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831   ac_check_lib_save_LIBS=$LIBS
8832 LIBS="-lcurses  $LIBS"
8833 cat >conftest.$ac_ext <<_ACEOF
8834 #line $LINENO "configure"
8835 /* confdefs.h.  */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h.  */
8840
8841 /* Override any gcc2 internal prototype to avoid an error.  */
8842 #ifdef __cplusplus
8843 extern "C"
8844 #endif
8845 /* We use char because int might match the return type of a gcc2
8846    builtin and then its argument prototype would still apply.  */
8847 char waddch ();
8848 int
8849 main ()
8850 {
8851 waddch ();
8852   ;
8853   return 0;
8854 }
8855 _ACEOF
8856 rm -f conftest.$ac_objext conftest$ac_exeext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8858   (eval $ac_link) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); } &&
8862          { ac_try='test -s conftest$ac_exeext'
8863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864   (eval $ac_try) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; }; then
8868   ac_cv_lib_curses_waddch=yes
8869 else
8870   echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873 ac_cv_lib_curses_waddch=no
8874 fi
8875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8876 LIBS=$ac_check_lib_save_LIBS
8877 fi
8878 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8879 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8880 if test $ac_cv_lib_curses_waddch = yes; then
8881
8882 cat >>confdefs.h <<\_ACEOF
8883 #define HAVE_LIBCURSES 1
8884 _ACEOF
8885
8886                       CURSESLIBS="-lcurses"
8887 fi
8888
8889 fi
8890
8891 done
8892
8893 fi
8894
8895 fi
8896
8897 done
8898
8899     saved_libs="$LIBS"
8900     LIBS="$CURSESLIBS $LIBS"
8901
8902
8903 for ac_func in getbkgd resizeterm
8904 do
8905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8906 echo "$as_me:$LINENO: checking for $ac_func" >&5
8907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8908 if eval "test \"\${$as_ac_var+set}\" = set"; then
8909   echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911   cat >conftest.$ac_ext <<_ACEOF
8912 #line $LINENO "configure"
8913 /* confdefs.h.  */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h.  */
8918 /* System header to define __stub macros and hopefully few prototypes,
8919     which can conflict with char $ac_func (); below.
8920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8921     <limits.h> exists even on freestanding compilers.  */
8922 #ifdef __STDC__
8923 # include <limits.h>
8924 #else
8925 # include <assert.h>
8926 #endif
8927 /* Override any gcc2 internal prototype to avoid an error.  */
8928 #ifdef __cplusplus
8929 extern "C"
8930 {
8931 #endif
8932 /* We use char because int might match the return type of a gcc2
8933    builtin and then its argument prototype would still apply.  */
8934 char $ac_func ();
8935 /* The GNU C library defines this for functions which it implements
8936     to always fail with ENOSYS.  Some functions are actually named
8937     something starting with __ and the normal name is an alias.  */
8938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8939 choke me
8940 #else
8941 char (*f) () = $ac_func;
8942 #endif
8943 #ifdef __cplusplus
8944 }
8945 #endif
8946
8947 int
8948 main ()
8949 {
8950 return f != $ac_func;
8951   ;
8952   return 0;
8953 }
8954 _ACEOF
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957   (eval $ac_link) 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); } &&
8961          { ac_try='test -s conftest$ac_exeext'
8962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963   (eval $ac_try) 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; }; then
8967   eval "$as_ac_var=yes"
8968 else
8969   echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 eval "$as_ac_var=no"
8973 fi
8974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8975 fi
8976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8978 if test `eval echo '${'$as_ac_var'}'` = yes; then
8979   cat >>confdefs.h <<_ACEOF
8980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8981 _ACEOF
8982
8983 fi
8984 done
8985
8986     LIBS="$saved_libs"
8987 fi
8988
8989
8990 # Extract the first word of "sane-config", so it can be a program name with args.
8991 set dummy sane-config; ac_word=$2
8992 echo "$as_me:$LINENO: checking for $ac_word" >&5
8993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8994 if test "${ac_cv_prog_sane_devel+set}" = set; then
8995   echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997   if test -n "$sane_devel"; then
8998   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8999 else
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9002 do
9003   IFS=$as_save_IFS
9004   test -z "$as_dir" && as_dir=.
9005   for ac_exec_ext in '' $ac_executable_extensions; do
9006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007     ac_cv_prog_sane_devel="sane-config"
9008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9009     break 2
9010   fi
9011 done
9012 done
9013
9014   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9015 fi
9016 fi
9017 sane_devel=$ac_cv_prog_sane_devel
9018 if test -n "$sane_devel"; then
9019   echo "$as_me:$LINENO: result: $sane_devel" >&5
9020 echo "${ECHO_T}$sane_devel" >&6
9021 else
9022   echo "$as_me:$LINENO: result: no" >&5
9023 echo "${ECHO_T}no" >&6
9024 fi
9025
9026 if test "$sane_devel" = "no"
9027 then
9028     SANELIBS=""
9029     SANEINCL=""
9030 else
9031     SANELIBS="`$sane_devel --libs`"
9032     SANEINCL="`$sane_devel --cflags`"
9033     ac_save_CPPFLAGS="$CPPFLAGS"
9034     ac_save_LIBS="$LIBS"
9035     CPPFLAGS="$CPPFLAGS $SANEINCL"
9036     LIBS="$LIBS $SANELIBS"
9037     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9038   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9039 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9040 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 fi
9043 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9044 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9045 else
9046   # Is the header compilable?
9047 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9048 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9049 cat >conftest.$ac_ext <<_ACEOF
9050 #line $LINENO "configure"
9051 /* confdefs.h.  */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h.  */
9056 $ac_includes_default
9057 #include <sane/sane.h>
9058 _ACEOF
9059 rm -f conftest.$ac_objext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9061   (eval $ac_compile) 2>&5
9062   ac_status=$?
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); } &&
9065          { ac_try='test -s conftest.$ac_objext'
9066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067   (eval $ac_try) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); }; }; then
9071   ac_header_compiler=yes
9072 else
9073   echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9075
9076 ac_header_compiler=no
9077 fi
9078 rm -f conftest.$ac_objext conftest.$ac_ext
9079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9080 echo "${ECHO_T}$ac_header_compiler" >&6
9081
9082 # Is the header present?
9083 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9084 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9085 cat >conftest.$ac_ext <<_ACEOF
9086 #line $LINENO "configure"
9087 /* confdefs.h.  */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h.  */
9092 #include <sane/sane.h>
9093 _ACEOF
9094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9096   ac_status=$?
9097   grep -v '^ *+' conftest.er1 >conftest.err
9098   rm -f conftest.er1
9099   cat conftest.err >&5
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); } >/dev/null; then
9102   if test -s conftest.err; then
9103     ac_cpp_err=$ac_c_preproc_warn_flag
9104   else
9105     ac_cpp_err=
9106   fi
9107 else
9108   ac_cpp_err=yes
9109 fi
9110 if test -z "$ac_cpp_err"; then
9111   ac_header_preproc=yes
9112 else
9113   echo "$as_me: failed program was:" >&5
9114 sed 's/^/| /' conftest.$ac_ext >&5
9115
9116   ac_header_preproc=no
9117 fi
9118 rm -f conftest.err conftest.$ac_ext
9119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9120 echo "${ECHO_T}$ac_header_preproc" >&6
9121
9122 # So?  What about this header?
9123 case $ac_header_compiler:$ac_header_preproc in
9124   yes:no )
9125     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9126 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9127     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9128 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9129     (
9130       cat <<\_ASBOX
9131 ## ------------------------------------ ##
9132 ## Report this to bug-autoconf@gnu.org. ##
9133 ## ------------------------------------ ##
9134 _ASBOX
9135     ) |
9136       sed "s/^/$as_me: WARNING:     /" >&2
9137     ;;
9138   no:yes )
9139     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9140 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9141     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9142 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9143     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9144 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9145     (
9146       cat <<\_ASBOX
9147 ## ------------------------------------ ##
9148 ## Report this to bug-autoconf@gnu.org. ##
9149 ## ------------------------------------ ##
9150 _ASBOX
9151     ) |
9152       sed "s/^/$as_me: WARNING:     /" >&2
9153     ;;
9154 esac
9155 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9156 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9157 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160   ac_cv_header_sane_sane_h=$ac_header_preproc
9161 fi
9162 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9163 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9164
9165 fi
9166 if test $ac_cv_header_sane_sane_h = yes; then
9167   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9168 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9169 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9170   echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172   ac_check_lib_save_LIBS=$LIBS
9173 LIBS="-lsane  $LIBS"
9174 cat >conftest.$ac_ext <<_ACEOF
9175 #line $LINENO "configure"
9176 /* confdefs.h.  */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h.  */
9181
9182 /* Override any gcc2 internal prototype to avoid an error.  */
9183 #ifdef __cplusplus
9184 extern "C"
9185 #endif
9186 /* We use char because int might match the return type of a gcc2
9187    builtin and then its argument prototype would still apply.  */
9188 char sane_open ();
9189 int
9190 main ()
9191 {
9192 sane_open ();
9193   ;
9194   return 0;
9195 }
9196 _ACEOF
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199   (eval $ac_link) 2>&5
9200   ac_status=$?
9201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); } &&
9203          { ac_try='test -s conftest$ac_exeext'
9204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205   (eval $ac_try) 2>&5
9206   ac_status=$?
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); }; }; then
9209   ac_cv_lib_sane_sane_open=yes
9210 else
9211   echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.$ac_ext >&5
9213
9214 ac_cv_lib_sane_sane_open=no
9215 fi
9216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9217 LIBS=$ac_check_lib_save_LIBS
9218 fi
9219 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9220 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9221 if test $ac_cv_lib_sane_sane_open = yes; then
9222
9223 cat >>confdefs.h <<\_ACEOF
9224 #define HAVE_SANE 1
9225 _ACEOF
9226
9227 else
9228   SANELIBS=""
9229                                   SANEINCL=""
9230 fi
9231
9232 else
9233   SANELIBS=""
9234                     SANEINCL=""
9235 fi
9236
9237
9238     LIBS="$ac_save_LIBS"
9239     CPPFLAGS="$ac_save_CPPFLAGS"
9240 fi
9241
9242
9243
9244 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9245 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9246 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9247   echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249   ac_check_lib_save_LIBS=$LIBS
9250 LIBS="-lfreetype $X_LIBS $LIBS"
9251 cat >conftest.$ac_ext <<_ACEOF
9252 #line $LINENO "configure"
9253 /* confdefs.h.  */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h.  */
9258
9259 /* Override any gcc2 internal prototype to avoid an error.  */
9260 #ifdef __cplusplus
9261 extern "C"
9262 #endif
9263 /* We use char because int might match the return type of a gcc2
9264    builtin and then its argument prototype would still apply.  */
9265 char FT_Init_FreeType ();
9266 int
9267 main ()
9268 {
9269 FT_Init_FreeType ();
9270   ;
9271   return 0;
9272 }
9273 _ACEOF
9274 rm -f conftest.$ac_objext conftest$ac_exeext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9276   (eval $ac_link) 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); } &&
9280          { ac_try='test -s conftest$ac_exeext'
9281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282   (eval $ac_try) 2>&5
9283   ac_status=$?
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); }; }; then
9286   ac_cv_lib_freetype_FT_Init_FreeType=yes
9287 else
9288   echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9290
9291 ac_cv_lib_freetype_FT_Init_FreeType=no
9292 fi
9293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9294 LIBS=$ac_check_lib_save_LIBS
9295 fi
9296 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9297 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9298 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9299   ft_lib=yes
9300 else
9301   ft_lib=no
9302 fi
9303
9304 if test "$ft_lib" = "no"
9305 then
9306     FREETYPEINCL=""
9307     wine_cv_msg_freetype=no
9308 else
9309     # Extract the first word of "freetype-config", so it can be a program name with args.
9310 set dummy freetype-config; ac_word=$2
9311 echo "$as_me:$LINENO: checking for $ac_word" >&5
9312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9313 if test "${ac_cv_prog_ft_devel+set}" = set; then
9314   echo $ECHO_N "(cached) $ECHO_C" >&6
9315 else
9316   if test -n "$ft_devel"; then
9317   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9318 else
9319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 for as_dir in $PATH
9321 do
9322   IFS=$as_save_IFS
9323   test -z "$as_dir" && as_dir=.
9324   for ac_exec_ext in '' $ac_executable_extensions; do
9325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9326     ac_cv_prog_ft_devel="freetype-config"
9327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9328     break 2
9329   fi
9330 done
9331 done
9332
9333   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9334 fi
9335 fi
9336 ft_devel=$ac_cv_prog_ft_devel
9337 if test -n "$ft_devel"; then
9338   echo "$as_me:$LINENO: result: $ft_devel" >&5
9339 echo "${ECHO_T}$ft_devel" >&6
9340 else
9341   echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6
9343 fi
9344
9345     if test "$ft_devel" = "no"
9346     then
9347         # Extract the first word of "freetype2-config", so it can be a program name with args.
9348 set dummy freetype2-config; ac_word=$2
9349 echo "$as_me:$LINENO: checking for $ac_word" >&5
9350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9351 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354   if test -n "$ft_devel2"; then
9355   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9356 else
9357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 for as_dir in $PATH
9359 do
9360   IFS=$as_save_IFS
9361   test -z "$as_dir" && as_dir=.
9362   for ac_exec_ext in '' $ac_executable_extensions; do
9363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9364     ac_cv_prog_ft_devel2="freetype2-config"
9365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9366     break 2
9367   fi
9368 done
9369 done
9370
9371   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9372 fi
9373 fi
9374 ft_devel2=$ac_cv_prog_ft_devel2
9375 if test -n "$ft_devel2"; then
9376   echo "$as_me:$LINENO: result: $ft_devel2" >&5
9377 echo "${ECHO_T}$ft_devel2" >&6
9378 else
9379   echo "$as_me:$LINENO: result: no" >&5
9380 echo "${ECHO_T}no" >&6
9381 fi
9382
9383         if test "$ft_devel2" = "freetype2-config"
9384         then
9385                 ft_devel=$ft_devel2
9386         fi
9387     fi
9388     if test "$ft_devel" = "no"
9389     then
9390         FREETYPEINCL=""
9391         wine_cv_msg_freetype=yes
9392     else
9393         FREETYPEINCL=`$ft_devel --cflags`
9394         ac_save_CPPFLAGS="$CPPFLAGS"
9395         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9396
9397
9398
9399
9400
9401
9402
9403
9404 for ac_header in freetype/freetype.h \
9405                          freetype/ftglyph.h \
9406                          freetype/tttables.h \
9407                          freetype/ftnames.h \
9408                          freetype/ftsnames.h \
9409                          freetype/ttnameid.h \
9410                          freetype/ftoutln.h \
9411                          freetype/internal/sfnt.h
9412 do
9413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9415   echo "$as_me:$LINENO: checking for $ac_header" >&5
9416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 fi
9420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9422 else
9423   # Is the header compilable?
9424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9427 #line $LINENO "configure"
9428 /* confdefs.h.  */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h.  */
9433 $ac_includes_default
9434 #include <$ac_header>
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438   (eval $ac_compile) 2>&5
9439   ac_status=$?
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); } &&
9442          { ac_try='test -s conftest.$ac_objext'
9443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444   (eval $ac_try) 2>&5
9445   ac_status=$?
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   (exit $ac_status); }; }; then
9448   ac_header_compiler=yes
9449 else
9450   echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9452
9453 ac_header_compiler=no
9454 fi
9455 rm -f conftest.$ac_objext conftest.$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9457 echo "${ECHO_T}$ac_header_compiler" >&6
9458
9459 # Is the header present?
9460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9462 cat >conftest.$ac_ext <<_ACEOF
9463 #line $LINENO "configure"
9464 /* confdefs.h.  */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h.  */
9469 #include <$ac_header>
9470 _ACEOF
9471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9473   ac_status=$?
9474   grep -v '^ *+' conftest.er1 >conftest.err
9475   rm -f conftest.er1
9476   cat conftest.err >&5
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); } >/dev/null; then
9479   if test -s conftest.err; then
9480     ac_cpp_err=$ac_c_preproc_warn_flag
9481   else
9482     ac_cpp_err=
9483   fi
9484 else
9485   ac_cpp_err=yes
9486 fi
9487 if test -z "$ac_cpp_err"; then
9488   ac_header_preproc=yes
9489 else
9490   echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493   ac_header_preproc=no
9494 fi
9495 rm -f conftest.err conftest.$ac_ext
9496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9497 echo "${ECHO_T}$ac_header_preproc" >&6
9498
9499 # So?  What about this header?
9500 case $ac_header_compiler:$ac_header_preproc in
9501   yes:no )
9502     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9506     (
9507       cat <<\_ASBOX
9508 ## ------------------------------------ ##
9509 ## Report this to bug-autoconf@gnu.org. ##
9510 ## ------------------------------------ ##
9511 _ASBOX
9512     ) |
9513       sed "s/^/$as_me: WARNING:     /" >&2
9514     ;;
9515   no:yes )
9516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9518     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9522     (
9523       cat <<\_ASBOX
9524 ## ------------------------------------ ##
9525 ## Report this to bug-autoconf@gnu.org. ##
9526 ## ------------------------------------ ##
9527 _ASBOX
9528     ) |
9529       sed "s/^/$as_me: WARNING:     /" >&2
9530     ;;
9531 esac
9532 echo "$as_me:$LINENO: checking for $ac_header" >&5
9533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9535   echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537   eval "$as_ac_Header=$ac_header_preproc"
9538 fi
9539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9541
9542 fi
9543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9544   cat >>confdefs.h <<_ACEOF
9545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9546 _ACEOF
9547
9548 fi
9549
9550 done
9551
9552         cat >conftest.$ac_ext <<_ACEOF
9553 #line $LINENO "configure"
9554 /* confdefs.h.  */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h.  */
9559 #include <ft2build.h>
9560                     #include <freetype/fttrigon.h>
9561 _ACEOF
9562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9563   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9564   ac_status=$?
9565   grep -v '^ *+' conftest.er1 >conftest.err
9566   rm -f conftest.er1
9567   cat conftest.err >&5
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); } >/dev/null; then
9570   if test -s conftest.err; then
9571     ac_cpp_err=$ac_c_preproc_warn_flag
9572   else
9573     ac_cpp_err=
9574   fi
9575 else
9576   ac_cpp_err=yes
9577 fi
9578 if test -z "$ac_cpp_err"; then
9579
9580 cat >>confdefs.h <<\_ACEOF
9581 #define HAVE_FREETYPE_FTTRIGON_H 1
9582 _ACEOF
9583
9584                     wine_cv_fttrigon=yes
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589   wine_cv_fttrigon=no
9590 fi
9591 rm -f conftest.err conftest.$ac_ext
9592         CPPFLAGS="$ac_save_CPPFLAGS"
9593                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9594         then
9595
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_FREETYPE 1
9598 _ACEOF
9599
9600             wine_cv_msg_freetype=no
9601         else
9602             FREETYPEINCL=""
9603             wine_cv_msg_freetype=yes
9604         fi
9605     fi
9606 fi
9607
9608
9609 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9610 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9611 if test "${ac_cv_c_ppdev+set}" = set; then
9612   echo $ECHO_N "(cached) $ECHO_C" >&6
9613 else
9614   cat >conftest.$ac_ext <<_ACEOF
9615 #line $LINENO "configure"
9616 /* confdefs.h.  */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h.  */
9621 #include <linux/ppdev.h>
9622 int
9623 main ()
9624 {
9625 ioctl (1,PPCLAIM,0)
9626   ;
9627   return 0;
9628 }
9629 _ACEOF
9630 rm -f conftest.$ac_objext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632   (eval $ac_compile) 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } &&
9636          { ac_try='test -s conftest.$ac_objext'
9637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638   (eval $ac_try) 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); }; }; then
9642   ac_cv_c_ppdev="yes"
9643 else
9644   echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9646
9647 ac_cv_c_ppdev="no"
9648 fi
9649 rm -f conftest.$ac_objext conftest.$ac_ext
9650
9651 fi
9652 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9653 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9654 if test "$ac_cv_c_ppdev" = "yes"
9655 then
9656
9657 cat >>confdefs.h <<\_ACEOF
9658 #define HAVE_PPDEV 1
9659 _ACEOF
9660
9661 fi
9662
9663 echo "$as_me:$LINENO: checking for va_copy" >&5
9664 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9665 if test "${ac_cv_c_va_copy+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668   cat >conftest.$ac_ext <<_ACEOF
9669 #line $LINENO "configure"
9670 /* confdefs.h.  */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h.  */
9675 #include <stdarg.h>
9676 int
9677 main ()
9678 {
9679 va_list ap1, ap2;
9680     va_copy(ap1,ap2);
9681
9682   ;
9683   return 0;
9684 }
9685 _ACEOF
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688   (eval $ac_link) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } &&
9692          { ac_try='test -s conftest$ac_exeext'
9693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694   (eval $ac_try) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; }; then
9698   ac_cv_c_va_copy="yes"
9699 else
9700   echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9702
9703 ac_cv_c_va_copy="no"
9704 fi
9705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9706
9707 fi
9708 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9709 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9710 if test "$ac_cv_c_va_copy" = "yes"
9711 then
9712
9713 cat >>confdefs.h <<\_ACEOF
9714 #define HAVE_VA_COPY 1
9715 _ACEOF
9716
9717 fi
9718 echo "$as_me:$LINENO: checking for __va_copy" >&5
9719 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9720 if test "${ac_cv_c___va_copy+set}" = set; then
9721   echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723   cat >conftest.$ac_ext <<_ACEOF
9724 #line $LINENO "configure"
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730 #include <stdarg.h>
9731 int
9732 main ()
9733 {
9734 va_list ap1, ap2;
9735     __va_copy(ap1,ap2);
9736
9737   ;
9738   return 0;
9739 }
9740 _ACEOF
9741 rm -f conftest.$ac_objext conftest$ac_exeext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743   (eval $ac_link) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); } &&
9747          { ac_try='test -s conftest$ac_exeext'
9748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749   (eval $ac_try) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; }; then
9753   ac_cv_c___va_copy="yes"
9754 else
9755   echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758 ac_cv_c___va_copy="no"
9759 fi
9760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9761
9762 fi
9763 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9764 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9765 if test "$ac_cv_c___va_copy" = "yes"
9766 then
9767
9768 cat >>confdefs.h <<\_ACEOF
9769 #define HAVE___VA_COPY 1
9770 _ACEOF
9771
9772 fi
9773
9774 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
9775 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
9776 if test "${ac_cv_c_ipx_gnu+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
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 <sys/types.h>
9787     #ifdef HAVE_SYS_SOCKET_H
9788     # include <sys/socket.h>
9789     #endif
9790     #include <netipx/ipx.h>
9791 int
9792 main ()
9793 {
9794 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
9795   ;
9796   return 0;
9797 }
9798 _ACEOF
9799 rm -f conftest.$ac_objext
9800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9801   (eval $ac_compile) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); } &&
9805          { ac_try='test -s conftest.$ac_objext'
9806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807   (eval $ac_try) 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; }; then
9811   ac_cv_c_ipx_gnu="yes"
9812 else
9813   echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816 ac_cv_c_ipx_gnu="no"
9817 fi
9818 rm -f conftest.$ac_objext conftest.$ac_ext
9819
9820 fi
9821 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
9822 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
9823 if test "$ac_cv_c_ipx_gnu" = "yes"
9824 then
9825
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_IPX_GNU 1
9828 _ACEOF
9829
9830 fi
9831
9832 if test "$ac_cv_c_ipx_gnu" = "no"
9833 then
9834  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
9835 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
9836 if test "${ac_cv_c_ipx_linux+set}" = set; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839   cat >conftest.$ac_ext <<_ACEOF
9840 #line $LINENO "configure"
9841 /* confdefs.h.  */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h.  */
9846 #include <sys/types.h>
9847      #ifdef HAVE_SYS_SOCKET_H
9848      # include <sys/socket.h>
9849      #endif
9850      #include <asm/types.h>
9851      #include <linux/ipx.h>
9852 int
9853 main ()
9854 {
9855 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
9856   ;
9857   return 0;
9858 }
9859 _ACEOF
9860 rm -f conftest.$ac_objext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9862   (eval $ac_compile) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); } &&
9866          { ac_try='test -s conftest.$ac_objext'
9867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868   (eval $ac_try) 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; }; then
9872   ac_cv_c_ipx_linux="yes"
9873 else
9874   echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9876
9877 ac_cv_c_ipx_linux="no"
9878 fi
9879 rm -f conftest.$ac_objext conftest.$ac_ext
9880
9881 fi
9882 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
9883 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
9884   if test "$ac_cv_c_ipx_linux" = "yes"
9885   then
9886
9887 cat >>confdefs.h <<\_ACEOF
9888 #define HAVE_IPX_LINUX 1
9889 _ACEOF
9890
9891   fi
9892 fi
9893
9894
9895
9896
9897 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9898 do
9899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9901   echo "$as_me:$LINENO: checking for $ac_header" >&5
9902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9904   echo $ECHO_N "(cached) $ECHO_C" >&6
9905 fi
9906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9908 else
9909   # Is the header compilable?
9910 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9913 #line $LINENO "configure"
9914 /* confdefs.h.  */
9915 _ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h.  */
9919 $ac_includes_default
9920 #include <$ac_header>
9921 _ACEOF
9922 rm -f conftest.$ac_objext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9924   (eval $ac_compile) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } &&
9928          { ac_try='test -s conftest.$ac_objext'
9929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930   (eval $ac_try) 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); }; }; then
9934   ac_header_compiler=yes
9935 else
9936   echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_header_compiler=no
9940 fi
9941 rm -f conftest.$ac_objext conftest.$ac_ext
9942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9943 echo "${ECHO_T}$ac_header_compiler" >&6
9944
9945 # Is the header present?
9946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9949 #line $LINENO "configure"
9950 /* confdefs.h.  */
9951 _ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h.  */
9955 #include <$ac_header>
9956 _ACEOF
9957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9958   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } >/dev/null; then
9965   if test -s conftest.err; then
9966     ac_cpp_err=$ac_c_preproc_warn_flag
9967   else
9968     ac_cpp_err=
9969   fi
9970 else
9971   ac_cpp_err=yes
9972 fi
9973 if test -z "$ac_cpp_err"; then
9974   ac_header_preproc=yes
9975 else
9976   echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9978
9979   ac_header_preproc=no
9980 fi
9981 rm -f conftest.err conftest.$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9983 echo "${ECHO_T}$ac_header_preproc" >&6
9984
9985 # So?  What about this header?
9986 case $ac_header_compiler:$ac_header_preproc in
9987   yes:no )
9988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9992     (
9993       cat <<\_ASBOX
9994 ## ------------------------------------ ##
9995 ## Report this to bug-autoconf@gnu.org. ##
9996 ## ------------------------------------ ##
9997 _ASBOX
9998     ) |
9999       sed "s/^/$as_me: WARNING:     /" >&2
10000     ;;
10001   no:yes )
10002     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10004     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10008     (
10009       cat <<\_ASBOX
10010 ## ------------------------------------ ##
10011 ## Report this to bug-autoconf@gnu.org. ##
10012 ## ------------------------------------ ##
10013 _ASBOX
10014     ) |
10015       sed "s/^/$as_me: WARNING:     /" >&2
10016     ;;
10017 esac
10018 echo "$as_me:$LINENO: checking for $ac_header" >&5
10019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023   eval "$as_ac_Header=$ac_header_preproc"
10024 fi
10025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10027
10028 fi
10029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10030   cat >>confdefs.h <<_ACEOF
10031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10032 _ACEOF
10033  break
10034 fi
10035
10036 done
10037
10038
10039 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10040 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10041 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10042   echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044   cat >conftest.$ac_ext <<_ACEOF
10045 #line $LINENO "configure"
10046 /* confdefs.h.  */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h.  */
10051
10052         #if defined(HAVE_SYS_SOUNDCARD_H)
10053                 #include <sys/soundcard.h>
10054         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10055                 #include <machine/soundcard.h>
10056         #elif defined(HAVE_SOUNDCARD_H)
10057                 #include <soundcard.h>
10058         #endif
10059
10060 int
10061 main ()
10062 {
10063
10064
10065 /* check for one of the Open Sound System specific SNDCTL_ defines */
10066 #if !defined(SNDCTL_DSP_STEREO)
10067 #error No open sound system
10068 #endif
10069
10070   ;
10071   return 0;
10072 }
10073 _ACEOF
10074 rm -f conftest.$ac_objext
10075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10076   (eval $ac_compile) 2>&5
10077   ac_status=$?
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); } &&
10080          { ac_try='test -s conftest.$ac_objext'
10081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082   (eval $ac_try) 2>&5
10083   ac_status=$?
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); }; }; then
10086   ac_cv_c_opensoundsystem="yes"
10087 else
10088   echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10090
10091 ac_cv_c_opensoundsystem="no"
10092 fi
10093 rm -f conftest.$ac_objext conftest.$ac_ext
10094 fi
10095 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10096 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10097
10098 if test "$ac_cv_c_opensoundsystem" = "yes"
10099 then
10100
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_OSS 1
10103 _ACEOF
10104
10105 fi
10106
10107 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10108 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10109 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10110   echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112   cat >conftest.$ac_ext <<_ACEOF
10113 #line $LINENO "configure"
10114 /* confdefs.h.  */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h.  */
10119
10120         #if defined(HAVE_SYS_SOUNDCARD_H)
10121                 #include <sys/soundcard.h>
10122         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10123                 #include <machine/soundcard.h>
10124         #elif defined(HAVE_SOUNDCARD_H)
10125                 #include <soundcard.h>
10126         #endif
10127
10128 int
10129 main ()
10130 {
10131
10132
10133 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10134 #if !defined(SNDCTL_SEQ_SYNC)
10135 #error No open sound system MIDI interface
10136 #endif
10137
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 rm -f conftest.$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144   (eval $ac_compile) 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); } &&
10148          { ac_try='test -s conftest.$ac_objext'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; }; then
10154   ac_cv_c_opensoundsystem_midi="yes"
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 ac_cv_c_opensoundsystem_midi="no"
10160 fi
10161 rm -f conftest.$ac_objext conftest.$ac_ext
10162 fi
10163 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10164 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10165
10166 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10167 then
10168
10169 cat >>confdefs.h <<\_ACEOF
10170 #define HAVE_OSS_MIDI 1
10171 _ACEOF
10172
10173 fi
10174
10175 # Extract the first word of "artsc-config", so it can be a program name with args.
10176 set dummy artsc-config; ac_word=$2
10177 echo "$as_me:$LINENO: checking for $ac_word" >&5
10178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10179 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10180   echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182   case $ARTSCCONFIG in
10183   [\\/]* | ?:[\\/]*)
10184   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10185   ;;
10186   *)
10187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10189 do
10190   IFS=$as_save_IFS
10191   test -z "$as_dir" && as_dir=.
10192   for ac_exec_ext in '' $ac_executable_extensions; do
10193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196     break 2
10197   fi
10198 done
10199 done
10200
10201   ;;
10202 esac
10203 fi
10204 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10205
10206 if test -n "$ARTSCCONFIG"; then
10207   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10208 echo "${ECHO_T}$ARTSCCONFIG" >&6
10209 else
10210   echo "$as_me:$LINENO: result: no" >&5
10211 echo "${ECHO_T}no" >&6
10212 fi
10213
10214 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
10215 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10216 if test "${ac_cv_c_artsserver+set}" = set; then
10217   echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10220         then
10221             ac_cv_c_artsserver=no
10222         else
10223             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10224             ARTSC_LIBS=`$ARTSCCONFIG --libs`
10225             ac_cv_c_artsserver=no
10226             save_CFLAGS="$CFLAGS"
10227             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10228             cat >conftest.$ac_ext <<_ACEOF
10229 #line $LINENO "configure"
10230 /* confdefs.h.  */
10231 _ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h.  */
10235
10236              #include <artsc.h>
10237
10238 int
10239 main ()
10240 {
10241
10242              arts_stream_t stream;
10243
10244   ;
10245   return 0;
10246 }
10247 _ACEOF
10248 rm -f conftest.$ac_objext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250   (eval $ac_compile) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); } &&
10254          { ac_try='test -s conftest.$ac_objext'
10255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256   (eval $ac_try) 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); }; }; then
10260
10261             ac_cv_c_artsserver=yes
10262
10263 else
10264   echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 fi
10268 rm -f conftest.$ac_objext conftest.$ac_ext
10269             CFLAGS="$save_CFLAGS"
10270         fi
10271 fi
10272 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10273 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10274
10275 if test "$ac_cv_c_artsserver" = "yes"
10276 then
10277     ARTSLIBS=$ARTSC_LIBS
10278
10279     ARTSINCL=$ARTSC_CFLAGS
10280
10281
10282
10283 cat >>confdefs.h <<\_ACEOF
10284 #define HAVE_ARTS 1
10285 _ACEOF
10286
10287 fi
10288
10289 ALSALIBS=""
10290
10291
10292
10293 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10294 do
10295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10297   echo "$as_me:$LINENO: checking for $ac_header" >&5
10298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 fi
10302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10304 else
10305   # Is the header compilable?
10306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10308 cat >conftest.$ac_ext <<_ACEOF
10309 #line $LINENO "configure"
10310 /* confdefs.h.  */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h.  */
10315 $ac_includes_default
10316 #include <$ac_header>
10317 _ACEOF
10318 rm -f conftest.$ac_objext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320   (eval $ac_compile) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } &&
10324          { ac_try='test -s conftest.$ac_objext'
10325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326   (eval $ac_try) 2>&5
10327   ac_status=$?
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); }; }; then
10330   ac_header_compiler=yes
10331 else
10332   echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10334
10335 ac_header_compiler=no
10336 fi
10337 rm -f conftest.$ac_objext conftest.$ac_ext
10338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10339 echo "${ECHO_T}$ac_header_compiler" >&6
10340
10341 # Is the header present?
10342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10344 cat >conftest.$ac_ext <<_ACEOF
10345 #line $LINENO "configure"
10346 /* confdefs.h.  */
10347 _ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h.  */
10351 #include <$ac_header>
10352 _ACEOF
10353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10355   ac_status=$?
10356   grep -v '^ *+' conftest.er1 >conftest.err
10357   rm -f conftest.er1
10358   cat conftest.err >&5
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } >/dev/null; then
10361   if test -s conftest.err; then
10362     ac_cpp_err=$ac_c_preproc_warn_flag
10363   else
10364     ac_cpp_err=
10365   fi
10366 else
10367   ac_cpp_err=yes
10368 fi
10369 if test -z "$ac_cpp_err"; then
10370   ac_header_preproc=yes
10371 else
10372   echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10374
10375   ac_header_preproc=no
10376 fi
10377 rm -f conftest.err conftest.$ac_ext
10378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10379 echo "${ECHO_T}$ac_header_preproc" >&6
10380
10381 # So?  What about this header?
10382 case $ac_header_compiler:$ac_header_preproc in
10383   yes:no )
10384     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388     (
10389       cat <<\_ASBOX
10390 ## ------------------------------------ ##
10391 ## Report this to bug-autoconf@gnu.org. ##
10392 ## ------------------------------------ ##
10393 _ASBOX
10394     ) |
10395       sed "s/^/$as_me: WARNING:     /" >&2
10396     ;;
10397   no:yes )
10398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10400     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10404     (
10405       cat <<\_ASBOX
10406 ## ------------------------------------ ##
10407 ## Report this to bug-autoconf@gnu.org. ##
10408 ## ------------------------------------ ##
10409 _ASBOX
10410     ) |
10411       sed "s/^/$as_me: WARNING:     /" >&2
10412     ;;
10413 esac
10414 echo "$as_me:$LINENO: checking for $ac_header" >&5
10415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10417   echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419   eval "$as_ac_Header=$ac_header_preproc"
10420 fi
10421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10423
10424 fi
10425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10426   cat >>confdefs.h <<_ACEOF
10427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10428 _ACEOF
10429  break
10430 fi
10431
10432 done
10433
10434 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10435 then
10436     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10437 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10438 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10439   echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441   ac_check_lib_save_LIBS=$LIBS
10442 LIBS="-lasound  $LIBS"
10443 cat >conftest.$ac_ext <<_ACEOF
10444 #line $LINENO "configure"
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450
10451 /* Override any gcc2 internal prototype to avoid an error.  */
10452 #ifdef __cplusplus
10453 extern "C"
10454 #endif
10455 /* We use char because int might match the return type of a gcc2
10456    builtin and then its argument prototype would still apply.  */
10457 char snd_pcm_open ();
10458 int
10459 main ()
10460 {
10461 snd_pcm_open ();
10462   ;
10463   return 0;
10464 }
10465 _ACEOF
10466 rm -f conftest.$ac_objext conftest$ac_exeext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468   (eval $ac_link) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); } &&
10472          { ac_try='test -s conftest$ac_exeext'
10473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474   (eval $ac_try) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; }; then
10478   ac_cv_lib_asound_snd_pcm_open=yes
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483 ac_cv_lib_asound_snd_pcm_open=no
10484 fi
10485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10486 LIBS=$ac_check_lib_save_LIBS
10487 fi
10488 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10489 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10490 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10491
10492 cat >>confdefs.h <<\_ACEOF
10493 #define HAVE_ALSA 1
10494 _ACEOF
10495
10496         ALSALIBS="-lasound"
10497 fi
10498
10499 fi
10500
10501
10502 AUDIOIOLIBS=""
10503
10504
10505 for ac_header in libaudioio.h
10506 do
10507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10509   echo "$as_me:$LINENO: checking for $ac_header" >&5
10510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10512   echo $ECHO_N "(cached) $ECHO_C" >&6
10513 fi
10514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10516 else
10517   # Is the header compilable?
10518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10520 cat >conftest.$ac_ext <<_ACEOF
10521 #line $LINENO "configure"
10522 /* confdefs.h.  */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h.  */
10527 $ac_includes_default
10528 #include <$ac_header>
10529 _ACEOF
10530 rm -f conftest.$ac_objext
10531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10532   (eval $ac_compile) 2>&5
10533   ac_status=$?
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); } &&
10536          { ac_try='test -s conftest.$ac_objext'
10537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538   (eval $ac_try) 2>&5
10539   ac_status=$?
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); }; }; then
10542   ac_header_compiler=yes
10543 else
10544   echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10546
10547 ac_header_compiler=no
10548 fi
10549 rm -f conftest.$ac_objext conftest.$ac_ext
10550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10551 echo "${ECHO_T}$ac_header_compiler" >&6
10552
10553 # Is the header present?
10554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10556 cat >conftest.$ac_ext <<_ACEOF
10557 #line $LINENO "configure"
10558 /* confdefs.h.  */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h.  */
10563 #include <$ac_header>
10564 _ACEOF
10565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10567   ac_status=$?
10568   grep -v '^ *+' conftest.er1 >conftest.err
10569   rm -f conftest.er1
10570   cat conftest.err >&5
10571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); } >/dev/null; then
10573   if test -s conftest.err; then
10574     ac_cpp_err=$ac_c_preproc_warn_flag
10575   else
10576     ac_cpp_err=
10577   fi
10578 else
10579   ac_cpp_err=yes
10580 fi
10581 if test -z "$ac_cpp_err"; then
10582   ac_header_preproc=yes
10583 else
10584   echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10586
10587   ac_header_preproc=no
10588 fi
10589 rm -f conftest.err conftest.$ac_ext
10590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10591 echo "${ECHO_T}$ac_header_preproc" >&6
10592
10593 # So?  What about this header?
10594 case $ac_header_compiler:$ac_header_preproc in
10595   yes:no )
10596     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10600     (
10601       cat <<\_ASBOX
10602 ## ------------------------------------ ##
10603 ## Report this to bug-autoconf@gnu.org. ##
10604 ## ------------------------------------ ##
10605 _ASBOX
10606     ) |
10607       sed "s/^/$as_me: WARNING:     /" >&2
10608     ;;
10609   no:yes )
10610     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10612     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10616     (
10617       cat <<\_ASBOX
10618 ## ------------------------------------ ##
10619 ## Report this to bug-autoconf@gnu.org. ##
10620 ## ------------------------------------ ##
10621 _ASBOX
10622     ) |
10623       sed "s/^/$as_me: WARNING:     /" >&2
10624     ;;
10625 esac
10626 echo "$as_me:$LINENO: checking for $ac_header" >&5
10627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10629   echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631   eval "$as_ac_Header=$ac_header_preproc"
10632 fi
10633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10635
10636 fi
10637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10638   cat >>confdefs.h <<_ACEOF
10639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10640 _ACEOF
10641  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10642 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10643 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-laudioio  $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 #line $LINENO "configure"
10650 /* confdefs.h.  */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h.  */
10655
10656 /* Override any gcc2 internal prototype to avoid an error.  */
10657 #ifdef __cplusplus
10658 extern "C"
10659 #endif
10660 /* We use char because int might match the return type of a gcc2
10661    builtin and then its argument prototype would still apply.  */
10662 char AudioIOGetVersion ();
10663 int
10664 main ()
10665 {
10666 AudioIOGetVersion ();
10667   ;
10668   return 0;
10669 }
10670 _ACEOF
10671 rm -f conftest.$ac_objext conftest$ac_exeext
10672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673   (eval $ac_link) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); } &&
10677          { ac_try='test -s conftest$ac_exeext'
10678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679   (eval $ac_try) 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); }; }; then
10683   ac_cv_lib_audioio_AudioIOGetVersion=yes
10684 else
10685   echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688 ac_cv_lib_audioio_AudioIOGetVersion=no
10689 fi
10690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10692 fi
10693 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10694 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10695 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10696   AUDIOIOLIBS="-laudioio"
10697
10698 cat >>confdefs.h <<\_ACEOF
10699 #define HAVE_LIBAUDIOIO 1
10700 _ACEOF
10701
10702 fi
10703
10704 fi
10705
10706 done
10707
10708
10709
10710 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
10711 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10712 if test "${ac_cv_mmap64_works+set}" = set; then
10713   echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715   if test "$cross_compiling" = yes; then
10716   ac_cv_mmap64_works="no"
10717 else
10718   cat >conftest.$ac_ext <<_ACEOF
10719 #line $LINENO "configure"
10720 /* confdefs.h.  */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h.  */
10725
10726                 #define _FILE_OFFSET_BITS 64
10727                 #include <stdio.h>
10728                 #include <unistd.h>
10729                 #include <fcntl.h>
10730                 #include <sys/mman.h>
10731                 #include <errno.h>
10732
10733                 int main(int argc,char **argv) {
10734                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10735                         if (fd == -1) exit(1);
10736
10737                         unlink("conftest.map");
10738
10739                         write(fd,"test",4);
10740
10741                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10742                             (errno == EINVAL)
10743                         ) {
10744                                 exit(1);
10745                         }
10746                         close(fd);
10747                         fprintf(stderr,"success!\n");
10748                         exit(0);
10749                 }
10750
10751
10752 _ACEOF
10753 rm -f conftest$ac_exeext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755   (eval $ac_link) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760   (eval $ac_try) 2>&5
10761   ac_status=$?
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); }; }; then
10764   ac_cv_mmap64_works="yes"
10765 else
10766   echo "$as_me: program exited with status $ac_status" >&5
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 ( exit $ac_status )
10771 ac_cv_mmap64_works="no"
10772 fi
10773 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10774 fi
10775 fi
10776 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
10777 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
10778
10779 if test "$ac_cv_mmap64_works" = "yes"
10780 then
10781
10782 cat >>confdefs.h <<\_ACEOF
10783 #define _FILE_OFFSET_BITS 64
10784 _ACEOF
10785
10786 fi
10787
10788
10789 if test "x${GCC}" = "xyes"
10790 then
10791   CFLAGS="$CFLAGS -Wall"
10792   echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
10793 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10794 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10795   echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797   if test "$cross_compiling" = yes; then
10798   ac_cv_c_gcc_strength_bug="yes"
10799 else
10800   cat >conftest.$ac_ext <<_ACEOF
10801 #line $LINENO "configure"
10802 /* confdefs.h.  */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h.  */
10807
10808 int     L[4] = {0,1,2,3};
10809 int main(void) {
10810   static int Array[3];
10811   unsigned int B = 3;
10812   int i;
10813   for(i=0; i<B; i++) Array[i] = i - 3;
10814   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10815   L[i] = 4;
10816
10817   exit( Array[1] != -2 || L[2] != 3);
10818 }
10819 _ACEOF
10820 rm -f conftest$ac_exeext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822   (eval $ac_link) 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827   (eval $ac_try) 2>&5
10828   ac_status=$?
10829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830   (exit $ac_status); }; }; then
10831   ac_cv_c_gcc_strength_bug="no"
10832 else
10833   echo "$as_me: program exited with status $ac_status" >&5
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10836
10837 ( exit $ac_status )
10838 ac_cv_c_gcc_strength_bug="yes"
10839 fi
10840 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10841 fi
10842 fi
10843 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
10844 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
10845   if test "$ac_cv_c_gcc_strength_bug" = "yes"
10846   then
10847     CFLAGS="$CFLAGS -fno-strength-reduce"
10848   fi
10849
10850     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
10851 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10852 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10853   echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855   ac_wine_try_cflags_saved=$CFLAGS
10856 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10857 cat >conftest.$ac_ext <<_ACEOF
10858 #line $LINENO "configure"
10859 /* confdefs.h.  */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h.  */
10864
10865 int
10866 main ()
10867 {
10868
10869   ;
10870   return 0;
10871 }
10872 _ACEOF
10873 rm -f conftest.$ac_objext conftest$ac_exeext
10874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10875   (eval $ac_link) 2>&5
10876   ac_status=$?
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); } &&
10879          { ac_try='test -s conftest$ac_exeext'
10880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881   (eval $ac_try) 2>&5
10882   ac_status=$?
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); }; }; then
10885   ac_cv_c_gcc_stack_boundary="yes"
10886 else
10887   echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10889
10890 ac_cv_c_gcc_stack_boundary="no"
10891 fi
10892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10893 CFLAGS=$ac_wine_try_cflags_saved
10894 fi
10895 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
10896 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
10897   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10898   then
10899     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10900   fi
10901
10902     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
10903 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
10904 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
10905   echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907   ac_wine_try_cflags_saved=$CFLAGS
10908 CFLAGS="$CFLAGS -gstabs+"
10909 cat >conftest.$ac_ext <<_ACEOF
10910 #line $LINENO "configure"
10911 /* confdefs.h.  */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h.  */
10916
10917 int
10918 main ()
10919 {
10920
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10927   (eval $ac_link) 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); } &&
10931          { ac_try='test -s conftest$ac_exeext'
10932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933   (eval $ac_try) 2>&5
10934   ac_status=$?
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); }; }; then
10937   ac_cv_c_gcc_gstabs="yes"
10938 else
10939   echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 ac_cv_c_gcc_gstabs="no"
10943 fi
10944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10945 CFLAGS=$ac_wine_try_cflags_saved
10946 fi
10947 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
10948 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
10949   if test "$ac_cv_c_gcc_gstabs" = "yes"
10950   then
10951     CFLAGS="$CFLAGS -gstabs+"
10952   fi
10953 fi
10954
10955
10956 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
10957 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
10958 if test "${ac_cv_asm_func_def+set}" = set; then
10959   echo $ECHO_N "(cached) $ECHO_C" >&6
10960 else
10961   cat >conftest.$ac_ext <<_ACEOF
10962 #line $LINENO "configure"
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968 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"); }
10969
10970 int
10971 main ()
10972 {
10973
10974   ;
10975   return 0;
10976 }
10977 _ACEOF
10978 rm -f conftest.$ac_objext conftest$ac_exeext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10980   (eval $ac_link) 2>&5
10981   ac_status=$?
10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983   (exit $ac_status); } &&
10984          { ac_try='test -s conftest$ac_exeext'
10985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986   (eval $ac_try) 2>&5
10987   ac_status=$?
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); }; }; then
10990   ac_cv_asm_func_def=".def"
10991 else
10992   echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10994
10995 cat >conftest.$ac_ext <<_ACEOF
10996 #line $LINENO "configure"
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
11003
11004 int
11005 main ()
11006 {
11007
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11014   (eval $ac_link) 2>&5
11015   ac_status=$?
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); } &&
11018          { ac_try='test -s conftest$ac_exeext'
11019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020   (eval $ac_try) 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); }; }; then
11024   ac_cv_asm_func_def=".type @function"
11025 else
11026   echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11028
11029 cat >conftest.$ac_ext <<_ACEOF
11030 #line $LINENO "configure"
11031 /* confdefs.h.  */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h.  */
11036 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
11037
11038 int
11039 main ()
11040 {
11041
11042   ;
11043   return 0;
11044 }
11045 _ACEOF
11046 rm -f conftest.$ac_objext conftest$ac_exeext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11048   (eval $ac_link) 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); } &&
11052          { ac_try='test -s conftest$ac_exeext'
11053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054   (eval $ac_try) 2>&5
11055   ac_status=$?
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); }; }; then
11058   ac_cv_asm_func_def=".type 2"
11059 else
11060   echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063 ac_cv_asm_func_def="unknown"
11064 fi
11065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11066 fi
11067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11068 fi
11069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11070 fi
11071 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11072 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11073
11074
11075
11076 case "$ac_cv_asm_func_def" in
11077   ".def")
11078      cat >>confdefs.h <<\_ACEOF
11079 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11080 _ACEOF
11081  ;;
11082   ".type @function")
11083      cat >>confdefs.h <<\_ACEOF
11084 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11085 _ACEOF
11086  ;;
11087   ".type 2")
11088      cat >>confdefs.h <<\_ACEOF
11089 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11090 _ACEOF
11091  ;;
11092   *)
11093      cat >>confdefs.h <<\_ACEOF
11094 #define __ASM_FUNC(name) ""
11095 _ACEOF
11096  ;;
11097 esac
11098
11099
11100 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11101 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11102 if test "${ac_cv_c_extern_prefix+set}" = set; then
11103   echo $ECHO_N "(cached) $ECHO_C" >&6
11104 else
11105   cat >conftest.$ac_ext <<_ACEOF
11106 #line $LINENO "configure"
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11113 extern int ac_test;
11114 int
11115 main ()
11116 {
11117 if (ac_test) return 1
11118   ;
11119   return 0;
11120 }
11121 _ACEOF
11122 rm -f conftest.$ac_objext conftest$ac_exeext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11124   (eval $ac_link) 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); } &&
11128          { ac_try='test -s conftest$ac_exeext'
11129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130   (eval $ac_try) 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); }; }; then
11134   ac_cv_c_extern_prefix="yes"
11135 else
11136   echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11138
11139 ac_cv_c_extern_prefix="no"
11140 fi
11141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11142 fi
11143 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11144 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11145
11146
11147
11148 if test "$ac_cv_c_extern_prefix" = "yes"
11149 then
11150   cat >>confdefs.h <<\_ACEOF
11151 #define __ASM_NAME(name) "_" name
11152 _ACEOF
11153
11154 else
11155   cat >>confdefs.h <<\_ACEOF
11156 #define __ASM_NAME(name) name
11157 _ACEOF
11158
11159 fi
11160
11161
11162 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11163 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11164 if test "${ac_cv_c_asm_string+set}" = set; then
11165   echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167   cat >conftest.$ac_ext <<_ACEOF
11168 #line $LINENO "configure"
11169 /* confdefs.h.  */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h.  */
11174 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
11175
11176 int
11177 main ()
11178 {
11179
11180   ;
11181   return 0;
11182 }
11183 _ACEOF
11184 rm -f conftest.$ac_objext conftest$ac_exeext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186   (eval $ac_link) 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); } &&
11190          { ac_try='test -s conftest$ac_exeext'
11191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192   (eval $ac_try) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; }; then
11196   ac_cv_c_asm_string="yes"
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201 ac_cv_c_asm_string="no"
11202 fi
11203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11204 fi
11205 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11206 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11207 if test "$ac_cv_c_asm_string" = "yes"
11208 then
11209
11210 cat >>confdefs.h <<\_ACEOF
11211 #define HAVE_ASM_STRING 1
11212 _ACEOF
11213
11214 fi
11215
11216
11217 DLLEXT=""
11218
11219 DLLFLAGS=""
11220
11221 DLLIBS=""
11222
11223 LDDLLFLAGS=""
11224
11225 LDSHARED=""
11226
11227 LIBEXT="so"
11228
11229 IMPLIBEXT="def"
11230
11231
11232 case $host_os in
11233   cygwin*|mingw32*)
11234     if test -n "$ac_tool_prefix"; then
11235   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11236 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11237 echo "$as_me:$LINENO: checking for $ac_word" >&5
11238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11239 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242   if test -n "$DLLTOOL"; then
11243   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11244 else
11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246 for as_dir in $PATH
11247 do
11248   IFS=$as_save_IFS
11249   test -z "$as_dir" && as_dir=.
11250   for ac_exec_ext in '' $ac_executable_extensions; do
11251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11252     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11254     break 2
11255   fi
11256 done
11257 done
11258
11259 fi
11260 fi
11261 DLLTOOL=$ac_cv_prog_DLLTOOL
11262 if test -n "$DLLTOOL"; then
11263   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11264 echo "${ECHO_T}$DLLTOOL" >&6
11265 else
11266   echo "$as_me:$LINENO: result: no" >&5
11267 echo "${ECHO_T}no" >&6
11268 fi
11269
11270 fi
11271 if test -z "$ac_cv_prog_DLLTOOL"; then
11272   ac_ct_DLLTOOL=$DLLTOOL
11273   # Extract the first word of "dlltool", so it can be a program name with args.
11274 set dummy dlltool; ac_word=$2
11275 echo "$as_me:$LINENO: checking for $ac_word" >&5
11276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11277 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11278   echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280   if test -n "$ac_ct_DLLTOOL"; then
11281   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11282 else
11283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11285 do
11286   IFS=$as_save_IFS
11287   test -z "$as_dir" && as_dir=.
11288   for ac_exec_ext in '' $ac_executable_extensions; do
11289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11290     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11292     break 2
11293   fi
11294 done
11295 done
11296
11297   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11298 fi
11299 fi
11300 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11301 if test -n "$ac_ct_DLLTOOL"; then
11302   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11303 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11304 else
11305   echo "$as_me:$LINENO: result: no" >&5
11306 echo "${ECHO_T}no" >&6
11307 fi
11308
11309   DLLTOOL=$ac_ct_DLLTOOL
11310 else
11311   DLLTOOL="$ac_cv_prog_DLLTOOL"
11312 fi
11313
11314     if test -n "$ac_tool_prefix"; then
11315   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11316 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11317 echo "$as_me:$LINENO: checking for $ac_word" >&5
11318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11319 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11320   echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322   if test -n "$DLLWRAP"; then
11323   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11324 else
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11327 do
11328   IFS=$as_save_IFS
11329   test -z "$as_dir" && as_dir=.
11330   for ac_exec_ext in '' $ac_executable_extensions; do
11331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11332     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11334     break 2
11335   fi
11336 done
11337 done
11338
11339 fi
11340 fi
11341 DLLWRAP=$ac_cv_prog_DLLWRAP
11342 if test -n "$DLLWRAP"; then
11343   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11344 echo "${ECHO_T}$DLLWRAP" >&6
11345 else
11346   echo "$as_me:$LINENO: result: no" >&5
11347 echo "${ECHO_T}no" >&6
11348 fi
11349
11350 fi
11351 if test -z "$ac_cv_prog_DLLWRAP"; then
11352   ac_ct_DLLWRAP=$DLLWRAP
11353   # Extract the first word of "dllwrap", so it can be a program name with args.
11354 set dummy dllwrap; ac_word=$2
11355 echo "$as_me:$LINENO: checking for $ac_word" >&5
11356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11357 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11358   echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360   if test -n "$ac_ct_DLLWRAP"; then
11361   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11362 else
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11365 do
11366   IFS=$as_save_IFS
11367   test -z "$as_dir" && as_dir=.
11368   for ac_exec_ext in '' $ac_executable_extensions; do
11369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11372     break 2
11373   fi
11374 done
11375 done
11376
11377   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11378 fi
11379 fi
11380 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11381 if test -n "$ac_ct_DLLWRAP"; then
11382   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11383 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11384 else
11385   echo "$as_me:$LINENO: result: no" >&5
11386 echo "${ECHO_T}no" >&6
11387 fi
11388
11389   DLLWRAP=$ac_ct_DLLWRAP
11390 else
11391   DLLWRAP="$ac_cv_prog_DLLWRAP"
11392 fi
11393
11394     if test "$DLLWRAP" = "false"; then
11395       LIBEXT="a"
11396     else
11397             LIBEXT="dll"
11398     fi
11399     IMPLIBEXT="a"
11400     ;;
11401   *)
11402
11403 for ac_header in dlfcn.h
11404 do
11405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11407   echo "$as_me:$LINENO: checking for $ac_header" >&5
11408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11410   echo $ECHO_N "(cached) $ECHO_C" >&6
11411 fi
11412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11414 else
11415   # Is the header compilable?
11416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11418 cat >conftest.$ac_ext <<_ACEOF
11419 #line $LINENO "configure"
11420 /* confdefs.h.  */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h.  */
11425 $ac_includes_default
11426 #include <$ac_header>
11427 _ACEOF
11428 rm -f conftest.$ac_objext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430   (eval $ac_compile) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } &&
11434          { ac_try='test -s conftest.$ac_objext'
11435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436   (eval $ac_try) 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); }; }; then
11440   ac_header_compiler=yes
11441 else
11442   echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11444
11445 ac_header_compiler=no
11446 fi
11447 rm -f conftest.$ac_objext conftest.$ac_ext
11448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11449 echo "${ECHO_T}$ac_header_compiler" >&6
11450
11451 # Is the header present?
11452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11454 cat >conftest.$ac_ext <<_ACEOF
11455 #line $LINENO "configure"
11456 /* confdefs.h.  */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h.  */
11461 #include <$ac_header>
11462 _ACEOF
11463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11465   ac_status=$?
11466   grep -v '^ *+' conftest.er1 >conftest.err
11467   rm -f conftest.er1
11468   cat conftest.err >&5
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); } >/dev/null; then
11471   if test -s conftest.err; then
11472     ac_cpp_err=$ac_c_preproc_warn_flag
11473   else
11474     ac_cpp_err=
11475   fi
11476 else
11477   ac_cpp_err=yes
11478 fi
11479 if test -z "$ac_cpp_err"; then
11480   ac_header_preproc=yes
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485   ac_header_preproc=no
11486 fi
11487 rm -f conftest.err conftest.$ac_ext
11488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11489 echo "${ECHO_T}$ac_header_preproc" >&6
11490
11491 # So?  What about this header?
11492 case $ac_header_compiler:$ac_header_preproc in
11493   yes:no )
11494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11498     (
11499       cat <<\_ASBOX
11500 ## ------------------------------------ ##
11501 ## Report this to bug-autoconf@gnu.org. ##
11502 ## ------------------------------------ ##
11503 _ASBOX
11504     ) |
11505       sed "s/^/$as_me: WARNING:     /" >&2
11506     ;;
11507   no:yes )
11508     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11510     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11514     (
11515       cat <<\_ASBOX
11516 ## ------------------------------------ ##
11517 ## Report this to bug-autoconf@gnu.org. ##
11518 ## ------------------------------------ ##
11519 _ASBOX
11520     ) |
11521       sed "s/^/$as_me: WARNING:     /" >&2
11522     ;;
11523 esac
11524 echo "$as_me:$LINENO: checking for $ac_header" >&5
11525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11527   echo $ECHO_N "(cached) $ECHO_C" >&6
11528 else
11529   eval "$as_ac_Header=$ac_header_preproc"
11530 fi
11531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11533
11534 fi
11535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11536   cat >>confdefs.h <<_ACEOF
11537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11538 _ACEOF
11539
11540 for ac_func in dlopen
11541 do
11542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11543 echo "$as_me:$LINENO: checking for $ac_func" >&5
11544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11545 if eval "test \"\${$as_ac_var+set}\" = set"; then
11546   echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548   cat >conftest.$ac_ext <<_ACEOF
11549 #line $LINENO "configure"
11550 /* confdefs.h.  */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h.  */
11555 /* System header to define __stub macros and hopefully few prototypes,
11556     which can conflict with char $ac_func (); below.
11557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11558     <limits.h> exists even on freestanding compilers.  */
11559 #ifdef __STDC__
11560 # include <limits.h>
11561 #else
11562 # include <assert.h>
11563 #endif
11564 /* Override any gcc2 internal prototype to avoid an error.  */
11565 #ifdef __cplusplus
11566 extern "C"
11567 {
11568 #endif
11569 /* We use char because int might match the return type of a gcc2
11570    builtin and then its argument prototype would still apply.  */
11571 char $ac_func ();
11572 /* The GNU C library defines this for functions which it implements
11573     to always fail with ENOSYS.  Some functions are actually named
11574     something starting with __ and the normal name is an alias.  */
11575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11576 choke me
11577 #else
11578 char (*f) () = $ac_func;
11579 #endif
11580 #ifdef __cplusplus
11581 }
11582 #endif
11583
11584 int
11585 main ()
11586 {
11587 return f != $ac_func;
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594   (eval $ac_link) 2>&5
11595   ac_status=$?
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); } &&
11598          { ac_try='test -s conftest$ac_exeext'
11599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600   (eval $ac_try) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; }; then
11604   eval "$as_ac_var=yes"
11605 else
11606   echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11608
11609 eval "$as_ac_var=no"
11610 fi
11611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11612 fi
11613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11615 if test `eval echo '${'$as_ac_var'}'` = yes; then
11616   cat >>confdefs.h <<_ACEOF
11617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11618 _ACEOF
11619
11620 else
11621   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11622 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11623 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11624   echo $ECHO_N "(cached) $ECHO_C" >&6
11625 else
11626   ac_check_lib_save_LIBS=$LIBS
11627 LIBS="-ldl  $LIBS"
11628 cat >conftest.$ac_ext <<_ACEOF
11629 #line $LINENO "configure"
11630 /* confdefs.h.  */
11631 _ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h.  */
11635
11636 /* Override any gcc2 internal prototype to avoid an error.  */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 /* We use char because int might match the return type of a gcc2
11641    builtin and then its argument prototype would still apply.  */
11642 char dlopen ();
11643 int
11644 main ()
11645 {
11646 dlopen ();
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653   (eval $ac_link) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); } &&
11657          { ac_try='test -s conftest$ac_exeext'
11658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659   (eval $ac_try) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); }; }; then
11663   ac_cv_lib_dl_dlopen=yes
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 ac_cv_lib_dl_dlopen=no
11669 fi
11670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11671 LIBS=$ac_check_lib_save_LIBS
11672 fi
11673 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11674 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11675 if test $ac_cv_lib_dl_dlopen = yes; then
11676
11677 cat >>confdefs.h <<\_ACEOF
11678 #define HAVE_DLOPEN 1
11679 _ACEOF
11680
11681                           DLLIBS="-ldl"
11682 else
11683   LIBEXT="a"
11684 fi
11685
11686 fi
11687 done
11688
11689 else
11690   LIBEXT="a"
11691 fi
11692
11693 done
11694
11695
11696     if test "$LIBEXT" = "so"
11697     then
11698       DLLFLAGS="-fPIC"
11699       DLLEXT=".so"
11700       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
11701 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11702 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11703   echo $ECHO_N "(cached) $ECHO_C" >&6
11704 else
11705   ac_wine_try_cflags_saved=$CFLAGS
11706 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11707 cat >conftest.$ac_ext <<_ACEOF
11708 #line $LINENO "configure"
11709 /* confdefs.h.  */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h.  */
11714
11715 int
11716 main ()
11717 {
11718
11719   ;
11720   return 0;
11721 }
11722 _ACEOF
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11725   (eval $ac_link) 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } &&
11729          { ac_try='test -s conftest$ac_exeext'
11730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731   (eval $ac_try) 2>&5
11732   ac_status=$?
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); }; }; then
11735   ac_cv_c_dll_gnuelf="yes"
11736 else
11737   echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11739
11740 ac_cv_c_dll_gnuelf="no"
11741 fi
11742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11743 CFLAGS=$ac_wine_try_cflags_saved
11744 fi
11745 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
11746 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
11747       if test "$ac_cv_c_dll_gnuelf" = "yes"
11748       then
11749         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
11750         LDDLLFLAGS="-Wl,-Bsymbolic"
11751         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
11752 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
11753 if test "${ac_cv_c_dll_zdefs+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   ac_wine_try_cflags_saved=$CFLAGS
11757 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
11758 cat >conftest.$ac_ext <<_ACEOF
11759 #line $LINENO "configure"
11760 /* confdefs.h.  */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h.  */
11765
11766 int
11767 main ()
11768 {
11769
11770   ;
11771   return 0;
11772 }
11773 _ACEOF
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776   (eval $ac_link) 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } &&
11780          { ac_try='test -s conftest$ac_exeext'
11781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782   (eval $ac_try) 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; }; then
11786   ac_cv_c_dll_zdefs="yes"
11787 else
11788   echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11790
11791 ac_cv_c_dll_zdefs="no"
11792 fi
11793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11794 CFLAGS=$ac_wine_try_cflags_saved
11795 fi
11796 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
11797 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
11798         if test "$ac_cv_c_dll_zdefs" = "yes"
11799         then
11800           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
11801         fi
11802       else
11803         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
11804 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
11805 if test "${ac_cv_c_dll_unixware+set}" = set; then
11806   echo $ECHO_N "(cached) $ECHO_C" >&6
11807 else
11808   ac_wine_try_cflags_saved=$CFLAGS
11809 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
11810 cat >conftest.$ac_ext <<_ACEOF
11811 #line $LINENO "configure"
11812 /* confdefs.h.  */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h.  */
11817
11818 int
11819 main ()
11820 {
11821
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11828   (eval $ac_link) 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); } &&
11832          { ac_try='test -s conftest$ac_exeext'
11833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834   (eval $ac_try) 2>&5
11835   ac_status=$?
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); }; }; then
11838   ac_cv_c_dll_unixware="yes"
11839 else
11840   echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11842
11843 ac_cv_c_dll_unixware="no"
11844 fi
11845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11846 CFLAGS=$ac_wine_try_cflags_saved
11847 fi
11848 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
11849 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
11850         if test "$ac_cv_c_dll_unixware" = "yes"
11851         then
11852           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
11853           LDDLLFLAGS="-Wl,-B,symbolic"
11854         fi
11855       fi
11856     fi
11857
11858         CROSSTEST=""
11859
11860     if test "$cross_compiling" = "no"
11861     then
11862       for ac_prog in i586-mingw32msvc-gcc
11863 do
11864   # Extract the first word of "$ac_prog", so it can be a program name with args.
11865 set dummy $ac_prog; ac_word=$2
11866 echo "$as_me:$LINENO: checking for $ac_word" >&5
11867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11868 if test "${ac_cv_prog_CROSSCC+set}" = set; then
11869   echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871   if test -n "$CROSSCC"; then
11872   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
11873 else
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11876 do
11877   IFS=$as_save_IFS
11878   test -z "$as_dir" && as_dir=.
11879   for ac_exec_ext in '' $ac_executable_extensions; do
11880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11881     ac_cv_prog_CROSSCC="$ac_prog"
11882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11883     break 2
11884   fi
11885 done
11886 done
11887
11888 fi
11889 fi
11890 CROSSCC=$ac_cv_prog_CROSSCC
11891 if test -n "$CROSSCC"; then
11892   echo "$as_me:$LINENO: result: $CROSSCC" >&5
11893 echo "${ECHO_T}$CROSSCC" >&6
11894 else
11895   echo "$as_me:$LINENO: result: no" >&5
11896 echo "${ECHO_T}no" >&6
11897 fi
11898
11899   test -n "$CROSSCC" && break
11900 done
11901 test -n "$CROSSCC" || CROSSCC="false"
11902
11903       for ac_prog in i586-mingw32msvc-dlltool
11904 do
11905   # Extract the first word of "$ac_prog", so it can be a program name with args.
11906 set dummy $ac_prog; ac_word=$2
11907 echo "$as_me:$LINENO: checking for $ac_word" >&5
11908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11909 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11910   echo $ECHO_N "(cached) $ECHO_C" >&6
11911 else
11912   if test -n "$DLLTOOL"; then
11913   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11914 else
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11917 do
11918   IFS=$as_save_IFS
11919   test -z "$as_dir" && as_dir=.
11920   for ac_exec_ext in '' $ac_executable_extensions; do
11921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11922     ac_cv_prog_DLLTOOL="$ac_prog"
11923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11924     break 2
11925   fi
11926 done
11927 done
11928
11929 fi
11930 fi
11931 DLLTOOL=$ac_cv_prog_DLLTOOL
11932 if test -n "$DLLTOOL"; then
11933   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11934 echo "${ECHO_T}$DLLTOOL" >&6
11935 else
11936   echo "$as_me:$LINENO: result: no" >&5
11937 echo "${ECHO_T}no" >&6
11938 fi
11939
11940   test -n "$DLLTOOL" && break
11941 done
11942 test -n "$DLLTOOL" || DLLTOOL="false"
11943
11944       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
11945     fi
11946     ;;
11947 esac
11948
11949 if test "$LIBEXT" = "a"; then
11950   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
11951 It is currently not possible to build Wine without shared library
11952 (.so) support to allow transparent switch between .so and .dll files.
11953 If you are using Linux, you will need a newer binutils.
11954 " >&5
11955 echo "$as_me: error: could not find a way to build shared libraries.
11956 It is currently not possible to build Wine without shared library
11957 (.so) support to allow transparent switch between .so and .dll files.
11958 If you are using Linux, you will need a newer binutils.
11959 " >&2;}
11960    { (exit 1); exit 1; }; }
11961 fi
11962
11963 case $build_os in
11964   cygwin*|mingw32*)
11965     LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
11966  ;;
11967   *)
11968     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
11969  ;;
11970 esac
11971
11972 CRTLIBS=""
11973
11974 case $host_os in
11975   mingw32*)
11976     CRTLIBS="-lmsvcrt" ;;
11977 esac
11978
11979
11980 if test "$LIBEXT" = "so"
11981 then
11982   # Extract the first word of "ldd", so it can be a program name with args.
11983 set dummy ldd; ac_word=$2
11984 echo "$as_me:$LINENO: checking for $ac_word" >&5
11985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11986 if test "${ac_cv_path_LDD+set}" = set; then
11987   echo $ECHO_N "(cached) $ECHO_C" >&6
11988 else
11989   case $LDD in
11990   [\\/]* | ?:[\\/]*)
11991   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
11992   ;;
11993   *)
11994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 as_dummy="/sbin:/usr/sbin:$PATH"
11996 for as_dir in $as_dummy
11997 do
11998   IFS=$as_save_IFS
11999   test -z "$as_dir" && as_dir=.
12000   for ac_exec_ext in '' $ac_executable_extensions; do
12001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12002     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12004     break 2
12005   fi
12006 done
12007 done
12008
12009   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12010   ;;
12011 esac
12012 fi
12013 LDD=$ac_cv_path_LDD
12014
12015 if test -n "$LDD"; then
12016   echo "$as_me:$LINENO: result: $LDD" >&5
12017 echo "${ECHO_T}$LDD" >&6
12018 else
12019   echo "$as_me:$LINENO: result: no" >&5
12020 echo "${ECHO_T}no" >&6
12021 fi
12022
12023
12024 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12025 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12026 if test "${ac_cv_lib_soname_X11+set}" = set; then
12027   echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029   ac_get_soname_save_LIBS=$LIBS
12030 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12031   cat >conftest.$ac_ext <<_ACEOF
12032 #line $LINENO "configure"
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038
12039 /* Override any gcc2 internal prototype to avoid an error.  */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 /* We use char because int might match the return type of a gcc2
12044    builtin and then its argument prototype would still apply.  */
12045 char XCreateWindow ();
12046 int
12047 main ()
12048 {
12049 XCreateWindow ();
12050   ;
12051   return 0;
12052 }
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_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12067   if test "x$ac_cv_lib_soname_X11" = "x"
12068   then
12069      ac_cv_lib_soname_X11="libX11.so"
12070   fi
12071 else
12072   echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12074
12075 ac_cv_lib_soname_X11="libX11.so"
12076 fi
12077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12078   LIBS=$ac_get_soname_save_LIBS
12079 fi
12080 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12081 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12082 if test "x$ac_cv_lib_soname_X11" != xNONE
12083 then
12084 cat >>confdefs.h <<_ACEOF
12085 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12086 _ACEOF
12087 fi
12088
12089 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12090 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12091 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12092   echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094   ac_get_soname_save_LIBS=$LIBS
12095 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12096   cat >conftest.$ac_ext <<_ACEOF
12097 #line $LINENO "configure"
12098 /* confdefs.h.  */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h.  */
12103
12104 /* Override any gcc2 internal prototype to avoid an error.  */
12105 #ifdef __cplusplus
12106 extern "C"
12107 #endif
12108 /* We use char because int might match the return type of a gcc2
12109    builtin and then its argument prototype would still apply.  */
12110 char XextCreateExtension ();
12111 int
12112 main ()
12113 {
12114 XextCreateExtension ();
12115   ;
12116   return 0;
12117 }
12118 _ACEOF
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12121   (eval $ac_link) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } &&
12125          { ac_try='test -s conftest$ac_exeext'
12126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127   (eval $ac_try) 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); }; }; then
12131   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12132   if test "x$ac_cv_lib_soname_Xext" = "x"
12133   then
12134      ac_cv_lib_soname_Xext="libXext.so"
12135   fi
12136 else
12137   echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 ac_cv_lib_soname_Xext="libXext.so"
12141 fi
12142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12143   LIBS=$ac_get_soname_save_LIBS
12144 fi
12145 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12146 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12147 if test "x$ac_cv_lib_soname_Xext" != xNONE
12148 then
12149 cat >>confdefs.h <<_ACEOF
12150 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12151 _ACEOF
12152 fi
12153
12154 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12155 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12156 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12157   echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159   ac_get_soname_save_LIBS=$LIBS
12160 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12161   cat >conftest.$ac_ext <<_ACEOF
12162 #line $LINENO "configure"
12163 /* confdefs.h.  */
12164 _ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h.  */
12168
12169 /* Override any gcc2 internal prototype to avoid an error.  */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 /* We use char because int might match the return type of a gcc2
12174    builtin and then its argument prototype would still apply.  */
12175 char XRenderQueryExtension ();
12176 int
12177 main ()
12178 {
12179 XRenderQueryExtension ();
12180   ;
12181   return 0;
12182 }
12183 _ACEOF
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12186   (eval $ac_link) 2>&5
12187   ac_status=$?
12188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189   (exit $ac_status); } &&
12190          { ac_try='test -s conftest$ac_exeext'
12191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192   (eval $ac_try) 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); }; }; then
12196   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12197   if test "x$ac_cv_lib_soname_Xrender" = "x"
12198   then
12199      ac_cv_lib_soname_Xrender="libXrender.so"
12200   fi
12201 else
12202   echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12204
12205 ac_cv_lib_soname_Xrender="libXrender.so"
12206 fi
12207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12208   LIBS=$ac_get_soname_save_LIBS
12209 fi
12210 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12211 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12212 if test "x$ac_cv_lib_soname_Xrender" != xNONE
12213 then
12214 cat >>confdefs.h <<_ACEOF
12215 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12216 _ACEOF
12217 fi
12218
12219 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12220 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12221 if test "${ac_cv_lib_soname_freetype+set}" = set; then
12222   echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224   ac_get_soname_save_LIBS=$LIBS
12225 LIBS="-lfreetype $X_LIBS $LIBS"
12226   cat >conftest.$ac_ext <<_ACEOF
12227 #line $LINENO "configure"
12228 /* confdefs.h.  */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h.  */
12233
12234 /* Override any gcc2 internal prototype to avoid an error.  */
12235 #ifdef __cplusplus
12236 extern "C"
12237 #endif
12238 /* We use char because int might match the return type of a gcc2
12239    builtin and then its argument prototype would still apply.  */
12240 char FT_Init_FreeType ();
12241 int
12242 main ()
12243 {
12244 FT_Init_FreeType ();
12245   ;
12246   return 0;
12247 }
12248 _ACEOF
12249 rm -f conftest.$ac_objext conftest$ac_exeext
12250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12251   (eval $ac_link) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); } &&
12255          { ac_try='test -s conftest$ac_exeext'
12256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257   (eval $ac_try) 2>&5
12258   ac_status=$?
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); }; }; then
12261   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12262   if test "x$ac_cv_lib_soname_freetype" = "x"
12263   then
12264      ac_cv_lib_soname_freetype="libfreetype.so"
12265   fi
12266 else
12267   echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12269
12270 ac_cv_lib_soname_freetype="libfreetype.so"
12271 fi
12272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12273   LIBS=$ac_get_soname_save_LIBS
12274 fi
12275 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12276 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12277 if test "x$ac_cv_lib_soname_freetype" != xNONE
12278 then
12279 cat >>confdefs.h <<_ACEOF
12280 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12281 _ACEOF
12282 fi
12283
12284 echo "$as_me:$LINENO: checking for -lGL soname" >&5
12285 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12286 if test "${ac_cv_lib_soname_GL+set}" = set; then
12287   echo $ECHO_N "(cached) $ECHO_C" >&6
12288 else
12289   ac_get_soname_save_LIBS=$LIBS
12290 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12291   cat >conftest.$ac_ext <<_ACEOF
12292 #line $LINENO "configure"
12293 /* confdefs.h.  */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h.  */
12298
12299 /* Override any gcc2 internal prototype to avoid an error.  */
12300 #ifdef __cplusplus
12301 extern "C"
12302 #endif
12303 /* We use char because int might match the return type of a gcc2
12304    builtin and then its argument prototype would still apply.  */
12305 char glXQueryExtension ();
12306 int
12307 main ()
12308 {
12309 glXQueryExtension ();
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316   (eval $ac_link) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); } &&
12320          { ac_try='test -s conftest$ac_exeext'
12321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322   (eval $ac_try) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; }; then
12326   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[         ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12327   if test "x$ac_cv_lib_soname_GL" = "x"
12328   then
12329      ac_cv_lib_soname_GL="libGL.so"
12330   fi
12331 else
12332   echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12334
12335 ac_cv_lib_soname_GL="libGL.so"
12336 fi
12337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12338   LIBS=$ac_get_soname_save_LIBS
12339 fi
12340 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12341 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12342 if test "x$ac_cv_lib_soname_GL" != xNONE
12343 then
12344 cat >>confdefs.h <<_ACEOF
12345 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12346 _ACEOF
12347 fi
12348
12349 echo "$as_me:$LINENO: checking for -lcups soname" >&5
12350 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12351 if test "${ac_cv_lib_soname_cups+set}" = set; then
12352   echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354   ac_get_soname_save_LIBS=$LIBS
12355 LIBS="-lcups  $LIBS"
12356   cat >conftest.$ac_ext <<_ACEOF
12357 #line $LINENO "configure"
12358 /* confdefs.h.  */
12359 _ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h.  */
12363
12364 /* Override any gcc2 internal prototype to avoid an error.  */
12365 #ifdef __cplusplus
12366 extern "C"
12367 #endif
12368 /* We use char because int might match the return type of a gcc2
12369    builtin and then its argument prototype would still apply.  */
12370 char cupsGetDefault ();
12371 int
12372 main ()
12373 {
12374 cupsGetDefault ();
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12381   (eval $ac_link) 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); } &&
12385          { ac_try='test -s conftest$ac_exeext'
12386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387   (eval $ac_try) 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); }; }; then
12391   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12392   if test "x$ac_cv_lib_soname_cups" = "x"
12393   then
12394      ac_cv_lib_soname_cups="libcups.so"
12395   fi
12396 else
12397   echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12399
12400 ac_cv_lib_soname_cups="libcups.so"
12401 fi
12402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12403   LIBS=$ac_get_soname_save_LIBS
12404 fi
12405 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12406 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12407 if test "x$ac_cv_lib_soname_cups" != xNONE
12408 then
12409 cat >>confdefs.h <<_ACEOF
12410 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12411 _ACEOF
12412 fi
12413
12414 echo "$as_me:$LINENO: checking for -ljack soname" >&5
12415 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12416 if test "${ac_cv_lib_soname_jack+set}" = set; then
12417   echo $ECHO_N "(cached) $ECHO_C" >&6
12418 else
12419   ac_get_soname_save_LIBS=$LIBS
12420 LIBS="-ljack  $LIBS"
12421   cat >conftest.$ac_ext <<_ACEOF
12422 #line $LINENO "configure"
12423 /* confdefs.h.  */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h.  */
12428
12429 /* Override any gcc2 internal prototype to avoid an error.  */
12430 #ifdef __cplusplus
12431 extern "C"
12432 #endif
12433 /* We use char because int might match the return type of a gcc2
12434    builtin and then its argument prototype would still apply.  */
12435 char jack_client_new ();
12436 int
12437 main ()
12438 {
12439 jack_client_new ();
12440   ;
12441   return 0;
12442 }
12443 _ACEOF
12444 rm -f conftest.$ac_objext conftest$ac_exeext
12445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12446   (eval $ac_link) 2>&5
12447   ac_status=$?
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); } &&
12450          { ac_try='test -s conftest$ac_exeext'
12451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452   (eval $ac_try) 2>&5
12453   ac_status=$?
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); }; }; then
12456   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
12457   if test "x$ac_cv_lib_soname_jack" = "x"
12458   then
12459      ac_cv_lib_soname_jack="libjack.so"
12460   fi
12461 else
12462   echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12464
12465 ac_cv_lib_soname_jack="libjack.so"
12466 fi
12467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12468   LIBS=$ac_get_soname_save_LIBS
12469 fi
12470 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12471 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12472 if test "x$ac_cv_lib_soname_jack" != xNONE
12473 then
12474 cat >>confdefs.h <<_ACEOF
12475 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12476 _ACEOF
12477 fi
12478 fi
12479
12480
12481
12482 wine_cv_libc_reentrant=no
12483 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
12484 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
12485 if test "${wine_cv_libc_r___errno_location+set}" = set; then
12486   echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488   if test "$cross_compiling" = yes; then
12489   wine_cv_libc_r___errno_location=yes
12490 else
12491   cat >conftest.$ac_ext <<_ACEOF
12492 #line $LINENO "configure"
12493 /* confdefs.h.  */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h.  */
12498 int myerrno = 0;
12499 int *__errno_location(){return &myerrno;}
12500 main(){close(333); close(333); exit(!myerrno);}
12501 _ACEOF
12502 rm -f conftest$ac_exeext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504   (eval $ac_link) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509   (eval $ac_try) 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); }; }; then
12513   wine_cv_libc_r___errno_location=yes
12514 else
12515   echo "$as_me: program exited with status $ac_status" >&5
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12518
12519 ( exit $ac_status )
12520 wine_cv_libc_r___errno_location=no
12521 fi
12522 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12523 fi
12524 fi
12525 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
12526 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
12527 if test "$wine_cv_libc_r___errno_location" = "yes"; then
12528   wine_cv_libc_reentrant=__errno_location
12529 else
12530     echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
12531 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
12532 if test "${wine_cv_libc_r___error+set}" = set; then
12533   echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535   if test "$cross_compiling" = yes; then
12536   wine_cv_libc_r___error=yes
12537 else
12538   cat >conftest.$ac_ext <<_ACEOF
12539 #line $LINENO "configure"
12540 /* confdefs.h.  */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h.  */
12545 int myerrno = 0;
12546 int *__error(){return &myerrno;}
12547 main(){close(333); close(333); exit(!myerrno);}
12548 _ACEOF
12549 rm -f conftest$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551   (eval $ac_link) 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556   (eval $ac_try) 2>&5
12557   ac_status=$?
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); }; }; then
12560   wine_cv_libc_r___error=yes
12561 else
12562   echo "$as_me: program exited with status $ac_status" >&5
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566 ( exit $ac_status )
12567 wine_cv_libc_r___error=no
12568 fi
12569 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12570 fi
12571 fi
12572 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
12573 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
12574 if test "$wine_cv_libc_r___error" = "yes"; then
12575   wine_cv_libc_reentrant=__error
12576 else
12577       echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
12578 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
12579 if test "${wine_cv_libc_r____errno+set}" = set; then
12580   echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582   if test "$cross_compiling" = yes; then
12583   wine_cv_libc_r____errno=yes
12584 else
12585   cat >conftest.$ac_ext <<_ACEOF
12586 #line $LINENO "configure"
12587 /* confdefs.h.  */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h.  */
12592 int myerrno = 0;
12593 int *___errno(){return &myerrno;}
12594 main(){close(333); close(333); exit(!myerrno);}
12595 _ACEOF
12596 rm -f conftest$ac_exeext
12597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12598   (eval $ac_link) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603   (eval $ac_try) 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); }; }; then
12607   wine_cv_libc_r____errno=yes
12608 else
12609   echo "$as_me: program exited with status $ac_status" >&5
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613 ( exit $ac_status )
12614 wine_cv_libc_r____errno=no
12615 fi
12616 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12617 fi
12618 fi
12619 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
12620 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
12621 if test "$wine_cv_libc_r____errno" = "yes"; then
12622   wine_cv_libc_reentrant=___errno
12623 else
12624         echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
12625 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
12626 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
12627   echo $ECHO_N "(cached) $ECHO_C" >&6
12628 else
12629   if test "$cross_compiling" = yes; then
12630   wine_cv_libc_r___thr_errno=yes
12631 else
12632   cat >conftest.$ac_ext <<_ACEOF
12633 #line $LINENO "configure"
12634 /* confdefs.h.  */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h.  */
12639 int myerrno = 0;
12640 int *__thr_errno(){return &myerrno;}
12641 main(){close(333); close(333); exit(!myerrno);}
12642 _ACEOF
12643 rm -f conftest$ac_exeext
12644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645   (eval $ac_link) 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650   (eval $ac_try) 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); }; }; then
12654   wine_cv_libc_r___thr_errno=yes
12655 else
12656   echo "$as_me: program exited with status $ac_status" >&5
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12659
12660 ( exit $ac_status )
12661 wine_cv_libc_r___thr_errno=no
12662 fi
12663 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12664 fi
12665 fi
12666 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
12667 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
12668 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
12669   wine_cv_libc_reentrant=__thr_errno
12670 else
12671           echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
12672 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
12673 if test "${wine_cv_libc_r___errno+set}" = set; then
12674   echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676   if test "$cross_compiling" = yes; then
12677   wine_cv_libc_r___errno=yes
12678 else
12679   cat >conftest.$ac_ext <<_ACEOF
12680 #line $LINENO "configure"
12681 /* confdefs.h.  */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h.  */
12686 int myerrno = 0;
12687 int *__errno(){return &myerrno;}
12688 main(){close(333); close(333); exit(!myerrno);}
12689 _ACEOF
12690 rm -f conftest$ac_exeext
12691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12692   (eval $ac_link) 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697   (eval $ac_try) 2>&5
12698   ac_status=$?
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); }; }; then
12701   wine_cv_libc_r___errno=yes
12702 else
12703   echo "$as_me: program exited with status $ac_status" >&5
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12706
12707 ( exit $ac_status )
12708 wine_cv_libc_r___errno=no
12709 fi
12710 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12711 fi
12712 fi
12713 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
12714 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
12715 if test "$wine_cv_libc_r___errno" = "yes"; then
12716   wine_cv_libc_reentrant=__errno
12717 fi
12718
12719
12720 fi
12721
12722 fi
12723
12724 fi
12725
12726 fi
12727
12728
12729 if test "$wine_cv_libc_reentrant" != "no"
12730 then
12731
12732 cat >>confdefs.h <<_ACEOF
12733 #define ERRNO_LOCATION $wine_cv_libc_reentrant
12734 _ACEOF
12735
12736 fi
12737
12738
12739 if test "$have_x" = "yes"
12740 then
12741 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
12742 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
12743 if test "${wine_cv_x_reentrant+set}" = set; then
12744   echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746   libX11_check=none
12747     for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
12748         if test -r $dir/libX11.so; then
12749             libX11_check="-D $dir/libX11.so"
12750             break
12751         fi
12752         if test -r $dir/libX11.a; then
12753             libX11_check="$dir/libX11.a"
12754             break
12755         fi
12756     done
12757     if test "$libX11_check" != "none"; then
12758         if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
12759         then
12760             wine_cv_x_reentrant=yes
12761         else
12762             wine_cv_x_reentrant=no
12763         fi
12764     else
12765         wine_cv_x_reentrant=unknown
12766     fi
12767 fi
12768 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
12769 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
12770 fi
12771
12772
12773 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12774 # for constant arguments.  Useless!
12775 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12776 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12777 if test "${ac_cv_working_alloca_h+set}" = set; then
12778   echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780   cat >conftest.$ac_ext <<_ACEOF
12781 #line $LINENO "configure"
12782 /* confdefs.h.  */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h.  */
12787 #include <alloca.h>
12788 int
12789 main ()
12790 {
12791 char *p = (char *) alloca (2 * sizeof (int));
12792   ;
12793   return 0;
12794 }
12795 _ACEOF
12796 rm -f conftest.$ac_objext conftest$ac_exeext
12797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12798   (eval $ac_link) 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); } &&
12802          { ac_try='test -s conftest$ac_exeext'
12803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804   (eval $ac_try) 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); }; }; then
12808   ac_cv_working_alloca_h=yes
12809 else
12810   echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813 ac_cv_working_alloca_h=no
12814 fi
12815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12816 fi
12817 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12818 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12819 if test $ac_cv_working_alloca_h = yes; then
12820
12821 cat >>confdefs.h <<\_ACEOF
12822 #define HAVE_ALLOCA_H 1
12823 _ACEOF
12824
12825 fi
12826
12827 echo "$as_me:$LINENO: checking for alloca" >&5
12828 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12829 if test "${ac_cv_func_alloca_works+set}" = set; then
12830   echo $ECHO_N "(cached) $ECHO_C" >&6
12831 else
12832   cat >conftest.$ac_ext <<_ACEOF
12833 #line $LINENO "configure"
12834 /* confdefs.h.  */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h.  */
12839 #ifdef __GNUC__
12840 # define alloca __builtin_alloca
12841 #else
12842 # ifdef _MSC_VER
12843 #  include <malloc.h>
12844 #  define alloca _alloca
12845 # else
12846 #  if HAVE_ALLOCA_H
12847 #   include <alloca.h>
12848 #  else
12849 #   ifdef _AIX
12850  #pragma alloca
12851 #   else
12852 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12853 char *alloca ();
12854 #    endif
12855 #   endif
12856 #  endif
12857 # endif
12858 #endif
12859
12860 int
12861 main ()
12862 {
12863 char *p = (char *) alloca (1);
12864   ;
12865   return 0;
12866 }
12867 _ACEOF
12868 rm -f conftest.$ac_objext conftest$ac_exeext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12870   (eval $ac_link) 2>&5
12871   ac_status=$?
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); } &&
12874          { ac_try='test -s conftest$ac_exeext'
12875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876   (eval $ac_try) 2>&5
12877   ac_status=$?
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); }; }; then
12880   ac_cv_func_alloca_works=yes
12881 else
12882   echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12884
12885 ac_cv_func_alloca_works=no
12886 fi
12887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12888 fi
12889 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12890 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12891
12892 if test $ac_cv_func_alloca_works = yes; then
12893
12894 cat >>confdefs.h <<\_ACEOF
12895 #define HAVE_ALLOCA 1
12896 _ACEOF
12897
12898 else
12899   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12900 # that cause trouble.  Some versions do not even contain alloca or
12901 # contain a buggy version.  If you still want to use their alloca,
12902 # use ar to extract alloca.o from them instead of compiling alloca.c.
12903
12904 ALLOCA=alloca.$ac_objext
12905
12906 cat >>confdefs.h <<\_ACEOF
12907 #define C_ALLOCA 1
12908 _ACEOF
12909
12910
12911 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12912 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12913 if test "${ac_cv_os_cray+set}" = set; then
12914   echo $ECHO_N "(cached) $ECHO_C" >&6
12915 else
12916   cat >conftest.$ac_ext <<_ACEOF
12917 #line $LINENO "configure"
12918 /* confdefs.h.  */
12919 _ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h.  */
12923 #if defined(CRAY) && ! defined(CRAY2)
12924 webecray
12925 #else
12926 wenotbecray
12927 #endif
12928
12929 _ACEOF
12930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12931   $EGREP "webecray" >/dev/null 2>&1; then
12932   ac_cv_os_cray=yes
12933 else
12934   ac_cv_os_cray=no
12935 fi
12936 rm -f conftest*
12937
12938 fi
12939 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12940 echo "${ECHO_T}$ac_cv_os_cray" >&6
12941 if test $ac_cv_os_cray = yes; then
12942   for ac_func in _getb67 GETB67 getb67; do
12943     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12944 echo "$as_me:$LINENO: checking for $ac_func" >&5
12945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12946 if eval "test \"\${$as_ac_var+set}\" = set"; then
12947   echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949   cat >conftest.$ac_ext <<_ACEOF
12950 #line $LINENO "configure"
12951 /* confdefs.h.  */
12952 _ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h.  */
12956 /* System header to define __stub macros and hopefully few prototypes,
12957     which can conflict with char $ac_func (); below.
12958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12959     <limits.h> exists even on freestanding compilers.  */
12960 #ifdef __STDC__
12961 # include <limits.h>
12962 #else
12963 # include <assert.h>
12964 #endif
12965 /* Override any gcc2 internal prototype to avoid an error.  */
12966 #ifdef __cplusplus
12967 extern "C"
12968 {
12969 #endif
12970 /* We use char because int might match the return type of a gcc2
12971    builtin and then its argument prototype would still apply.  */
12972 char $ac_func ();
12973 /* The GNU C library defines this for functions which it implements
12974     to always fail with ENOSYS.  Some functions are actually named
12975     something starting with __ and the normal name is an alias.  */
12976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12977 choke me
12978 #else
12979 char (*f) () = $ac_func;
12980 #endif
12981 #ifdef __cplusplus
12982 }
12983 #endif
12984
12985 int
12986 main ()
12987 {
12988 return f != $ac_func;
12989   ;
12990   return 0;
12991 }
12992 _ACEOF
12993 rm -f conftest.$ac_objext conftest$ac_exeext
12994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12995   (eval $ac_link) 2>&5
12996   ac_status=$?
12997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998   (exit $ac_status); } &&
12999          { ac_try='test -s conftest$ac_exeext'
13000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001   (eval $ac_try) 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); }; }; then
13005   eval "$as_ac_var=yes"
13006 else
13007   echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13009
13010 eval "$as_ac_var=no"
13011 fi
13012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13013 fi
13014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13016 if test `eval echo '${'$as_ac_var'}'` = yes; then
13017
13018 cat >>confdefs.h <<_ACEOF
13019 #define CRAY_STACKSEG_END $ac_func
13020 _ACEOF
13021
13022     break
13023 fi
13024
13025   done
13026 fi
13027
13028 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13029 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13030 if test "${ac_cv_c_stack_direction+set}" = set; then
13031   echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033   if test "$cross_compiling" = yes; then
13034   ac_cv_c_stack_direction=0
13035 else
13036   cat >conftest.$ac_ext <<_ACEOF
13037 #line $LINENO "configure"
13038 /* confdefs.h.  */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h.  */
13043 int
13044 find_stack_direction ()
13045 {
13046   static char *addr = 0;
13047   auto char dummy;
13048   if (addr == 0)
13049     {
13050       addr = &dummy;
13051       return find_stack_direction ();
13052     }
13053   else
13054     return (&dummy > addr) ? 1 : -1;
13055 }
13056
13057 int
13058 main ()
13059 {
13060   exit (find_stack_direction () < 0);
13061 }
13062 _ACEOF
13063 rm -f conftest$ac_exeext
13064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13065   (eval $ac_link) 2>&5
13066   ac_status=$?
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070   (eval $ac_try) 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); }; }; then
13074   ac_cv_c_stack_direction=1
13075 else
13076   echo "$as_me: program exited with status $ac_status" >&5
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13079
13080 ( exit $ac_status )
13081 ac_cv_c_stack_direction=-1
13082 fi
13083 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13084 fi
13085 fi
13086 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13087 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13088
13089 cat >>confdefs.h <<_ACEOF
13090 #define STACK_DIRECTION $ac_cv_c_stack_direction
13091 _ACEOF
13092
13093
13094 fi
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153 for ac_func in \
13154         _lwp_create \
13155         _pclose \
13156         _popen \
13157         _snprintf \
13158         _stricmp \
13159         _strnicmp \
13160         _vsnprintf \
13161         chsize \
13162         clone \
13163         ecvt \
13164         fcvt \
13165         finite \
13166         fpclass \
13167         ftruncate \
13168         ftruncate64 \
13169         gcvt \
13170         getnetbyaddr \
13171         getnetbyname \
13172         getopt_long \
13173         getpagesize \
13174         getprotobyname \
13175         getprotobynumber \
13176         getpwuid \
13177         getservbyport \
13178         getsockopt \
13179         inet_network \
13180         lseek64 \
13181         lstat \
13182         memmove \
13183         mkstemp \
13184         mmap \
13185         pclose \
13186         popen \
13187         pread \
13188         pthread_getspecific \
13189         pthread_key_create \
13190         pthread_mutex_lock \
13191         pthread_mutex_unlock \
13192         pthread_setspecific \
13193         pwrite \
13194         rfork \
13195         select \
13196         sendmsg \
13197         settimeofday \
13198         sigaltstack \
13199         snprintf \
13200         statfs \
13201         strcasecmp \
13202         strerror \
13203         strncasecmp \
13204         tcgetattr \
13205         timegm \
13206         usleep \
13207         vfscanf \
13208         vsnprintf \
13209         wait4 \
13210         waitpid \
13211
13212 do
13213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13214 echo "$as_me:$LINENO: checking for $ac_func" >&5
13215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13216 if eval "test \"\${$as_ac_var+set}\" = set"; then
13217   echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219   cat >conftest.$ac_ext <<_ACEOF
13220 #line $LINENO "configure"
13221 /* confdefs.h.  */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h.  */
13226 /* System header to define __stub macros and hopefully few prototypes,
13227     which can conflict with char $ac_func (); below.
13228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229     <limits.h> exists even on freestanding compilers.  */
13230 #ifdef __STDC__
13231 # include <limits.h>
13232 #else
13233 # include <assert.h>
13234 #endif
13235 /* Override any gcc2 internal prototype to avoid an error.  */
13236 #ifdef __cplusplus
13237 extern "C"
13238 {
13239 #endif
13240 /* We use char because int might match the return type of a gcc2
13241    builtin and then its argument prototype would still apply.  */
13242 char $ac_func ();
13243 /* The GNU C library defines this for functions which it implements
13244     to always fail with ENOSYS.  Some functions are actually named
13245     something starting with __ and the normal name is an alias.  */
13246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13247 choke me
13248 #else
13249 char (*f) () = $ac_func;
13250 #endif
13251 #ifdef __cplusplus
13252 }
13253 #endif
13254
13255 int
13256 main ()
13257 {
13258 return f != $ac_func;
13259   ;
13260   return 0;
13261 }
13262 _ACEOF
13263 rm -f conftest.$ac_objext conftest$ac_exeext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13265   (eval $ac_link) 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } &&
13269          { ac_try='test -s conftest$ac_exeext'
13270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271   (eval $ac_try) 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; }; then
13275   eval "$as_ac_var=yes"
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280 eval "$as_ac_var=no"
13281 fi
13282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13283 fi
13284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13286 if test `eval echo '${'$as_ac_var'}'` = yes; then
13287   cat >>confdefs.h <<_ACEOF
13288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13289 _ACEOF
13290
13291 fi
13292 done
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366 for ac_header in \
13367         arpa/inet.h \
13368         arpa/nameser.h \
13369         cups/cups.h \
13370         direct.h \
13371         elf.h \
13372         float.h \
13373         getopt.h \
13374         ieeefp.h \
13375         io.h \
13376         jack/jack.h \
13377         libio.h \
13378         libutil.h \
13379         link.h \
13380         linux/cdrom.h \
13381         linux/hdreg.h \
13382         linux/input.h \
13383         linux/joystick.h \
13384         linux/major.h \
13385         linux/param.h \
13386         linux/serial.h \
13387         linux/ucdrom.h \
13388         netdb.h \
13389         netinet/in.h \
13390         netinet/in_systm.h \
13391         netinet/tcp.h \
13392         pty.h \
13393         pwd.h \
13394         regex.h \
13395         sched.h \
13396         scsi/sg.h \
13397         socket.h \
13398         stdint.h \
13399         strings.h \
13400         sys/cdio.h \
13401         sys/errno.h \
13402         sys/file.h \
13403         sys/filio.h \
13404         sys/inttypes.h \
13405         sys/ioctl.h \
13406         sys/ipc.h \
13407         sys/link.h \
13408         sys/lwp.h \
13409         sys/mman.h \
13410         sys/modem.h \
13411         sys/msg.h \
13412         sys/param.h \
13413         sys/poll.h \
13414         sys/ptrace.h \
13415         sys/reg.h \
13416         sys/shm.h \
13417         sys/signal.h \
13418         sys/socket.h \
13419         sys/sockio.h \
13420         sys/statfs.h \
13421         sys/strtio.h \
13422         sys/syscall.h \
13423         sys/sysctl.h \
13424         sys/time.h \
13425         sys/times.h \
13426         sys/uio.h \
13427         sys/un.h \
13428         sys/v86.h \
13429         sys/v86intr.h \
13430         sys/vfs.h \
13431         sys/vm86.h \
13432         sys/wait.h \
13433         syscall.h \
13434         termios.h \
13435         unistd.h \
13436         utime.h \
13437
13438 do
13439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13441   echo "$as_me:$LINENO: checking for $ac_header" >&5
13442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13444   echo $ECHO_N "(cached) $ECHO_C" >&6
13445 fi
13446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13448 else
13449   # Is the header compilable?
13450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13452 cat >conftest.$ac_ext <<_ACEOF
13453 #line $LINENO "configure"
13454 /* confdefs.h.  */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h.  */
13459 $ac_includes_default
13460 #include <$ac_header>
13461 _ACEOF
13462 rm -f conftest.$ac_objext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464   (eval $ac_compile) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } &&
13468          { ac_try='test -s conftest.$ac_objext'
13469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470   (eval $ac_try) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }; }; then
13474   ac_header_compiler=yes
13475 else
13476   echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13478
13479 ac_header_compiler=no
13480 fi
13481 rm -f conftest.$ac_objext conftest.$ac_ext
13482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13483 echo "${ECHO_T}$ac_header_compiler" >&6
13484
13485 # Is the header present?
13486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13488 cat >conftest.$ac_ext <<_ACEOF
13489 #line $LINENO "configure"
13490 /* confdefs.h.  */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h.  */
13495 #include <$ac_header>
13496 _ACEOF
13497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13498   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13499   ac_status=$?
13500   grep -v '^ *+' conftest.er1 >conftest.err
13501   rm -f conftest.er1
13502   cat conftest.err >&5
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); } >/dev/null; then
13505   if test -s conftest.err; then
13506     ac_cpp_err=$ac_c_preproc_warn_flag
13507   else
13508     ac_cpp_err=
13509   fi
13510 else
13511   ac_cpp_err=yes
13512 fi
13513 if test -z "$ac_cpp_err"; then
13514   ac_header_preproc=yes
13515 else
13516   echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13518
13519   ac_header_preproc=no
13520 fi
13521 rm -f conftest.err conftest.$ac_ext
13522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13523 echo "${ECHO_T}$ac_header_preproc" >&6
13524
13525 # So?  What about this header?
13526 case $ac_header_compiler:$ac_header_preproc in
13527   yes:no )
13528     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13532     (
13533       cat <<\_ASBOX
13534 ## ------------------------------------ ##
13535 ## Report this to bug-autoconf@gnu.org. ##
13536 ## ------------------------------------ ##
13537 _ASBOX
13538     ) |
13539       sed "s/^/$as_me: WARNING:     /" >&2
13540     ;;
13541   no:yes )
13542     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13544     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13548     (
13549       cat <<\_ASBOX
13550 ## ------------------------------------ ##
13551 ## Report this to bug-autoconf@gnu.org. ##
13552 ## ------------------------------------ ##
13553 _ASBOX
13554     ) |
13555       sed "s/^/$as_me: WARNING:     /" >&2
13556     ;;
13557 esac
13558 echo "$as_me:$LINENO: checking for $ac_header" >&5
13559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13561   echo $ECHO_N "(cached) $ECHO_C" >&6
13562 else
13563   eval "$as_ac_Header=$ac_header_preproc"
13564 fi
13565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13567
13568 fi
13569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13570   cat >>confdefs.h <<_ACEOF
13571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13572 _ACEOF
13573
13574 fi
13575
13576 done
13577
13578 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13579 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13580 if test "${ac_cv_header_stat_broken+set}" = set; then
13581   echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583   cat >conftest.$ac_ext <<_ACEOF
13584 #line $LINENO "configure"
13585 /* confdefs.h.  */
13586 _ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h.  */
13590 #include <sys/types.h>
13591 #include <sys/stat.h>
13592
13593 #if defined(S_ISBLK) && defined(S_IFDIR)
13594 # if S_ISBLK (S_IFDIR)
13595 You lose.
13596 # endif
13597 #endif
13598
13599 #if defined(S_ISBLK) && defined(S_IFCHR)
13600 # if S_ISBLK (S_IFCHR)
13601 You lose.
13602 # endif
13603 #endif
13604
13605 #if defined(S_ISLNK) && defined(S_IFREG)
13606 # if S_ISLNK (S_IFREG)
13607 You lose.
13608 # endif
13609 #endif
13610
13611 #if defined(S_ISSOCK) && defined(S_IFREG)
13612 # if S_ISSOCK (S_IFREG)
13613 You lose.
13614 # endif
13615 #endif
13616
13617 _ACEOF
13618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13619   $EGREP "You lose" >/dev/null 2>&1; then
13620   ac_cv_header_stat_broken=yes
13621 else
13622   ac_cv_header_stat_broken=no
13623 fi
13624 rm -f conftest*
13625
13626 fi
13627 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13628 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13629 if test $ac_cv_header_stat_broken = yes; then
13630
13631 cat >>confdefs.h <<\_ACEOF
13632 #define STAT_MACROS_BROKEN 1
13633 _ACEOF
13634
13635 fi
13636
13637
13638
13639
13640
13641 for ac_header in sys/mount.h sys/user.h
13642 do
13643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13644 echo "$as_me:$LINENO: checking for $ac_header" >&5
13645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13647   echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649   cat >conftest.$ac_ext <<_ACEOF
13650 #line $LINENO "configure"
13651 /* confdefs.h.  */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h.  */
13656 #include <sys/types.h>
13657      #if HAVE_SYS_PARAM_H
13658      # include <sys/param.h>
13659      #endif
13660
13661 #include <$ac_header>
13662 _ACEOF
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665   (eval $ac_compile) 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); } &&
13669          { ac_try='test -s conftest.$ac_objext'
13670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671   (eval $ac_try) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; }; then
13675   eval "$as_ac_Header=yes"
13676 else
13677   echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13679
13680 eval "$as_ac_Header=no"
13681 fi
13682 rm -f conftest.$ac_objext conftest.$ac_ext
13683 fi
13684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13687   cat >>confdefs.h <<_ACEOF
13688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13689 _ACEOF
13690
13691 fi
13692
13693 done
13694
13695
13696
13697 for ac_header in net/if.h
13698 do
13699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13700 echo "$as_me:$LINENO: checking for $ac_header" >&5
13701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13703   echo $ECHO_N "(cached) $ECHO_C" >&6
13704 else
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 <sys/types.h>
13713      #if HAVE_SYS_SOCKET_H
13714      # include <sys/socket.h>
13715      #endif
13716
13717 #include <$ac_header>
13718 _ACEOF
13719 rm -f conftest.$ac_objext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721   (eval $ac_compile) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); } &&
13725          { ac_try='test -s conftest.$ac_objext'
13726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727   (eval $ac_try) 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; }; then
13731   eval "$as_ac_Header=yes"
13732 else
13733   echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13735
13736 eval "$as_ac_Header=no"
13737 fi
13738 rm -f conftest.$ac_objext conftest.$ac_ext
13739 fi
13740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13743   cat >>confdefs.h <<_ACEOF
13744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13745 _ACEOF
13746
13747 fi
13748
13749 done
13750
13751
13752
13753 for ac_header in netinet/ip.h
13754 do
13755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13756 echo "$as_me:$LINENO: checking for $ac_header" >&5
13757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13759   echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761   cat >conftest.$ac_ext <<_ACEOF
13762 #line $LINENO "configure"
13763 /* confdefs.h.  */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h.  */
13768 #include <sys/types.h>
13769      #if HAVE_SYS_SOCKET_H
13770      # include <sys/socket.h>
13771      #endif
13772      #if HAVE_NETINET_IN_SYSTM_H
13773      # include <netinet/in_systm.h>
13774      #endif
13775
13776 #include <$ac_header>
13777 _ACEOF
13778 rm -f conftest.$ac_objext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13780   (eval $ac_compile) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); } &&
13784          { ac_try='test -s conftest.$ac_objext'
13785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786   (eval $ac_try) 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; }; then
13790   eval "$as_ac_Header=yes"
13791 else
13792   echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13794
13795 eval "$as_ac_Header=no"
13796 fi
13797 rm -f conftest.$ac_objext conftest.$ac_ext
13798 fi
13799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13802   cat >>confdefs.h <<_ACEOF
13803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13804 _ACEOF
13805
13806 fi
13807
13808 done
13809
13810
13811
13812 for ac_header in resolv.h
13813 do
13814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13815 echo "$as_me:$LINENO: checking for $ac_header" >&5
13816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13818   echo $ECHO_N "(cached) $ECHO_C" >&6
13819 else
13820   cat >conftest.$ac_ext <<_ACEOF
13821 #line $LINENO "configure"
13822 /* confdefs.h.  */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h.  */
13827 #include <sys/types.h>
13828      #if HAVE_SYS_SOCKET_H
13829      # include <sys/socket.h>
13830      #endif
13831
13832 #include <$ac_header>
13833 _ACEOF
13834 rm -f conftest.$ac_objext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13836   (eval $ac_compile) 2>&5
13837   ac_status=$?
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); } &&
13840          { ac_try='test -s conftest.$ac_objext'
13841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842   (eval $ac_try) 2>&5
13843   ac_status=$?
13844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845   (exit $ac_status); }; }; then
13846   eval "$as_ac_Header=yes"
13847 else
13848   echo "$as_me: failed program was:" >&5
13849 sed 's/^/| /' conftest.$ac_ext >&5
13850
13851 eval "$as_ac_Header=no"
13852 fi
13853 rm -f conftest.$ac_objext conftest.$ac_ext
13854 fi
13855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13858   cat >>confdefs.h <<_ACEOF
13859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13860 _ACEOF
13861
13862 fi
13863
13864 done
13865
13866
13867
13868 for ac_header in ucontext.h
13869 do
13870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13871 echo "$as_me:$LINENO: checking for $ac_header" >&5
13872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   cat >conftest.$ac_ext <<_ACEOF
13877 #line $LINENO "configure"
13878 /* confdefs.h.  */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h.  */
13883 #include <signal.h>
13884
13885 #include <$ac_header>
13886 _ACEOF
13887 rm -f conftest.$ac_objext
13888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13889   (eval $ac_compile) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); } &&
13893          { ac_try='test -s conftest.$ac_objext'
13894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895   (eval $ac_try) 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; }; then
13899   eval "$as_ac_Header=yes"
13900 else
13901   echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904 eval "$as_ac_Header=no"
13905 fi
13906 rm -f conftest.$ac_objext conftest.$ac_ext
13907 fi
13908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13911   cat >>confdefs.h <<_ACEOF
13912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13913 _ACEOF
13914
13915 fi
13916
13917 done
13918
13919
13920
13921 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13922 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13923 if test "${ac_cv_c_const+set}" = set; then
13924   echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926   cat >conftest.$ac_ext <<_ACEOF
13927 #line $LINENO "configure"
13928 /* confdefs.h.  */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h.  */
13933
13934 int
13935 main ()
13936 {
13937 /* FIXME: Include the comments suggested by Paul. */
13938 #ifndef __cplusplus
13939   /* Ultrix mips cc rejects this.  */
13940   typedef int charset[2];
13941   const charset x;
13942   /* SunOS 4.1.1 cc rejects this.  */
13943   char const *const *ccp;
13944   char **p;
13945   /* NEC SVR4.0.2 mips cc rejects this.  */
13946   struct point {int x, y;};
13947   static struct point const zero = {0,0};
13948   /* AIX XL C 1.02.0.0 rejects this.
13949      It does not let you subtract one const X* pointer from another in
13950      an arm of an if-expression whose if-part is not a constant
13951      expression */
13952   const char *g = "string";
13953   ccp = &g + (g ? g-g : 0);
13954   /* HPUX 7.0 cc rejects these. */
13955   ++ccp;
13956   p = (char**) ccp;
13957   ccp = (char const *const *) p;
13958   { /* SCO 3.2v4 cc rejects this.  */
13959     char *t;
13960     char const *s = 0 ? (char *) 0 : (char const *) 0;
13961
13962     *t++ = 0;
13963   }
13964   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13965     int x[] = {25, 17};
13966     const int *foo = &x[0];
13967     ++foo;
13968   }
13969   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13970     typedef const int *iptr;
13971     iptr p = 0;
13972     ++p;
13973   }
13974   { /* AIX XL C 1.02.0.0 rejects this saying
13975        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13976     struct s { int j; const int *ap[3]; };
13977     struct s *b; b->j = 5;
13978   }
13979   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13980     const int foo = 10;
13981   }
13982 #endif
13983
13984   ;
13985   return 0;
13986 }
13987 _ACEOF
13988 rm -f conftest.$ac_objext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990   (eval $ac_compile) 2>&5
13991   ac_status=$?
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } &&
13994          { ac_try='test -s conftest.$ac_objext'
13995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996   (eval $ac_try) 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; }; then
14000   ac_cv_c_const=yes
14001 else
14002   echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005 ac_cv_c_const=no
14006 fi
14007 rm -f conftest.$ac_objext conftest.$ac_ext
14008 fi
14009 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14010 echo "${ECHO_T}$ac_cv_c_const" >&6
14011 if test $ac_cv_c_const = no; then
14012
14013 cat >>confdefs.h <<\_ACEOF
14014 #define const
14015 _ACEOF
14016
14017 fi
14018
14019 echo "$as_me:$LINENO: checking for inline" >&5
14020 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14021 if test "${ac_cv_c_inline+set}" = set; then
14022   echo $ECHO_N "(cached) $ECHO_C" >&6
14023 else
14024   ac_cv_c_inline=no
14025 for ac_kw in inline __inline__ __inline; do
14026   cat >conftest.$ac_ext <<_ACEOF
14027 #line $LINENO "configure"
14028 /* confdefs.h.  */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h.  */
14033 #ifndef __cplusplus
14034 typedef int foo_t;
14035 static $ac_kw foo_t static_foo () {return 0; }
14036 $ac_kw foo_t foo () {return 0; }
14037 #endif
14038
14039 _ACEOF
14040 rm -f conftest.$ac_objext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042   (eval $ac_compile) 2>&5
14043   ac_status=$?
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); } &&
14046          { ac_try='test -s conftest.$ac_objext'
14047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048   (eval $ac_try) 2>&5
14049   ac_status=$?
14050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051   (exit $ac_status); }; }; then
14052   ac_cv_c_inline=$ac_kw; break
14053 else
14054   echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14056
14057 fi
14058 rm -f conftest.$ac_objext conftest.$ac_ext
14059 done
14060
14061 fi
14062 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14063 echo "${ECHO_T}$ac_cv_c_inline" >&6
14064 case $ac_cv_c_inline in
14065   inline | yes) ;;
14066   no)
14067 cat >>confdefs.h <<\_ACEOF
14068 #define inline
14069 _ACEOF
14070  ;;
14071   *)  cat >>confdefs.h <<_ACEOF
14072 #define inline $ac_cv_c_inline
14073 _ACEOF
14074  ;;
14075 esac
14076
14077 echo "$as_me:$LINENO: checking for mode_t" >&5
14078 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14079 if test "${ac_cv_type_mode_t+set}" = set; then
14080   echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082   cat >conftest.$ac_ext <<_ACEOF
14083 #line $LINENO "configure"
14084 /* confdefs.h.  */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h.  */
14089 $ac_includes_default
14090 int
14091 main ()
14092 {
14093 if ((mode_t *) 0)
14094   return 0;
14095 if (sizeof (mode_t))
14096   return 0;
14097   ;
14098   return 0;
14099 }
14100 _ACEOF
14101 rm -f conftest.$ac_objext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14103   (eval $ac_compile) 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); } &&
14107          { ac_try='test -s conftest.$ac_objext'
14108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109   (eval $ac_try) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); }; }; then
14113   ac_cv_type_mode_t=yes
14114 else
14115   echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118 ac_cv_type_mode_t=no
14119 fi
14120 rm -f conftest.$ac_objext conftest.$ac_ext
14121 fi
14122 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14123 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14124 if test $ac_cv_type_mode_t = yes; then
14125
14126 cat >>confdefs.h <<_ACEOF
14127 #define HAVE_MODE_T 1
14128 _ACEOF
14129
14130
14131 fi
14132 echo "$as_me:$LINENO: checking for off_t" >&5
14133 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14134 if test "${ac_cv_type_off_t+set}" = set; then
14135   echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137   cat >conftest.$ac_ext <<_ACEOF
14138 #line $LINENO "configure"
14139 /* confdefs.h.  */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h.  */
14144 $ac_includes_default
14145 int
14146 main ()
14147 {
14148 if ((off_t *) 0)
14149   return 0;
14150 if (sizeof (off_t))
14151   return 0;
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 rm -f conftest.$ac_objext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158   (eval $ac_compile) 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); } &&
14162          { ac_try='test -s conftest.$ac_objext'
14163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164   (eval $ac_try) 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); }; }; then
14168   ac_cv_type_off_t=yes
14169 else
14170   echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14172
14173 ac_cv_type_off_t=no
14174 fi
14175 rm -f conftest.$ac_objext conftest.$ac_ext
14176 fi
14177 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14178 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14179 if test $ac_cv_type_off_t = yes; then
14180
14181 cat >>confdefs.h <<_ACEOF
14182 #define HAVE_OFF_T 1
14183 _ACEOF
14184
14185
14186 fi
14187 echo "$as_me:$LINENO: checking for pid_t" >&5
14188 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14189 if test "${ac_cv_type_pid_t+set}" = set; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192   cat >conftest.$ac_ext <<_ACEOF
14193 #line $LINENO "configure"
14194 /* confdefs.h.  */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h.  */
14199 $ac_includes_default
14200 int
14201 main ()
14202 {
14203 if ((pid_t *) 0)
14204   return 0;
14205 if (sizeof (pid_t))
14206   return 0;
14207   ;
14208   return 0;
14209 }
14210 _ACEOF
14211 rm -f conftest.$ac_objext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213   (eval $ac_compile) 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); } &&
14217          { ac_try='test -s conftest.$ac_objext'
14218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219   (eval $ac_try) 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; }; then
14223   ac_cv_type_pid_t=yes
14224 else
14225   echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228 ac_cv_type_pid_t=no
14229 fi
14230 rm -f conftest.$ac_objext conftest.$ac_ext
14231 fi
14232 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14233 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14234 if test $ac_cv_type_pid_t = yes; then
14235
14236 cat >>confdefs.h <<_ACEOF
14237 #define HAVE_PID_T 1
14238 _ACEOF
14239
14240
14241 fi
14242 echo "$as_me:$LINENO: checking for size_t" >&5
14243 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14244 if test "${ac_cv_type_size_t+set}" = set; then
14245   echo $ECHO_N "(cached) $ECHO_C" >&6
14246 else
14247   cat >conftest.$ac_ext <<_ACEOF
14248 #line $LINENO "configure"
14249 /* confdefs.h.  */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h.  */
14254 $ac_includes_default
14255 int
14256 main ()
14257 {
14258 if ((size_t *) 0)
14259   return 0;
14260 if (sizeof (size_t))
14261   return 0;
14262   ;
14263   return 0;
14264 }
14265 _ACEOF
14266 rm -f conftest.$ac_objext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268   (eval $ac_compile) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } &&
14272          { ac_try='test -s conftest.$ac_objext'
14273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274   (eval $ac_try) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; }; then
14278   ac_cv_type_size_t=yes
14279 else
14280   echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14282
14283 ac_cv_type_size_t=no
14284 fi
14285 rm -f conftest.$ac_objext conftest.$ac_ext
14286 fi
14287 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14288 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14289 if test $ac_cv_type_size_t = yes; then
14290
14291 cat >>confdefs.h <<_ACEOF
14292 #define HAVE_SIZE_T 1
14293 _ACEOF
14294
14295
14296 fi
14297 echo "$as_me:$LINENO: checking for ssize_t" >&5
14298 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14299 if test "${ac_cv_type_ssize_t+set}" = set; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302   cat >conftest.$ac_ext <<_ACEOF
14303 #line $LINENO "configure"
14304 /* confdefs.h.  */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h.  */
14309 $ac_includes_default
14310 int
14311 main ()
14312 {
14313 if ((ssize_t *) 0)
14314   return 0;
14315 if (sizeof (ssize_t))
14316   return 0;
14317   ;
14318   return 0;
14319 }
14320 _ACEOF
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323   (eval $ac_compile) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); } &&
14327          { ac_try='test -s conftest.$ac_objext'
14328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329   (eval $ac_try) 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; }; then
14333   ac_cv_type_ssize_t=yes
14334 else
14335   echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14337
14338 ac_cv_type_ssize_t=no
14339 fi
14340 rm -f conftest.$ac_objext conftest.$ac_ext
14341 fi
14342 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14343 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14344 if test $ac_cv_type_ssize_t = yes; then
14345
14346 cat >>confdefs.h <<_ACEOF
14347 #define HAVE_SSIZE_T 1
14348 _ACEOF
14349
14350
14351 fi
14352
14353 echo "$as_me:$LINENO: checking for long long" >&5
14354 echo $ECHO_N "checking for long long... $ECHO_C" >&6
14355 if test "${ac_cv_type_long_long+set}" = set; then
14356   echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358   cat >conftest.$ac_ext <<_ACEOF
14359 #line $LINENO "configure"
14360 /* confdefs.h.  */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h.  */
14365 $ac_includes_default
14366 int
14367 main ()
14368 {
14369 if ((long long *) 0)
14370   return 0;
14371 if (sizeof (long long))
14372   return 0;
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 rm -f conftest.$ac_objext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379   (eval $ac_compile) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); } &&
14383          { ac_try='test -s conftest.$ac_objext'
14384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385   (eval $ac_try) 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; }; then
14389   ac_cv_type_long_long=yes
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 ac_cv_type_long_long=no
14395 fi
14396 rm -f conftest.$ac_objext conftest.$ac_ext
14397 fi
14398 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14399 echo "${ECHO_T}$ac_cv_type_long_long" >&6
14400
14401 echo "$as_me:$LINENO: checking size of long long" >&5
14402 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14403 if test "${ac_cv_sizeof_long_long+set}" = set; then
14404   echo $ECHO_N "(cached) $ECHO_C" >&6
14405 else
14406   if test "$ac_cv_type_long_long" = yes; then
14407   # The cast to unsigned long works around a bug in the HP C Compiler
14408   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14409   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14410   # This bug is HP SR number 8606223364.
14411   if test "$cross_compiling" = yes; then
14412   # Depending upon the size, compute the lo and hi bounds.
14413 cat >conftest.$ac_ext <<_ACEOF
14414 #line $LINENO "configure"
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420 $ac_includes_default
14421 int
14422 main ()
14423 {
14424 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14425 test_array [0] = 0
14426
14427   ;
14428   return 0;
14429 }
14430 _ACEOF
14431 rm -f conftest.$ac_objext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14433   (eval $ac_compile) 2>&5
14434   ac_status=$?
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); } &&
14437          { ac_try='test -s conftest.$ac_objext'
14438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439   (eval $ac_try) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; }; then
14443   ac_lo=0 ac_mid=0
14444   while :; do
14445     cat >conftest.$ac_ext <<_ACEOF
14446 #line $LINENO "configure"
14447 /* confdefs.h.  */
14448 _ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h.  */
14452 $ac_includes_default
14453 int
14454 main ()
14455 {
14456 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14457 test_array [0] = 0
14458
14459   ;
14460   return 0;
14461 }
14462 _ACEOF
14463 rm -f conftest.$ac_objext
14464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14465   (eval $ac_compile) 2>&5
14466   ac_status=$?
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); } &&
14469          { ac_try='test -s conftest.$ac_objext'
14470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471   (eval $ac_try) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); }; }; then
14475   ac_hi=$ac_mid; break
14476 else
14477   echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14479
14480 ac_lo=`expr $ac_mid + 1`
14481                     if test $ac_lo -le $ac_mid; then
14482                       ac_lo= ac_hi=
14483                       break
14484                     fi
14485                     ac_mid=`expr 2 '*' $ac_mid + 1`
14486 fi
14487 rm -f conftest.$ac_objext conftest.$ac_ext
14488   done
14489 else
14490   echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14492
14493 cat >conftest.$ac_ext <<_ACEOF
14494 #line $LINENO "configure"
14495 /* confdefs.h.  */
14496 _ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h.  */
14500 $ac_includes_default
14501 int
14502 main ()
14503 {
14504 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14505 test_array [0] = 0
14506
14507   ;
14508   return 0;
14509 }
14510 _ACEOF
14511 rm -f conftest.$ac_objext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14513   (eval $ac_compile) 2>&5
14514   ac_status=$?
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); } &&
14517          { ac_try='test -s conftest.$ac_objext'
14518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519   (eval $ac_try) 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; }; then
14523   ac_hi=-1 ac_mid=-1
14524   while :; do
14525     cat >conftest.$ac_ext <<_ACEOF
14526 #line $LINENO "configure"
14527 /* confdefs.h.  */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h.  */
14532 $ac_includes_default
14533 int
14534 main ()
14535 {
14536 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14537 test_array [0] = 0
14538
14539   ;
14540   return 0;
14541 }
14542 _ACEOF
14543 rm -f conftest.$ac_objext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14545   (eval $ac_compile) 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); } &&
14549          { ac_try='test -s conftest.$ac_objext'
14550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551   (eval $ac_try) 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); }; }; then
14555   ac_lo=$ac_mid; break
14556 else
14557   echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560 ac_hi=`expr '(' $ac_mid ')' - 1`
14561                        if test $ac_mid -le $ac_hi; then
14562                          ac_lo= ac_hi=
14563                          break
14564                        fi
14565                        ac_mid=`expr 2 '*' $ac_mid`
14566 fi
14567 rm -f conftest.$ac_objext conftest.$ac_ext
14568   done
14569 else
14570   echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573 ac_lo= ac_hi=
14574 fi
14575 rm -f conftest.$ac_objext conftest.$ac_ext
14576 fi
14577 rm -f conftest.$ac_objext conftest.$ac_ext
14578 # Binary search between lo and hi bounds.
14579 while test "x$ac_lo" != "x$ac_hi"; do
14580   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14581   cat >conftest.$ac_ext <<_ACEOF
14582 #line $LINENO "configure"
14583 /* confdefs.h.  */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h.  */
14588 $ac_includes_default
14589 int
14590 main ()
14591 {
14592 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14593 test_array [0] = 0
14594
14595   ;
14596   return 0;
14597 }
14598 _ACEOF
14599 rm -f conftest.$ac_objext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14601   (eval $ac_compile) 2>&5
14602   ac_status=$?
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); } &&
14605          { ac_try='test -s conftest.$ac_objext'
14606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607   (eval $ac_try) 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); }; }; then
14611   ac_hi=$ac_mid
14612 else
14613   echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14615
14616 ac_lo=`expr '(' $ac_mid ')' + 1`
14617 fi
14618 rm -f conftest.$ac_objext conftest.$ac_ext
14619 done
14620 case $ac_lo in
14621 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14622 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14623 See \`config.log' for more details." >&5
14624 echo "$as_me: error: cannot compute sizeof (long long), 77
14625 See \`config.log' for more details." >&2;}
14626    { (exit 1); exit 1; }; } ;;
14627 esac
14628 else
14629   if test "$cross_compiling" = yes; then
14630   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14631 See \`config.log' for more details." >&5
14632 echo "$as_me: error: cannot run test program while cross compiling
14633 See \`config.log' for more details." >&2;}
14634    { (exit 1); exit 1; }; }
14635 else
14636   cat >conftest.$ac_ext <<_ACEOF
14637 #line $LINENO "configure"
14638 /* confdefs.h.  */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h.  */
14643 $ac_includes_default
14644 long longval () { return (long) (sizeof (long long)); }
14645 unsigned long ulongval () { return (long) (sizeof (long long)); }
14646 #include <stdio.h>
14647 #include <stdlib.h>
14648 int
14649 main ()
14650 {
14651
14652   FILE *f = fopen ("conftest.val", "w");
14653   if (! f)
14654     exit (1);
14655   if (((long) (sizeof (long long))) < 0)
14656     {
14657       long i = longval ();
14658       if (i != ((long) (sizeof (long long))))
14659         exit (1);
14660       fprintf (f, "%ld\n", i);
14661     }
14662   else
14663     {
14664       unsigned long i = ulongval ();
14665       if (i != ((long) (sizeof (long long))))
14666         exit (1);
14667       fprintf (f, "%lu\n", i);
14668     }
14669   exit (ferror (f) || fclose (f) != 0);
14670
14671   ;
14672   return 0;
14673 }
14674 _ACEOF
14675 rm -f conftest$ac_exeext
14676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14677   (eval $ac_link) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682   (eval $ac_try) 2>&5
14683   ac_status=$?
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); }; }; then
14686   ac_cv_sizeof_long_long=`cat conftest.val`
14687 else
14688   echo "$as_me: program exited with status $ac_status" >&5
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 ( exit $ac_status )
14693 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14694 See \`config.log' for more details." >&5
14695 echo "$as_me: error: cannot compute sizeof (long long), 77
14696 See \`config.log' for more details." >&2;}
14697    { (exit 1); exit 1; }; }
14698 fi
14699 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14700 fi
14701 fi
14702 rm -f conftest.val
14703 else
14704   ac_cv_sizeof_long_long=0
14705 fi
14706 fi
14707 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14708 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
14709 cat >>confdefs.h <<_ACEOF
14710 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14711 _ACEOF
14712
14713
14714
14715 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
14716 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
14717 if test "${wine_cv_linux_input_h+set}" = set; then
14718   echo $ECHO_N "(cached) $ECHO_C" >&6
14719 else
14720   cat >conftest.$ac_ext <<_ACEOF
14721 #line $LINENO "configure"
14722 /* confdefs.h.  */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h.  */
14727
14728             #include <linux/input.h>
14729
14730 int
14731 main ()
14732 {
14733
14734             int foo = EVIOCGBIT(EV_ABS,42);
14735             int bar = BTN_PINKIE;
14736             int fortytwo = 42;
14737
14738   ;
14739   return 0;
14740 }
14741 _ACEOF
14742 rm -f conftest.$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744   (eval $ac_compile) 2>&5
14745   ac_status=$?
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); } &&
14748          { ac_try='test -s conftest.$ac_objext'
14749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750   (eval $ac_try) 2>&5
14751   ac_status=$?
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); }; }; then
14754   wine_cv_linux_input_h=yes
14755 else
14756   echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14758
14759 wine_cv_linux_input_h=no
14760 fi
14761 rm -f conftest.$ac_objext conftest.$ac_ext
14762
14763 fi
14764 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
14765 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
14766     if test "$wine_cv_linux_input_h" = "yes"
14767     then
14768
14769 cat >>confdefs.h <<\_ACEOF
14770 #define HAVE_CORRECT_LINUXINPUT_H 1
14771 _ACEOF
14772
14773     fi
14774
14775
14776 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14777 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
14778 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781   cat >conftest.$ac_ext <<_ACEOF
14782 #line $LINENO "configure"
14783 /* confdefs.h.  */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h.  */
14788
14789 #include <netdb.h>
14790
14791 int
14792 main ()
14793 {
14794
14795     char *name=NULL;
14796     struct hostent he;
14797     struct hostent *result;
14798     char *buf=NULL;
14799     int bufsize=0;
14800     int res,errnr;
14801     char *addr=NULL;
14802     int addrlen=0;
14803     int addrtype=0;
14804     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14805     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14806
14807   ;
14808   return 0;
14809 }
14810 _ACEOF
14811 rm -f conftest.$ac_objext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14813   (eval $ac_compile) 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); } &&
14817          { ac_try='test -s conftest.$ac_objext'
14818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819   (eval $ac_try) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); }; }; then
14823   wine_cv_linux_gethostbyname_r_6=yes
14824 else
14825   echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828 wine_cv_linux_gethostbyname_r_6=no
14829
14830 fi
14831 rm -f conftest.$ac_objext conftest.$ac_ext
14832
14833 fi
14834 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
14835 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
14836    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14837    then
14838
14839 cat >>confdefs.h <<\_ACEOF
14840 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
14841 _ACEOF
14842
14843    fi
14844
14845 if test "$ac_cv_header_linux_joystick_h" = "yes"
14846 then
14847    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14848 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
14849 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
14850   echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852   cat >conftest.$ac_ext <<_ACEOF
14853 #line $LINENO "configure"
14854 /* confdefs.h.  */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h.  */
14859
14860         #include <sys/ioctl.h>
14861         #include <linux/joystick.h>
14862
14863         struct js_event blub;
14864         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14865         #error "no 2.2 header"
14866         #endif
14867
14868 int
14869 main ()
14870 {
14871 /*empty*/
14872   ;
14873   return 0;
14874 }
14875 _ACEOF
14876 rm -f conftest.$ac_objext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14878   (eval $ac_compile) 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); } &&
14882          { ac_try='test -s conftest.$ac_objext'
14883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884   (eval $ac_try) 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); }; }; then
14888   wine_cv_linux_joystick_22_api=yes
14889 else
14890   echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 wine_cv_linux_joystick_22_api=no
14894 fi
14895 rm -f conftest.$ac_objext conftest.$ac_ext
14896
14897 fi
14898 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
14899 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
14900    if test "$wine_cv_linux_joystick_22_api" = "yes"
14901    then
14902
14903 cat >>confdefs.h <<\_ACEOF
14904 #define HAVE_LINUX_22_JOYSTICK_API 1
14905 _ACEOF
14906
14907    fi
14908 fi
14909
14910
14911 if test "$ac_cv_header_sys_vfs_h" = "yes"
14912 then
14913     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
14914 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
14915 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
14916   echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918   cat >conftest.$ac_ext <<_ACEOF
14919 #line $LINENO "configure"
14920 /* confdefs.h.  */
14921 _ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h.  */
14925
14926         #include <sys/types.h>
14927         #ifdef HAVE_SYS_PARAM_H
14928         # include <sys/param.h>
14929         #endif
14930         #include <sys/vfs.h>
14931
14932 int
14933 main ()
14934 {
14935
14936                 struct statfs stfs;
14937
14938                 memset(&stfs,0,sizeof(stfs));
14939
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 rm -f conftest.$ac_objext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946   (eval $ac_compile) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); } &&
14950          { ac_try='test -s conftest.$ac_objext'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; }; then
14956   wine_cv_sys_vfs_has_statfs=yes
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961 wine_cv_sys_vfs_has_statfs=no
14962
14963 fi
14964 rm -f conftest.$ac_objext conftest.$ac_ext
14965
14966 fi
14967 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
14968 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
14969     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
14970     then
14971
14972 cat >>confdefs.h <<\_ACEOF
14973 #define STATFS_DEFINED_BY_SYS_VFS 1
14974 _ACEOF
14975
14976     fi
14977 fi
14978
14979 if test "$ac_cv_header_sys_statfs_h" = "yes"
14980 then
14981     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
14982 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
14983 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
14984   echo $ECHO_N "(cached) $ECHO_C" >&6
14985 else
14986   cat >conftest.$ac_ext <<_ACEOF
14987 #line $LINENO "configure"
14988 /* confdefs.h.  */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h.  */
14993
14994         #include <sys/types.h>
14995         #ifdef HAVE_SYS_PARAM_H
14996         # include <sys/param.h>
14997         #endif
14998         #include <sys/statfs.h>
14999
15000 int
15001 main ()
15002 {
15003
15004                 struct statfs stfs;
15005
15006   ;
15007   return 0;
15008 }
15009 _ACEOF
15010 rm -f conftest.$ac_objext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15012   (eval $ac_compile) 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); } &&
15016          { ac_try='test -s conftest.$ac_objext'
15017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018   (eval $ac_try) 2>&5
15019   ac_status=$?
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); }; }; then
15022   wine_cv_sys_statfs_has_statfs=yes
15023 else
15024   echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15026
15027 wine_cv_sys_statfs_has_statfs=no
15028
15029 fi
15030 rm -f conftest.$ac_objext conftest.$ac_ext
15031
15032 fi
15033 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
15034 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
15035     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15036     then
15037
15038 cat >>confdefs.h <<\_ACEOF
15039 #define STATFS_DEFINED_BY_SYS_STATFS 1
15040 _ACEOF
15041
15042     fi
15043 fi
15044
15045 if test "$ac_cv_header_sys_mount_h" = "yes"
15046 then
15047     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
15048 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
15049 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052   cat >conftest.$ac_ext <<_ACEOF
15053 #line $LINENO "configure"
15054 /* confdefs.h.  */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h.  */
15059
15060         #include <sys/types.h>
15061         #ifdef HAVE_SYS_PARAM_H
15062         # include <sys/param.h>
15063         #endif
15064         #include <sys/mount.h>
15065
15066 int
15067 main ()
15068 {
15069
15070                 struct statfs stfs;
15071
15072   ;
15073   return 0;
15074 }
15075 _ACEOF
15076 rm -f conftest.$ac_objext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15078   (eval $ac_compile) 2>&5
15079   ac_status=$?
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); } &&
15082          { ac_try='test -s conftest.$ac_objext'
15083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084   (eval $ac_try) 2>&5
15085   ac_status=$?
15086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087   (exit $ac_status); }; }; then
15088   wine_cv_sys_mount_has_statfs=yes
15089 else
15090   echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15092
15093 wine_cv_sys_mount_has_statfs=no
15094
15095 fi
15096 rm -f conftest.$ac_objext conftest.$ac_ext
15097
15098 fi
15099 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
15100 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
15101     if test "$wine_cv_sys_mount_has_statfs" = "yes"
15102     then
15103
15104 cat >>confdefs.h <<\_ACEOF
15105 #define STATFS_DEFINED_BY_SYS_MOUNT 1
15106 _ACEOF
15107
15108     fi
15109 fi
15110
15111
15112 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
15113 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
15114 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
15115   echo $ECHO_N "(cached) $ECHO_C" >&6
15116 else
15117   cat >conftest.$ac_ext <<_ACEOF
15118 #line $LINENO "configure"
15119 /* confdefs.h.  */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h.  */
15124 #include <sys/types.h>
15125 #ifdef HAVE_SYS_PARAM_H
15126 # include <sys/param.h>
15127 #endif
15128 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15129 # include <sys/mount.h>
15130 #else
15131 # ifdef STATFS_DEFINED_BY_SYS_VFS
15132 #  include <sys/vfs.h>
15133 # else
15134 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15135 #   include <sys/statfs.h>
15136 #  endif
15137 # endif
15138 #endif
15139 int
15140 main ()
15141 {
15142 struct statfs s; s.f_bfree = 0
15143   ;
15144   return 0;
15145 }
15146 _ACEOF
15147 rm -f conftest.$ac_objext
15148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15149   (eval $ac_compile) 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); } &&
15153          { ac_try='test -s conftest.$ac_objext'
15154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155   (eval $ac_try) 2>&5
15156   ac_status=$?
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); }; }; then
15159   ac_cv_c_statfs_f_bfree="yes"
15160 else
15161   echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15163
15164 ac_cv_c_statfs_f_bfree="no"
15165 fi
15166 rm -f conftest.$ac_objext conftest.$ac_ext
15167 fi
15168 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
15169 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
15170 if  test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
15171
15172 cat >>confdefs.h <<\_ACEOF
15173 #define STATFS_HAS_BFREE 1
15174 _ACEOF
15175
15176 fi
15177
15178
15179
15180 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
15181 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
15182 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
15183   echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185   cat >conftest.$ac_ext <<_ACEOF
15186 #line $LINENO "configure"
15187 /* confdefs.h.  */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h.  */
15192 #include <sys/types.h>
15193 #ifdef HAVE_SYS_PARAM_H
15194 # include <sys/param.h>
15195 #endif
15196 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15197 # include <sys/mount.h>
15198 #else
15199 # ifdef STATFS_DEFINED_BY_SYS_VFS
15200 #  include <sys/vfs.h>
15201 # else
15202 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15203 #   include <sys/statfs.h>
15204 #  endif
15205 # endif
15206 #endif
15207 int
15208 main ()
15209 {
15210 struct statfs s; s.f_bavail = 0
15211   ;
15212   return 0;
15213 }
15214 _ACEOF
15215 rm -f conftest.$ac_objext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15217   (eval $ac_compile) 2>&5
15218   ac_status=$?
15219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   (exit $ac_status); } &&
15221          { ac_try='test -s conftest.$ac_objext'
15222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223   (eval $ac_try) 2>&5
15224   ac_status=$?
15225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226   (exit $ac_status); }; }; then
15227   ac_cv_c_statfs_f_bavail="yes"
15228 else
15229   echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15231
15232 ac_cv_c_statfs_f_bavail="no"
15233 fi
15234 rm -f conftest.$ac_objext conftest.$ac_ext
15235 fi
15236 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
15237 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
15238 if  test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
15239
15240 cat >>confdefs.h <<\_ACEOF
15241 #define STATFS_HAS_BAVAIL 1
15242 _ACEOF
15243
15244 fi
15245
15246
15247
15248 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
15249 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
15250 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
15251   echo $ECHO_N "(cached) $ECHO_C" >&6
15252 else
15253   cat >conftest.$ac_ext <<_ACEOF
15254 #line $LINENO "configure"
15255 /* confdefs.h.  */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h.  */
15260 #include <sys/types.h>
15261 #ifdef HAVE_SYS_SOCKET_H
15262 # include <sys/socket.h>
15263 #endif
15264 int
15265 main ()
15266 {
15267 struct msghdr s; s.msg_accrights = 0
15268   ;
15269   return 0;
15270 }
15271 _ACEOF
15272 rm -f conftest.$ac_objext
15273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15274   (eval $ac_compile) 2>&5
15275   ac_status=$?
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); } &&
15278          { ac_try='test -s conftest.$ac_objext'
15279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280   (eval $ac_try) 2>&5
15281   ac_status=$?
15282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); }; }; then
15284   ac_cv_c_msghdr_msg_accrights="yes"
15285 else
15286   echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15288
15289 ac_cv_c_msghdr_msg_accrights="no"
15290 fi
15291 rm -f conftest.$ac_objext conftest.$ac_ext
15292 fi
15293 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
15294 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
15295 if  test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
15296
15297 cat >>confdefs.h <<\_ACEOF
15298 #define HAVE_MSGHDR_ACCRIGHTS 1
15299 _ACEOF
15300
15301 fi
15302
15303
15304
15305 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
15306 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
15307 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
15308   echo $ECHO_N "(cached) $ECHO_C" >&6
15309 else
15310   cat >conftest.$ac_ext <<_ACEOF
15311 #line $LINENO "configure"
15312 /* confdefs.h.  */
15313 _ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h.  */
15317 #include <sys/types.h>
15318 #ifdef HAVE_SYS_SOCKET_H
15319 # include <sys/socket.h>
15320 #endif
15321 int
15322 main ()
15323 {
15324 struct sockaddr s; s.sa_len = 0
15325   ;
15326   return 0;
15327 }
15328 _ACEOF
15329 rm -f conftest.$ac_objext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15331   (eval $ac_compile) 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); } &&
15335          { ac_try='test -s conftest.$ac_objext'
15336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337   (eval $ac_try) 2>&5
15338   ac_status=$?
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); }; }; then
15341   ac_cv_c_sockaddr_sa_len="yes"
15342 else
15343   echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15345
15346 ac_cv_c_sockaddr_sa_len="no"
15347 fi
15348 rm -f conftest.$ac_objext conftest.$ac_ext
15349 fi
15350 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
15351 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
15352 if  test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
15353
15354 cat >>confdefs.h <<\_ACEOF
15355 #define HAVE_SOCKADDR_SA_LEN 1
15356 _ACEOF
15357
15358 fi
15359
15360
15361
15362 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
15363 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
15364 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
15365   echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367   cat >conftest.$ac_ext <<_ACEOF
15368 #line $LINENO "configure"
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374 #include <sys/types.h>
15375 #ifdef HAVE_SYS_SOCKET_H
15376 # include <sys/socket.h>
15377 #endif
15378 #ifdef HAVE_SYS_UN_H
15379 # include <sys/un.h>
15380 #endif
15381 int
15382 main ()
15383 {
15384 struct sockaddr_un s; s.sun_len = 0
15385   ;
15386   return 0;
15387 }
15388 _ACEOF
15389 rm -f conftest.$ac_objext
15390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15391   (eval $ac_compile) 2>&5
15392   ac_status=$?
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); } &&
15395          { ac_try='test -s conftest.$ac_objext'
15396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397   (eval $ac_try) 2>&5
15398   ac_status=$?
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); }; }; then
15401   ac_cv_c_sockaddr_un_sun_len="yes"
15402 else
15403   echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15405
15406 ac_cv_c_sockaddr_un_sun_len="no"
15407 fi
15408 rm -f conftest.$ac_objext conftest.$ac_ext
15409 fi
15410 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
15411 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
15412 if  test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
15413
15414 cat >>confdefs.h <<\_ACEOF
15415 #define HAVE_SOCKADDR_SUN_LEN 1
15416 _ACEOF
15417
15418 fi
15419
15420
15421
15422
15423 case $host_cpu in
15424   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
15425 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
15426 if test "${ac_cv_cpp_def___i386__+set}" = set; then
15427   echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429   cat >conftest.$ac_ext <<_ACEOF
15430 #line $LINENO "configure"
15431 /* confdefs.h.  */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h.  */
15436 #ifndef __i386__
15437 yes
15438 #endif
15439 _ACEOF
15440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15441   $EGREP "yes" >/dev/null 2>&1; then
15442   ac_cv_cpp_def___i386__=yes
15443 else
15444   ac_cv_cpp_def___i386__=no
15445 fi
15446 rm -f conftest*
15447
15448 fi
15449 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
15450 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
15451 if test $ac_cv_cpp_def___i386__ = yes; then
15452   CFLAGS="$CFLAGS -D__i386__"
15453   LINTFLAGS="$LINTFLAGS -D__i386__"
15454 fi
15455  ;;
15456   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
15457 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
15458 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
15459   echo $ECHO_N "(cached) $ECHO_C" >&6
15460 else
15461   cat >conftest.$ac_ext <<_ACEOF
15462 #line $LINENO "configure"
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468 #ifndef __ALPHA__
15469 yes
15470 #endif
15471 _ACEOF
15472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15473   $EGREP "yes" >/dev/null 2>&1; then
15474   ac_cv_cpp_def___ALPHA__=yes
15475 else
15476   ac_cv_cpp_def___ALPHA__=no
15477 fi
15478 rm -f conftest*
15479
15480 fi
15481 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
15482 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
15483 if test $ac_cv_cpp_def___ALPHA__ = yes; then
15484   CFLAGS="$CFLAGS -D__ALPHA__"
15485   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
15486 fi
15487  ;;
15488   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
15489 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
15490 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
15491   echo $ECHO_N "(cached) $ECHO_C" >&6
15492 else
15493   cat >conftest.$ac_ext <<_ACEOF
15494 #line $LINENO "configure"
15495 /* confdefs.h.  */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h.  */
15500 #ifndef __sparc__
15501 yes
15502 #endif
15503 _ACEOF
15504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15505   $EGREP "yes" >/dev/null 2>&1; then
15506   ac_cv_cpp_def___sparc__=yes
15507 else
15508   ac_cv_cpp_def___sparc__=no
15509 fi
15510 rm -f conftest*
15511
15512 fi
15513 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
15514 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
15515 if test $ac_cv_cpp_def___sparc__ = yes; then
15516   CFLAGS="$CFLAGS -D__sparc__"
15517   LINTFLAGS="$LINTFLAGS -D__sparc__"
15518 fi
15519  ;;
15520 esac
15521
15522 case $host_vendor in
15523   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
15524 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
15525 if test "${ac_cv_cpp_def___sun__+set}" = set; then
15526   echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528   cat >conftest.$ac_ext <<_ACEOF
15529 #line $LINENO "configure"
15530 /* confdefs.h.  */
15531 _ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h.  */
15535 #ifndef __sun__
15536 yes
15537 #endif
15538 _ACEOF
15539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15540   $EGREP "yes" >/dev/null 2>&1; then
15541   ac_cv_cpp_def___sun__=yes
15542 else
15543   ac_cv_cpp_def___sun__=no
15544 fi
15545 rm -f conftest*
15546
15547 fi
15548 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
15549 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
15550 if test $ac_cv_cpp_def___sun__ = yes; then
15551   CFLAGS="$CFLAGS -D__sun__"
15552   LINTFLAGS="$LINTFLAGS -D__sun__"
15553 fi
15554  ;;
15555 esac
15556
15557
15558
15559
15560
15561           ac_config_commands="$ac_config_commands controls"
15562
15563           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
15564
15565           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
15566
15567           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
15568
15569           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
15570
15571           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
15572
15573           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
15574
15575           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
15576
15577           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
15578
15579           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
15580
15581           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
15582
15583           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
15584
15585           ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
15586
15587           ac_config_commands="$ac_config_commands dlls/kernel/messages"
15588
15589           ac_config_commands="$ac_config_commands dlls/user/dde"
15590
15591           ac_config_commands="$ac_config_commands dlls/user/resources"
15592
15593           ac_config_commands="$ac_config_commands dlls/wineps/data"
15594
15595           ac_config_commands="$ac_config_commands files"
15596
15597           ac_config_commands="$ac_config_commands graphics"
15598
15599           ac_config_commands="$ac_config_commands graphics/x11drv"
15600
15601           ac_config_commands="$ac_config_commands if1632"
15602
15603           ac_config_commands="$ac_config_commands include/wine"
15604
15605           ac_config_commands="$ac_config_commands loader"
15606
15607           ac_config_commands="$ac_config_commands loader/ne"
15608
15609           ac_config_commands="$ac_config_commands memory"
15610
15611           ac_config_commands="$ac_config_commands misc"
15612
15613           ac_config_commands="$ac_config_commands msdos"
15614
15615           ac_config_commands="$ac_config_commands objects"
15616
15617           ac_config_commands="$ac_config_commands programs/regapi/tests"
15618
15619           ac_config_commands="$ac_config_commands programs/regedit/tests"
15620
15621           ac_config_commands="$ac_config_commands relay32"
15622
15623           ac_config_commands="$ac_config_commands scheduler"
15624
15625           ac_config_commands="$ac_config_commands win32"
15626
15627           ac_config_commands="$ac_config_commands windows"
15628
15629
15630 MAKE_RULES=Make.rules
15631
15632
15633 MAKE_DLL_RULES=dlls/Makedll.rules
15634
15635
15636 MAKE_TEST_RULES=dlls/Maketest.rules
15637
15638
15639 MAKE_PROG_RULES=programs/Makeprog.rules
15640
15641
15642                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile unicode/Makefile"
15643
15644
15645 cat >confcache <<\_ACEOF
15646 # This file is a shell script that caches the results of configure
15647 # tests run on this system so they can be shared between configure
15648 # scripts and configure runs, see configure's option --config-cache.
15649 # It is not useful on other systems.  If it contains results you don't
15650 # want to keep, you may remove or edit it.
15651 #
15652 # config.status only pays attention to the cache file if you give it
15653 # the --recheck option to rerun configure.
15654 #
15655 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15656 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15657 # following values.
15658
15659 _ACEOF
15660
15661 # The following way of writing the cache mishandles newlines in values,
15662 # but we know of no workaround that is simple, portable, and efficient.
15663 # So, don't put newlines in cache variables' values.
15664 # Ultrix sh set writes to stderr and can't be redirected directly,
15665 # and sets the high bit in the cache file unless we assign to the vars.
15666 {
15667   (set) 2>&1 |
15668     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15669     *ac_space=\ *)
15670       # `set' does not quote correctly, so add quotes (double-quote
15671       # substitution turns \\\\ into \\, and sed turns \\ into \).
15672       sed -n \
15673         "s/'/'\\\\''/g;
15674           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15675       ;;
15676     *)
15677       # `set' quotes correctly as required by POSIX, so do not add quotes.
15678       sed -n \
15679         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15680       ;;
15681     esac;
15682 } |
15683   sed '
15684      t clear
15685      : clear
15686      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15687      t end
15688      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15689      : end' >>confcache
15690 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15691   if test -w $cache_file; then
15692     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15693     cat confcache >$cache_file
15694   else
15695     echo "not updating unwritable cache $cache_file"
15696   fi
15697 fi
15698 rm -f confcache
15699
15700 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15701 # Let make expand exec_prefix.
15702 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15703
15704 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15705 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15706 # trailing colons and then remove the whole line if VPATH becomes empty
15707 # (actually we leave an empty line to preserve line numbers).
15708 if test "x$srcdir" = x.; then
15709   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15710 s/:*\$(srcdir):*/:/;
15711 s/:*\${srcdir}:*/:/;
15712 s/:*@srcdir@:*/:/;
15713 s/^\([^=]*=[    ]*\):*/\1/;
15714 s/:*$//;
15715 s/^[^=]*=[      ]*$//;
15716 }'
15717 fi
15718
15719 DEFS=-DHAVE_CONFIG_H
15720
15721 ac_libobjs=
15722 ac_ltlibobjs=
15723 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15724   # 1. Remove the extension, and $U if already installed.
15725   ac_i=`echo "$ac_i" |
15726          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15727   # 2. Add them.
15728   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15729   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15730 done
15731 LIBOBJS=$ac_libobjs
15732
15733 LTLIBOBJS=$ac_ltlibobjs
15734
15735
15736
15737 : ${CONFIG_STATUS=./config.status}
15738 ac_clean_files_save=$ac_clean_files
15739 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15740 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15741 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15742 cat >$CONFIG_STATUS <<_ACEOF
15743 #! $SHELL
15744 # Generated by $as_me.
15745 # Run this file to recreate the current configuration.
15746 # Compiler output produced by configure, useful for debugging
15747 # configure, is in config.log if it exists.
15748
15749 debug=false
15750 ac_cs_recheck=false
15751 ac_cs_silent=false
15752 SHELL=\${CONFIG_SHELL-$SHELL}
15753 _ACEOF
15754
15755 cat >>$CONFIG_STATUS <<\_ACEOF
15756 ## --------------------- ##
15757 ## M4sh Initialization.  ##
15758 ## --------------------- ##
15759
15760 # Be Bourne compatible
15761 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15762   emulate sh
15763   NULLCMD=:
15764   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15765   # is contrary to our usage.  Disable this feature.
15766   alias -g '${1+"$@"}'='"$@"'
15767 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15768   set -o posix
15769 fi
15770
15771 # Support unset when possible.
15772 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15773   as_unset=unset
15774 else
15775   as_unset=false
15776 fi
15777
15778
15779 # Work around bugs in pre-3.0 UWIN ksh.
15780 $as_unset ENV MAIL MAILPATH
15781 PS1='$ '
15782 PS2='> '
15783 PS4='+ '
15784
15785 # NLS nuisances.
15786 for as_var in \
15787   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15788   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15789   LC_TELEPHONE LC_TIME
15790 do
15791   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15792     eval $as_var=C; export $as_var
15793   else
15794     $as_unset $as_var
15795   fi
15796 done
15797
15798 # Required to use basename.
15799 if expr a : '\(a\)' >/dev/null 2>&1; then
15800   as_expr=expr
15801 else
15802   as_expr=false
15803 fi
15804
15805 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15806   as_basename=basename
15807 else
15808   as_basename=false
15809 fi
15810
15811
15812 # Name of the executable.
15813 as_me=`$as_basename "$0" ||
15814 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15815          X"$0" : 'X\(//\)$' \| \
15816          X"$0" : 'X\(/\)$' \| \
15817          .     : '\(.\)' 2>/dev/null ||
15818 echo X/"$0" |
15819     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15820           /^X\/\(\/\/\)$/{ s//\1/; q; }
15821           /^X\/\(\/\).*/{ s//\1/; q; }
15822           s/.*/./; q'`
15823
15824
15825 # PATH needs CR, and LINENO needs CR and PATH.
15826 # Avoid depending upon Character Ranges.
15827 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15828 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15829 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15830 as_cr_digits='0123456789'
15831 as_cr_alnum=$as_cr_Letters$as_cr_digits
15832
15833 # The user is always right.
15834 if test "${PATH_SEPARATOR+set}" != set; then
15835   echo "#! /bin/sh" >conf$$.sh
15836   echo  "exit 0"   >>conf$$.sh
15837   chmod +x conf$$.sh
15838   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15839     PATH_SEPARATOR=';'
15840   else
15841     PATH_SEPARATOR=:
15842   fi
15843   rm -f conf$$.sh
15844 fi
15845
15846
15847   as_lineno_1=$LINENO
15848   as_lineno_2=$LINENO
15849   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15850   test "x$as_lineno_1" != "x$as_lineno_2" &&
15851   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15852   # Find who we are.  Look in the path if we contain no path at all
15853   # relative or not.
15854   case $0 in
15855     *[\\/]* ) as_myself=$0 ;;
15856     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15857 for as_dir in $PATH
15858 do
15859   IFS=$as_save_IFS
15860   test -z "$as_dir" && as_dir=.
15861   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15862 done
15863
15864        ;;
15865   esac
15866   # We did not find ourselves, most probably we were run as `sh COMMAND'
15867   # in which case we are not to be found in the path.
15868   if test "x$as_myself" = x; then
15869     as_myself=$0
15870   fi
15871   if test ! -f "$as_myself"; then
15872     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15873 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15874    { (exit 1); exit 1; }; }
15875   fi
15876   case $CONFIG_SHELL in
15877   '')
15878     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15879 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15880 do
15881   IFS=$as_save_IFS
15882   test -z "$as_dir" && as_dir=.
15883   for as_base in sh bash ksh sh5; do
15884          case $as_dir in
15885          /*)
15886            if ("$as_dir/$as_base" -c '
15887   as_lineno_1=$LINENO
15888   as_lineno_2=$LINENO
15889   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15890   test "x$as_lineno_1" != "x$as_lineno_2" &&
15891   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15892              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15893              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15894              CONFIG_SHELL=$as_dir/$as_base
15895              export CONFIG_SHELL
15896              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15897            fi;;
15898          esac
15899        done
15900 done
15901 ;;
15902   esac
15903
15904   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15905   # uniformly replaced by the line number.  The first 'sed' inserts a
15906   # line-number line before each line; the second 'sed' does the real
15907   # work.  The second script uses 'N' to pair each line-number line
15908   # with the numbered line, and appends trailing '-' during
15909   # substitution so that $LINENO is not a special case at line end.
15910   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15911   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15912   sed '=' <$as_myself |
15913     sed '
15914       N
15915       s,$,-,
15916       : loop
15917       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15918       t loop
15919       s,-$,,
15920       s,^['$as_cr_digits']*\n,,
15921     ' >$as_me.lineno &&
15922   chmod +x $as_me.lineno ||
15923     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15924 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15925    { (exit 1); exit 1; }; }
15926
15927   # Don't try to exec as it changes $[0], causing all sort of problems
15928   # (the dirname of $[0] is not the place where we might find the
15929   # original and so on.  Autoconf is especially sensible to this).
15930   . ./$as_me.lineno
15931   # Exit status is that of the last command.
15932   exit
15933 }
15934
15935
15936 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15937   *c*,-n*) ECHO_N= ECHO_C='
15938 ' ECHO_T='      ' ;;
15939   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15940   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15941 esac
15942
15943 if expr a : '\(a\)' >/dev/null 2>&1; then
15944   as_expr=expr
15945 else
15946   as_expr=false
15947 fi
15948
15949 rm -f conf$$ conf$$.exe conf$$.file
15950 echo >conf$$.file
15951 if ln -s conf$$.file conf$$ 2>/dev/null; then
15952   # We could just check for DJGPP; but this test a) works b) is more generic
15953   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15954   if test -f conf$$.exe; then
15955     # Don't use ln at all; we don't have any links
15956     as_ln_s='cp -p'
15957   else
15958     as_ln_s='ln -s'
15959   fi
15960 elif ln conf$$.file conf$$ 2>/dev/null; then
15961   as_ln_s=ln
15962 else
15963   as_ln_s='cp -p'
15964 fi
15965 rm -f conf$$ conf$$.exe conf$$.file
15966
15967 if mkdir -p . 2>/dev/null; then
15968   as_mkdir_p=:
15969 else
15970   as_mkdir_p=false
15971 fi
15972
15973 as_executable_p="test -f"
15974
15975 # Sed expression to map a string onto a valid CPP name.
15976 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15977
15978 # Sed expression to map a string onto a valid variable name.
15979 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15980
15981
15982 # IFS
15983 # We need space, tab and new line, in precisely that order.
15984 as_nl='
15985 '
15986 IFS="   $as_nl"
15987
15988 # CDPATH.
15989 $as_unset CDPATH
15990
15991 exec 6>&1
15992
15993 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15994 # report actual input values of CONFIG_FILES etc. instead of their
15995 # values after options handling.  Logging --version etc. is OK.
15996 exec 5>>config.log
15997 {
15998   echo
15999   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16000 ## Running $as_me. ##
16001 _ASBOX
16002 } >&5
16003 cat >&5 <<_CSEOF
16004
16005 This file was extended by Wine $as_me 20021219, which was
16006 generated by GNU Autoconf 2.57.  Invocation command line was
16007
16008   CONFIG_FILES    = $CONFIG_FILES
16009   CONFIG_HEADERS  = $CONFIG_HEADERS
16010   CONFIG_LINKS    = $CONFIG_LINKS
16011   CONFIG_COMMANDS = $CONFIG_COMMANDS
16012   $ $0 $@
16013
16014 _CSEOF
16015 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16016 echo >&5
16017 _ACEOF
16018
16019 # Files that config.status was made for.
16020 if test -n "$ac_config_files"; then
16021   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16022 fi
16023
16024 if test -n "$ac_config_headers"; then
16025   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16026 fi
16027
16028 if test -n "$ac_config_links"; then
16029   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16030 fi
16031
16032 if test -n "$ac_config_commands"; then
16033   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16034 fi
16035
16036 cat >>$CONFIG_STATUS <<\_ACEOF
16037
16038 ac_cs_usage="\
16039 \`$as_me' instantiates files from templates according to the
16040 current configuration.
16041
16042 Usage: $0 [OPTIONS] [FILE]...
16043
16044   -h, --help       print this help, then exit
16045   -V, --version    print version number, then exit
16046   -q, --quiet      do not print progress messages
16047   -d, --debug      don't remove temporary files
16048       --recheck    update $as_me by reconfiguring in the same conditions
16049   --file=FILE[:TEMPLATE]
16050                    instantiate the configuration file FILE
16051   --header=FILE[:TEMPLATE]
16052                    instantiate the configuration header FILE
16053
16054 Configuration files:
16055 $config_files
16056
16057 Configuration headers:
16058 $config_headers
16059
16060 Configuration commands:
16061 $config_commands
16062
16063 Report bugs to <bug-autoconf@gnu.org>."
16064 _ACEOF
16065
16066 cat >>$CONFIG_STATUS <<_ACEOF
16067 ac_cs_version="\\
16068 Wine config.status 20021219
16069 configured by $0, generated by GNU Autoconf 2.57,
16070   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16071
16072 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16073 Free Software Foundation, Inc.
16074 This config.status script is free software; the Free Software Foundation
16075 gives unlimited permission to copy, distribute and modify it."
16076 srcdir=$srcdir
16077 INSTALL="$INSTALL"
16078 _ACEOF
16079
16080 cat >>$CONFIG_STATUS <<\_ACEOF
16081 # If no file are specified by the user, then we need to provide default
16082 # value.  By we need to know if files were specified by the user.
16083 ac_need_defaults=:
16084 while test $# != 0
16085 do
16086   case $1 in
16087   --*=*)
16088     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16089     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16090     ac_shift=:
16091     ;;
16092   -*)
16093     ac_option=$1
16094     ac_optarg=$2
16095     ac_shift=shift
16096     ;;
16097   *) # This is not an option, so the user has probably given explicit
16098      # arguments.
16099      ac_option=$1
16100      ac_need_defaults=false;;
16101   esac
16102
16103   case $ac_option in
16104   # Handling of the options.
16105 _ACEOF
16106 cat >>$CONFIG_STATUS <<\_ACEOF
16107   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16108     ac_cs_recheck=: ;;
16109   --version | --vers* | -V )
16110     echo "$ac_cs_version"; exit 0 ;;
16111   --he | --h)
16112     # Conflict between --help and --header
16113     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16114 Try \`$0 --help' for more information." >&5
16115 echo "$as_me: error: ambiguous option: $1
16116 Try \`$0 --help' for more information." >&2;}
16117    { (exit 1); exit 1; }; };;
16118   --help | --hel | -h )
16119     echo "$ac_cs_usage"; exit 0 ;;
16120   --debug | --d* | -d )
16121     debug=: ;;
16122   --file | --fil | --fi | --f )
16123     $ac_shift
16124     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16125     ac_need_defaults=false;;
16126   --header | --heade | --head | --hea )
16127     $ac_shift
16128     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16129     ac_need_defaults=false;;
16130   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16131   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16132     ac_cs_silent=: ;;
16133
16134   # This is an error.
16135   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16136 Try \`$0 --help' for more information." >&5
16137 echo "$as_me: error: unrecognized option: $1
16138 Try \`$0 --help' for more information." >&2;}
16139    { (exit 1); exit 1; }; } ;;
16140
16141   *) ac_config_targets="$ac_config_targets $1" ;;
16142
16143   esac
16144   shift
16145 done
16146
16147 ac_configure_extra_args=
16148
16149 if $ac_cs_silent; then
16150   exec 6>/dev/null
16151   ac_configure_extra_args="$ac_configure_extra_args --silent"
16152 fi
16153
16154 _ACEOF
16155 cat >>$CONFIG_STATUS <<_ACEOF
16156 if \$ac_cs_recheck; then
16157   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16158   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16159 fi
16160
16161 _ACEOF
16162
16163
16164
16165
16166
16167 cat >>$CONFIG_STATUS <<\_ACEOF
16168 for ac_config_target in $ac_config_targets
16169 do
16170   case "$ac_config_target" in
16171   # Handling of arguments.
16172   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16173   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16174   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
16175   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16176   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16177   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
16178   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
16179   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
16180   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
16181   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
16182   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
16183   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
16184   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
16185   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
16186   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
16187   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
16188   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
16189   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
16190   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
16191   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
16192   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
16193   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
16194   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
16195   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
16196   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
16197   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
16198   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
16199   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
16200   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
16201   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
16202   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
16203   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
16204   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
16205   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
16206   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
16207   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
16208   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
16209   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
16210   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
16211   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
16212   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
16213   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
16214   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
16215   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
16216   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
16217   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
16218   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
16219   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
16220   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
16221   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
16222   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
16223   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
16224   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
16225   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
16226   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
16227   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
16228   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
16229   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
16230   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
16231   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
16232   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
16233   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
16234   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
16235   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
16236   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
16237   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
16238   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
16239   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
16240   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
16241   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
16242   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
16243   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
16244   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
16245   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
16246   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
16247   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
16248   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
16249   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
16250   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
16251   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
16252   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
16253   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
16254   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
16255   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
16256   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
16257   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
16258   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
16259   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
16260   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
16261   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
16262   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
16263   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
16264   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
16265   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
16266   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
16267   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
16268   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
16269   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
16270   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
16271   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
16272   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
16273   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
16274   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
16275   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
16276   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
16277   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
16278   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
16279   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
16280   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
16281   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
16282   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
16283   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
16284   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
16285   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
16286   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
16287   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
16288   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
16289   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
16290   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
16291   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
16292   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
16293   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
16294   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
16295   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
16296   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
16297   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16298   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
16299   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
16300   "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
16301   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
16302   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
16303   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
16304   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
16305   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
16306   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
16307   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
16308   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
16309   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
16310   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
16311   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
16312   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
16313   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
16314   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
16315   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
16316   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
16317   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
16318   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
16319   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
16320   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
16321   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
16322   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
16323   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
16324   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
16325   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
16326   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
16327   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
16328   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16329   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
16330   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
16331   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
16332   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
16333   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
16334   "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
16335   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
16336   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
16337   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
16338   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
16339   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
16340   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
16341   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
16342   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
16343   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
16344   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
16345   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
16346   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
16347   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
16348   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
16349   "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
16350   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
16351   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
16352   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
16353   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
16354   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
16355   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
16356   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
16357   "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
16358   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16359   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
16360   "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
16361   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
16362   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
16363   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
16364   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
16365   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
16366   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
16367   "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
16368   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
16369   "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
16370   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
16371   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16372   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16373 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16374    { (exit 1); exit 1; }; };;
16375   esac
16376 done
16377
16378 # If the user did not use the arguments to specify the items to instantiate,
16379 # then the envvar interface is used.  Set only those that are not.
16380 # We use the long form for the default assignment because of an extremely
16381 # bizarre bug on SunOS 4.1.3.
16382 if $ac_need_defaults; then
16383   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16384   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16385   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16386 fi
16387
16388 # Have a temporary directory for convenience.  Make it in the build tree
16389 # simply because there is no reason to put it here, and in addition,
16390 # creating and moving files from /tmp can sometimes cause problems.
16391 # Create a temporary directory, and hook for its removal unless debugging.
16392 $debug ||
16393 {
16394   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16395   trap '{ (exit 1); exit 1; }' 1 2 13 15
16396 }
16397
16398 # Create a (secure) tmp directory for tmp files.
16399
16400 {
16401   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16402   test -n "$tmp" && test -d "$tmp"
16403 }  ||
16404 {
16405   tmp=./confstat$$-$RANDOM
16406   (umask 077 && mkdir $tmp)
16407 } ||
16408 {
16409    echo "$me: cannot create a temporary directory in ." >&2
16410    { (exit 1); exit 1; }
16411 }
16412
16413 _ACEOF
16414
16415 cat >>$CONFIG_STATUS <<_ACEOF
16416
16417 #
16418 # CONFIG_FILES section.
16419 #
16420
16421 # No need to generate the scripts if there are no CONFIG_FILES.
16422 # This happens for instance when ./config.status config.h
16423 if test -n "\$CONFIG_FILES"; then
16424   # Protect against being on the right side of a sed subst in config.status.
16425   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16426    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16427 s,@SHELL@,$SHELL,;t t
16428 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16429 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16430 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16431 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16432 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16433 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16434 s,@exec_prefix@,$exec_prefix,;t t
16435 s,@prefix@,$prefix,;t t
16436 s,@program_transform_name@,$program_transform_name,;t t
16437 s,@bindir@,$bindir,;t t
16438 s,@sbindir@,$sbindir,;t t
16439 s,@libexecdir@,$libexecdir,;t t
16440 s,@datadir@,$datadir,;t t
16441 s,@sysconfdir@,$sysconfdir,;t t
16442 s,@sharedstatedir@,$sharedstatedir,;t t
16443 s,@localstatedir@,$localstatedir,;t t
16444 s,@libdir@,$libdir,;t t
16445 s,@includedir@,$includedir,;t t
16446 s,@oldincludedir@,$oldincludedir,;t t
16447 s,@infodir@,$infodir,;t t
16448 s,@mandir@,$mandir,;t t
16449 s,@build_alias@,$build_alias,;t t
16450 s,@host_alias@,$host_alias,;t t
16451 s,@target_alias@,$target_alias,;t t
16452 s,@DEFS@,$DEFS,;t t
16453 s,@ECHO_C@,$ECHO_C,;t t
16454 s,@ECHO_N@,$ECHO_N,;t t
16455 s,@ECHO_T@,$ECHO_T,;t t
16456 s,@LIBS@,$LIBS,;t t
16457 s,@OPTIONS@,$OPTIONS,;t t
16458 s,@WIN16_FILES@,$WIN16_FILES,;t t
16459 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
16460 s,@build@,$build,;t t
16461 s,@build_cpu@,$build_cpu,;t t
16462 s,@build_vendor@,$build_vendor,;t t
16463 s,@build_os@,$build_os,;t t
16464 s,@host@,$host,;t t
16465 s,@host_cpu@,$host_cpu,;t t
16466 s,@host_vendor@,$host_vendor,;t t
16467 s,@host_os@,$host_os,;t t
16468 s,@SET_MAKE@,$SET_MAKE,;t t
16469 s,@CC@,$CC,;t t
16470 s,@CFLAGS@,$CFLAGS,;t t
16471 s,@LDFLAGS@,$LDFLAGS,;t t
16472 s,@CPPFLAGS@,$CPPFLAGS,;t t
16473 s,@ac_ct_CC@,$ac_ct_CC,;t t
16474 s,@EXEEXT@,$EXEEXT,;t t
16475 s,@OBJEXT@,$OBJEXT,;t t
16476 s,@CPP@,$CPP,;t t
16477 s,@TOOLSDIR@,$TOOLSDIR,;t t
16478 s,@X_CFLAGS@,$X_CFLAGS,;t t
16479 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16480 s,@X_LIBS@,$X_LIBS,;t t
16481 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16482 s,@YACC@,$YACC,;t t
16483 s,@LEX@,$LEX,;t t
16484 s,@LEXLIB@,$LEXLIB,;t t
16485 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16486 s,@XYACC@,$XYACC,;t t
16487 s,@XLEX@,$XLEX,;t t
16488 s,@AS@,$AS,;t t
16489 s,@ac_ct_AS@,$ac_ct_AS,;t t
16490 s,@LD@,$LD,;t t
16491 s,@ac_ct_LD@,$ac_ct_LD,;t t
16492 s,@AR@,$AR,;t t
16493 s,@ac_ct_AR@,$ac_ct_AR,;t t
16494 s,@RANLIB@,$RANLIB,;t t
16495 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16496 s,@STRIP@,$STRIP,;t t
16497 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16498 s,@WINDRES@,$WINDRES,;t t
16499 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
16500 s,@LN_S@,$LN_S,;t t
16501 s,@LN@,$LN,;t t
16502 s,@C2MAN@,$C2MAN,;t t
16503 s,@LDCONFIG@,$LDCONFIG,;t t
16504 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16505 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16506 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16507 s,@LINT@,$LINT,;t t
16508 s,@LINTFLAGS@,$LINTFLAGS,;t t
16509 s,@DB2HTML@,$DB2HTML,;t t
16510 s,@DB2PDF@,$DB2PDF,;t t
16511 s,@DB2PS@,$DB2PS,;t t
16512 s,@JPEGLIB@,$JPEGLIB,;t t
16513 s,@EGREP@,$EGREP,;t t
16514 s,@GIFLIB@,$GIFLIB,;t t
16515 s,@XLIB@,$XLIB,;t t
16516 s,@XFILES@,$XFILES,;t t
16517 s,@OPENGLFILES@,$OPENGLFILES,;t t
16518 s,@GLU32FILES@,$GLU32FILES,;t t
16519 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
16520 s,@NASLIBS@,$NASLIBS,;t t
16521 s,@CURSESLIBS@,$CURSESLIBS,;t t
16522 s,@sane_devel@,$sane_devel,;t t
16523 s,@SANELIBS@,$SANELIBS,;t t
16524 s,@SANEINCL@,$SANEINCL,;t t
16525 s,@ft_devel@,$ft_devel,;t t
16526 s,@ft_devel2@,$ft_devel2,;t t
16527 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
16528 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
16529 s,@ARTSLIBS@,$ARTSLIBS,;t t
16530 s,@ARTSINCL@,$ARTSINCL,;t t
16531 s,@ALSALIBS@,$ALSALIBS,;t t
16532 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
16533 s,@DLLEXT@,$DLLEXT,;t t
16534 s,@DLLFLAGS@,$DLLFLAGS,;t t
16535 s,@DLLIBS@,$DLLIBS,;t t
16536 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
16537 s,@LDSHARED@,$LDSHARED,;t t
16538 s,@LIBEXT@,$LIBEXT,;t t
16539 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
16540 s,@DLLTOOL@,$DLLTOOL,;t t
16541 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
16542 s,@DLLWRAP@,$DLLWRAP,;t t
16543 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
16544 s,@CROSSTEST@,$CROSSTEST,;t t
16545 s,@CROSSCC@,$CROSSCC,;t t
16546 s,@LDPATH@,$LDPATH,;t t
16547 s,@CRTLIBS@,$CRTLIBS,;t t
16548 s,@LDD@,$LDD,;t t
16549 s,@ALLOCA@,$ALLOCA,;t t
16550 s,@LIBOBJS@,$LIBOBJS,;t t
16551 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16552 /@MAKE_RULES@/r $MAKE_RULES
16553 s,@MAKE_RULES@,,;t t
16554 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
16555 s,@MAKE_DLL_RULES@,,;t t
16556 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
16557 s,@MAKE_TEST_RULES@,,;t t
16558 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
16559 s,@MAKE_PROG_RULES@,,;t t
16560 CEOF
16561
16562 _ACEOF
16563
16564   cat >>$CONFIG_STATUS <<\_ACEOF
16565   # Split the substitutions into bite-sized pieces for seds with
16566   # small command number limits, like on Digital OSF/1 and HP-UX.
16567   ac_max_sed_lines=48
16568   ac_sed_frag=1 # Number of current file.
16569   ac_beg=1 # First line for current file.
16570   ac_end=$ac_max_sed_lines # Line after last line for current file.
16571   ac_more_lines=:
16572   ac_sed_cmds=
16573   while $ac_more_lines; do
16574     if test $ac_beg -gt 1; then
16575       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16576     else
16577       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16578     fi
16579     if test ! -s $tmp/subs.frag; then
16580       ac_more_lines=false
16581     else
16582       # The purpose of the label and of the branching condition is to
16583       # speed up the sed processing (if there are no `@' at all, there
16584       # is no need to browse any of the substitutions).
16585       # These are the two extra sed commands mentioned above.
16586       (echo ':t
16587   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16588       if test -z "$ac_sed_cmds"; then
16589         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16590       else
16591         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16592       fi
16593       ac_sed_frag=`expr $ac_sed_frag + 1`
16594       ac_beg=$ac_end
16595       ac_end=`expr $ac_end + $ac_max_sed_lines`
16596     fi
16597   done
16598   if test -z "$ac_sed_cmds"; then
16599     ac_sed_cmds=cat
16600   fi
16601 fi # test -n "$CONFIG_FILES"
16602
16603 _ACEOF
16604 cat >>$CONFIG_STATUS <<\_ACEOF
16605 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16606   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16607   case $ac_file in
16608   - | *:- | *:-:* ) # input from stdin
16609         cat >$tmp/stdin
16610         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16611         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16612   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16613         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16614   * )   ac_file_in=$ac_file.in ;;
16615   esac
16616
16617   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16618   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16620          X"$ac_file" : 'X\(//\)[^/]' \| \
16621          X"$ac_file" : 'X\(//\)$' \| \
16622          X"$ac_file" : 'X\(/\)' \| \
16623          .     : '\(.\)' 2>/dev/null ||
16624 echo X"$ac_file" |
16625     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16626           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16627           /^X\(\/\/\)$/{ s//\1/; q; }
16628           /^X\(\/\).*/{ s//\1/; q; }
16629           s/.*/./; q'`
16630   { if $as_mkdir_p; then
16631     mkdir -p "$ac_dir"
16632   else
16633     as_dir="$ac_dir"
16634     as_dirs=
16635     while test ! -d "$as_dir"; do
16636       as_dirs="$as_dir $as_dirs"
16637       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16639          X"$as_dir" : 'X\(//\)[^/]' \| \
16640          X"$as_dir" : 'X\(//\)$' \| \
16641          X"$as_dir" : 'X\(/\)' \| \
16642          .     : '\(.\)' 2>/dev/null ||
16643 echo X"$as_dir" |
16644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16645           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16646           /^X\(\/\/\)$/{ s//\1/; q; }
16647           /^X\(\/\).*/{ s//\1/; q; }
16648           s/.*/./; q'`
16649     done
16650     test ! -n "$as_dirs" || mkdir $as_dirs
16651   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16652 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16653    { (exit 1); exit 1; }; }; }
16654
16655   ac_builddir=.
16656
16657 if test "$ac_dir" != .; then
16658   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16659   # A "../" for each directory in $ac_dir_suffix.
16660   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16661 else
16662   ac_dir_suffix= ac_top_builddir=
16663 fi
16664
16665 case $srcdir in
16666   .)  # No --srcdir option.  We are building in place.
16667     ac_srcdir=.
16668     if test -z "$ac_top_builddir"; then
16669        ac_top_srcdir=.
16670     else
16671        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16672     fi ;;
16673   [\\/]* | ?:[\\/]* )  # Absolute path.
16674     ac_srcdir=$srcdir$ac_dir_suffix;
16675     ac_top_srcdir=$srcdir ;;
16676   *) # Relative path.
16677     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16678     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16679 esac
16680 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16681 # absolute.
16682 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16683 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16684 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16685 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16686
16687
16688   case $INSTALL in
16689   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16690   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16691   esac
16692
16693   if test x"$ac_file" != x-; then
16694     { echo "$as_me:$LINENO: creating $ac_file" >&5
16695 echo "$as_me: creating $ac_file" >&6;}
16696     rm -f "$ac_file"
16697   fi
16698   # Let's still pretend it is `configure' which instantiates (i.e., don't
16699   # use $as_me), people would be surprised to read:
16700   #    /* config.h.  Generated by config.status.  */
16701   if test x"$ac_file" = x-; then
16702     configure_input=
16703   else
16704     configure_input="$ac_file.  "
16705   fi
16706   configure_input=$configure_input"Generated from `echo $ac_file_in |
16707                                      sed 's,.*/,,'` by configure."
16708
16709   # First look for the input files in the build tree, otherwise in the
16710   # src tree.
16711   ac_file_inputs=`IFS=:
16712     for f in $ac_file_in; do
16713       case $f in
16714       -) echo $tmp/stdin ;;
16715       [\\/$]*)
16716          # Absolute (can't be DOS-style, as IFS=:)
16717          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16718 echo "$as_me: error: cannot find input file: $f" >&2;}
16719    { (exit 1); exit 1; }; }
16720          echo $f;;
16721       *) # Relative
16722          if test -f "$f"; then
16723            # Build tree
16724            echo $f
16725          elif test -f "$srcdir/$f"; then
16726            # Source tree
16727            echo $srcdir/$f
16728          else
16729            # /dev/null tree
16730            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16731 echo "$as_me: error: cannot find input file: $f" >&2;}
16732    { (exit 1); exit 1; }; }
16733          fi;;
16734       esac
16735     done` || { (exit 1); exit 1; }
16736 _ACEOF
16737 cat >>$CONFIG_STATUS <<_ACEOF
16738   sed "$ac_vpsub
16739 $extrasub
16740 _ACEOF
16741 cat >>$CONFIG_STATUS <<\_ACEOF
16742 :t
16743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16744 s,@configure_input@,$configure_input,;t t
16745 s,@srcdir@,$ac_srcdir,;t t
16746 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16747 s,@top_srcdir@,$ac_top_srcdir,;t t
16748 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16749 s,@builddir@,$ac_builddir,;t t
16750 s,@abs_builddir@,$ac_abs_builddir,;t t
16751 s,@top_builddir@,$ac_top_builddir,;t t
16752 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16753 s,@INSTALL@,$ac_INSTALL,;t t
16754 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16755   rm -f $tmp/stdin
16756   if test x"$ac_file" != x-; then
16757     mv $tmp/out $ac_file
16758   else
16759     cat $tmp/out
16760     rm -f $tmp/out
16761   fi
16762
16763 done
16764 _ACEOF
16765 cat >>$CONFIG_STATUS <<\_ACEOF
16766
16767 #
16768 # CONFIG_HEADER section.
16769 #
16770
16771 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16772 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16773 #
16774 # ac_d sets the value in "#define NAME VALUE" lines.
16775 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16776 ac_dB='[        ].*$,\1#\2'
16777 ac_dC=' '
16778 ac_dD=',;t'
16779 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16780 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16781 ac_uB='$,\1#\2define\3'
16782 ac_uC=' '
16783 ac_uD=',;t'
16784
16785 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16786   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16787   case $ac_file in
16788   - | *:- | *:-:* ) # input from stdin
16789         cat >$tmp/stdin
16790         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16791         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16792   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16793         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16794   * )   ac_file_in=$ac_file.in ;;
16795   esac
16796
16797   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16798 echo "$as_me: creating $ac_file" >&6;}
16799
16800   # First look for the input files in the build tree, otherwise in the
16801   # src tree.
16802   ac_file_inputs=`IFS=:
16803     for f in $ac_file_in; do
16804       case $f in
16805       -) echo $tmp/stdin ;;
16806       [\\/$]*)
16807          # Absolute (can't be DOS-style, as IFS=:)
16808          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16809 echo "$as_me: error: cannot find input file: $f" >&2;}
16810    { (exit 1); exit 1; }; }
16811          echo $f;;
16812       *) # Relative
16813          if test -f "$f"; then
16814            # Build tree
16815            echo $f
16816          elif test -f "$srcdir/$f"; then
16817            # Source tree
16818            echo $srcdir/$f
16819          else
16820            # /dev/null tree
16821            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16822 echo "$as_me: error: cannot find input file: $f" >&2;}
16823    { (exit 1); exit 1; }; }
16824          fi;;
16825       esac
16826     done` || { (exit 1); exit 1; }
16827   # Remove the trailing spaces.
16828   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16829
16830 _ACEOF
16831
16832 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16833 # `conftest.undefs', that substitutes the proper values into
16834 # config.h.in to produce config.h.  The first handles `#define'
16835 # templates, and the second `#undef' templates.
16836 # And first: Protect against being on the right side of a sed subst in
16837 # config.status.  Protect against being in an unquoted here document
16838 # in config.status.
16839 rm -f conftest.defines conftest.undefs
16840 # Using a here document instead of a string reduces the quoting nightmare.
16841 # Putting comments in sed scripts is not portable.
16842 #
16843 # `end' is used to avoid that the second main sed command (meant for
16844 # 0-ary CPP macros) applies to n-ary macro definitions.
16845 # See the Autoconf documentation for `clear'.
16846 cat >confdef2sed.sed <<\_ACEOF
16847 s/[\\&,]/\\&/g
16848 s,[\\$`],\\&,g
16849 t clear
16850 : clear
16851 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16852 t end
16853 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16854 : end
16855 _ACEOF
16856 # If some macros were called several times there might be several times
16857 # the same #defines, which is useless.  Nevertheless, we may not want to
16858 # sort them, since we want the *last* AC-DEFINE to be honored.
16859 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16860 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16861 rm -f confdef2sed.sed
16862
16863 # This sed command replaces #undef with comments.  This is necessary, for
16864 # example, in the case of _POSIX_SOURCE, which is predefined and required
16865 # on some systems where configure will not decide to define it.
16866 cat >>conftest.undefs <<\_ACEOF
16867 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16868 _ACEOF
16869
16870 # Break up conftest.defines because some shells have a limit on the size
16871 # of here documents, and old seds have small limits too (100 cmds).
16872 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16873 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16874 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16875 echo '  :' >>$CONFIG_STATUS
16876 rm -f conftest.tail
16877 while grep . conftest.defines >/dev/null
16878 do
16879   # Write a limited-size here document to $tmp/defines.sed.
16880   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16881   # Speed up: don't consider the non `#define' lines.
16882   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16883   # Work around the forget-to-reset-the-flag bug.
16884   echo 't clr' >>$CONFIG_STATUS
16885   echo ': clr' >>$CONFIG_STATUS
16886   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16887   echo 'CEOF
16888   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16889   rm -f $tmp/in
16890   mv $tmp/out $tmp/in
16891 ' >>$CONFIG_STATUS
16892   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16893   rm -f conftest.defines
16894   mv conftest.tail conftest.defines
16895 done
16896 rm -f conftest.defines
16897 echo '  fi # grep' >>$CONFIG_STATUS
16898 echo >>$CONFIG_STATUS
16899
16900 # Break up conftest.undefs because some shells have a limit on the size
16901 # of here documents, and old seds have small limits too (100 cmds).
16902 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16903 rm -f conftest.tail
16904 while grep . conftest.undefs >/dev/null
16905 do
16906   # Write a limited-size here document to $tmp/undefs.sed.
16907   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16908   # Speed up: don't consider the non `#undef'
16909   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16910   # Work around the forget-to-reset-the-flag bug.
16911   echo 't clr' >>$CONFIG_STATUS
16912   echo ': clr' >>$CONFIG_STATUS
16913   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16914   echo 'CEOF
16915   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16916   rm -f $tmp/in
16917   mv $tmp/out $tmp/in
16918 ' >>$CONFIG_STATUS
16919   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16920   rm -f conftest.undefs
16921   mv conftest.tail conftest.undefs
16922 done
16923 rm -f conftest.undefs
16924
16925 cat >>$CONFIG_STATUS <<\_ACEOF
16926   # Let's still pretend it is `configure' which instantiates (i.e., don't
16927   # use $as_me), people would be surprised to read:
16928   #    /* config.h.  Generated by config.status.  */
16929   if test x"$ac_file" = x-; then
16930     echo "/* Generated by configure.  */" >$tmp/config.h
16931   else
16932     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16933   fi
16934   cat $tmp/in >>$tmp/config.h
16935   rm -f $tmp/in
16936   if test x"$ac_file" != x-; then
16937     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16938       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16939 echo "$as_me: $ac_file is unchanged" >&6;}
16940     else
16941       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16943          X"$ac_file" : 'X\(//\)[^/]' \| \
16944          X"$ac_file" : 'X\(//\)$' \| \
16945          X"$ac_file" : 'X\(/\)' \| \
16946          .     : '\(.\)' 2>/dev/null ||
16947 echo X"$ac_file" |
16948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16949           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16950           /^X\(\/\/\)$/{ s//\1/; q; }
16951           /^X\(\/\).*/{ s//\1/; q; }
16952           s/.*/./; q'`
16953       { if $as_mkdir_p; then
16954     mkdir -p "$ac_dir"
16955   else
16956     as_dir="$ac_dir"
16957     as_dirs=
16958     while test ! -d "$as_dir"; do
16959       as_dirs="$as_dir $as_dirs"
16960       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16962          X"$as_dir" : 'X\(//\)[^/]' \| \
16963          X"$as_dir" : 'X\(//\)$' \| \
16964          X"$as_dir" : 'X\(/\)' \| \
16965          .     : '\(.\)' 2>/dev/null ||
16966 echo X"$as_dir" |
16967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16968           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16969           /^X\(\/\/\)$/{ s//\1/; q; }
16970           /^X\(\/\).*/{ s//\1/; q; }
16971           s/.*/./; q'`
16972     done
16973     test ! -n "$as_dirs" || mkdir $as_dirs
16974   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16975 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16976    { (exit 1); exit 1; }; }; }
16977
16978       rm -f $ac_file
16979       mv $tmp/config.h $ac_file
16980     fi
16981   else
16982     cat $tmp/config.h
16983     rm -f $tmp/config.h
16984   fi
16985 done
16986 _ACEOF
16987 cat >>$CONFIG_STATUS <<\_ACEOF
16988
16989 #
16990 # CONFIG_COMMANDS section.
16991 #
16992 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16993   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16994   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16995   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16996 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16997          X"$ac_dest" : 'X\(//\)[^/]' \| \
16998          X"$ac_dest" : 'X\(//\)$' \| \
16999          X"$ac_dest" : 'X\(/\)' \| \
17000          .     : '\(.\)' 2>/dev/null ||
17001 echo X"$ac_dest" |
17002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17004           /^X\(\/\/\)$/{ s//\1/; q; }
17005           /^X\(\/\).*/{ s//\1/; q; }
17006           s/.*/./; q'`
17007   ac_builddir=.
17008
17009 if test "$ac_dir" != .; then
17010   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17011   # A "../" for each directory in $ac_dir_suffix.
17012   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17013 else
17014   ac_dir_suffix= ac_top_builddir=
17015 fi
17016
17017 case $srcdir in
17018   .)  # No --srcdir option.  We are building in place.
17019     ac_srcdir=.
17020     if test -z "$ac_top_builddir"; then
17021        ac_top_srcdir=.
17022     else
17023        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17024     fi ;;
17025   [\\/]* | ?:[\\/]* )  # Absolute path.
17026     ac_srcdir=$srcdir$ac_dir_suffix;
17027     ac_top_srcdir=$srcdir ;;
17028   *) # Relative path.
17029     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17030     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17031 esac
17032 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17033 # absolute.
17034 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17035 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17036 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17037 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17038
17039
17040   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17041 echo "$as_me: executing $ac_dest commands" >&6;}
17042   case $ac_dest in
17043     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
17044 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
17045     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
17046 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
17047     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
17048 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
17049     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
17050 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
17051     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
17052 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
17053     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
17054 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
17055     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
17056 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
17057     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
17058 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
17059     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
17060 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
17061     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
17062 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
17063     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
17064 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
17065     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
17066 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
17067     dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
17068 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
17069     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
17070 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
17071     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
17072 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
17073     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
17074 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
17075     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
17076 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
17077     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
17078 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
17079     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
17080 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
17081     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
17082 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
17083     if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
17084 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
17085     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
17086 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
17087     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
17088 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
17089     loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
17090 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
17091     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
17092 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
17093     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
17094 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
17095     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
17096 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
17097     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
17098 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
17099     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
17100 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
17101     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
17102 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
17103     relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
17104 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
17105     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
17106 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
17107     win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
17108 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
17109     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
17110 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
17111   esac
17112 done
17113 _ACEOF
17114
17115 cat >>$CONFIG_STATUS <<\_ACEOF
17116
17117 { (exit 0); exit 0; }
17118 _ACEOF
17119 chmod +x $CONFIG_STATUS
17120 ac_clean_files=$ac_clean_files_save
17121
17122
17123 # configure is writing to config.log, and then calls config.status.
17124 # config.status does its own redirection, appending to config.log.
17125 # Unfortunately, on DOS this fails, as config.log is still kept open
17126 # by configure, so config.status won't be able to write to it; its
17127 # output is simply discarded.  So we exec the FD to /dev/null,
17128 # effectively closing config.log, so it can be properly (re)opened and
17129 # appended to by config.status.  When coming back to configure, we
17130 # need to make the FD available again.
17131 if test "$no_create" != yes; then
17132   ac_cs_success=:
17133   ac_config_status_args=
17134   test "$silent" = yes &&
17135     ac_config_status_args="$ac_config_status_args --quiet"
17136   exec 5>/dev/null
17137   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17138   exec 5>>config.log
17139   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17140   # would make configure fail if this is the last instruction.
17141   $ac_cs_success || { (exit 1); exit 1; }
17142 fi
17143
17144
17145 if test "$have_x" = "no"
17146 then
17147   echo
17148   echo "*** Warning: X development files not found. Wine will be built without"
17149   echo "*** X support, which currently does not work, and would probably not be"
17150   echo "*** what you want anyway. You will need to install devel packages of"
17151   echo "*** Xlib/Xfree86 at the very least."
17152 fi
17153
17154 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
17155 then
17156   echo
17157   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
17158   echo "*** terminal resize support. Consider upgrading ncurses."
17159 fi
17160
17161 if test "$wine_cv_libc_reentrant" = "no"
17162 then
17163   echo
17164   echo "*** Warning: non-reentrant libc detected. Wine will be built without"
17165   echo "*** threading support. Consider upgrading libc to a more recent"
17166   echo "*** reentrant version of libc."
17167 fi
17168
17169 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
17170 then
17171   echo
17172   echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
17173   echo "*** applications won't work properly. You should upgrade your X11 library."
17174 fi
17175
17176 if test "$wine_cv_opengl_version_OK" = "no"
17177 then
17178   echo
17179   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
17180   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
17181 fi
17182
17183 if test "$wine_cv_msg_freetype" = "yes"
17184 then
17185   echo
17186   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
17187   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
17188   echo "*** freetype-devel package (or its equivalent on your distribution) to"
17189   echo "*** enable Wine to use TrueType fonts."
17190 fi
17191
17192 echo
17193 echo "Configure finished.  Do 'make depend && make' to compile Wine."
17194 echo
17195